Imported Upstream version 1.3.1
[platform/upstream/libpipeline.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.3.1.
4 #
5 # Report bugs to <cjwatson@debian.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.3.1'
594 PACKAGE_STRING='libpipeline 1.3.1'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 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 REPLACE_UTIMENSAT
775 REPLACE_STAT
776 REPLACE_MKNOD
777 REPLACE_MKFIFO
778 REPLACE_MKDIR
779 REPLACE_LSTAT
780 REPLACE_FUTIMENS
781 REPLACE_FSTATAT
782 REPLACE_FSTAT
783 HAVE_UTIMENSAT
784 HAVE_MKNODAT
785 HAVE_MKNOD
786 HAVE_MKFIFOAT
787 HAVE_MKFIFO
788 HAVE_MKDIRAT
789 HAVE_LSTAT
790 HAVE_LCHMOD
791 HAVE_FUTIMENS
792 HAVE_FSTATAT
793 HAVE_FCHMODAT
794 GNULIB_UTIMENSAT
795 GNULIB_STAT
796 GNULIB_MKNODAT
797 GNULIB_MKNOD
798 GNULIB_MKFIFOAT
799 GNULIB_MKFIFO
800 GNULIB_MKDIRAT
801 GNULIB_LSTAT
802 GNULIB_LCHMOD
803 GNULIB_FUTIMENS
804 GNULIB_FSTATAT
805 GNULIB_FSTAT
806 GNULIB_FCHMODAT
807 HAVE_SYS_SELECT_H
808 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
809 NEXT_SYS_SELECT_H
810 REPLACE_SELECT
811 REPLACE_PSELECT
812 HAVE_PSELECT
813 GNULIB_SELECT
814 GNULIB_PSELECT
815 NEXT_AS_FIRST_DIRECTIVE_STRING_H
816 NEXT_STRING_H
817 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
818 NEXT_STDLIB_H
819 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
820 NEXT_STDIO_H
821 GL_GENERATE_STDINT_H_FALSE
822 GL_GENERATE_STDINT_H_TRUE
823 STDINT_H
824 WINT_T_SUFFIX
825 WCHAR_T_SUFFIX
826 SIG_ATOMIC_T_SUFFIX
827 SIZE_T_SUFFIX
828 PTRDIFF_T_SUFFIX
829 HAVE_SIGNED_WINT_T
830 HAVE_SIGNED_WCHAR_T
831 HAVE_SIGNED_SIG_ATOMIC_T
832 BITSIZEOF_WINT_T
833 BITSIZEOF_WCHAR_T
834 BITSIZEOF_SIG_ATOMIC_T
835 BITSIZEOF_SIZE_T
836 BITSIZEOF_PTRDIFF_T
837 HAVE_SYS_BITYPES_H
838 HAVE_SYS_INTTYPES_H
839 HAVE_STDINT_H
840 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
841 NEXT_STDINT_H
842 HAVE_SYS_TYPES_H
843 HAVE_INTTYPES_H
844 HAVE_WCHAR_H
845 HAVE_UNSIGNED_LONG_LONG_INT
846 HAVE_LONG_LONG_INT
847 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
848 NEXT_STDDEF_H
849 GL_GENERATE_STDDEF_H_FALSE
850 GL_GENERATE_STDDEF_H_TRUE
851 STDDEF_H
852 HAVE_WCHAR_T
853 REPLACE_NULL
854 HAVE__BOOL
855 GL_GENERATE_STDBOOL_H_FALSE
856 GL_GENERATE_STDBOOL_H_TRUE
857 STDBOOL_H
858 GL_GENERATE_STDARG_H_FALSE
859 GL_GENERATE_STDARG_H_TRUE
860 STDARG_H
861 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
862 NEXT_STDARG_H
863 REPLACE_VSPRINTF
864 REPLACE_VSNPRINTF
865 REPLACE_VPRINTF
866 REPLACE_VFPRINTF
867 REPLACE_VDPRINTF
868 REPLACE_VASPRINTF
869 REPLACE_TMPFILE
870 REPLACE_STDIO_WRITE_FUNCS
871 REPLACE_STDIO_READ_FUNCS
872 REPLACE_SPRINTF
873 REPLACE_SNPRINTF
874 REPLACE_RENAMEAT
875 REPLACE_RENAME
876 REPLACE_REMOVE
877 REPLACE_PRINTF
878 REPLACE_POPEN
879 REPLACE_PERROR
880 REPLACE_OBSTACK_PRINTF
881 REPLACE_GETLINE
882 REPLACE_GETDELIM
883 REPLACE_FTELLO
884 REPLACE_FTELL
885 REPLACE_FSEEKO
886 REPLACE_FSEEK
887 REPLACE_FREOPEN
888 REPLACE_FPURGE
889 REPLACE_FPRINTF
890 REPLACE_FOPEN
891 REPLACE_FFLUSH
892 REPLACE_FDOPEN
893 REPLACE_FCLOSE
894 REPLACE_DPRINTF
895 HAVE_VDPRINTF
896 HAVE_VASPRINTF
897 HAVE_RENAMEAT
898 HAVE_POPEN
899 HAVE_PCLOSE
900 HAVE_FTELLO
901 HAVE_FSEEKO
902 HAVE_DPRINTF
903 HAVE_DECL_VSNPRINTF
904 HAVE_DECL_SNPRINTF
905 HAVE_DECL_OBSTACK_PRINTF
906 HAVE_DECL_GETLINE
907 HAVE_DECL_GETDELIM
908 HAVE_DECL_FTELLO
909 HAVE_DECL_FSEEKO
910 HAVE_DECL_FPURGE
911 GNULIB_VSPRINTF_POSIX
912 GNULIB_VSNPRINTF
913 GNULIB_VPRINTF_POSIX
914 GNULIB_VPRINTF
915 GNULIB_VFPRINTF_POSIX
916 GNULIB_VFPRINTF
917 GNULIB_VDPRINTF
918 GNULIB_VSCANF
919 GNULIB_VFSCANF
920 GNULIB_VASPRINTF
921 GNULIB_TMPFILE
922 GNULIB_STDIO_H_SIGPIPE
923 GNULIB_STDIO_H_NONBLOCKING
924 GNULIB_SPRINTF_POSIX
925 GNULIB_SNPRINTF
926 GNULIB_SCANF
927 GNULIB_RENAMEAT
928 GNULIB_RENAME
929 GNULIB_REMOVE
930 GNULIB_PUTS
931 GNULIB_PUTCHAR
932 GNULIB_PUTC
933 GNULIB_PRINTF_POSIX
934 GNULIB_PRINTF
935 GNULIB_POPEN
936 GNULIB_PERROR
937 GNULIB_PCLOSE
938 GNULIB_OBSTACK_PRINTF_POSIX
939 GNULIB_OBSTACK_PRINTF
940 GNULIB_GETLINE
941 GNULIB_GETDELIM
942 GNULIB_GETCHAR
943 GNULIB_GETC
944 GNULIB_FWRITE
945 GNULIB_FTELLO
946 GNULIB_FTELL
947 GNULIB_FSEEKO
948 GNULIB_FSEEK
949 GNULIB_FSCANF
950 GNULIB_FREOPEN
951 GNULIB_FREAD
952 GNULIB_FPUTS
953 GNULIB_FPUTC
954 GNULIB_FPURGE
955 GNULIB_FPRINTF_POSIX
956 GNULIB_FPRINTF
957 GNULIB_FOPEN
958 GNULIB_FGETS
959 GNULIB_FGETC
960 GNULIB_FFLUSH
961 GNULIB_FDOPEN
962 GNULIB_FCLOSE
963 GNULIB_DPRINTF
964 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
965 NEXT_SIGNAL_H
966 REPLACE_RAISE
967 REPLACE_PTHREAD_SIGMASK
968 HAVE_SIGHANDLER_T
969 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
970 HAVE_STRUCT_SIGACTION_SA_SIGACTION
971 HAVE_SIGACTION
972 HAVE_SIGINFO_T
973 HAVE_SIGSET_T
974 HAVE_RAISE
975 HAVE_PTHREAD_SIGMASK
976 HAVE_POSIX_SIGNALBLOCKING
977 GNULIB_SIGACTION
978 GNULIB_SIGPROCMASK
979 GNULIB_SIGNAL_H_SIGPIPE
980 GNULIB_RAISE
981 GNULIB_PTHREAD_SIGMASK
982 APPLE_UNIVERSAL_BUILD
983 HAVE_MSVC_INVALID_PARAMETER_HANDLER
984 UNDEFINE_STRTOK_R
985 REPLACE_STRTOK_R
986 REPLACE_STRSIGNAL
987 REPLACE_STRNLEN
988 REPLACE_STRNDUP
989 REPLACE_STRNCAT
990 REPLACE_STRERROR_R
991 REPLACE_STRERROR
992 REPLACE_STRCHRNUL
993 REPLACE_STRCASESTR
994 REPLACE_STRSTR
995 REPLACE_STRDUP
996 REPLACE_STPNCPY
997 REPLACE_MEMMEM
998 REPLACE_MEMCHR
999 HAVE_STRVERSCMP
1000 HAVE_DECL_STRSIGNAL
1001 HAVE_DECL_STRERROR_R
1002 HAVE_DECL_STRTOK_R
1003 HAVE_STRCASESTR
1004 HAVE_STRSEP
1005 HAVE_STRPBRK
1006 HAVE_DECL_STRNLEN
1007 HAVE_DECL_STRNDUP
1008 HAVE_DECL_STRDUP
1009 HAVE_STRCHRNUL
1010 HAVE_STPNCPY
1011 HAVE_STPCPY
1012 HAVE_RAWMEMCHR
1013 HAVE_DECL_MEMRCHR
1014 HAVE_MEMPCPY
1015 HAVE_DECL_MEMMEM
1016 HAVE_MEMCHR
1017 HAVE_FFSLL
1018 HAVE_FFSL
1019 HAVE_MBSLEN
1020 GNULIB_STRVERSCMP
1021 GNULIB_STRSIGNAL
1022 GNULIB_STRERROR_R
1023 GNULIB_STRERROR
1024 GNULIB_MBSTOK_R
1025 GNULIB_MBSSEP
1026 GNULIB_MBSSPN
1027 GNULIB_MBSPBRK
1028 GNULIB_MBSCSPN
1029 GNULIB_MBSCASESTR
1030 GNULIB_MBSPCASECMP
1031 GNULIB_MBSNCASECMP
1032 GNULIB_MBSCASECMP
1033 GNULIB_MBSSTR
1034 GNULIB_MBSRCHR
1035 GNULIB_MBSCHR
1036 GNULIB_MBSNLEN
1037 GNULIB_MBSLEN
1038 GNULIB_STRTOK_R
1039 GNULIB_STRCASESTR
1040 GNULIB_STRSTR
1041 GNULIB_STRSEP
1042 GNULIB_STRPBRK
1043 GNULIB_STRNLEN
1044 GNULIB_STRNDUP
1045 GNULIB_STRNCAT
1046 GNULIB_STRDUP
1047 GNULIB_STRCHRNUL
1048 GNULIB_STPNCPY
1049 GNULIB_STPCPY
1050 GNULIB_RAWMEMCHR
1051 GNULIB_MEMRCHR
1052 GNULIB_MEMPCPY
1053 GNULIB_MEMMEM
1054 GNULIB_MEMCHR
1055 GNULIB_FFSLL
1056 GNULIB_FFSL
1057 REPLACE_WCTOMB
1058 REPLACE_UNSETENV
1059 REPLACE_STRTOD
1060 REPLACE_SETENV
1061 REPLACE_REALPATH
1062 REPLACE_REALLOC
1063 REPLACE_RANDOM_R
1064 REPLACE_PUTENV
1065 REPLACE_PTSNAME_R
1066 REPLACE_PTSNAME
1067 REPLACE_MKSTEMP
1068 REPLACE_MBTOWC
1069 REPLACE_MALLOC
1070 REPLACE_CANONICALIZE_FILE_NAME
1071 REPLACE_CALLOC
1072 HAVE_DECL_UNSETENV
1073 HAVE_UNLOCKPT
1074 HAVE_SYS_LOADAVG_H
1075 HAVE_STRUCT_RANDOM_DATA
1076 HAVE_STRTOULL
1077 HAVE_STRTOLL
1078 HAVE_STRTOD
1079 HAVE_DECL_SETENV
1080 HAVE_SETENV
1081 HAVE_SECURE_GETENV
1082 HAVE_RPMATCH
1083 HAVE_REALPATH
1084 HAVE_RANDOM_R
1085 HAVE_RANDOM_H
1086 HAVE_RANDOM
1087 HAVE_PTSNAME_R
1088 HAVE_PTSNAME
1089 HAVE_POSIX_OPENPT
1090 HAVE_MKSTEMPS
1091 HAVE_MKSTEMP
1092 HAVE_MKOSTEMPS
1093 HAVE_MKOSTEMP
1094 HAVE_MKDTEMP
1095 HAVE_GRANTPT
1096 HAVE_GETSUBOPT
1097 HAVE_DECL_GETLOADAVG
1098 HAVE_CANONICALIZE_FILE_NAME
1099 HAVE_ATOLL
1100 HAVE__EXIT
1101 GNULIB_WCTOMB
1102 GNULIB_UNSETENV
1103 GNULIB_UNLOCKPT
1104 GNULIB_SYSTEM_POSIX
1105 GNULIB_STRTOULL
1106 GNULIB_STRTOLL
1107 GNULIB_STRTOD
1108 GNULIB_SETENV
1109 GNULIB_SECURE_GETENV
1110 GNULIB_RPMATCH
1111 GNULIB_REALPATH
1112 GNULIB_REALLOC_POSIX
1113 GNULIB_RANDOM_R
1114 GNULIB_RANDOM
1115 GNULIB_PUTENV
1116 GNULIB_PTSNAME_R
1117 GNULIB_PTSNAME
1118 GNULIB_POSIX_OPENPT
1119 GNULIB_MKSTEMPS
1120 GNULIB_MKSTEMP
1121 GNULIB_MKOSTEMPS
1122 GNULIB_MKOSTEMP
1123 GNULIB_MKDTEMP
1124 GNULIB_MBTOWC
1125 GNULIB_MALLOC_POSIX
1126 GNULIB_GRANTPT
1127 GNULIB_GETSUBOPT
1128 GNULIB_GETLOADAVG
1129 GNULIB_CANONICALIZE_FILE_NAME
1130 GNULIB_CALLOC_POSIX
1131 GNULIB_ATOLL
1132 GNULIB__EXIT
1133 LTLIBMULTITHREAD
1134 LIBMULTITHREAD
1135 LTLIBTHREAD
1136 LIBTHREAD
1137 LIBPTH_PREFIX
1138 LTLIBPTH
1139 LIBPTH
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1141 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 EOVERFLOW_VALUE
1159 EOVERFLOW_HIDDEN
1160 ENOLINK_VALUE
1161 ENOLINK_HIDDEN
1162 EMULTIHOP_VALUE
1163 EMULTIHOP_HIDDEN
1164 GL_GENERATE_ERRNO_H_FALSE
1165 GL_GENERATE_ERRNO_H_TRUE
1166 ERRNO_H
1167 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1168 NEXT_ERRNO_H
1169 PRAGMA_COLUMNS
1170 PRAGMA_SYSTEM_HEADER
1171 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1172 INCLUDE_NEXT
1173 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1174 UNISTD_H_HAVE_WINSOCK2_H
1175 REPLACE_WRITE
1176 REPLACE_USLEEP
1177 REPLACE_UNLINKAT
1178 REPLACE_UNLINK
1179 REPLACE_TTYNAME_R
1180 REPLACE_SYMLINK
1181 REPLACE_SLEEP
1182 REPLACE_RMDIR
1183 REPLACE_READLINK
1184 REPLACE_READ
1185 REPLACE_PWRITE
1186 REPLACE_PREAD
1187 REPLACE_LSEEK
1188 REPLACE_LINKAT
1189 REPLACE_LINK
1190 REPLACE_LCHOWN
1191 REPLACE_ISATTY
1192 REPLACE_GETPAGESIZE
1193 REPLACE_GETGROUPS
1194 REPLACE_GETLOGIN_R
1195 REPLACE_GETDTABLESIZE
1196 REPLACE_GETDOMAINNAME
1197 REPLACE_GETCWD
1198 REPLACE_FTRUNCATE
1199 REPLACE_FCHOWNAT
1200 REPLACE_DUP2
1201 REPLACE_DUP
1202 REPLACE_CLOSE
1203 REPLACE_CHOWN
1204 HAVE_SYS_PARAM_H
1205 HAVE_OS_H
1206 HAVE_DECL_TTYNAME_R
1207 HAVE_DECL_SETHOSTNAME
1208 HAVE_DECL_GETUSERSHELL
1209 HAVE_DECL_GETPAGESIZE
1210 HAVE_DECL_GETLOGIN_R
1211 HAVE_DECL_GETDOMAINNAME
1212 HAVE_DECL_FDATASYNC
1213 HAVE_DECL_FCHDIR
1214 HAVE_DECL_ENVIRON
1215 HAVE_USLEEP
1216 HAVE_UNLINKAT
1217 HAVE_SYMLINKAT
1218 HAVE_SYMLINK
1219 HAVE_SLEEP
1220 HAVE_SETHOSTNAME
1221 HAVE_READLINKAT
1222 HAVE_READLINK
1223 HAVE_PWRITE
1224 HAVE_PREAD
1225 HAVE_PIPE2
1226 HAVE_PIPE
1227 HAVE_LINKAT
1228 HAVE_LINK
1229 HAVE_LCHOWN
1230 HAVE_GROUP_MEMBER
1231 HAVE_GETPAGESIZE
1232 HAVE_GETLOGIN
1233 HAVE_GETHOSTNAME
1234 HAVE_GETGROUPS
1235 HAVE_GETDTABLESIZE
1236 HAVE_FTRUNCATE
1237 HAVE_FSYNC
1238 HAVE_FDATASYNC
1239 HAVE_FCHOWNAT
1240 HAVE_FCHDIR
1241 HAVE_FACCESSAT
1242 HAVE_EUIDACCESS
1243 HAVE_DUP3
1244 HAVE_DUP2
1245 HAVE_CHOWN
1246 GNULIB_WRITE
1247 GNULIB_USLEEP
1248 GNULIB_UNLINKAT
1249 GNULIB_UNLINK
1250 GNULIB_UNISTD_H_SIGPIPE
1251 GNULIB_UNISTD_H_NONBLOCKING
1252 GNULIB_TTYNAME_R
1253 GNULIB_SYMLINKAT
1254 GNULIB_SYMLINK
1255 GNULIB_SLEEP
1256 GNULIB_SETHOSTNAME
1257 GNULIB_RMDIR
1258 GNULIB_READLINKAT
1259 GNULIB_READLINK
1260 GNULIB_READ
1261 GNULIB_PWRITE
1262 GNULIB_PREAD
1263 GNULIB_PIPE2
1264 GNULIB_PIPE
1265 GNULIB_LSEEK
1266 GNULIB_LINKAT
1267 GNULIB_LINK
1268 GNULIB_LCHOWN
1269 GNULIB_ISATTY
1270 GNULIB_GROUP_MEMBER
1271 GNULIB_GETUSERSHELL
1272 GNULIB_GETPAGESIZE
1273 GNULIB_GETLOGIN_R
1274 GNULIB_GETLOGIN
1275 GNULIB_GETHOSTNAME
1276 GNULIB_GETGROUPS
1277 GNULIB_GETDTABLESIZE
1278 GNULIB_GETDOMAINNAME
1279 GNULIB_GETCWD
1280 GNULIB_FTRUNCATE
1281 GNULIB_FSYNC
1282 GNULIB_FDATASYNC
1283 GNULIB_FCHOWNAT
1284 GNULIB_FCHDIR
1285 GNULIB_FACCESSAT
1286 GNULIB_EUIDACCESS
1287 GNULIB_ENVIRON
1288 GNULIB_DUP3
1289 GNULIB_DUP2
1290 GNULIB_DUP
1291 GNULIB_CLOSE
1292 GNULIB_CHOWN
1293 GNULIB_CHDIR
1294 GL_GENERATE_ALLOCA_H_FALSE
1295 GL_GENERATE_ALLOCA_H_TRUE
1296 ALLOCA_H
1297 ALLOCA
1298 GL_COND_LIBTOOL_FALSE
1299 GL_COND_LIBTOOL_TRUE
1300 RUN_TESTS_FALSE
1301 RUN_TESTS_TRUE
1302 CHECK_LIBS
1303 CHECK_CFLAGS
1304 PKG_CONFIG_LIBDIR
1305 PKG_CONFIG_PATH
1306 PKG_CONFIG
1307 WARN_CFLAGS
1308 ARFLAGS
1309 OTOOL64
1310 OTOOL
1311 LIPO
1312 NMEDIT
1313 DSYMUTIL
1314 MANIFEST_TOOL
1315 RANLIB
1316 DLLTOOL
1317 OBJDUMP
1318 LN_S
1319 NM
1320 ac_ct_DUMPBIN
1321 DUMPBIN
1322 LD
1323 FGREP
1324 SED
1325 host_os
1326 host_vendor
1327 host_cpu
1328 host
1329 build_os
1330 build_vendor
1331 build_cpu
1332 build
1333 LIBTOOL
1334 ac_ct_AR
1335 AR
1336 EGREP
1337 GREP
1338 CPP
1339 am__fastdepCC_FALSE
1340 am__fastdepCC_TRUE
1341 CCDEPMODE
1342 am__nodep
1343 AMDEPBACKSLASH
1344 AMDEP_FALSE
1345 AMDEP_TRUE
1346 am__quote
1347 am__include
1348 DEPDIR
1349 OBJEXT
1350 EXEEXT
1351 ac_ct_CC
1352 CPPFLAGS
1353 LDFLAGS
1354 CFLAGS
1355 CC
1356 MAINT
1357 MAINTAINER_MODE_FALSE
1358 MAINTAINER_MODE_TRUE
1359 AM_BACKSLASH
1360 AM_DEFAULT_VERBOSITY
1361 AM_DEFAULT_V
1362 AM_V
1363 am__untar
1364 am__tar
1365 AMTAR
1366 am__leading_dot
1367 SET_MAKE
1368 AWK
1369 mkdir_p
1370 MKDIR_P
1371 INSTALL_STRIP_PROGRAM
1372 STRIP
1373 install_sh
1374 MAKEINFO
1375 AUTOHEADER
1376 AUTOMAKE
1377 AUTOCONF
1378 ACLOCAL
1379 VERSION
1380 PACKAGE
1381 CYGPATH_W
1382 am__isrc
1383 INSTALL_DATA
1384 INSTALL_SCRIPT
1385 INSTALL_PROGRAM
1386 target_alias
1387 host_alias
1388 build_alias
1389 LIBS
1390 ECHO_T
1391 ECHO_N
1392 ECHO_C
1393 DEFS
1394 mandir
1395 localedir
1396 libdir
1397 psdir
1398 pdfdir
1399 dvidir
1400 htmldir
1401 infodir
1402 docdir
1403 oldincludedir
1404 includedir
1405 localstatedir
1406 sharedstatedir
1407 sysconfdir
1408 datadir
1409 datarootdir
1410 libexecdir
1411 sbindir
1412 bindir
1413 program_transform_name
1414 prefix
1415 exec_prefix
1416 PACKAGE_URL
1417 PACKAGE_BUGREPORT
1418 PACKAGE_STRING
1419 PACKAGE_VERSION
1420 PACKAGE_TARNAME
1421 PACKAGE_NAME
1422 PATH_SEPARATOR
1423 SHELL'
1424 ac_subst_files=''
1425 ac_user_opts='
1426 enable_option_checking
1427 enable_silent_rules
1428 enable_maintainer_mode
1429 enable_dependency_tracking
1430 enable_static
1431 enable_shared
1432 with_pic
1433 enable_fast_install
1434 with_gnu_ld
1435 with_sysroot
1436 enable_libtool_lock
1437 enable_largefile
1438 enable_threads
1439 enable_rpath
1440 with_libpth_prefix
1441 enable_socketpair_pipe
1442 '
1443       ac_precious_vars='build_alias
1444 host_alias
1445 target_alias
1446 CC
1447 CFLAGS
1448 LDFLAGS
1449 LIBS
1450 CPPFLAGS
1451 CPP
1452 PKG_CONFIG
1453 PKG_CONFIG_PATH
1454 PKG_CONFIG_LIBDIR
1455 CHECK_CFLAGS
1456 CHECK_LIBS'
1457
1458
1459 # Initialize some variables set by options.
1460 ac_init_help=
1461 ac_init_version=false
1462 ac_unrecognized_opts=
1463 ac_unrecognized_sep=
1464 # The variables have the same names as the options, with
1465 # dashes changed to underlines.
1466 cache_file=/dev/null
1467 exec_prefix=NONE
1468 no_create=
1469 no_recursion=
1470 prefix=NONE
1471 program_prefix=NONE
1472 program_suffix=NONE
1473 program_transform_name=s,x,x,
1474 silent=
1475 site=
1476 srcdir=
1477 verbose=
1478 x_includes=NONE
1479 x_libraries=NONE
1480
1481 # Installation directory options.
1482 # These are left unexpanded so users can "make install exec_prefix=/foo"
1483 # and all the variables that are supposed to be based on exec_prefix
1484 # by default will actually change.
1485 # Use braces instead of parens because sh, perl, etc. also accept them.
1486 # (The list follows the same order as the GNU Coding Standards.)
1487 bindir='${exec_prefix}/bin'
1488 sbindir='${exec_prefix}/sbin'
1489 libexecdir='${exec_prefix}/libexec'
1490 datarootdir='${prefix}/share'
1491 datadir='${datarootdir}'
1492 sysconfdir='${prefix}/etc'
1493 sharedstatedir='${prefix}/com'
1494 localstatedir='${prefix}/var'
1495 includedir='${prefix}/include'
1496 oldincludedir='/usr/include'
1497 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1498 infodir='${datarootdir}/info'
1499 htmldir='${docdir}'
1500 dvidir='${docdir}'
1501 pdfdir='${docdir}'
1502 psdir='${docdir}'
1503 libdir='${exec_prefix}/lib'
1504 localedir='${datarootdir}/locale'
1505 mandir='${datarootdir}/man'
1506
1507 ac_prev=
1508 ac_dashdash=
1509 for ac_option
1510 do
1511   # If the previous option needs an argument, assign it.
1512   if test -n "$ac_prev"; then
1513     eval $ac_prev=\$ac_option
1514     ac_prev=
1515     continue
1516   fi
1517
1518   case $ac_option in
1519   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1520   *=)   ac_optarg= ;;
1521   *)    ac_optarg=yes ;;
1522   esac
1523
1524   # Accept the important Cygnus configure options, so we can diagnose typos.
1525
1526   case $ac_dashdash$ac_option in
1527   --)
1528     ac_dashdash=yes ;;
1529
1530   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1531     ac_prev=bindir ;;
1532   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1533     bindir=$ac_optarg ;;
1534
1535   -build | --build | --buil | --bui | --bu)
1536     ac_prev=build_alias ;;
1537   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1538     build_alias=$ac_optarg ;;
1539
1540   -cache-file | --cache-file | --cache-fil | --cache-fi \
1541   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1542     ac_prev=cache_file ;;
1543   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1544   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1545     cache_file=$ac_optarg ;;
1546
1547   --config-cache | -C)
1548     cache_file=config.cache ;;
1549
1550   -datadir | --datadir | --datadi | --datad)
1551     ac_prev=datadir ;;
1552   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1553     datadir=$ac_optarg ;;
1554
1555   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1556   | --dataroo | --dataro | --datar)
1557     ac_prev=datarootdir ;;
1558   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1559   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1560     datarootdir=$ac_optarg ;;
1561
1562   -disable-* | --disable-*)
1563     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1564     # Reject names that are not valid shell variable names.
1565     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566       as_fn_error $? "invalid feature name: $ac_useropt"
1567     ac_useropt_orig=$ac_useropt
1568     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569     case $ac_user_opts in
1570       *"
1571 "enable_$ac_useropt"
1572 "*) ;;
1573       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1574          ac_unrecognized_sep=', ';;
1575     esac
1576     eval enable_$ac_useropt=no ;;
1577
1578   -docdir | --docdir | --docdi | --doc | --do)
1579     ac_prev=docdir ;;
1580   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1581     docdir=$ac_optarg ;;
1582
1583   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1584     ac_prev=dvidir ;;
1585   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1586     dvidir=$ac_optarg ;;
1587
1588   -enable-* | --enable-*)
1589     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1590     # Reject names that are not valid shell variable names.
1591     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592       as_fn_error $? "invalid feature name: $ac_useropt"
1593     ac_useropt_orig=$ac_useropt
1594     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595     case $ac_user_opts in
1596       *"
1597 "enable_$ac_useropt"
1598 "*) ;;
1599       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1600          ac_unrecognized_sep=', ';;
1601     esac
1602     eval enable_$ac_useropt=\$ac_optarg ;;
1603
1604   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1605   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1606   | --exec | --exe | --ex)
1607     ac_prev=exec_prefix ;;
1608   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1609   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1610   | --exec=* | --exe=* | --ex=*)
1611     exec_prefix=$ac_optarg ;;
1612
1613   -gas | --gas | --ga | --g)
1614     # Obsolete; use --with-gas.
1615     with_gas=yes ;;
1616
1617   -help | --help | --hel | --he | -h)
1618     ac_init_help=long ;;
1619   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1620     ac_init_help=recursive ;;
1621   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1622     ac_init_help=short ;;
1623
1624   -host | --host | --hos | --ho)
1625     ac_prev=host_alias ;;
1626   -host=* | --host=* | --hos=* | --ho=*)
1627     host_alias=$ac_optarg ;;
1628
1629   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1630     ac_prev=htmldir ;;
1631   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1632   | --ht=*)
1633     htmldir=$ac_optarg ;;
1634
1635   -includedir | --includedir | --includedi | --included | --include \
1636   | --includ | --inclu | --incl | --inc)
1637     ac_prev=includedir ;;
1638   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1639   | --includ=* | --inclu=* | --incl=* | --inc=*)
1640     includedir=$ac_optarg ;;
1641
1642   -infodir | --infodir | --infodi | --infod | --info | --inf)
1643     ac_prev=infodir ;;
1644   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1645     infodir=$ac_optarg ;;
1646
1647   -libdir | --libdir | --libdi | --libd)
1648     ac_prev=libdir ;;
1649   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1650     libdir=$ac_optarg ;;
1651
1652   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1653   | --libexe | --libex | --libe)
1654     ac_prev=libexecdir ;;
1655   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1656   | --libexe=* | --libex=* | --libe=*)
1657     libexecdir=$ac_optarg ;;
1658
1659   -localedir | --localedir | --localedi | --localed | --locale)
1660     ac_prev=localedir ;;
1661   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1662     localedir=$ac_optarg ;;
1663
1664   -localstatedir | --localstatedir | --localstatedi | --localstated \
1665   | --localstate | --localstat | --localsta | --localst | --locals)
1666     ac_prev=localstatedir ;;
1667   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1668   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1669     localstatedir=$ac_optarg ;;
1670
1671   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1672     ac_prev=mandir ;;
1673   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1674     mandir=$ac_optarg ;;
1675
1676   -nfp | --nfp | --nf)
1677     # Obsolete; use --without-fp.
1678     with_fp=no ;;
1679
1680   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1681   | --no-cr | --no-c | -n)
1682     no_create=yes ;;
1683
1684   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1685   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1686     no_recursion=yes ;;
1687
1688   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1689   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1690   | --oldin | --oldi | --old | --ol | --o)
1691     ac_prev=oldincludedir ;;
1692   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1693   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1694   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1695     oldincludedir=$ac_optarg ;;
1696
1697   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1698     ac_prev=prefix ;;
1699   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1700     prefix=$ac_optarg ;;
1701
1702   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1703   | --program-pre | --program-pr | --program-p)
1704     ac_prev=program_prefix ;;
1705   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1706   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1707     program_prefix=$ac_optarg ;;
1708
1709   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1710   | --program-suf | --program-su | --program-s)
1711     ac_prev=program_suffix ;;
1712   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1713   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1714     program_suffix=$ac_optarg ;;
1715
1716   -program-transform-name | --program-transform-name \
1717   | --program-transform-nam | --program-transform-na \
1718   | --program-transform-n | --program-transform- \
1719   | --program-transform | --program-transfor \
1720   | --program-transfo | --program-transf \
1721   | --program-trans | --program-tran \
1722   | --progr-tra | --program-tr | --program-t)
1723     ac_prev=program_transform_name ;;
1724   -program-transform-name=* | --program-transform-name=* \
1725   | --program-transform-nam=* | --program-transform-na=* \
1726   | --program-transform-n=* | --program-transform-=* \
1727   | --program-transform=* | --program-transfor=* \
1728   | --program-transfo=* | --program-transf=* \
1729   | --program-trans=* | --program-tran=* \
1730   | --progr-tra=* | --program-tr=* | --program-t=*)
1731     program_transform_name=$ac_optarg ;;
1732
1733   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1734     ac_prev=pdfdir ;;
1735   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1736     pdfdir=$ac_optarg ;;
1737
1738   -psdir | --psdir | --psdi | --psd | --ps)
1739     ac_prev=psdir ;;
1740   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1741     psdir=$ac_optarg ;;
1742
1743   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744   | -silent | --silent | --silen | --sile | --sil)
1745     silent=yes ;;
1746
1747   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1748     ac_prev=sbindir ;;
1749   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1750   | --sbi=* | --sb=*)
1751     sbindir=$ac_optarg ;;
1752
1753   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1754   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1755   | --sharedst | --shareds | --shared | --share | --shar \
1756   | --sha | --sh)
1757     ac_prev=sharedstatedir ;;
1758   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1759   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1760   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1761   | --sha=* | --sh=*)
1762     sharedstatedir=$ac_optarg ;;
1763
1764   -site | --site | --sit)
1765     ac_prev=site ;;
1766   -site=* | --site=* | --sit=*)
1767     site=$ac_optarg ;;
1768
1769   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1770     ac_prev=srcdir ;;
1771   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1772     srcdir=$ac_optarg ;;
1773
1774   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1775   | --syscon | --sysco | --sysc | --sys | --sy)
1776     ac_prev=sysconfdir ;;
1777   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1778   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1779     sysconfdir=$ac_optarg ;;
1780
1781   -target | --target | --targe | --targ | --tar | --ta | --t)
1782     ac_prev=target_alias ;;
1783   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1784     target_alias=$ac_optarg ;;
1785
1786   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1787     verbose=yes ;;
1788
1789   -version | --version | --versio | --versi | --vers | -V)
1790     ac_init_version=: ;;
1791
1792   -with-* | --with-*)
1793     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1794     # Reject names that are not valid shell variable names.
1795     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1796       as_fn_error $? "invalid package name: $ac_useropt"
1797     ac_useropt_orig=$ac_useropt
1798     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1799     case $ac_user_opts in
1800       *"
1801 "with_$ac_useropt"
1802 "*) ;;
1803       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1804          ac_unrecognized_sep=', ';;
1805     esac
1806     eval with_$ac_useropt=\$ac_optarg ;;
1807
1808   -without-* | --without-*)
1809     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1810     # Reject names that are not valid shell variable names.
1811     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1812       as_fn_error $? "invalid package name: $ac_useropt"
1813     ac_useropt_orig=$ac_useropt
1814     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1815     case $ac_user_opts in
1816       *"
1817 "with_$ac_useropt"
1818 "*) ;;
1819       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1820          ac_unrecognized_sep=', ';;
1821     esac
1822     eval with_$ac_useropt=no ;;
1823
1824   --x)
1825     # Obsolete; use --with-x.
1826     with_x=yes ;;
1827
1828   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1829   | --x-incl | --x-inc | --x-in | --x-i)
1830     ac_prev=x_includes ;;
1831   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1832   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1833     x_includes=$ac_optarg ;;
1834
1835   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1836   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1837     ac_prev=x_libraries ;;
1838   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1839   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1840     x_libraries=$ac_optarg ;;
1841
1842   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1843 Try \`$0 --help' for more information"
1844     ;;
1845
1846   *=*)
1847     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1848     # Reject names that are not valid shell variable names.
1849     case $ac_envvar in #(
1850       '' | [0-9]* | *[!_$as_cr_alnum]* )
1851       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1852     esac
1853     eval $ac_envvar=\$ac_optarg
1854     export $ac_envvar ;;
1855
1856   *)
1857     # FIXME: should be removed in autoconf 3.0.
1858     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1859     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1860       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1861     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1862     ;;
1863
1864   esac
1865 done
1866
1867 if test -n "$ac_prev"; then
1868   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1869   as_fn_error $? "missing argument to $ac_option"
1870 fi
1871
1872 if test -n "$ac_unrecognized_opts"; then
1873   case $enable_option_checking in
1874     no) ;;
1875     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1876     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1877   esac
1878 fi
1879
1880 # Check all directory arguments for consistency.
1881 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1882                 datadir sysconfdir sharedstatedir localstatedir includedir \
1883                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1884                 libdir localedir mandir
1885 do
1886   eval ac_val=\$$ac_var
1887   # Remove trailing slashes.
1888   case $ac_val in
1889     */ )
1890       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1891       eval $ac_var=\$ac_val;;
1892   esac
1893   # Be sure to have absolute directory names.
1894   case $ac_val in
1895     [\\/$]* | ?:[\\/]* )  continue;;
1896     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1897   esac
1898   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1899 done
1900
1901 # There might be people who depend on the old broken behavior: `$host'
1902 # used to hold the argument of --host etc.
1903 # FIXME: To remove some day.
1904 build=$build_alias
1905 host=$host_alias
1906 target=$target_alias
1907
1908 # FIXME: To remove some day.
1909 if test "x$host_alias" != x; then
1910   if test "x$build_alias" = x; then
1911     cross_compiling=maybe
1912   elif test "x$build_alias" != "x$host_alias"; then
1913     cross_compiling=yes
1914   fi
1915 fi
1916
1917 ac_tool_prefix=
1918 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1919
1920 test "$silent" = yes && exec 6>/dev/null
1921
1922
1923 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1924 ac_ls_di=`ls -di .` &&
1925 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1926   as_fn_error $? "working directory cannot be determined"
1927 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1928   as_fn_error $? "pwd does not report name of working directory"
1929
1930
1931 # Find the source files, if location was not specified.
1932 if test -z "$srcdir"; then
1933   ac_srcdir_defaulted=yes
1934   # Try the directory containing this script, then the parent directory.
1935   ac_confdir=`$as_dirname -- "$as_myself" ||
1936 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1937          X"$as_myself" : 'X\(//\)[^/]' \| \
1938          X"$as_myself" : 'X\(//\)$' \| \
1939          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1940 $as_echo X"$as_myself" |
1941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1942             s//\1/
1943             q
1944           }
1945           /^X\(\/\/\)[^/].*/{
1946             s//\1/
1947             q
1948           }
1949           /^X\(\/\/\)$/{
1950             s//\1/
1951             q
1952           }
1953           /^X\(\/\).*/{
1954             s//\1/
1955             q
1956           }
1957           s/.*/./; q'`
1958   srcdir=$ac_confdir
1959   if test ! -r "$srcdir/$ac_unique_file"; then
1960     srcdir=..
1961   fi
1962 else
1963   ac_srcdir_defaulted=no
1964 fi
1965 if test ! -r "$srcdir/$ac_unique_file"; then
1966   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1967   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1968 fi
1969 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1970 ac_abs_confdir=`(
1971         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1972         pwd)`
1973 # When building in place, set srcdir=.
1974 if test "$ac_abs_confdir" = "$ac_pwd"; then
1975   srcdir=.
1976 fi
1977 # Remove unnecessary trailing slashes from srcdir.
1978 # Double slashes in file names in object file debugging info
1979 # mess up M-x gdb in Emacs.
1980 case $srcdir in
1981 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1982 esac
1983 for ac_var in $ac_precious_vars; do
1984   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1985   eval ac_env_${ac_var}_value=\$${ac_var}
1986   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1987   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1988 done
1989
1990 #
1991 # Report the --help message.
1992 #
1993 if test "$ac_init_help" = "long"; then
1994   # Omit some internal or obsolete options to make the list less imposing.
1995   # This message is too long to be a string in the A/UX 3.1 sh.
1996   cat <<_ACEOF
1997 \`configure' configures libpipeline 1.3.1 to adapt to many kinds of systems.
1998
1999 Usage: $0 [OPTION]... [VAR=VALUE]...
2000
2001 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2002 VAR=VALUE.  See below for descriptions of some of the useful variables.
2003
2004 Defaults for the options are specified in brackets.
2005
2006 Configuration:
2007   -h, --help              display this help and exit
2008       --help=short        display options specific to this package
2009       --help=recursive    display the short help of all the included packages
2010   -V, --version           display version information and exit
2011   -q, --quiet, --silent   do not print \`checking ...' messages
2012       --cache-file=FILE   cache test results in FILE [disabled]
2013   -C, --config-cache      alias for \`--cache-file=config.cache'
2014   -n, --no-create         do not create output files
2015       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2016
2017 Installation directories:
2018   --prefix=PREFIX         install architecture-independent files in PREFIX
2019                           [$ac_default_prefix]
2020   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2021                           [PREFIX]
2022
2023 By default, \`make install' will install all the files in
2024 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2025 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2026 for instance \`--prefix=\$HOME'.
2027
2028 For better control, use the options below.
2029
2030 Fine tuning of the installation directories:
2031   --bindir=DIR            user executables [EPREFIX/bin]
2032   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2033   --libexecdir=DIR        program executables [EPREFIX/libexec]
2034   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2035   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2036   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2037   --libdir=DIR            object code libraries [EPREFIX/lib]
2038   --includedir=DIR        C header files [PREFIX/include]
2039   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2040   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2041   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2042   --infodir=DIR           info documentation [DATAROOTDIR/info]
2043   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2044   --mandir=DIR            man documentation [DATAROOTDIR/man]
2045   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2046   --htmldir=DIR           html documentation [DOCDIR]
2047   --dvidir=DIR            dvi documentation [DOCDIR]
2048   --pdfdir=DIR            pdf documentation [DOCDIR]
2049   --psdir=DIR             ps documentation [DOCDIR]
2050 _ACEOF
2051
2052   cat <<\_ACEOF
2053
2054 Program names:
2055   --program-prefix=PREFIX            prepend PREFIX to installed program names
2056   --program-suffix=SUFFIX            append SUFFIX to installed program names
2057   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2058
2059 System types:
2060   --build=BUILD     configure for building on BUILD [guessed]
2061   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2062 _ACEOF
2063 fi
2064
2065 if test -n "$ac_init_help"; then
2066   case $ac_init_help in
2067      short | recursive ) echo "Configuration of libpipeline 1.3.1:";;
2068    esac
2069   cat <<\_ACEOF
2070
2071 Optional Features:
2072   --disable-option-checking  ignore unrecognized --enable/--with options
2073   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2074   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2075   --enable-silent-rules   less verbose build output (undo: "make V=1")
2076   --disable-silent-rules  verbose build output (undo: "make V=0")
2077   --enable-maintainer-mode
2078                           enable make rules and dependencies not useful (and
2079                           sometimes confusing) to the casual installer
2080   --enable-dependency-tracking
2081                           do not reject slow dependency extractors
2082   --disable-dependency-tracking
2083                           speeds up one-time build
2084   --enable-static[=PKGS]  build static libraries [default=no]
2085   --enable-shared[=PKGS]  build shared libraries [default=yes]
2086   --enable-fast-install[=PKGS]
2087                           optimize for fast installation [default=yes]
2088   --disable-libtool-lock  avoid locking (might break parallel builds)
2089   --disable-largefile     omit support for large files
2090   --enable-threads={posix|solaris|pth|windows}
2091                           specify multithreading API
2092   --disable-threads       build without multithread safety
2093   --disable-rpath         do not hardcode runtime library paths
2094   --enable-socketpair-pipe
2095                           Use socketpair(2) as fast replacement for pipe(2)
2096
2097 Optional Packages:
2098   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2099   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2100   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2101                           both]
2102   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2103   --with-sysroot=DIR Search for dependent libraries within DIR
2104                         (or the compiler's sysroot if not specified).
2105   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2106   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2107   --without-libpth-prefix     don't search for libpth in includedir and libdir
2108
2109 Some influential environment variables:
2110   CC          C compiler command
2111   CFLAGS      C compiler flags
2112   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2113               nonstandard directory <lib dir>
2114   LIBS        libraries to pass to the linker, e.g. -l<library>
2115   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2116               you have headers in a nonstandard directory <include dir>
2117   CPP         C preprocessor
2118   PKG_CONFIG  path to pkg-config utility
2119   PKG_CONFIG_PATH
2120               directories to add to pkg-config's search path
2121   PKG_CONFIG_LIBDIR
2122               path overriding pkg-config's built-in search path
2123   CHECK_CFLAGS
2124               C compiler flags for CHECK, overriding pkg-config
2125   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2126
2127 Use these variables to override the choices made by `configure' or to help
2128 it to find libraries and programs with nonstandard names/locations.
2129
2130 Report bugs to <cjwatson@debian.org>.
2131 _ACEOF
2132 ac_status=$?
2133 fi
2134
2135 if test "$ac_init_help" = "recursive"; then
2136   # If there are subdirs, report their specific --help.
2137   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2138     test -d "$ac_dir" ||
2139       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2140       continue
2141     ac_builddir=.
2142
2143 case "$ac_dir" in
2144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2145 *)
2146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2147   # A ".." for each directory in $ac_dir_suffix.
2148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2149   case $ac_top_builddir_sub in
2150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2152   esac ;;
2153 esac
2154 ac_abs_top_builddir=$ac_pwd
2155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2156 # for backward compatibility:
2157 ac_top_builddir=$ac_top_build_prefix
2158
2159 case $srcdir in
2160   .)  # We are building in place.
2161     ac_srcdir=.
2162     ac_top_srcdir=$ac_top_builddir_sub
2163     ac_abs_top_srcdir=$ac_pwd ;;
2164   [\\/]* | ?:[\\/]* )  # Absolute name.
2165     ac_srcdir=$srcdir$ac_dir_suffix;
2166     ac_top_srcdir=$srcdir
2167     ac_abs_top_srcdir=$srcdir ;;
2168   *) # Relative name.
2169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2170     ac_top_srcdir=$ac_top_build_prefix$srcdir
2171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2172 esac
2173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2174
2175     cd "$ac_dir" || { ac_status=$?; continue; }
2176     # Check for guested configure.
2177     if test -f "$ac_srcdir/configure.gnu"; then
2178       echo &&
2179       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2180     elif test -f "$ac_srcdir/configure"; then
2181       echo &&
2182       $SHELL "$ac_srcdir/configure" --help=recursive
2183     else
2184       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2185     fi || ac_status=$?
2186     cd "$ac_pwd" || { ac_status=$?; break; }
2187   done
2188 fi
2189
2190 test -n "$ac_init_help" && exit $ac_status
2191 if $ac_init_version; then
2192   cat <<\_ACEOF
2193 libpipeline configure 1.3.1
2194 generated by GNU Autoconf 2.69
2195
2196 Copyright (C) 2012 Free Software Foundation, Inc.
2197 This configure script is free software; the Free Software Foundation
2198 gives unlimited permission to copy, distribute and modify it.
2199 _ACEOF
2200   exit
2201 fi
2202
2203 ## ------------------------ ##
2204 ## Autoconf initialization. ##
2205 ## ------------------------ ##
2206
2207 # ac_fn_c_try_compile LINENO
2208 # --------------------------
2209 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_c_try_compile ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   rm -f conftest.$ac_objext
2214   if { { ac_try="$ac_compile"
2215 case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221   (eval "$ac_compile") 2>conftest.err
2222   ac_status=$?
2223   if test -s conftest.err; then
2224     grep -v '^ *+' conftest.err >conftest.er1
2225     cat conftest.er1 >&5
2226     mv -f conftest.er1 conftest.err
2227   fi
2228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229   test $ac_status = 0; } && {
2230          test -z "$ac_c_werror_flag" ||
2231          test ! -s conftest.err
2232        } && test -s conftest.$ac_objext; then :
2233   ac_retval=0
2234 else
2235   $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238         ac_retval=1
2239 fi
2240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241   as_fn_set_status $ac_retval
2242
2243 } # ac_fn_c_try_compile
2244
2245 # ac_fn_c_try_cpp LINENO
2246 # ----------------------
2247 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_c_try_cpp ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   if { { ac_try="$ac_cpp conftest.$ac_ext"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2259   ac_status=$?
2260   if test -s conftest.err; then
2261     grep -v '^ *+' conftest.err >conftest.er1
2262     cat conftest.er1 >&5
2263     mv -f conftest.er1 conftest.err
2264   fi
2265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266   test $ac_status = 0; } > conftest.i && {
2267          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2268          test ! -s conftest.err
2269        }; then :
2270   ac_retval=0
2271 else
2272   $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275     ac_retval=1
2276 fi
2277   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278   as_fn_set_status $ac_retval
2279
2280 } # ac_fn_c_try_cpp
2281
2282 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2283 # -------------------------------------------------------
2284 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2285 # the include files in INCLUDES and setting the cache variable VAR
2286 # accordingly.
2287 ac_fn_c_check_header_mongrel ()
2288 {
2289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290   if eval \${$3+:} false; then :
2291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292 $as_echo_n "checking for $2... " >&6; }
2293 if eval \${$3+:} false; then :
2294   $as_echo_n "(cached) " >&6
2295 fi
2296 eval ac_res=\$$3
2297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 else
2300   # Is the header compilable?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2302 $as_echo_n "checking $2 usability... " >&6; }
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 #include <$2>
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309   ac_header_compiler=yes
2310 else
2311   ac_header_compiler=no
2312 fi
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2315 $as_echo "$ac_header_compiler" >&6; }
2316
2317 # Is the header present?
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2319 $as_echo_n "checking $2 presence... " >&6; }
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 #include <$2>
2323 _ACEOF
2324 if ac_fn_c_try_cpp "$LINENO"; then :
2325   ac_header_preproc=yes
2326 else
2327   ac_header_preproc=no
2328 fi
2329 rm -f conftest.err conftest.i conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2331 $as_echo "$ac_header_preproc" >&6; }
2332
2333 # So?  What about this header?
2334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2335   yes:no: )
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2337 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2339 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2340     ;;
2341   no:yes:* )
2342     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2343 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2344     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2345 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2347 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2348     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2349 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2350     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2351 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2352 ( $as_echo "## ---------------------------------- ##
2353 ## Report this to cjwatson@debian.org ##
2354 ## ---------------------------------- ##"
2355      ) | sed "s/^/$as_me: WARNING:     /" >&2
2356     ;;
2357 esac
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if eval \${$3+:} false; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   eval "$3=\$ac_header_compiler"
2364 fi
2365 eval ac_res=\$$3
2366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 fi
2369   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370
2371 } # ac_fn_c_check_header_mongrel
2372
2373 # ac_fn_c_try_run LINENO
2374 # ----------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2376 # that executables *can* be run.
2377 ac_fn_c_try_run ()
2378 {
2379   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380   if { { ac_try="$ac_link"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387   (eval "$ac_link") 2>&5
2388   ac_status=$?
2389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2391   { { case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397   (eval "$ac_try") 2>&5
2398   ac_status=$?
2399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400   test $ac_status = 0; }; }; then :
2401   ac_retval=0
2402 else
2403   $as_echo "$as_me: program exited with status $ac_status" >&5
2404        $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407        ac_retval=$ac_status
2408 fi
2409   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2410   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411   as_fn_set_status $ac_retval
2412
2413 } # ac_fn_c_try_run
2414
2415 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists and can be compiled using the include files in
2418 # INCLUDES, setting the cache variable VAR accordingly.
2419 ac_fn_c_check_header_compile ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 $as_echo_n "checking for $2... " >&6; }
2424 if eval \${$3+:} false; then :
2425   $as_echo_n "(cached) " >&6
2426 else
2427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 #include <$2>
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433   eval "$3=yes"
2434 else
2435   eval "$3=no"
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 eval ac_res=\$$3
2440                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443
2444 } # ac_fn_c_check_header_compile
2445
2446 # ac_fn_c_try_link LINENO
2447 # -----------------------
2448 # Try to link conftest.$ac_ext, and return whether this succeeded.
2449 ac_fn_c_try_link ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   rm -f conftest.$ac_objext conftest$ac_exeext
2453   if { { ac_try="$ac_link"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459 $as_echo "$ac_try_echo"; } >&5
2460   (eval "$ac_link") 2>conftest.err
2461   ac_status=$?
2462   if test -s conftest.err; then
2463     grep -v '^ *+' conftest.err >conftest.er1
2464     cat conftest.er1 >&5
2465     mv -f conftest.er1 conftest.err
2466   fi
2467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468   test $ac_status = 0; } && {
2469          test -z "$ac_c_werror_flag" ||
2470          test ! -s conftest.err
2471        } && test -s conftest$ac_exeext && {
2472          test "$cross_compiling" = yes ||
2473          test -x conftest$ac_exeext
2474        }; then :
2475   ac_retval=0
2476 else
2477   $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480         ac_retval=1
2481 fi
2482   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2483   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2484   # interfere with the next link command; also delete a directory that is
2485   # left behind by Apple's compiler.  We do this before executing the actions.
2486   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2487   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488   as_fn_set_status $ac_retval
2489
2490 } # ac_fn_c_try_link
2491
2492 # ac_fn_c_check_func LINENO FUNC VAR
2493 # ----------------------------------
2494 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2495 ac_fn_c_check_func ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2507 #define $2 innocuous_$2
2508
2509 /* System header to define __stub macros and hopefully few prototypes,
2510     which can conflict with char $2 (); below.
2511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2512     <limits.h> exists even on freestanding compilers.  */
2513
2514 #ifdef __STDC__
2515 # include <limits.h>
2516 #else
2517 # include <assert.h>
2518 #endif
2519
2520 #undef $2
2521
2522 /* Override any GCC internal prototype to avoid an error.
2523    Use char because int might match the return type of a GCC
2524    builtin and then its argument prototype would still apply.  */
2525 #ifdef __cplusplus
2526 extern "C"
2527 #endif
2528 char $2 ();
2529 /* The GNU C library defines this for functions which it implements
2530     to always fail with ENOSYS.  Some functions are actually named
2531     something starting with __ and the normal name is an alias.  */
2532 #if defined __stub_$2 || defined __stub___$2
2533 choke me
2534 #endif
2535
2536 int
2537 main ()
2538 {
2539 return $2 ();
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_link "$LINENO"; then :
2545   eval "$3=yes"
2546 else
2547   eval "$3=no"
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext \
2550     conftest$ac_exeext conftest.$ac_ext
2551 fi
2552 eval ac_res=\$$3
2553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_check_func
2558
2559 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2560 # -------------------------------------------
2561 # Tests whether TYPE exists after having included INCLUDES, setting cache
2562 # variable VAR accordingly.
2563 ac_fn_c_check_type ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   eval "$3=no"
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int
2576 main ()
2577 {
2578 if (sizeof ($2))
2579          return 0;
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $4
2588 int
2589 main ()
2590 {
2591 if (sizeof (($2)))
2592             return 0;
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598
2599 else
2600   eval "$3=yes"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 eval ac_res=\$$3
2607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610
2611 } # ac_fn_c_check_type
2612
2613 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2614 # --------------------------------------------
2615 # Tries to find the compile-time value of EXPR in a program that includes
2616 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2617 # computed
2618 ac_fn_c_compute_int ()
2619 {
2620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621   if test "$cross_compiling" = yes; then
2622     # Depending upon the size, compute the lo and hi bounds.
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) >= 0)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638   ac_lo=0 ac_mid=0
2639   while :; do
2640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h.  */
2642 $4
2643 int
2644 main ()
2645 {
2646 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2647 test_array [0] = 0;
2648 return test_array [0];
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 if ac_fn_c_try_compile "$LINENO"; then :
2655   ac_hi=$ac_mid; break
2656 else
2657   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2658                         if test $ac_lo -le $ac_mid; then
2659                           ac_lo= ac_hi=
2660                           break
2661                         fi
2662                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665   done
2666 else
2667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h.  */
2669 $4
2670 int
2671 main ()
2672 {
2673 static int test_array [1 - 2 * !(($2) < 0)];
2674 test_array [0] = 0;
2675 return test_array [0];
2676
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682   ac_hi=-1 ac_mid=-1
2683   while :; do
2684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h.  */
2686 $4
2687 int
2688 main ()
2689 {
2690 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2691 test_array [0] = 0;
2692 return test_array [0];
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699   ac_lo=$ac_mid; break
2700 else
2701   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702                         if test $ac_mid -le $ac_hi; then
2703                           ac_lo= ac_hi=
2704                           break
2705                         fi
2706                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709   done
2710 else
2711   ac_lo= ac_hi=
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 # Binary search between lo and hi bounds.
2717 while test "x$ac_lo" != "x$ac_hi"; do
2718   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $4
2722 int
2723 main ()
2724 {
2725 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726 test_array [0] = 0;
2727 return test_array [0];
2728
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 if ac_fn_c_try_compile "$LINENO"; then :
2734   ac_hi=$ac_mid
2735 else
2736   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740 case $ac_lo in #((
2741 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2742 '') ac_retval=1 ;;
2743 esac
2744   else
2745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h.  */
2747 $4
2748 static long int longval () { return $2; }
2749 static unsigned long int ulongval () { return $2; }
2750 #include <stdio.h>
2751 #include <stdlib.h>
2752 int
2753 main ()
2754 {
2755
2756   FILE *f = fopen ("conftest.val", "w");
2757   if (! f)
2758     return 1;
2759   if (($2) < 0)
2760     {
2761       long int i = longval ();
2762       if (i != ($2))
2763         return 1;
2764       fprintf (f, "%ld", i);
2765     }
2766   else
2767     {
2768       unsigned long int i = ulongval ();
2769       if (i != ($2))
2770         return 1;
2771       fprintf (f, "%lu", i);
2772     }
2773   /* Do not output a trailing newline, as this causes \r\n confusion
2774      on some platforms.  */
2775   return ferror (f) || fclose (f) != 0;
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 if ac_fn_c_try_run "$LINENO"; then :
2782   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2783 else
2784   ac_retval=1
2785 fi
2786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2787   conftest.$ac_objext conftest.beam conftest.$ac_ext
2788 rm -f conftest.val
2789
2790   fi
2791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792   as_fn_set_status $ac_retval
2793
2794 } # ac_fn_c_compute_int
2795
2796 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2797 # ---------------------------------------------
2798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2799 # accordingly.
2800 ac_fn_c_check_decl ()
2801 {
2802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803   as_decl_name=`echo $2|sed 's/ *(.*//'`
2804   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2806 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2807 if eval \${$3+:} false; then :
2808   $as_echo_n "(cached) " >&6
2809 else
2810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h.  */
2812 $4
2813 int
2814 main ()
2815 {
2816 #ifndef $as_decl_name
2817 #ifdef __cplusplus
2818   (void) $as_decl_use;
2819 #else
2820   (void) $as_decl_name;
2821 #endif
2822 #endif
2823
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 if ac_fn_c_try_compile "$LINENO"; then :
2829   eval "$3=yes"
2830 else
2831   eval "$3=no"
2832 fi
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 eval ac_res=\$$3
2836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839
2840 } # ac_fn_c_check_decl
2841
2842 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2843 # ----------------------------------------------------
2844 # Tries to find if the field MEMBER exists in type AGGR, after including
2845 # INCLUDES, setting cache variable VAR accordingly.
2846 ac_fn_c_check_member ()
2847 {
2848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2850 $as_echo_n "checking for $2.$3... " >&6; }
2851 if eval \${$4+:} false; then :
2852   $as_echo_n "(cached) " >&6
2853 else
2854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h.  */
2856 $5
2857 int
2858 main ()
2859 {
2860 static $2 ac_aggr;
2861 if (ac_aggr.$3)
2862 return 0;
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 if ac_fn_c_try_compile "$LINENO"; then :
2868   eval "$4=yes"
2869 else
2870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h.  */
2872 $5
2873 int
2874 main ()
2875 {
2876 static $2 ac_aggr;
2877 if (sizeof ac_aggr.$3)
2878 return 0;
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 if ac_fn_c_try_compile "$LINENO"; then :
2884   eval "$4=yes"
2885 else
2886   eval "$4=no"
2887 fi
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 fi
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 eval ac_res=\$$4
2893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2894 $as_echo "$ac_res" >&6; }
2895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2896
2897 } # ac_fn_c_check_member
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2901
2902 It was created by libpipeline $as_me 1.3.1, which was
2903 generated by GNU Autoconf 2.69.  Invocation command line was
2904
2905   $ $0 $@
2906
2907 _ACEOF
2908 exec 5>>config.log
2909 {
2910 cat <<_ASUNAME
2911 ## --------- ##
2912 ## Platform. ##
2913 ## --------- ##
2914
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2920
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2923
2924 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2925 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2928 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2929 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2930 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2931
2932 _ASUNAME
2933
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     $as_echo "PATH: $as_dir"
2940   done
2941 IFS=$as_save_IFS
2942
2943 } >&5
2944
2945 cat >&5 <<_ACEOF
2946
2947
2948 ## ----------- ##
2949 ## Core tests. ##
2950 ## ----------- ##
2951
2952 _ACEOF
2953
2954
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2960 ac_configure_args=
2961 ac_configure_args0=
2962 ac_configure_args1=
2963 ac_must_keep_next=false
2964 for ac_pass in 1 2
2965 do
2966   for ac_arg
2967   do
2968     case $ac_arg in
2969     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971     | -silent | --silent | --silen | --sile | --sil)
2972       continue ;;
2973     *\'*)
2974       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2975     esac
2976     case $ac_pass in
2977     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2978     2)
2979       as_fn_append ac_configure_args1 " '$ac_arg'"
2980       if test $ac_must_keep_next = true; then
2981         ac_must_keep_next=false # Got value, back to normal.
2982       else
2983         case $ac_arg in
2984           *=* | --config-cache | -C | -disable-* | --disable-* \
2985           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987           | -with-* | --with-* | -without-* | --without-* | --x)
2988             case "$ac_configure_args0 " in
2989               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2990             esac
2991             ;;
2992           -* ) ac_must_keep_next=true ;;
2993         esac
2994       fi
2995       as_fn_append ac_configure_args " '$ac_arg'"
2996       ;;
2997     esac
2998   done
2999 done
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3002
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log.  We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009   # Save into config.log some information that might help in debugging.
3010   {
3011     echo
3012
3013     $as_echo "## ---------------- ##
3014 ## Cache variables. ##
3015 ## ---------------- ##"
3016     echo
3017     # The following way of writing the cache mishandles newlines in values,
3018 (
3019   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3020     eval ac_val=\$$ac_var
3021     case $ac_val in #(
3022     *${as_nl}*)
3023       case $ac_var in #(
3024       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3026       esac
3027       case $ac_var in #(
3028       _ | IFS | as_nl) ;; #(
3029       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3030       *) { eval $ac_var=; unset $ac_var;} ;;
3031       esac ;;
3032     esac
3033   done
3034   (set) 2>&1 |
3035     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3036     *${as_nl}ac_space=\ *)
3037       sed -n \
3038         "s/'\''/'\''\\\\'\'''\''/g;
3039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3040       ;; #(
3041     *)
3042       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3043       ;;
3044     esac |
3045     sort
3046 )
3047     echo
3048
3049     $as_echo "## ----------------- ##
3050 ## Output variables. ##
3051 ## ----------------- ##"
3052     echo
3053     for ac_var in $ac_subst_vars
3054     do
3055       eval ac_val=\$$ac_var
3056       case $ac_val in
3057       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3058       esac
3059       $as_echo "$ac_var='\''$ac_val'\''"
3060     done | sort
3061     echo
3062
3063     if test -n "$ac_subst_files"; then
3064       $as_echo "## ------------------- ##
3065 ## File substitutions. ##
3066 ## ------------------- ##"
3067       echo
3068       for ac_var in $ac_subst_files
3069       do
3070         eval ac_val=\$$ac_var
3071         case $ac_val in
3072         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3073         esac
3074         $as_echo "$ac_var='\''$ac_val'\''"
3075       done | sort
3076       echo
3077     fi
3078
3079     if test -s confdefs.h; then
3080       $as_echo "## ----------- ##
3081 ## confdefs.h. ##
3082 ## ----------- ##"
3083       echo
3084       cat confdefs.h
3085       echo
3086     fi
3087     test "$ac_signal" != 0 &&
3088       $as_echo "$as_me: caught signal $ac_signal"
3089     $as_echo "$as_me: exit $exit_status"
3090   } >&5
3091   rm -f core *.core core.conftest.* &&
3092     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3093     exit $exit_status
3094 ' 0
3095 for ac_signal in 1 2 13 15; do
3096   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3097 done
3098 ac_signal=0
3099
3100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3101 rm -f -r conftest* confdefs.h
3102
3103 $as_echo "/* confdefs.h */" > confdefs.h
3104
3105 # Predefined preprocessor variables.
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_NAME "$PACKAGE_NAME"
3109 _ACEOF
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3113 _ACEOF
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_STRING "$PACKAGE_STRING"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3125 _ACEOF
3126
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_URL "$PACKAGE_URL"
3129 _ACEOF
3130
3131
3132 # Let the site file select an alternate cache file if it wants to.
3133 # Prefer an explicitly selected file to automatically selected ones.
3134 ac_site_file1=NONE
3135 ac_site_file2=NONE
3136 if test -n "$CONFIG_SITE"; then
3137   # We do not want a PATH search for config.site.
3138   case $CONFIG_SITE in #((
3139     -*)  ac_site_file1=./$CONFIG_SITE;;
3140     */*) ac_site_file1=$CONFIG_SITE;;
3141     *)   ac_site_file1=./$CONFIG_SITE;;
3142   esac
3143 elif test "x$prefix" != xNONE; then
3144   ac_site_file1=$prefix/share/config.site
3145   ac_site_file2=$prefix/etc/config.site
3146 else
3147   ac_site_file1=$ac_default_prefix/share/config.site
3148   ac_site_file2=$ac_default_prefix/etc/config.site
3149 fi
3150 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3151 do
3152   test "x$ac_site_file" = xNONE && continue
3153   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3154     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3155 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3156     sed 's/^/| /' "$ac_site_file" >&5
3157     . "$ac_site_file" \
3158       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "failed to load site script $ac_site_file
3161 See \`config.log' for more details" "$LINENO" 5; }
3162   fi
3163 done
3164
3165 if test -r "$cache_file"; then
3166   # Some versions of bash will fail to source /dev/null (special files
3167   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3168   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3169     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3170 $as_echo "$as_me: loading cache $cache_file" >&6;}
3171     case $cache_file in
3172       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3173       *)                      . "./$cache_file";;
3174     esac
3175   fi
3176 else
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3178 $as_echo "$as_me: creating cache $cache_file" >&6;}
3179   >$cache_file
3180 fi
3181
3182 gl_header_list="$gl_header_list unistd.h"
3183 gl_header_list="$gl_header_list sys/time.h"
3184 gl_header_list="$gl_header_list sys/socket.h"
3185 gl_func_list="$gl_func_list gettimeofday"
3186 gl_header_list="$gl_header_list sys/mman.h"
3187 gl_func_list="$gl_func_list mprotect"
3188 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3189 gl_func_list="$gl_func_list setenv"
3190 gl_func_list="$gl_func_list sigaction"
3191 gl_func_list="$gl_func_list sigaltstack"
3192 gl_func_list="$gl_func_list siginterrupt"
3193 gl_func_list="$gl_func_list snprintf"
3194 gl_header_list="$gl_header_list wchar.h"
3195 gl_header_list="$gl_header_list stdint.h"
3196 gl_func_list="$gl_func_list strndup"
3197 gl_header_list="$gl_header_list sys/select.h"
3198 gl_header_list="$gl_header_list sys/stat.h"
3199 gl_header_list="$gl_header_list sys/wait.h"
3200 gl_func_list="$gl_func_list vasnprintf"
3201 gl_header_list="$gl_header_list features.h"
3202 # Check that the precious variables saved in the cache have kept the same
3203 # value.
3204 ac_cache_corrupted=false
3205 for ac_var in $ac_precious_vars; do
3206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3207   eval ac_new_set=\$ac_env_${ac_var}_set
3208   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3209   eval ac_new_val=\$ac_env_${ac_var}_value
3210   case $ac_old_set,$ac_new_set in
3211     set,)
3212       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3214       ac_cache_corrupted=: ;;
3215     ,set)
3216       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3218       ac_cache_corrupted=: ;;
3219     ,);;
3220     *)
3221       if test "x$ac_old_val" != "x$ac_new_val"; then
3222         # differences in whitespace do not lead to failure.
3223         ac_old_val_w=`echo x $ac_old_val`
3224         ac_new_val_w=`echo x $ac_new_val`
3225         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3226           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3228           ac_cache_corrupted=:
3229         else
3230           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3232           eval $ac_var=\$ac_old_val
3233         fi
3234         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3235 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3236         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3237 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3238       fi;;
3239   esac
3240   # Pass precious variables to config.status.
3241   if test "$ac_new_set" = set; then
3242     case $ac_new_val in
3243     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3244     *) ac_arg=$ac_var=$ac_new_val ;;
3245     esac
3246     case " $ac_configure_args " in
3247       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3248       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3249     esac
3250   fi
3251 done
3252 if $ac_cache_corrupted; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3257   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3258 fi
3259 ## -------------------- ##
3260 ## Main body of script. ##
3261 ## -------------------- ##
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270 ac_aux_dir=
3271 for ac_dir in build-aux "$srcdir"/build-aux; do
3272   if test -f "$ac_dir/install-sh"; then
3273     ac_aux_dir=$ac_dir
3274     ac_install_sh="$ac_aux_dir/install-sh -c"
3275     break
3276   elif test -f "$ac_dir/install.sh"; then
3277     ac_aux_dir=$ac_dir
3278     ac_install_sh="$ac_aux_dir/install.sh -c"
3279     break
3280   elif test -f "$ac_dir/shtool"; then
3281     ac_aux_dir=$ac_dir
3282     ac_install_sh="$ac_aux_dir/shtool install -c"
3283     break
3284   fi
3285 done
3286 if test -z "$ac_aux_dir"; then
3287   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3288 fi
3289
3290 # These three variables are undocumented and unsupported,
3291 # and are intended to be withdrawn in a future Autoconf release.
3292 # They can cause serious problems if a builder's source tree is in a directory
3293 # whose full name contains unusual characters.
3294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3296 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3297
3298
3299 am__api_version='1.14'
3300
3301 # Find a good install program.  We prefer a C program (faster),
3302 # so one script is as good as another.  But avoid the broken or
3303 # incompatible versions:
3304 # SysV /etc/install, /usr/sbin/install
3305 # SunOS /usr/etc/install
3306 # IRIX /sbin/install
3307 # AIX /bin/install
3308 # AmigaOS /C/install, which installs bootblocks on floppy discs
3309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3312 # OS/2's system install, which has a completely different semantic
3313 # ./install, which can be erroneously created by make from ./install.sh.
3314 # Reject install programs that cannot install multiple files.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3316 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3317 if test -z "$INSTALL"; then
3318 if ${ac_cv_path_install+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     # Account for people who put trailing slashes in PATH elements.
3327 case $as_dir/ in #((
3328   ./ | .// | /[cC]/* | \
3329   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3330   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3331   /usr/ucb/* ) ;;
3332   *)
3333     # OSF1 and SCO ODT 3.0 have their own names for install.
3334     # Don't use installbsd from OSF since it installs stuff as root
3335     # by default.
3336     for ac_prog in ginstall scoinst install; do
3337       for ac_exec_ext in '' $ac_executable_extensions; do
3338         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3339           if test $ac_prog = install &&
3340             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341             # AIX install.  It has an incompatible calling convention.
3342             :
3343           elif test $ac_prog = install &&
3344             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3345             # program-specific install script used by HP pwplus--don't use.
3346             :
3347           else
3348             rm -rf conftest.one conftest.two conftest.dir
3349             echo one > conftest.one
3350             echo two > conftest.two
3351             mkdir conftest.dir
3352             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3353               test -s conftest.one && test -s conftest.two &&
3354               test -s conftest.dir/conftest.one &&
3355               test -s conftest.dir/conftest.two
3356             then
3357               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3358               break 3
3359             fi
3360           fi
3361         fi
3362       done
3363     done
3364     ;;
3365 esac
3366
3367   done
3368 IFS=$as_save_IFS
3369
3370 rm -rf conftest.one conftest.two conftest.dir
3371
3372 fi
3373   if test "${ac_cv_path_install+set}" = set; then
3374     INSTALL=$ac_cv_path_install
3375   else
3376     # As a last resort, use the slow shell script.  Don't cache a
3377     # value for INSTALL within a source directory, because that will
3378     # break other packages using the cache if that directory is
3379     # removed, or if the value is a relative name.
3380     INSTALL=$ac_install_sh
3381   fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3384 $as_echo "$INSTALL" >&6; }
3385
3386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3387 # It thinks the first close brace ends the variable substitution.
3388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3389
3390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3391
3392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3395 $as_echo_n "checking whether build environment is sane... " >&6; }
3396 # Reject unsafe characters in $srcdir or the absolute working directory
3397 # name.  Accept space and tab only in the latter.
3398 am_lf='
3399 '
3400 case `pwd` in
3401   *[\\\"\#\$\&\'\`$am_lf]*)
3402     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3403 esac
3404 case $srcdir in
3405   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3406     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3407 esac
3408
3409 # Do 'set' in a subshell so we don't clobber the current shell's
3410 # arguments.  Must try -L first in case configure is actually a
3411 # symlink; some systems play weird games with the mod time of symlinks
3412 # (eg FreeBSD returns the mod time of the symlink's containing
3413 # directory).
3414 if (
3415    am_has_slept=no
3416    for am_try in 1 2; do
3417      echo "timestamp, slept: $am_has_slept" > conftest.file
3418      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3419      if test "$*" = "X"; then
3420         # -L didn't work.
3421         set X `ls -t "$srcdir/configure" conftest.file`
3422      fi
3423      if test "$*" != "X $srcdir/configure conftest.file" \
3424         && test "$*" != "X conftest.file $srcdir/configure"; then
3425
3426         # If neither matched, then we have a broken ls.  This can happen
3427         # if, for instance, CONFIG_SHELL is bash and it inherits a
3428         # broken ls alias from the environment.  This has actually
3429         # happened.  Such a system could not be considered "sane".
3430         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3431   alias in your environment" "$LINENO" 5
3432      fi
3433      if test "$2" = conftest.file || test $am_try -eq 2; then
3434        break
3435      fi
3436      # Just in case.
3437      sleep 1
3438      am_has_slept=yes
3439    done
3440    test "$2" = conftest.file
3441    )
3442 then
3443    # Ok.
3444    :
3445 else
3446    as_fn_error $? "newly created file is older than distributed files!
3447 Check your system clock" "$LINENO" 5
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3451 # If we didn't sleep, we still need to ensure time stamps of config.status and
3452 # generated files are strictly newer.
3453 am_sleep_pid=
3454 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3455   ( sleep 1 ) &
3456   am_sleep_pid=$!
3457 fi
3458
3459 rm -f conftest.file
3460
3461 test "$program_prefix" != NONE &&
3462   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3463 # Use a double $ so make ignores it.
3464 test "$program_suffix" != NONE &&
3465   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3466 # Double any \ or $.
3467 # By default was `s,x,x', remove it if useless.
3468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470
3471 # expand $ac_aux_dir to an absolute path
3472 am_aux_dir=`cd $ac_aux_dir && pwd`
3473
3474 if test x"${MISSING+set}" != xset; then
3475   case $am_aux_dir in
3476   *\ * | *\     *)
3477     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478   *)
3479     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3480   esac
3481 fi
3482 # Use eval to expand $SHELL
3483 if eval "$MISSING --is-lightweight"; then
3484   am_missing_run="$MISSING "
3485 else
3486   am_missing_run=
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3488 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3489 fi
3490
3491 if test x"${install_sh}" != xset; then
3492   case $am_aux_dir in
3493   *\ * | *\     *)
3494     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495   *)
3496     install_sh="\${SHELL} $am_aux_dir/install-sh"
3497   esac
3498 fi
3499
3500 # Installed binaries are usually stripped using 'strip' when the user
3501 # run "make install-strip".  However 'strip' might not be the right
3502 # tool to use in cross-compilation environments, therefore Automake
3503 # will honor the 'STRIP' environment variable to overrule this program.
3504 if test "$cross_compiling" != no; then
3505   if test -n "$ac_tool_prefix"; then
3506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}strip; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_STRIP+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -n "$STRIP"; then
3514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521     for ac_exec_ext in '' $ac_executable_extensions; do
3522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528   done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 STRIP=$ac_cv_prog_STRIP
3534 if test -n "$STRIP"; then
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3536 $as_echo "$STRIP" >&6; }
3537 else
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 fi
3544 if test -z "$ac_cv_prog_STRIP"; then
3545   ac_ct_STRIP=$STRIP
3546   # Extract the first word of "strip", so it can be a program name with args.
3547 set dummy strip; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   if test -n "$ac_ct_STRIP"; then
3554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561     for ac_exec_ext in '' $ac_executable_extensions; do
3562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_prog_ac_ct_STRIP="strip"
3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568   done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3574 if test -n "$ac_ct_STRIP"; then
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3576 $as_echo "$ac_ct_STRIP" >&6; }
3577 else
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582   if test "x$ac_ct_STRIP" = x; then
3583     STRIP=":"
3584   else
3585     case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591     STRIP=$ac_ct_STRIP
3592   fi
3593 else
3594   STRIP="$ac_cv_prog_STRIP"
3595 fi
3596
3597 fi
3598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3602 if test -z "$MKDIR_P"; then
3603   if ${ac_cv_path_mkdir+:} false; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3608 do
3609   IFS=$as_save_IFS
3610   test -z "$as_dir" && as_dir=.
3611     for ac_prog in mkdir gmkdir; do
3612          for ac_exec_ext in '' $ac_executable_extensions; do
3613            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3614            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3615              'mkdir (GNU coreutils) '* | \
3616              'mkdir (coreutils) '* | \
3617              'mkdir (fileutils) '4.1*)
3618                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3619                break 3;;
3620            esac
3621          done
3622        done
3623   done
3624 IFS=$as_save_IFS
3625
3626 fi
3627
3628   test -d ./--version && rmdir ./--version
3629   if test "${ac_cv_path_mkdir+set}" = set; then
3630     MKDIR_P="$ac_cv_path_mkdir -p"
3631   else
3632     # As a last resort, use the slow shell script.  Don't cache a
3633     # value for MKDIR_P within a source directory, because that will
3634     # break other packages using the cache if that directory is
3635     # removed, or if the value is a relative name.
3636     MKDIR_P="$ac_install_sh -d"
3637   fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3640 $as_echo "$MKDIR_P" >&6; }
3641
3642 for ac_prog in gawk mawk nawk awk
3643 do
3644   # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_AWK+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$AWK"; then
3652   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661     ac_cv_prog_AWK="$ac_prog"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 AWK=$ac_cv_prog_AWK
3672 if test -n "$AWK"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3674 $as_echo "$AWK" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681   test -n "$AWK" && break
3682 done
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3686 set x ${MAKE-make}
3687 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3688 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   cat >conftest.make <<\_ACEOF
3692 SHELL = /bin/sh
3693 all:
3694         @echo '@@@%%%=$(MAKE)=@@@%%%'
3695 _ACEOF
3696 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3698   *@@@%%%=?*=@@@%%%*)
3699     eval ac_cv_prog_make_${ac_make}_set=yes;;
3700   *)
3701     eval ac_cv_prog_make_${ac_make}_set=no;;
3702 esac
3703 rm -f conftest.make
3704 fi
3705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707 $as_echo "yes" >&6; }
3708   SET_MAKE=
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712   SET_MAKE="MAKE=${MAKE-make}"
3713 fi
3714
3715 rm -rf .tst 2>/dev/null
3716 mkdir .tst 2>/dev/null
3717 if test -d .tst; then
3718   am__leading_dot=.
3719 else
3720   am__leading_dot=_
3721 fi
3722 rmdir .tst 2>/dev/null
3723
3724 # Check whether --enable-silent-rules was given.
3725 if test "${enable_silent_rules+set}" = set; then :
3726   enableval=$enable_silent_rules;
3727 fi
3728
3729 case $enable_silent_rules in # (((
3730   yes) AM_DEFAULT_VERBOSITY=0;;
3731    no) AM_DEFAULT_VERBOSITY=1;;
3732     *) AM_DEFAULT_VERBOSITY=1;;
3733 esac
3734 am_make=${MAKE-make}
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3736 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3737 if ${am_cv_make_support_nested_variables+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if $as_echo 'TRUE=$(BAR$(V))
3741 BAR0=false
3742 BAR1=true
3743 V=1
3744 am__doit:
3745         @$(TRUE)
3746 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3747   am_cv_make_support_nested_variables=yes
3748 else
3749   am_cv_make_support_nested_variables=no
3750 fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3753 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3754 if test $am_cv_make_support_nested_variables = yes; then
3755     AM_V='$(V)'
3756   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3757 else
3758   AM_V=$AM_DEFAULT_VERBOSITY
3759   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3760 fi
3761 AM_BACKSLASH='\'
3762
3763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3764   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3765   # is not polluted with repeated "-I."
3766   am__isrc=' -I$(srcdir)'
3767   # test to see if srcdir already configured
3768   if test -f $srcdir/config.status; then
3769     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3770   fi
3771 fi
3772
3773 # test whether we have cygpath
3774 if test -z "$CYGPATH_W"; then
3775   if (cygpath --version) >/dev/null 2>/dev/null; then
3776     CYGPATH_W='cygpath -w'
3777   else
3778     CYGPATH_W=echo
3779   fi
3780 fi
3781
3782
3783 # Define the identity of the package.
3784  PACKAGE='libpipeline'
3785  VERSION='1.3.1'
3786
3787
3788 cat >>confdefs.h <<_ACEOF
3789 #define PACKAGE "$PACKAGE"
3790 _ACEOF
3791
3792
3793 cat >>confdefs.h <<_ACEOF
3794 #define VERSION "$VERSION"
3795 _ACEOF
3796
3797 # Some tools Automake needs.
3798
3799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3800
3801
3802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3803
3804
3805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3806
3807
3808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3809
3810
3811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3812
3813 # For better backward compatibility.  To be removed once Automake 1.9.x
3814 # dies out for good.  For more background, see:
3815 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3816 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3817 mkdir_p='$(MKDIR_P)'
3818
3819 # We need awk for the "check" target.  The system "awk" is bad on
3820 # some platforms.
3821 # Always define AMTAR for backward compatibility.  Yes, it's still used
3822 # in the wild :-(  We should find a proper way to deprecate it ...
3823 AMTAR='$${TAR-tar}'
3824
3825
3826 # We'll loop over all known methods to create a tar archive until one works.
3827 _am_tools='gnutar  pax cpio none'
3828
3829 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3830
3831
3832
3833
3834
3835
3836 # POSIX will say in a future version that running "rm -f" with no argument
3837 # is OK; and we want to be able to make that assumption in our Makefile
3838 # recipes.  So use an aggressive probe to check that the usage we want is
3839 # actually supported "in the wild" to an acceptable degree.
3840 # See automake bug#10828.
3841 # To make any issue more visible, cause the running configure to be aborted
3842 # by default if the 'rm' program in use doesn't match our expectations; the
3843 # user can still override this though.
3844 if rm -f && rm -fr && rm -rf; then : OK; else
3845   cat >&2 <<'END'
3846 Oops!
3847
3848 Your 'rm' program seems unable to run without file operands specified
3849 on the command line, even when the '-f' option is present.  This is contrary
3850 to the behaviour of most rm programs out there, and not conforming with
3851 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3852
3853 Please tell bug-automake@gnu.org about your system, including the value
3854 of your $PATH and any error possibly output before this message.  This
3855 can help us improve future automake versions.
3856
3857 END
3858   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3859     echo 'Configuration will proceed anyway, since you have set the' >&2
3860     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3861     echo >&2
3862   else
3863     cat >&2 <<'END'
3864 Aborting the configuration process, to ensure you take notice of the issue.
3865
3866 You can download and install GNU coreutils to get an 'rm' implementation
3867 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3868
3869 If you want to complete the configuration process using your problematic
3870 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3871 to "yes", and re-run configure.
3872
3873 END
3874     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3875   fi
3876 fi
3877
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3880 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3881     # Check whether --enable-maintainer-mode was given.
3882 if test "${enable_maintainer_mode+set}" = set; then :
3883   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3884 else
3885   USE_MAINTAINER_MODE=no
3886 fi
3887
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3890    if test $USE_MAINTAINER_MODE = yes; then
3891   MAINTAINER_MODE_TRUE=
3892   MAINTAINER_MODE_FALSE='#'
3893 else
3894   MAINTAINER_MODE_TRUE='#'
3895   MAINTAINER_MODE_FALSE=
3896 fi
3897
3898   MAINT=$MAINTAINER_MODE_TRUE
3899
3900
3901 # Check whether --enable-silent-rules was given.
3902 if test "${enable_silent_rules+set}" = set; then :
3903   enableval=$enable_silent_rules;
3904 fi
3905
3906 case $enable_silent_rules in # (((
3907   yes) AM_DEFAULT_VERBOSITY=0;;
3908    no) AM_DEFAULT_VERBOSITY=1;;
3909     *) AM_DEFAULT_VERBOSITY=0;;
3910 esac
3911 am_make=${MAKE-make}
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3913 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3914 if ${am_cv_make_support_nested_variables+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if $as_echo 'TRUE=$(BAR$(V))
3918 BAR0=false
3919 BAR1=true
3920 V=1
3921 am__doit:
3922         @$(TRUE)
3923 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3924   am_cv_make_support_nested_variables=yes
3925 else
3926   am_cv_make_support_nested_variables=no
3927 fi
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3930 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3931 if test $am_cv_make_support_nested_variables = yes; then
3932     AM_V='$(V)'
3933   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3934 else
3935   AM_V=$AM_DEFAULT_VERBOSITY
3936   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3937 fi
3938 AM_BACKSLASH='\'
3939
3940
3941
3942 DEPDIR="${am__leading_dot}deps"
3943
3944 ac_config_commands="$ac_config_commands depfiles"
3945
3946
3947 am_make=${MAKE-make}
3948 cat > confinc << 'END'
3949 am__doit:
3950         @echo this is the am__doit target
3951 .PHONY: am__doit
3952 END
3953 # If we don't find an include directive, just comment out the code.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3955 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3956 am__include="#"
3957 am__quote=
3958 _am_result=none
3959 # First try GNU make style include.
3960 echo "include confinc" > confmf
3961 # Ignore all kinds of additional output from 'make'.
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964   am__include=include
3965   am__quote=
3966   _am_result=GNU
3967   ;;
3968 esac
3969 # Now try BSD make style include.
3970 if test "$am__include" = "#"; then
3971    echo '.include "confinc"' > confmf
3972    case `$am_make -s -f confmf 2> /dev/null` in #(
3973    *the\ am__doit\ target*)
3974      am__include=.include
3975      am__quote="\""
3976      _am_result=BSD
3977      ;;
3978    esac
3979 fi
3980
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3983 $as_echo "$_am_result" >&6; }
3984 rm -f confinc confmf
3985
3986 # Check whether --enable-dependency-tracking was given.
3987 if test "${enable_dependency_tracking+set}" = set; then :
3988   enableval=$enable_dependency_tracking;
3989 fi
3990
3991 if test "x$enable_dependency_tracking" != xno; then
3992   am_depcomp="$ac_aux_dir/depcomp"
3993   AMDEPBACKSLASH='\'
3994   am__nodep='_no'
3995 fi
3996  if test "x$enable_dependency_tracking" != xno; then
3997   AMDEP_TRUE=
3998   AMDEP_FALSE='#'
3999 else
4000   AMDEP_TRUE='#'
4001   AMDEP_FALSE=
4002 fi
4003
4004
4005 ac_ext=c
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 if test -n "$ac_tool_prefix"; then
4011   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_CC+:} false; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   if test -n "$CC"; then
4019   ac_cv_prog_CC="$CC" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026     for ac_exec_ext in '' $ac_executable_extensions; do
4027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033   done
4034 IFS=$as_save_IFS
4035
4036 fi
4037 fi
4038 CC=$ac_cv_prog_CC
4039 if test -n "$CC"; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041 $as_echo "$CC" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4047
4048 fi
4049 if test -z "$ac_cv_prog_CC"; then
4050   ac_ct_CC=$CC
4051   # Extract the first word of "gcc", so it can be a program name with args.
4052 set dummy gcc; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4056   $as_echo_n "(cached) " >&6
4057 else
4058   if test -n "$ac_ct_CC"; then
4059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064   IFS=$as_save_IFS
4065   test -z "$as_dir" && as_dir=.
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068     ac_cv_prog_ac_ct_CC="gcc"
4069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070     break 2
4071   fi
4072 done
4073   done
4074 IFS=$as_save_IFS
4075
4076 fi
4077 fi
4078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079 if test -n "$ac_ct_CC"; then
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081 $as_echo "$ac_ct_CC" >&6; }
4082 else
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4085 fi
4086
4087   if test "x$ac_ct_CC" = x; then
4088     CC=""
4089   else
4090     case $cross_compiling:$ac_tool_warned in
4091 yes:)
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094 ac_tool_warned=yes ;;
4095 esac
4096     CC=$ac_ct_CC
4097   fi
4098 else
4099   CC="$ac_cv_prog_CC"
4100 fi
4101
4102 if test -z "$CC"; then
4103           if test -n "$ac_tool_prefix"; then
4104     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}cc; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_CC+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -n "$CC"; then
4112   ac_cv_prog_CC="$CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119     for ac_exec_ext in '' $ac_executable_extensions; do
4120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121     ac_cv_prog_CC="${ac_tool_prefix}cc"
4122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126   done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 CC=$ac_cv_prog_CC
4132 if test -n "$CC"; then
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4134 $as_echo "$CC" >&6; }
4135 else
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141   fi
4142 fi
4143 if test -z "$CC"; then
4144   # Extract the first word of "cc", so it can be a program name with args.
4145 set dummy cc; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if ${ac_cv_prog_CC+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -n "$CC"; then
4152   ac_cv_prog_CC="$CC" # Let the user override the test.
4153 else
4154   ac_prog_rejected=no
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_exec_ext in '' $ac_executable_extensions; do
4161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4163        ac_prog_rejected=yes
4164        continue
4165      fi
4166     ac_cv_prog_CC="cc"
4167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171   done
4172 IFS=$as_save_IFS
4173
4174 if test $ac_prog_rejected = yes; then
4175   # We found a bogon in the path, so make sure we never use it.
4176   set dummy $ac_cv_prog_CC
4177   shift
4178   if test $# != 0; then
4179     # We chose a different compiler from the bogus one.
4180     # However, it has the same basename, so the bogon will be chosen
4181     # first if we set CC to just the basename; use the full file name.
4182     shift
4183     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4184   fi
4185 fi
4186 fi
4187 fi
4188 CC=$ac_cv_prog_CC
4189 if test -n "$CC"; then
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4191 $as_echo "$CC" >&6; }
4192 else
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197
4198 fi
4199 if test -z "$CC"; then
4200   if test -n "$ac_tool_prefix"; then
4201   for ac_prog in cl.exe
4202   do
4203     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_CC+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225   done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4234 else
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239
4240     test -n "$CC" && break
4241   done
4242 fi
4243 if test -z "$CC"; then
4244   ac_ct_CC=$CC
4245   for ac_prog in cl.exe
4246 do
4247   # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   if test -n "$ac_ct_CC"; then
4255   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262     for ac_exec_ext in '' $ac_executable_extensions; do
4263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264     ac_cv_prog_ac_ct_CC="$ac_prog"
4265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269   done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275 if test -n "$ac_ct_CC"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277 $as_echo "$ac_ct_CC" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284   test -n "$ac_ct_CC" && break
4285 done
4286
4287   if test "x$ac_ct_CC" = x; then
4288     CC=""
4289   else
4290     case $cross_compiling:$ac_tool_warned in
4291 yes:)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4295 esac
4296     CC=$ac_ct_CC
4297   fi
4298 fi
4299
4300 fi
4301
4302
4303 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $? "no acceptable C compiler found in \$PATH
4306 See \`config.log' for more details" "$LINENO" 5; }
4307
4308 # Provide some information about the compiler.
4309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4310 set X $ac_compile
4311 ac_compiler=$2
4312 for ac_option in --version -v -V -qversion; do
4313   { { ac_try="$ac_compiler $ac_option >&5"
4314 case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4321   ac_status=$?
4322   if test -s conftest.err; then
4323     sed '10a\
4324 ... rest of stderr output deleted ...
4325          10q' conftest.err >conftest.er1
4326     cat conftest.er1 >&5
4327   fi
4328   rm -f conftest.er1 conftest.err
4329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330   test $ac_status = 0; }
4331 done
4332
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 ac_clean_files_save=$ac_clean_files
4345 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4346 # Try to create an executable without -o first, disregard a.out.
4347 # It will help us diagnose broken compilers, and finding out an intuition
4348 # of exeext.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4350 $as_echo_n "checking whether the C compiler works... " >&6; }
4351 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4352
4353 # The possible output files:
4354 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4355
4356 ac_rmfiles=
4357 for ac_file in $ac_files
4358 do
4359   case $ac_file in
4360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4361     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4362   esac
4363 done
4364 rm -f $ac_rmfiles
4365
4366 if { { ac_try="$ac_link_default"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373   (eval "$ac_link_default") 2>&5
4374   ac_status=$?
4375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376   test $ac_status = 0; }; then :
4377   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4378 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4379 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4380 # so that the user can short-circuit this test for compilers unknown to
4381 # Autoconf.
4382 for ac_file in $ac_files ''
4383 do
4384   test -f "$ac_file" || continue
4385   case $ac_file in
4386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4387         ;;
4388     [ab].out )
4389         # We found the default executable, but exeext='' is most
4390         # certainly right.
4391         break;;
4392     *.* )
4393         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4394         then :; else
4395            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4396         fi
4397         # We set ac_cv_exeext here because the later test for it is not
4398         # safe: cross compilers may not add the suffix if given an `-o'
4399         # argument, so we may need to know it at that point already.
4400         # Even if this section looks crufty: it has the advantage of
4401         # actually working.
4402         break;;
4403     * )
4404         break;;
4405   esac
4406 done
4407 test "$ac_cv_exeext" = no && ac_cv_exeext=
4408
4409 else
4410   ac_file=''
4411 fi
4412 if test -z "$ac_file"; then :
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 $as_echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error 77 "C compiler cannot create executables
4421 See \`config.log' for more details" "$LINENO" 5; }
4422 else
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424 $as_echo "yes" >&6; }
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4427 $as_echo_n "checking for C compiler default output file name... " >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4429 $as_echo "$ac_file" >&6; }
4430 ac_exeext=$ac_cv_exeext
4431
4432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4433 ac_clean_files=$ac_clean_files_save
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4435 $as_echo_n "checking for suffix of executables... " >&6; }
4436 if { { ac_try="$ac_link"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_link") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }; then :
4447   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4448 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4449 # work properly (i.e., refer to `conftest.exe'), while it won't with
4450 # `rm'.
4451 for ac_file in conftest.exe conftest conftest.*; do
4452   test -f "$ac_file" || continue
4453   case $ac_file in
4454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4455     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456           break;;
4457     * ) break;;
4458   esac
4459 done
4460 else
4461   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4464 See \`config.log' for more details" "$LINENO" 5; }
4465 fi
4466 rm -f conftest conftest$ac_cv_exeext
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4468 $as_echo "$ac_cv_exeext" >&6; }
4469
4470 rm -f conftest.$ac_ext
4471 EXEEXT=$ac_cv_exeext
4472 ac_exeext=$EXEEXT
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475 #include <stdio.h>
4476 int
4477 main ()
4478 {
4479 FILE *f = fopen ("conftest.out", "w");
4480  return ferror (f) || fclose (f) != 0;
4481
4482   ;
4483   return 0;
4484 }
4485 _ACEOF
4486 ac_clean_files="$ac_clean_files conftest.out"
4487 # Check that the compiler produces executables we can run.  If not, either
4488 # the compiler is broken, or we cross compile.
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4490 $as_echo_n "checking whether we are cross compiling... " >&6; }
4491 if test "$cross_compiling" != yes; then
4492   { { ac_try="$ac_link"
4493 case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499   (eval "$ac_link") 2>&5
4500   ac_status=$?
4501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502   test $ac_status = 0; }
4503   if { ac_try='./conftest$ac_cv_exeext'
4504   { { case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510   (eval "$ac_try") 2>&5
4511   ac_status=$?
4512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513   test $ac_status = 0; }; }; then
4514     cross_compiling=no
4515   else
4516     if test "$cross_compiling" = maybe; then
4517         cross_compiling=yes
4518     else
4519         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot run C compiled programs.
4522 If you meant to cross compile, use \`--host'.
4523 See \`config.log' for more details" "$LINENO" 5; }
4524     fi
4525   fi
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4528 $as_echo "$cross_compiling" >&6; }
4529
4530 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4531 ac_clean_files=$ac_clean_files_save
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533 $as_echo_n "checking for suffix of object files... " >&6; }
4534 if ${ac_cv_objext+:} false; then :
4535   $as_echo_n "(cached) " >&6
4536 else
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539
4540 int
4541 main ()
4542 {
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.o conftest.obj
4549 if { { ac_try="$ac_compile"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556   (eval "$ac_compile") 2>&5
4557   ac_status=$?
4558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559   test $ac_status = 0; }; then :
4560   for ac_file in conftest.o conftest.obj conftest.*; do
4561   test -f "$ac_file" || continue;
4562   case $ac_file in
4563     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4564     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4565        break;;
4566   esac
4567 done
4568 else
4569   $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $? "cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details" "$LINENO" 5; }
4576 fi
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4580 $as_echo "$ac_cv_objext" >&6; }
4581 OBJEXT=$ac_cv_objext
4582 ac_objext=$OBJEXT
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4585 if ${ac_cv_c_compiler_gnu+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594 #ifndef __GNUC__
4595        choke me
4596 #endif
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603   ac_compiler_gnu=yes
4604 else
4605   ac_compiler_gnu=no
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4612 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4613 if test $ac_compiler_gnu = yes; then
4614   GCC=yes
4615 else
4616   GCC=
4617 fi
4618 ac_test_CFLAGS=${CFLAGS+set}
4619 ac_save_CFLAGS=$CFLAGS
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4621 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4622 if ${ac_cv_prog_cc_g+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   ac_save_c_werror_flag=$ac_c_werror_flag
4626    ac_c_werror_flag=yes
4627    ac_cv_prog_cc_g=no
4628    CFLAGS="-g"
4629    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641   ac_cv_prog_cc_g=yes
4642 else
4643   CFLAGS=""
4644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656
4657 else
4658   ac_c_werror_flag=$ac_save_c_werror_flag
4659          CFLAGS="-g"
4660          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672   ac_cv_prog_cc_g=yes
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679    ac_c_werror_flag=$ac_save_c_werror_flag
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4682 $as_echo "$ac_cv_prog_cc_g" >&6; }
4683 if test "$ac_test_CFLAGS" = set; then
4684   CFLAGS=$ac_save_CFLAGS
4685 elif test $ac_cv_prog_cc_g = yes; then
4686   if test "$GCC" = yes; then
4687     CFLAGS="-g -O2"
4688   else
4689     CFLAGS="-g"
4690   fi
4691 else
4692   if test "$GCC" = yes; then
4693     CFLAGS="-O2"
4694   else
4695     CFLAGS=
4696   fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4700 if ${ac_cv_prog_cc_c89+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   ac_cv_prog_cc_c89=no
4704 ac_save_CC=$CC
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707 #include <stdarg.h>
4708 #include <stdio.h>
4709 struct stat;
4710 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4711 struct buf { int x; };
4712 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4713 static char *e (p, i)
4714      char **p;
4715      int i;
4716 {
4717   return p[i];
4718 }
4719 static char *f (char * (*g) (char **, int), char **p, ...)
4720 {
4721   char *s;
4722   va_list v;
4723   va_start (v,p);
4724   s = g (p, va_arg (v,int));
4725   va_end (v);
4726   return s;
4727 }
4728
4729 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4730    function prototypes and stuff, but not '\xHH' hex character constants.
4731    These don't provoke an error unfortunately, instead are silently treated
4732    as 'x'.  The following induces an error, until -std is added to get
4733    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4734    array size at least.  It's necessary to write '\x00'==0 to get something
4735    that's true only with -std.  */
4736 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4737
4738 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4739    inside strings and character constants.  */
4740 #define FOO(x) 'x'
4741 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4742
4743 int test (int i, double x);
4744 struct s1 {int (*f) (int a);};
4745 struct s2 {int (*f) (double a);};
4746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4747 int argc;
4748 char **argv;
4749 int
4750 main ()
4751 {
4752 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4758         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4759 do
4760   CC="$ac_save_CC $ac_arg"
4761   if ac_fn_c_try_compile "$LINENO"; then :
4762   ac_cv_prog_cc_c89=$ac_arg
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext
4765   test "x$ac_cv_prog_cc_c89" != "xno" && break
4766 done
4767 rm -f conftest.$ac_ext
4768 CC=$ac_save_CC
4769
4770 fi
4771 # AC_CACHE_VAL
4772 case "x$ac_cv_prog_cc_c89" in
4773   x)
4774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 $as_echo "none needed" >&6; } ;;
4776   xno)
4777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778 $as_echo "unsupported" >&6; } ;;
4779   *)
4780     CC="$CC $ac_cv_prog_cc_c89"
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4782 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4783 esac
4784 if test "x$ac_cv_prog_cc_c89" != xno; then :
4785
4786 fi
4787
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4800 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4801 if ${am_cv_prog_cc_c_o+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h.  */
4806
4807 int
4808 main ()
4809 {
4810
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815   # Make sure it works both with $CC and with simple cc.
4816   # Following AC_PROG_CC_C_O, we do the test twice because some
4817   # compilers refuse to overwrite an existing .o file with -o,
4818   # though they will create one.
4819   am_cv_prog_cc_c_o=yes
4820   for am_i in 1 2; do
4821     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4822    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4823    ac_status=$?
4824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825    (exit $ac_status); } \
4826          && test -f conftest2.$ac_objext; then
4827       : OK
4828     else
4829       am_cv_prog_cc_c_o=no
4830       break
4831     fi
4832   done
4833   rm -f core conftest*
4834   unset am_i
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4837 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4838 if test "$am_cv_prog_cc_c_o" != yes; then
4839    # Losing compiler, so override with the script.
4840    # FIXME: It is wrong to rewrite CC.
4841    # But if we don't then we get into trouble of one sort or another.
4842    # A longer-term fix would be to have automake use am__CC in this case,
4843    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4844    CC="$am_aux_dir/compile $CC"
4845 fi
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852
4853 depcc="$CC"   am_compiler_list=
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4856 $as_echo_n "checking dependency style of $depcc... " >&6; }
4857 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861   # We make a subdir and do the tests there.  Otherwise we can end up
4862   # making bogus files that we don't know about and never remove.  For
4863   # instance it was reported that on HP-UX the gcc test will end up
4864   # making a dummy file named 'D' -- because '-MD' means "put the output
4865   # in D".
4866   rm -rf conftest.dir
4867   mkdir conftest.dir
4868   # Copy depcomp to subdir because otherwise we won't find it if we're
4869   # using a relative directory.
4870   cp "$am_depcomp" conftest.dir
4871   cd conftest.dir
4872   # We will build objects and dependencies in a subdirectory because
4873   # it helps to detect inapplicable dependency modes.  For instance
4874   # both Tru64's cc and ICC support -MD to output dependencies as a
4875   # side effect of compilation, but ICC will put the dependencies in
4876   # the current directory while Tru64 will put them in the object
4877   # directory.
4878   mkdir sub
4879
4880   am_cv_CC_dependencies_compiler_type=none
4881   if test "$am_compiler_list" = ""; then
4882      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883   fi
4884   am__universal=false
4885   case " $depcc " in #(
4886      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4887      esac
4888
4889   for depmode in $am_compiler_list; do
4890     # Setup a source with many dependencies, because some compilers
4891     # like to wrap large dependency lists on column 80 (with \), and
4892     # we should not choose a depcomp mode which is confused by this.
4893     #
4894     # We need to recreate these files for each test, as the compiler may
4895     # overwrite some of them when testing with obscure command lines.
4896     # This happens at least with the AIX C compiler.
4897     : > sub/conftest.c
4898     for i in 1 2 3 4 5 6; do
4899       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4901       # Solaris 10 /bin/sh.
4902       echo '/* dummy */' > sub/conftst$i.h
4903     done
4904     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4905
4906     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4907     # mode.  It turns out that the SunPro C++ compiler does not properly
4908     # handle '-M -o', and we need to detect this.  Also, some Intel
4909     # versions had trouble with output in subdirs.
4910     am__obj=sub/conftest.${OBJEXT-o}
4911     am__minus_obj="-o $am__obj"
4912     case $depmode in
4913     gcc)
4914       # This depmode causes a compiler race in universal mode.
4915       test "$am__universal" = false || continue
4916       ;;
4917     nosideeffect)
4918       # After this tag, mechanisms are not by side-effect, so they'll
4919       # only be used when explicitly requested.
4920       if test "x$enable_dependency_tracking" = xyes; then
4921         continue
4922       else
4923         break
4924       fi
4925       ;;
4926     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4927       # This compiler won't grok '-c -o', but also, the minuso test has
4928       # not run yet.  These depmodes are late enough in the game, and
4929       # so weak that their functioning should not be impacted.
4930       am__obj=conftest.${OBJEXT-o}
4931       am__minus_obj=
4932       ;;
4933     none) break ;;
4934     esac
4935     if depmode=$depmode \
4936        source=sub/conftest.c object=$am__obj \
4937        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4938        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4939          >/dev/null 2>conftest.err &&
4940        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944       # icc doesn't choke on unknown options, it will just issue warnings
4945       # or remarks (even with -Werror).  So we grep stderr for any message
4946       # that says an option was ignored or not supported.
4947       # When given -MP, icc 7.0 and 7.1 complain thusly:
4948       #   icc: Command line warning: ignoring option '-M'; no argument required
4949       # The diagnosis changed in icc 8.0:
4950       #   icc: Command line remark: option '-MP' not supported
4951       if (grep 'ignoring option' conftest.err ||
4952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953         am_cv_CC_dependencies_compiler_type=$depmode
4954         break
4955       fi
4956     fi
4957   done
4958
4959   cd ..
4960   rm -rf conftest.dir
4961 else
4962   am_cv_CC_dependencies_compiler_type=none
4963 fi
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4969
4970  if
4971   test "x$enable_dependency_tracking" != xno \
4972   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4973   am__fastdepCC_TRUE=
4974   am__fastdepCC_FALSE='#'
4975 else
4976   am__fastdepCC_TRUE='#'
4977   am__fastdepCC_FALSE=
4978 fi
4979
4980
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4991   CPP=
4992 fi
4993 if test -z "$CPP"; then
4994   if ${ac_cv_prog_CPP+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997       # Double quotes because CPP needs to be expanded
4998     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4999     do
5000       ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5002 do
5003   # Use a header file that comes with gcc, so configuring glibc
5004   # with a fresh cross-compiler works.
5005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006   # <limits.h> exists even on freestanding compilers.
5007   # On the NeXT, cc -E runs the code through the compiler's parser,
5008   # not just through cpp. "Syntax error" is here to catch this case.
5009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #ifdef __STDC__
5012 # include <limits.h>
5013 #else
5014 # include <assert.h>
5015 #endif
5016                      Syntax error
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019
5020 else
5021   # Broken: fails on valid input.
5022 continue
5023 fi
5024 rm -f conftest.err conftest.i conftest.$ac_ext
5025
5026   # OK, works on sane cases.  Now check whether nonexistent headers
5027   # can be detected and how.
5028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h.  */
5030 #include <ac_nonexistent.h>
5031 _ACEOF
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033   # Broken: success on invalid input.
5034 continue
5035 else
5036   # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5039 fi
5040 rm -f conftest.err conftest.i conftest.$ac_ext
5041
5042 done
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.i conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then :
5046   break
5047 fi
5048
5049     done
5050     ac_cv_prog_CPP=$CPP
5051
5052 fi
5053   CPP=$ac_cv_prog_CPP
5054 else
5055   ac_cv_prog_CPP=$CPP
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062   # Use a header file that comes with gcc, so configuring glibc
5063   # with a fresh cross-compiler works.
5064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065   # <limits.h> exists even on freestanding compilers.
5066   # On the NeXT, cc -E runs the code through the compiler's parser,
5067   # not just through cpp. "Syntax error" is here to catch this case.
5068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h.  */
5070 #ifdef __STDC__
5071 # include <limits.h>
5072 #else
5073 # include <assert.h>
5074 #endif
5075                      Syntax error
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078
5079 else
5080   # Broken: fails on valid input.
5081 continue
5082 fi
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5084
5085   # OK, works on sane cases.  Now check whether nonexistent headers
5086   # can be detected and how.
5087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h.  */
5089 #include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092   # Broken: success on invalid input.
5093 continue
5094 else
5095   # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5098 fi
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5105
5106 else
5107   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details" "$LINENO" 5; }
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if ${ac_cv_path_GREP+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   if test -z "$GREP"; then
5126   ac_path_GREP_found=false
5127   # Loop through the user's path and test for each of PROGNAME-LIST
5128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133     for ac_prog in grep ggrep; do
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136       as_fn_executable_p "$ac_path_GREP" || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138   # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 *)
5143   ac_count=0
5144   $as_echo_n 0123456789 >"conftest.in"
5145   while :
5146   do
5147     cat "conftest.in" "conftest.in" >"conftest.tmp"
5148     mv "conftest.tmp" "conftest.in"
5149     cp "conftest.in" "conftest.nl"
5150     $as_echo 'GREP' >> "conftest.nl"
5151     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153     as_fn_arith $ac_count + 1 && ac_count=$as_val
5154     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155       # Best one so far, save it but keep looking for a better one
5156       ac_cv_path_GREP="$ac_path_GREP"
5157       ac_path_GREP_max=$ac_count
5158     fi
5159     # 10*(2^10) chars as input seems more than enough
5160     test $ac_count -gt 10 && break
5161   done
5162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165       $ac_path_GREP_found && break 3
5166     done
5167   done
5168   done
5169 IFS=$as_save_IFS
5170   if test -z "$ac_cv_path_GREP"; then
5171     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172   fi
5173 else
5174   ac_cv_path_GREP=$GREP
5175 fi
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180  GREP="$ac_cv_path_GREP"
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if ${ac_cv_path_EGREP+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189    then ac_cv_path_EGREP="$GREP -E"
5190    else
5191      if test -z "$EGREP"; then
5192   ac_path_EGREP_found=false
5193   # Loop through the user's path and test for each of PROGNAME-LIST
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_prog in egrep; do
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202       as_fn_executable_p "$ac_path_EGREP" || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204   # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5206 *GNU*)
5207   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208 *)
5209   ac_count=0
5210   $as_echo_n 0123456789 >"conftest.in"
5211   while :
5212   do
5213     cat "conftest.in" "conftest.in" >"conftest.tmp"
5214     mv "conftest.tmp" "conftest.in"
5215     cp "conftest.in" "conftest.nl"
5216     $as_echo 'EGREP' >> "conftest.nl"
5217     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219     as_fn_arith $ac_count + 1 && ac_count=$as_val
5220     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221       # Best one so far, save it but keep looking for a better one
5222       ac_cv_path_EGREP="$ac_path_EGREP"
5223       ac_path_EGREP_max=$ac_count
5224     fi
5225     # 10*(2^10) chars as input seems more than enough
5226     test $ac_count -gt 10 && break
5227   done
5228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231       $ac_path_EGREP_found && break 3
5232     done
5233   done
5234   done
5235 IFS=$as_save_IFS
5236   if test -z "$ac_cv_path_EGREP"; then
5237     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238   fi
5239 else
5240   ac_cv_path_EGREP=$EGREP
5241 fi
5242
5243    fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247  EGREP="$ac_cv_path_EGREP"
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if ${ac_cv_header_stdc+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h.  */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5261
5262 int
5263 main ()
5264 {
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271   ac_cv_header_stdc=yes
5272 else
5273   ac_cv_header_stdc=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
5277 if test $ac_cv_header_stdc = yes; then
5278   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h.  */
5281 #include <string.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285   $EGREP "memchr" >/dev/null 2>&1; then :
5286
5287 else
5288   ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <stdlib.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302   $EGREP "free" >/dev/null 2>&1; then :
5303
5304 else
5305   ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313   if test "$cross_compiling" = yes; then :
5314   :
5315 else
5316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318 #include <ctype.h>
5319 #include <stdlib.h>
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 #else
5324 # define ISLOWER(c) \
5325                    (('a' <= (c) && (c) <= 'i') \
5326                      || ('j' <= (c) && (c) <= 'r') \
5327                      || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5329 #endif
5330
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5332 int
5333 main ()
5334 {
5335   int i;
5336   for (i = 0; i < 256; i++)
5337     if (XOR (islower (i), ISLOWER (i))
5338         || toupper (i) != TOUPPER (i))
5339       return 2;
5340   return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5344
5345 else
5346   ac_cv_header_stdc=no
5347 fi
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349   conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351
5352 fi
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5357
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5359
5360 fi
5361
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5364                   inttypes.h stdint.h unistd.h
5365 do :
5366   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5368 "
5369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5370   cat >>confdefs.h <<_ACEOF
5371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 _ACEOF
5373
5374 fi
5375
5376 done
5377
5378
5379
5380   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5381 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5382   MINIX=yes
5383 else
5384   MINIX=
5385 fi
5386
5387
5388   if test "$MINIX" = yes; then
5389
5390 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5391
5392
5393 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5394
5395
5396 $as_echo "#define _MINIX 1" >>confdefs.h
5397
5398
5399 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5400
5401   fi
5402
5403
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5405 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5406 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411
5412 #         define __EXTENSIONS__ 1
5413           $ac_includes_default
5414 int
5415 main ()
5416 {
5417
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423   ac_cv_safe_to_define___extensions__=yes
5424 else
5425   ac_cv_safe_to_define___extensions__=no
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5430 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5431   test $ac_cv_safe_to_define___extensions__ = yes &&
5432     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5433
5434   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5435
5436   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5437
5438   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5439
5440   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5441
5442   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5443
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5445 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5446 if ${ac_cv_should_define__xopen_source+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   ac_cv_should_define__xopen_source=no
5450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452
5453           #include <wchar.h>
5454           mbstate_t x;
5455 int
5456 main ()
5457 {
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464
5465 else
5466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h.  */
5468
5469              #define _XOPEN_SOURCE 500
5470              #include <wchar.h>
5471              mbstate_t x;
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481   ac_cv_should_define__xopen_source=yes
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5488 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5489   test $ac_cv_should_define__xopen_source = yes &&
5490     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495   for ac_prog in ar lib "link -lib"
5496   do
5497     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_AR+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if test -n "$AR"; then
5505   ac_cv_prog_AR="$AR" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519   done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 AR=$ac_cv_prog_AR
5525 if test -n "$AR"; then
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5527 $as_echo "$AR" >&6; }
5528 else
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534     test -n "$AR" && break
5535   done
5536 fi
5537 if test -z "$AR"; then
5538   ac_ct_AR=$AR
5539   for ac_prog in ar lib "link -lib"
5540 do
5541   # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$ac_ct_AR"; then
5549   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_prog_ac_ct_AR="$ac_prog"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5569 if test -n "$ac_ct_AR"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5571 $as_echo "$ac_ct_AR" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578   test -n "$ac_ct_AR" && break
5579 done
5580
5581   if test "x$ac_ct_AR" = x; then
5582     AR="false"
5583   else
5584     case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590     AR=$ac_ct_AR
5591   fi
5592 fi
5593
5594 : ${AR=ar}
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5597 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5598 if ${am_cv_ar_interface+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   ac_ext=c
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606
5607    am_cv_ar_interface=ar
5608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h.  */
5610 int some_variable = 0;
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5614       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5615   (eval $am_ar_try) 2>&5
5616   ac_status=$?
5617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618   test $ac_status = 0; }
5619       if test "$ac_status" -eq 0; then
5620         am_cv_ar_interface=ar
5621       else
5622         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5623         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5624   (eval $am_ar_try) 2>&5
5625   ac_status=$?
5626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627   test $ac_status = 0; }
5628         if test "$ac_status" -eq 0; then
5629           am_cv_ar_interface=lib
5630         else
5631           am_cv_ar_interface=unknown
5632         fi
5633       fi
5634       rm -f conftest.lib libconftest.a
5635
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638    ac_ext=c
5639 ac_cpp='$CPP $CPPFLAGS'
5640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5646 $as_echo "$am_cv_ar_interface" >&6; }
5647
5648 case $am_cv_ar_interface in
5649 ar)
5650   ;;
5651 lib)
5652   # Microsoft lib, so override with the ar-lib wrapper script.
5653   # FIXME: It is wrong to rewrite AR.
5654   # But if we don't then we get into trouble of one sort or another.
5655   # A longer-term fix would be to have automake use am__AR in this case,
5656   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5657   # similar.
5658   AR="$am_aux_dir/ar-lib $AR"
5659   ;;
5660 unknown)
5661   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5662   ;;
5663 esac
5664
5665 case `pwd` in
5666   *\ * | *\     *)
5667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5668 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5669 esac
5670
5671
5672
5673 macro_version='2.4.2'
5674 macro_revision='1.3337'
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 ltmain="$ac_aux_dir/ltmain.sh"
5689
5690 # Make sure we can run config.sub.
5691 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5692   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5695 $as_echo_n "checking build system type... " >&6; }
5696 if ${ac_cv_build+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   ac_build_alias=$build_alias
5700 test "x$ac_build_alias" = x &&
5701   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5702 test "x$ac_build_alias" = x &&
5703   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5704 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5705   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5706
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5709 $as_echo "$ac_cv_build" >&6; }
5710 case $ac_cv_build in
5711 *-*-*) ;;
5712 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5713 esac
5714 build=$ac_cv_build
5715 ac_save_IFS=$IFS; IFS='-'
5716 set x $ac_cv_build
5717 shift
5718 build_cpu=$1
5719 build_vendor=$2
5720 shift; shift
5721 # Remember, the first character of IFS is used to create $*,
5722 # except with old shells:
5723 build_os=$*
5724 IFS=$ac_save_IFS
5725 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5729 $as_echo_n "checking host system type... " >&6; }
5730 if ${ac_cv_host+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test "x$host_alias" = x; then
5734   ac_cv_host=$ac_cv_build
5735 else
5736   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5737     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5738 fi
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5742 $as_echo "$ac_cv_host" >&6; }
5743 case $ac_cv_host in
5744 *-*-*) ;;
5745 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5746 esac
5747 host=$ac_cv_host
5748 ac_save_IFS=$IFS; IFS='-'
5749 set x $ac_cv_host
5750 shift
5751 host_cpu=$1
5752 host_vendor=$2
5753 shift; shift
5754 # Remember, the first character of IFS is used to create $*,
5755 # except with old shells:
5756 host_os=$*
5757 IFS=$ac_save_IFS
5758 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5759
5760
5761 # Backslashify metacharacters that are still active within
5762 # double-quoted strings.
5763 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5764
5765 # Same as above, but do not quote variable references.
5766 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5767
5768 # Sed substitution to delay expansion of an escaped shell variable in a
5769 # double_quote_subst'ed string.
5770 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5771
5772 # Sed substitution to delay expansion of an escaped single quote.
5773 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5774
5775 # Sed substitution to avoid accidental globbing in evaled expressions
5776 no_glob_subst='s/\*/\\\*/g'
5777
5778 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5779 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5781
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5783 $as_echo_n "checking how to print strings... " >&6; }
5784 # Test print first, because it will be a builtin if present.
5785 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5786    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5787   ECHO='print -r --'
5788 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5789   ECHO='printf %s\n'
5790 else
5791   # Use this function as a fallback that always works.
5792   func_fallback_echo ()
5793   {
5794     eval 'cat <<_LTECHO_EOF
5795 $1
5796 _LTECHO_EOF'
5797   }
5798   ECHO='func_fallback_echo'
5799 fi
5800
5801 # func_echo_all arg...
5802 # Invoke $ECHO with all args, space-separated.
5803 func_echo_all ()
5804 {
5805     $ECHO ""
5806 }
5807
5808 case "$ECHO" in
5809   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5810 $as_echo "printf" >&6; } ;;
5811   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5812 $as_echo "print -r" >&6; } ;;
5813   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5814 $as_echo "cat" >&6; } ;;
5815 esac
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5831 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5832 if ${ac_cv_path_SED+:} false; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5836      for ac_i in 1 2 3 4 5 6 7; do
5837        ac_script="$ac_script$as_nl$ac_script"
5838      done
5839      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5840      { ac_script=; unset ac_script;}
5841      if test -z "$SED"; then
5842   ac_path_SED_found=false
5843   # Loop through the user's path and test for each of PROGNAME-LIST
5844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849     for ac_prog in sed gsed; do
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5852       as_fn_executable_p "$ac_path_SED" || continue
5853 # Check for GNU ac_path_SED and select it if it is found.
5854   # Check for GNU $ac_path_SED
5855 case `"$ac_path_SED" --version 2>&1` in
5856 *GNU*)
5857   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5858 *)
5859   ac_count=0
5860   $as_echo_n 0123456789 >"conftest.in"
5861   while :
5862   do
5863     cat "conftest.in" "conftest.in" >"conftest.tmp"
5864     mv "conftest.tmp" "conftest.in"
5865     cp "conftest.in" "conftest.nl"
5866     $as_echo '' >> "conftest.nl"
5867     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5868     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5869     as_fn_arith $ac_count + 1 && ac_count=$as_val
5870     if test $ac_count -gt ${ac_path_SED_max-0}; then
5871       # Best one so far, save it but keep looking for a better one
5872       ac_cv_path_SED="$ac_path_SED"
5873       ac_path_SED_max=$ac_count
5874     fi
5875     # 10*(2^10) chars as input seems more than enough
5876     test $ac_count -gt 10 && break
5877   done
5878   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5879 esac
5880
5881       $ac_path_SED_found && break 3
5882     done
5883   done
5884   done
5885 IFS=$as_save_IFS
5886   if test -z "$ac_cv_path_SED"; then
5887     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5888   fi
5889 else
5890   ac_cv_path_SED=$SED
5891 fi
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5895 $as_echo "$ac_cv_path_SED" >&6; }
5896  SED="$ac_cv_path_SED"
5897   rm -f conftest.sed
5898
5899 test -z "$SED" && SED=sed
5900 Xsed="$SED -e 1s/^X//"
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5913 $as_echo_n "checking for fgrep... " >&6; }
5914 if ${ac_cv_path_FGREP+:} false; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5918    then ac_cv_path_FGREP="$GREP -F"
5919    else
5920      if test -z "$FGREP"; then
5921   ac_path_FGREP_found=false
5922   # Loop through the user's path and test for each of PROGNAME-LIST
5923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_prog in fgrep; do
5929     for ac_exec_ext in '' $ac_executable_extensions; do
5930       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5931       as_fn_executable_p "$ac_path_FGREP" || continue
5932 # Check for GNU ac_path_FGREP and select it if it is found.
5933   # Check for GNU $ac_path_FGREP
5934 case `"$ac_path_FGREP" --version 2>&1` in
5935 *GNU*)
5936   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5937 *)
5938   ac_count=0
5939   $as_echo_n 0123456789 >"conftest.in"
5940   while :
5941   do
5942     cat "conftest.in" "conftest.in" >"conftest.tmp"
5943     mv "conftest.tmp" "conftest.in"
5944     cp "conftest.in" "conftest.nl"
5945     $as_echo 'FGREP' >> "conftest.nl"
5946     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5948     as_fn_arith $ac_count + 1 && ac_count=$as_val
5949     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5950       # Best one so far, save it but keep looking for a better one
5951       ac_cv_path_FGREP="$ac_path_FGREP"
5952       ac_path_FGREP_max=$ac_count
5953     fi
5954     # 10*(2^10) chars as input seems more than enough
5955     test $ac_count -gt 10 && break
5956   done
5957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5958 esac
5959
5960       $ac_path_FGREP_found && break 3
5961     done
5962   done
5963   done
5964 IFS=$as_save_IFS
5965   if test -z "$ac_cv_path_FGREP"; then
5966     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5967   fi
5968 else
5969   ac_cv_path_FGREP=$FGREP
5970 fi
5971
5972    fi
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5975 $as_echo "$ac_cv_path_FGREP" >&6; }
5976  FGREP="$ac_cv_path_FGREP"
5977
5978
5979 test -z "$GREP" && GREP=grep
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 # Check whether --with-gnu-ld was given.
6000 if test "${with_gnu_ld+set}" = set; then :
6001   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6002 else
6003   with_gnu_ld=no
6004 fi
6005
6006 ac_prog=ld
6007 if test "$GCC" = yes; then
6008   # Check if gcc -print-prog-name=ld gives a path.
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6010 $as_echo_n "checking for ld used by $CC... " >&6; }
6011   case $host in
6012   *-*-mingw*)
6013     # gcc leaves a trailing carriage return which upsets mingw
6014     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6015   *)
6016     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6017   esac
6018   case $ac_prog in
6019     # Accept absolute paths.
6020     [\\/]* | ?:[\\/]*)
6021       re_direlt='/[^/][^/]*/\.\./'
6022       # Canonicalize the pathname of ld
6023       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6024       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6025         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6026       done
6027       test -z "$LD" && LD="$ac_prog"
6028       ;;
6029   "")
6030     # If it fails, then pretend we aren't using GCC.
6031     ac_prog=ld
6032     ;;
6033   *)
6034     # If it is relative, then search for the first ld in PATH.
6035     with_gnu_ld=unknown
6036     ;;
6037   esac
6038 elif test "$with_gnu_ld" = yes; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6040 $as_echo_n "checking for GNU ld... " >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6043 $as_echo_n "checking for non-GNU ld... " >&6; }
6044 fi
6045 if ${lt_cv_path_LD+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -z "$LD"; then
6049   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6050   for ac_dir in $PATH; do
6051     IFS="$lt_save_ifs"
6052     test -z "$ac_dir" && ac_dir=.
6053     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6054       lt_cv_path_LD="$ac_dir/$ac_prog"
6055       # Check to see if the program is GNU ld.  I'd rather use --version,
6056       # but apparently some variants of GNU ld only accept -v.
6057       # Break only if it was the GNU/non-GNU ld that we prefer.
6058       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6059       *GNU* | *'with BFD'*)
6060         test "$with_gnu_ld" != no && break
6061         ;;
6062       *)
6063         test "$with_gnu_ld" != yes && break
6064         ;;
6065       esac
6066     fi
6067   done
6068   IFS="$lt_save_ifs"
6069 else
6070   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6071 fi
6072 fi
6073
6074 LD="$lt_cv_path_LD"
6075 if test -n "$LD"; then
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6077 $as_echo "$LD" >&6; }
6078 else
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6084 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6085 if ${lt_cv_prog_gnu_ld+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6089 case `$LD -v 2>&1 </dev/null` in
6090 *GNU* | *'with BFD'*)
6091   lt_cv_prog_gnu_ld=yes
6092   ;;
6093 *)
6094   lt_cv_prog_gnu_ld=no
6095   ;;
6096 esac
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6099 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6100 with_gnu_ld=$lt_cv_prog_gnu_ld
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6111 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6112 if ${lt_cv_path_NM+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$NM"; then
6116   # Let the user override the test.
6117   lt_cv_path_NM="$NM"
6118 else
6119   lt_nm_to_check="${ac_tool_prefix}nm"
6120   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6121     lt_nm_to_check="$lt_nm_to_check nm"
6122   fi
6123   for lt_tmp_nm in $lt_nm_to_check; do
6124     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6125     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6126       IFS="$lt_save_ifs"
6127       test -z "$ac_dir" && ac_dir=.
6128       tmp_nm="$ac_dir/$lt_tmp_nm"
6129       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6130         # Check to see if the nm accepts a BSD-compat flag.
6131         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6132         #   nm: unknown option "B" ignored
6133         # Tru64's nm complains that /dev/null is an invalid object file
6134         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6135         */dev/null* | *'Invalid file or object type'*)
6136           lt_cv_path_NM="$tmp_nm -B"
6137           break
6138           ;;
6139         *)
6140           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6141           */dev/null*)
6142             lt_cv_path_NM="$tmp_nm -p"
6143             break
6144             ;;
6145           *)
6146             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6147             continue # so that we can try to find one that supports BSD flags
6148             ;;
6149           esac
6150           ;;
6151         esac
6152       fi
6153     done
6154     IFS="$lt_save_ifs"
6155   done
6156   : ${lt_cv_path_NM=no}
6157 fi
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6160 $as_echo "$lt_cv_path_NM" >&6; }
6161 if test "$lt_cv_path_NM" != "no"; then
6162   NM="$lt_cv_path_NM"
6163 else
6164   # Didn't find any BSD compatible name lister, look for dumpbin.
6165   if test -n "$DUMPBIN"; then :
6166     # Let the user override the test.
6167   else
6168     if test -n "$ac_tool_prefix"; then
6169   for ac_prog in dumpbin "link -dump"
6170   do
6171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_DUMPBIN+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if test -n "$DUMPBIN"; then
6179   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186     for ac_exec_ext in '' $ac_executable_extensions; do
6187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193   done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 DUMPBIN=$ac_cv_prog_DUMPBIN
6199 if test -n "$DUMPBIN"; then
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6201 $as_echo "$DUMPBIN" >&6; }
6202 else
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208     test -n "$DUMPBIN" && break
6209   done
6210 fi
6211 if test -z "$DUMPBIN"; then
6212   ac_ct_DUMPBIN=$DUMPBIN
6213   for ac_prog in dumpbin "link -dump"
6214 do
6215   # Extract the first word of "$ac_prog", so it can be a program name with args.
6216 set dummy $ac_prog; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -n "$ac_ct_DUMPBIN"; then
6223   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_exec_ext in '' $ac_executable_extensions; do
6231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237   done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6243 if test -n "$ac_ct_DUMPBIN"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6245 $as_echo "$ac_ct_DUMPBIN" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250
6251
6252   test -n "$ac_ct_DUMPBIN" && break
6253 done
6254
6255   if test "x$ac_ct_DUMPBIN" = x; then
6256     DUMPBIN=":"
6257   else
6258     case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264     DUMPBIN=$ac_ct_DUMPBIN
6265   fi
6266 fi
6267
6268     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6269     *COFF*)
6270       DUMPBIN="$DUMPBIN -symbols"
6271       ;;
6272     *)
6273       DUMPBIN=:
6274       ;;
6275     esac
6276   fi
6277
6278   if test "$DUMPBIN" != ":"; then
6279     NM="$DUMPBIN"
6280   fi
6281 fi
6282 test -z "$NM" && NM=nm
6283
6284
6285
6286
6287
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6290 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6291 if ${lt_cv_nm_interface+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   lt_cv_nm_interface="BSD nm"
6295   echo "int some_variable = 0;" > conftest.$ac_ext
6296   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6297   (eval "$ac_compile" 2>conftest.err)
6298   cat conftest.err >&5
6299   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6300   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6301   cat conftest.err >&5
6302   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6303   cat conftest.out >&5
6304   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6305     lt_cv_nm_interface="MS dumpbin"
6306   fi
6307   rm -f conftest*
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6310 $as_echo "$lt_cv_nm_interface" >&6; }
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6313 $as_echo_n "checking whether ln -s works... " >&6; }
6314 LN_S=$as_ln_s
6315 if test "$LN_S" = "ln -s"; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6317 $as_echo "yes" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6320 $as_echo "no, using $LN_S" >&6; }
6321 fi
6322
6323 # find the maximum length of command line arguments
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6325 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6326 if ${lt_cv_sys_max_cmd_len+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329     i=0
6330   teststring="ABCD"
6331
6332   case $build_os in
6333   msdosdjgpp*)
6334     # On DJGPP, this test can blow up pretty badly due to problems in libc
6335     # (any single argument exceeding 2000 bytes causes a buffer overrun
6336     # during glob expansion).  Even if it were fixed, the result of this
6337     # check would be larger than it should be.
6338     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6339     ;;
6340
6341   gnu*)
6342     # Under GNU Hurd, this test is not required because there is
6343     # no limit to the length of command line arguments.
6344     # Libtool will interpret -1 as no limit whatsoever
6345     lt_cv_sys_max_cmd_len=-1;
6346     ;;
6347
6348   cygwin* | mingw* | cegcc*)
6349     # On Win9x/ME, this test blows up -- it succeeds, but takes
6350     # about 5 minutes as the teststring grows exponentially.
6351     # Worse, since 9x/ME are not pre-emptively multitasking,
6352     # you end up with a "frozen" computer, even though with patience
6353     # the test eventually succeeds (with a max line length of 256k).
6354     # Instead, let's just punt: use the minimum linelength reported by
6355     # all of the supported platforms: 8192 (on NT/2K/XP).
6356     lt_cv_sys_max_cmd_len=8192;
6357     ;;
6358
6359   mint*)
6360     # On MiNT this can take a long time and run out of memory.
6361     lt_cv_sys_max_cmd_len=8192;
6362     ;;
6363
6364   amigaos*)
6365     # On AmigaOS with pdksh, this test takes hours, literally.
6366     # So we just punt and use a minimum line length of 8192.
6367     lt_cv_sys_max_cmd_len=8192;
6368     ;;
6369
6370   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6371     # This has been around since 386BSD, at least.  Likely further.
6372     if test -x /sbin/sysctl; then
6373       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6374     elif test -x /usr/sbin/sysctl; then
6375       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6376     else
6377       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6378     fi
6379     # And add a safety zone
6380     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6381     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6382     ;;
6383
6384   interix*)
6385     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6386     lt_cv_sys_max_cmd_len=196608
6387     ;;
6388
6389   os2*)
6390     # The test takes a long time on OS/2.
6391     lt_cv_sys_max_cmd_len=8192
6392     ;;
6393
6394   osf*)
6395     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6396     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6397     # nice to cause kernel panics so lets avoid the loop below.
6398     # First set a reasonable default.
6399     lt_cv_sys_max_cmd_len=16384
6400     #
6401     if test -x /sbin/sysconfig; then
6402       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6403         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6404       esac
6405     fi
6406     ;;
6407   sco3.2v5*)
6408     lt_cv_sys_max_cmd_len=102400
6409     ;;
6410   sysv5* | sco5v6* | sysv4.2uw2*)
6411     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6412     if test -n "$kargmax"; then
6413       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6414     else
6415       lt_cv_sys_max_cmd_len=32768
6416     fi
6417     ;;
6418   *)
6419     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6420     if test -n "$lt_cv_sys_max_cmd_len" && \
6421         test undefined != "$lt_cv_sys_max_cmd_len"; then
6422       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6423       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6424     else
6425       # Make teststring a little bigger before we do anything with it.
6426       # a 1K string should be a reasonable start.
6427       for i in 1 2 3 4 5 6 7 8 ; do
6428         teststring=$teststring$teststring
6429       done
6430       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6431       # If test is not a shell built-in, we'll probably end up computing a
6432       # maximum length that is only half of the actual maximum length, but
6433       # we can't tell.
6434       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6435                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6436               test $i != 17 # 1/2 MB should be enough
6437       do
6438         i=`expr $i + 1`
6439         teststring=$teststring$teststring
6440       done
6441       # Only check the string length outside the loop.
6442       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6443       teststring=
6444       # Add a significant safety factor because C++ compilers can tack on
6445       # massive amounts of additional arguments before passing them to the
6446       # linker.  It appears as though 1/2 is a usable value.
6447       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6448     fi
6449     ;;
6450   esac
6451
6452 fi
6453
6454 if test -n $lt_cv_sys_max_cmd_len ; then
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6457 else
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6459 $as_echo "none" >&6; }
6460 fi
6461 max_cmd_len=$lt_cv_sys_max_cmd_len
6462
6463
6464
6465
6466
6467
6468 : ${CP="cp -f"}
6469 : ${MV="mv -f"}
6470 : ${RM="rm -f"}
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6474 # Try some XSI features
6475 xsi_shell=no
6476 ( _lt_dummy="a/b/c"
6477   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6478       = c,a/b,b/c, \
6479     && eval 'test $(( 1 + 1 )) -eq 2 \
6480     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6481   && xsi_shell=yes
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6483 $as_echo "$xsi_shell" >&6; }
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6488 lt_shell_append=no
6489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6490     >/dev/null 2>&1 \
6491   && lt_shell_append=yes
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6493 $as_echo "$lt_shell_append" >&6; }
6494
6495
6496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6497   lt_unset=unset
6498 else
6499   lt_unset=false
6500 fi
6501
6502
6503
6504
6505
6506 # test EBCDIC or ASCII
6507 case `echo X|tr X '\101'` in
6508  A) # ASCII based system
6509     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6510   lt_SP2NL='tr \040 \012'
6511   lt_NL2SP='tr \015\012 \040\040'
6512   ;;
6513  *) # EBCDIC based system
6514   lt_SP2NL='tr \100 \n'
6515   lt_NL2SP='tr \r\n \100\100'
6516   ;;
6517 esac
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6528 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6529 if ${lt_cv_to_host_file_cmd+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   case $host in
6533   *-*-mingw* )
6534     case $build in
6535       *-*-mingw* ) # actually msys
6536         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6537         ;;
6538       *-*-cygwin* )
6539         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6540         ;;
6541       * ) # otherwise, assume *nix
6542         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6543         ;;
6544     esac
6545     ;;
6546   *-*-cygwin* )
6547     case $build in
6548       *-*-mingw* ) # actually msys
6549         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6550         ;;
6551       *-*-cygwin* )
6552         lt_cv_to_host_file_cmd=func_convert_file_noop
6553         ;;
6554       * ) # otherwise, assume *nix
6555         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6556         ;;
6557     esac
6558     ;;
6559   * ) # unhandled hosts (and "normal" native builds)
6560     lt_cv_to_host_file_cmd=func_convert_file_noop
6561     ;;
6562 esac
6563
6564 fi
6565
6566 to_host_file_cmd=$lt_cv_to_host_file_cmd
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6568 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6569
6570
6571
6572
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6575 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6576 if ${lt_cv_to_tool_file_cmd+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   #assume ordinary cross tools, or native build.
6580 lt_cv_to_tool_file_cmd=func_convert_file_noop
6581 case $host in
6582   *-*-mingw* )
6583     case $build in
6584       *-*-mingw* ) # actually msys
6585         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6586         ;;
6587     esac
6588     ;;
6589 esac
6590
6591 fi
6592
6593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6595 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6596
6597
6598
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6603 if ${lt_cv_ld_reload_flag+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   lt_cv_ld_reload_flag='-r'
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6610 reload_flag=$lt_cv_ld_reload_flag
6611 case $reload_flag in
6612 "" | " "*) ;;
6613 *) reload_flag=" $reload_flag" ;;
6614 esac
6615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6616 case $host_os in
6617   cygwin* | mingw* | pw32* | cegcc*)
6618     if test "$GCC" != yes; then
6619       reload_cmds=false
6620     fi
6621     ;;
6622   darwin*)
6623     if test "$GCC" = yes; then
6624       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6625     else
6626       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6627     fi
6628     ;;
6629 esac
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_OBJDUMP+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$OBJDUMP"; then
6648   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655     for ac_exec_ext in '' $ac_executable_extensions; do
6656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662   done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 OBJDUMP=$ac_cv_prog_OBJDUMP
6668 if test -n "$OBJDUMP"; then
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6670 $as_echo "$OBJDUMP" >&6; }
6671 else
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_OBJDUMP"; then
6679   ac_ct_OBJDUMP=$OBJDUMP
6680   # Extract the first word of "objdump", so it can be a program name with args.
6681 set dummy objdump; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$ac_ct_OBJDUMP"; then
6688   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6708 if test -n "$ac_ct_OBJDUMP"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6710 $as_echo "$ac_ct_OBJDUMP" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716   if test "x$ac_ct_OBJDUMP" = x; then
6717     OBJDUMP="false"
6718   else
6719     case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725     OBJDUMP=$ac_ct_OBJDUMP
6726   fi
6727 else
6728   OBJDUMP="$ac_cv_prog_OBJDUMP"
6729 fi
6730
6731 test -z "$OBJDUMP" && OBJDUMP=objdump
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6742 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6743 if ${lt_cv_deplibs_check_method+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   lt_cv_file_magic_cmd='$MAGIC_CMD'
6747 lt_cv_file_magic_test_file=
6748 lt_cv_deplibs_check_method='unknown'
6749 # Need to set the preceding variable on all platforms that support
6750 # interlibrary dependencies.
6751 # 'none' -- dependencies not supported.
6752 # `unknown' -- same as none, but documents that we really don't know.
6753 # 'pass_all' -- all dependencies passed with no checks.
6754 # 'test_compile' -- check by making test program.
6755 # 'file_magic [[regex]]' -- check by looking for files in library path
6756 # which responds to the $file_magic_cmd with a given extended regex.
6757 # If you have `file' or equivalent on your system and you're not sure
6758 # whether `pass_all' will *always* work, you probably want this one.
6759
6760 case $host_os in
6761 aix[4-9]*)
6762   lt_cv_deplibs_check_method=pass_all
6763   ;;
6764
6765 beos*)
6766   lt_cv_deplibs_check_method=pass_all
6767   ;;
6768
6769 bsdi[45]*)
6770   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6771   lt_cv_file_magic_cmd='/usr/bin/file -L'
6772   lt_cv_file_magic_test_file=/shlib/libc.so
6773   ;;
6774
6775 cygwin*)
6776   # func_win32_libid is a shell function defined in ltmain.sh
6777   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6778   lt_cv_file_magic_cmd='func_win32_libid'
6779   ;;
6780
6781 mingw* | pw32*)
6782   # Base MSYS/MinGW do not provide the 'file' command needed by
6783   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6784   # unless we find 'file', for example because we are cross-compiling.
6785   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6786   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6787     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6788     lt_cv_file_magic_cmd='func_win32_libid'
6789   else
6790     # Keep this pattern in sync with the one in func_win32_libid.
6791     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6792     lt_cv_file_magic_cmd='$OBJDUMP -f'
6793   fi
6794   ;;
6795
6796 cegcc*)
6797   # use the weaker test based on 'objdump'. See mingw*.
6798   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6799   lt_cv_file_magic_cmd='$OBJDUMP -f'
6800   ;;
6801
6802 darwin* | rhapsody*)
6803   lt_cv_deplibs_check_method=pass_all
6804   ;;
6805
6806 freebsd* | dragonfly*)
6807   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6808     case $host_cpu in
6809     i*86 )
6810       # Not sure whether the presence of OpenBSD here was a mistake.
6811       # Let's accept both of them until this is cleared up.
6812       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6813       lt_cv_file_magic_cmd=/usr/bin/file
6814       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6815       ;;
6816     esac
6817   else
6818     lt_cv_deplibs_check_method=pass_all
6819   fi
6820   ;;
6821
6822 haiku*)
6823   lt_cv_deplibs_check_method=pass_all
6824   ;;
6825
6826 hpux10.20* | hpux11*)
6827   lt_cv_file_magic_cmd=/usr/bin/file
6828   case $host_cpu in
6829   ia64*)
6830     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6831     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6832     ;;
6833   hppa*64*)
6834     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]'
6835     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6836     ;;
6837   *)
6838     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6839     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6840     ;;
6841   esac
6842   ;;
6843
6844 interix[3-9]*)
6845   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6846   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6847   ;;
6848
6849 irix5* | irix6* | nonstopux*)
6850   case $LD in
6851   *-32|*"-32 ") libmagic=32-bit;;
6852   *-n32|*"-n32 ") libmagic=N32;;
6853   *-64|*"-64 ") libmagic=64-bit;;
6854   *) libmagic=never-match;;
6855   esac
6856   lt_cv_deplibs_check_method=pass_all
6857   ;;
6858
6859 # This must be glibc/ELF.
6860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6861   lt_cv_deplibs_check_method=pass_all
6862   ;;
6863
6864 netbsd* | netbsdelf*-gnu)
6865   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6867   else
6868     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6869   fi
6870   ;;
6871
6872 newos6*)
6873   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6874   lt_cv_file_magic_cmd=/usr/bin/file
6875   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6876   ;;
6877
6878 *nto* | *qnx*)
6879   lt_cv_deplibs_check_method=pass_all
6880   ;;
6881
6882 openbsd*)
6883   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6884     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6885   else
6886     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6887   fi
6888   ;;
6889
6890 osf3* | osf4* | osf5*)
6891   lt_cv_deplibs_check_method=pass_all
6892   ;;
6893
6894 rdos*)
6895   lt_cv_deplibs_check_method=pass_all
6896   ;;
6897
6898 solaris*)
6899   lt_cv_deplibs_check_method=pass_all
6900   ;;
6901
6902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6903   lt_cv_deplibs_check_method=pass_all
6904   ;;
6905
6906 sysv4 | sysv4.3*)
6907   case $host_vendor in
6908   motorola)
6909     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]'
6910     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6911     ;;
6912   ncr)
6913     lt_cv_deplibs_check_method=pass_all
6914     ;;
6915   sequent)
6916     lt_cv_file_magic_cmd='/bin/file'
6917     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6918     ;;
6919   sni)
6920     lt_cv_file_magic_cmd='/bin/file'
6921     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6922     lt_cv_file_magic_test_file=/lib/libc.so
6923     ;;
6924   siemens)
6925     lt_cv_deplibs_check_method=pass_all
6926     ;;
6927   pc)
6928     lt_cv_deplibs_check_method=pass_all
6929     ;;
6930   esac
6931   ;;
6932
6933 tpf*)
6934   lt_cv_deplibs_check_method=pass_all
6935   ;;
6936 esac
6937
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6940 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6941
6942 file_magic_glob=
6943 want_nocaseglob=no
6944 if test "$build" = "$host"; then
6945   case $host_os in
6946   mingw* | pw32*)
6947     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6948       want_nocaseglob=yes
6949     else
6950       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6951     fi
6952     ;;
6953   esac
6954 fi
6955
6956 file_magic_cmd=$lt_cv_file_magic_cmd
6957 deplibs_check_method=$lt_cv_deplibs_check_method
6958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 if test -n "$ac_tool_prefix"; then
6982   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_DLLTOOL+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$DLLTOOL"; then
6990   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 DLLTOOL=$ac_cv_prog_DLLTOOL
7010 if test -n "$DLLTOOL"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7012 $as_echo "$DLLTOOL" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_DLLTOOL"; then
7021   ac_ct_DLLTOOL=$DLLTOOL
7022   # Extract the first word of "dlltool", so it can be a program name with args.
7023 set dummy dlltool; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   if test -n "$ac_ct_DLLTOOL"; then
7030   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044   done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7050 if test -n "$ac_ct_DLLTOOL"; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7052 $as_echo "$ac_ct_DLLTOOL" >&6; }
7053 else
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058   if test "x$ac_ct_DLLTOOL" = x; then
7059     DLLTOOL="false"
7060   else
7061     case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067     DLLTOOL=$ac_ct_DLLTOOL
7068   fi
7069 else
7070   DLLTOOL="$ac_cv_prog_DLLTOOL"
7071 fi
7072
7073 test -z "$DLLTOOL" && DLLTOOL=dlltool
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7085 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7086 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   lt_cv_sharedlib_from_linklib_cmd='unknown'
7090
7091 case $host_os in
7092 cygwin* | mingw* | pw32* | cegcc*)
7093   # two different shell functions defined in ltmain.sh
7094   # decide which to use based on capabilities of $DLLTOOL
7095   case `$DLLTOOL --help 2>&1` in
7096   *--identify-strict*)
7097     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7098     ;;
7099   *)
7100     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7101     ;;
7102   esac
7103   ;;
7104 *)
7105   # fallback: assume linklib IS sharedlib
7106   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7107   ;;
7108 esac
7109
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7112 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7113 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7114 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7115
7116
7117
7118
7119
7120
7121
7122 if test -n "$ac_tool_prefix"; then
7123   for ac_prog in ar
7124   do
7125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_AR+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$AR"; then
7133   ac_cv_prog_AR="$AR" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 AR=$ac_cv_prog_AR
7153 if test -n "$AR"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7155 $as_echo "$AR" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162     test -n "$AR" && break
7163   done
7164 fi
7165 if test -z "$AR"; then
7166   ac_ct_AR=$AR
7167   for ac_prog in ar
7168 do
7169   # Extract the first word of "$ac_prog", so it can be a program name with args.
7170 set dummy $ac_prog; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$ac_ct_AR"; then
7177   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186     ac_cv_prog_ac_ct_AR="$ac_prog"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7197 if test -n "$ac_ct_AR"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7199 $as_echo "$ac_ct_AR" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206   test -n "$ac_ct_AR" && break
7207 done
7208
7209   if test "x$ac_ct_AR" = x; then
7210     AR="false"
7211   else
7212     case $cross_compiling:$ac_tool_warned in
7213 yes:)
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7217 esac
7218     AR=$ac_ct_AR
7219   fi
7220 fi
7221
7222 : ${AR=ar}
7223 : ${AR_FLAGS=cru}
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7236 $as_echo_n "checking for archiver @FILE support... " >&6; }
7237 if ${lt_cv_ar_at_file+:} false; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   lt_cv_ar_at_file=no
7241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h.  */
7243
7244 int
7245 main ()
7246 {
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"; then :
7253   echo conftest.$ac_objext > conftest.lst
7254       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7255       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7256   (eval $lt_ar_try) 2>&5
7257   ac_status=$?
7258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259   test $ac_status = 0; }
7260       if test "$ac_status" -eq 0; then
7261         # Ensure the archiver fails upon bogus file names.
7262         rm -f conftest.$ac_objext libconftest.a
7263         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7264   (eval $lt_ar_try) 2>&5
7265   ac_status=$?
7266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267   test $ac_status = 0; }
7268         if test "$ac_status" -ne 0; then
7269           lt_cv_ar_at_file=@
7270         fi
7271       fi
7272       rm -f conftest.* libconftest.a
7273
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7279 $as_echo "$lt_cv_ar_at_file" >&6; }
7280
7281 if test "x$lt_cv_ar_at_file" = xno; then
7282   archiver_list_spec=
7283 else
7284   archiver_list_spec=$lt_cv_ar_at_file
7285 fi
7286
7287
7288
7289
7290
7291
7292
7293 if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_STRIP+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$STRIP"; then
7302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 STRIP=$ac_cv_prog_STRIP
7322 if test -n "$STRIP"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7324 $as_echo "$STRIP" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_STRIP"; then
7333   ac_ct_STRIP=$STRIP
7334   # Extract the first word of "strip", so it can be a program name with args.
7335 set dummy strip; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_STRIP"; then
7342   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_STRIP="strip"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7362 if test -n "$ac_ct_STRIP"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7364 $as_echo "$ac_ct_STRIP" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_STRIP" = x; then
7371     STRIP=":"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     STRIP=$ac_ct_STRIP
7380   fi
7381 else
7382   STRIP="$ac_cv_prog_STRIP"
7383 fi
7384
7385 test -z "$STRIP" && STRIP=:
7386
7387
7388
7389
7390
7391
7392 if test -n "$ac_tool_prefix"; then
7393   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_RANLIB+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$RANLIB"; then
7401   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 RANLIB=$ac_cv_prog_RANLIB
7421 if test -n "$RANLIB"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7423 $as_echo "$RANLIB" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429
7430 fi
7431 if test -z "$ac_cv_prog_RANLIB"; then
7432   ac_ct_RANLIB=$RANLIB
7433   # Extract the first word of "ranlib", so it can be a program name with args.
7434 set dummy ranlib; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$ac_ct_RANLIB"; then
7441   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_ac_ct_RANLIB="ranlib"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7461 if test -n "$ac_ct_RANLIB"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7463 $as_echo "$ac_ct_RANLIB" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469   if test "x$ac_ct_RANLIB" = x; then
7470     RANLIB=":"
7471   else
7472     case $cross_compiling:$ac_tool_warned in
7473 yes:)
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7477 esac
7478     RANLIB=$ac_ct_RANLIB
7479   fi
7480 else
7481   RANLIB="$ac_cv_prog_RANLIB"
7482 fi
7483
7484 test -z "$RANLIB" && RANLIB=:
7485
7486
7487
7488
7489
7490
7491 # Determine commands to create old-style static archives.
7492 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7493 old_postinstall_cmds='chmod 644 $oldlib'
7494 old_postuninstall_cmds=
7495
7496 if test -n "$RANLIB"; then
7497   case $host_os in
7498   openbsd*)
7499     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7500     ;;
7501   *)
7502     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7503     ;;
7504   esac
7505   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7506 fi
7507
7508 case $host_os in
7509   darwin*)
7510     lock_old_archive_extraction=yes ;;
7511   *)
7512     lock_old_archive_extraction=no ;;
7513 esac
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 # If no C compiler was specified, use CC.
7554 LTCC=${LTCC-"$CC"}
7555
7556 # If no C compiler flags were specified, use CFLAGS.
7557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7558
7559 # Allow CC to be a program name with arguments.
7560 compiler=$CC
7561
7562
7563 # Check for command to grab the raw symbol name followed by C symbol from nm.
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7565 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7566 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569
7570 # These are sane defaults that work on at least a few old systems.
7571 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7572
7573 # Character class describing NM global symbol codes.
7574 symcode='[BCDEGRST]'
7575
7576 # Regexp to match symbols that can be accessed directly from C.
7577 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7578
7579 # Define system-specific variables.
7580 case $host_os in
7581 aix*)
7582   symcode='[BCDT]'
7583   ;;
7584 cygwin* | mingw* | pw32* | cegcc*)
7585   symcode='[ABCDGISTW]'
7586   ;;
7587 hpux*)
7588   if test "$host_cpu" = ia64; then
7589     symcode='[ABCDEGRST]'
7590   fi
7591   ;;
7592 irix* | nonstopux*)
7593   symcode='[BCDEGRST]'
7594   ;;
7595 osf*)
7596   symcode='[BCDEGQRST]'
7597   ;;
7598 solaris*)
7599   symcode='[BDRT]'
7600   ;;
7601 sco3.2v5*)
7602   symcode='[DT]'
7603   ;;
7604 sysv4.2uw2*)
7605   symcode='[DT]'
7606   ;;
7607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7608   symcode='[ABDT]'
7609   ;;
7610 sysv4)
7611   symcode='[DFNSTU]'
7612   ;;
7613 esac
7614
7615 # If we're using GNU nm, then use its standard symbol codes.
7616 case `$NM -V 2>&1` in
7617 *GNU* | *'with BFD'*)
7618   symcode='[ABCDGIRSTW]' ;;
7619 esac
7620
7621 # Transform an extracted symbol line into a proper C declaration.
7622 # Some systems (esp. on ia64) link data and code symbols differently,
7623 # so use this general approach.
7624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7625
7626 # Transform an extracted symbol line into symbol name and symbol address
7627 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7629
7630 # Handle CRLF in mingw tool chain
7631 opt_cr=
7632 case $build_os in
7633 mingw*)
7634   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7635   ;;
7636 esac
7637
7638 # Try without a prefix underscore, then with it.
7639 for ac_symprfx in "" "_"; do
7640
7641   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7642   symxfrm="\\1 $ac_symprfx\\2 \\2"
7643
7644   # Write the raw and C identifiers.
7645   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7646     # Fake it for dumpbin and say T for any non-static function
7647     # and D for any global variable.
7648     # Also find C++ and __fastcall symbols from MSVC++,
7649     # which start with @ or ?.
7650     lt_cv_sys_global_symbol_pipe="$AWK '"\
7651 "     {last_section=section; section=\$ 3};"\
7652 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7653 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7654 "     \$ 0!~/External *\|/{next};"\
7655 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7656 "     {if(hide[section]) next};"\
7657 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7658 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7659 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7660 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7661 "     ' prfx=^$ac_symprfx"
7662   else
7663     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7664   fi
7665   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7666
7667   # Check to see that the pipe works correctly.
7668   pipe_works=no
7669
7670   rm -f conftest*
7671   cat > conftest.$ac_ext <<_LT_EOF
7672 #ifdef __cplusplus
7673 extern "C" {
7674 #endif
7675 char nm_test_var;
7676 void nm_test_func(void);
7677 void nm_test_func(void){}
7678 #ifdef __cplusplus
7679 }
7680 #endif
7681 int main(){nm_test_var='a';nm_test_func();return(0);}
7682 _LT_EOF
7683
7684   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685   (eval $ac_compile) 2>&5
7686   ac_status=$?
7687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688   test $ac_status = 0; }; then
7689     # Now try to grab the symbols.
7690     nlist=conftest.nm
7691     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7692   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7693   ac_status=$?
7694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7695   test $ac_status = 0; } && test -s "$nlist"; then
7696       # Try sorting and uniquifying the output.
7697       if sort "$nlist" | uniq > "$nlist"T; then
7698         mv -f "$nlist"T "$nlist"
7699       else
7700         rm -f "$nlist"T
7701       fi
7702
7703       # Make sure that we snagged all the symbols we need.
7704       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7705         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7706           cat <<_LT_EOF > conftest.$ac_ext
7707 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7708 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7709 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7710    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7711 # define LT_DLSYM_CONST
7712 #elif defined(__osf__)
7713 /* This system does not cope well with relocations in const data.  */
7714 # define LT_DLSYM_CONST
7715 #else
7716 # define LT_DLSYM_CONST const
7717 #endif
7718
7719 #ifdef __cplusplus
7720 extern "C" {
7721 #endif
7722
7723 _LT_EOF
7724           # Now generate the symbol file.
7725           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7726
7727           cat <<_LT_EOF >> conftest.$ac_ext
7728
7729 /* The mapping between symbol names and symbols.  */
7730 LT_DLSYM_CONST struct {
7731   const char *name;
7732   void       *address;
7733 }
7734 lt__PROGRAM__LTX_preloaded_symbols[] =
7735 {
7736   { "@PROGRAM@", (void *) 0 },
7737 _LT_EOF
7738           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7739           cat <<\_LT_EOF >> conftest.$ac_ext
7740   {0, (void *) 0}
7741 };
7742
7743 /* This works around a problem in FreeBSD linker */
7744 #ifdef FREEBSD_WORKAROUND
7745 static const void *lt_preloaded_setup() {
7746   return lt__PROGRAM__LTX_preloaded_symbols;
7747 }
7748 #endif
7749
7750 #ifdef __cplusplus
7751 }
7752 #endif
7753 _LT_EOF
7754           # Now try linking the two files.
7755           mv conftest.$ac_objext conftstm.$ac_objext
7756           lt_globsym_save_LIBS=$LIBS
7757           lt_globsym_save_CFLAGS=$CFLAGS
7758           LIBS="conftstm.$ac_objext"
7759           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7760           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7761   (eval $ac_link) 2>&5
7762   ac_status=$?
7763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7765             pipe_works=yes
7766           fi
7767           LIBS=$lt_globsym_save_LIBS
7768           CFLAGS=$lt_globsym_save_CFLAGS
7769         else
7770           echo "cannot find nm_test_func in $nlist" >&5
7771         fi
7772       else
7773         echo "cannot find nm_test_var in $nlist" >&5
7774       fi
7775     else
7776       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7777     fi
7778   else
7779     echo "$progname: failed program was:" >&5
7780     cat conftest.$ac_ext >&5
7781   fi
7782   rm -rf conftest* conftst*
7783
7784   # Do not use the global_symbol_pipe unless it works.
7785   if test "$pipe_works" = yes; then
7786     break
7787   else
7788     lt_cv_sys_global_symbol_pipe=
7789   fi
7790 done
7791
7792 fi
7793
7794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7795   lt_cv_sys_global_symbol_to_cdecl=
7796 fi
7797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7799 $as_echo "failed" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7802 $as_echo "ok" >&6; }
7803 fi
7804
7805 # Response file support.
7806 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7807   nm_file_list_spec='@'
7808 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7809   nm_file_list_spec='@'
7810 fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7839 $as_echo_n "checking for sysroot... " >&6; }
7840
7841 # Check whether --with-sysroot was given.
7842 if test "${with_sysroot+set}" = set; then :
7843   withval=$with_sysroot;
7844 else
7845   with_sysroot=no
7846 fi
7847
7848
7849 lt_sysroot=
7850 case ${with_sysroot} in #(
7851  yes)
7852    if test "$GCC" = yes; then
7853      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7854    fi
7855    ;; #(
7856  /*)
7857    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7858    ;; #(
7859  no|'')
7860    ;; #(
7861  *)
7862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7863 $as_echo "${with_sysroot}" >&6; }
7864    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7865    ;;
7866 esac
7867
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7869 $as_echo "${lt_sysroot:-no}" >&6; }
7870
7871
7872
7873
7874
7875 # Check whether --enable-libtool-lock was given.
7876 if test "${enable_libtool_lock+set}" = set; then :
7877   enableval=$enable_libtool_lock;
7878 fi
7879
7880 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7881
7882 # Some flags need to be propagated to the compiler or linker for good
7883 # libtool support.
7884 case $host in
7885 ia64-*-hpux*)
7886   # Find out which ABI we are using.
7887   echo 'int i;' > conftest.$ac_ext
7888   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7889   (eval $ac_compile) 2>&5
7890   ac_status=$?
7891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892   test $ac_status = 0; }; then
7893     case `/usr/bin/file conftest.$ac_objext` in
7894       *ELF-32*)
7895         HPUX_IA64_MODE="32"
7896         ;;
7897       *ELF-64*)
7898         HPUX_IA64_MODE="64"
7899         ;;
7900     esac
7901   fi
7902   rm -rf conftest*
7903   ;;
7904 *-*-irix6*)
7905   # Find out which ABI we are using.
7906   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908   (eval $ac_compile) 2>&5
7909   ac_status=$?
7910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911   test $ac_status = 0; }; then
7912     if test "$lt_cv_prog_gnu_ld" = yes; then
7913       case `/usr/bin/file conftest.$ac_objext` in
7914         *32-bit*)
7915           LD="${LD-ld} -melf32bsmip"
7916           ;;
7917         *N32*)
7918           LD="${LD-ld} -melf32bmipn32"
7919           ;;
7920         *64-bit*)
7921           LD="${LD-ld} -melf64bmip"
7922         ;;
7923       esac
7924     else
7925       case `/usr/bin/file conftest.$ac_objext` in
7926         *32-bit*)
7927           LD="${LD-ld} -32"
7928           ;;
7929         *N32*)
7930           LD="${LD-ld} -n32"
7931           ;;
7932         *64-bit*)
7933           LD="${LD-ld} -64"
7934           ;;
7935       esac
7936     fi
7937   fi
7938   rm -rf conftest*
7939   ;;
7940
7941 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7942 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7943   # Find out which ABI we are using.
7944   echo 'int i;' > conftest.$ac_ext
7945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7946   (eval $ac_compile) 2>&5
7947   ac_status=$?
7948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949   test $ac_status = 0; }; then
7950     case `/usr/bin/file conftest.o` in
7951       *32-bit*)
7952         case $host in
7953           x86_64-*kfreebsd*-gnu)
7954             LD="${LD-ld} -m elf_i386_fbsd"
7955             ;;
7956           x86_64-*linux*)
7957             case `/usr/bin/file conftest.o` in
7958               *x86-64*)
7959                 LD="${LD-ld} -m elf32_x86_64"
7960                 ;;
7961               *)
7962                 LD="${LD-ld} -m elf_i386"
7963                 ;;
7964             esac
7965             ;;
7966           powerpc64le-*)
7967             LD="${LD-ld} -m elf32lppclinux"
7968             ;;
7969           powerpc64-*)
7970             LD="${LD-ld} -m elf32ppclinux"
7971             ;;
7972           s390x-*linux*)
7973             LD="${LD-ld} -m elf_s390"
7974             ;;
7975           sparc64-*linux*)
7976             LD="${LD-ld} -m elf32_sparc"
7977             ;;
7978         esac
7979         ;;
7980       *64-bit*)
7981         case $host in
7982           x86_64-*kfreebsd*-gnu)
7983             LD="${LD-ld} -m elf_x86_64_fbsd"
7984             ;;
7985           x86_64-*linux*)
7986             LD="${LD-ld} -m elf_x86_64"
7987             ;;
7988           powerpcle-*)
7989             LD="${LD-ld} -m elf64lppc"
7990             ;;
7991           powerpc-*)
7992             LD="${LD-ld} -m elf64ppc"
7993             ;;
7994           s390*-*linux*|s390*-*tpf*)
7995             LD="${LD-ld} -m elf64_s390"
7996             ;;
7997           sparc*-*linux*)
7998             LD="${LD-ld} -m elf64_sparc"
7999             ;;
8000         esac
8001         ;;
8002     esac
8003   fi
8004   rm -rf conftest*
8005   ;;
8006
8007 *-*-sco3.2v5*)
8008   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8009   SAVE_CFLAGS="$CFLAGS"
8010   CFLAGS="$CFLAGS -belf"
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8012 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8013 if ${lt_cv_cc_needs_belf+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   ac_ext=c
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h.  */
8024
8025 int
8026 main ()
8027 {
8028
8029   ;
8030   return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_link "$LINENO"; then :
8034   lt_cv_cc_needs_belf=yes
8035 else
8036   lt_cv_cc_needs_belf=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext \
8039     conftest$ac_exeext conftest.$ac_ext
8040      ac_ext=c
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8048 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8049   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8050     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8051     CFLAGS="$SAVE_CFLAGS"
8052   fi
8053   ;;
8054 *-*solaris*)
8055   # Find out which ABI we are using.
8056   echo 'int i;' > conftest.$ac_ext
8057   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8058   (eval $ac_compile) 2>&5
8059   ac_status=$?
8060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061   test $ac_status = 0; }; then
8062     case `/usr/bin/file conftest.o` in
8063     *64-bit*)
8064       case $lt_cv_prog_gnu_ld in
8065       yes*)
8066         case $host in
8067         i?86-*-solaris*)
8068           LD="${LD-ld} -m elf_x86_64"
8069           ;;
8070         sparc*-*-solaris*)
8071           LD="${LD-ld} -m elf64_sparc"
8072           ;;
8073         esac
8074         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8075         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8076           LD="${LD-ld}_sol2"
8077         fi
8078         ;;
8079       *)
8080         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8081           LD="${LD-ld} -64"
8082         fi
8083         ;;
8084       esac
8085       ;;
8086     esac
8087   fi
8088   rm -rf conftest*
8089   ;;
8090 esac
8091
8092 need_locks="$enable_libtool_lock"
8093
8094 if test -n "$ac_tool_prefix"; then
8095   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8096 set dummy ${ac_tool_prefix}mt; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8100   $as_echo_n "(cached) " >&6
8101 else
8102   if test -n "$MANIFEST_TOOL"; then
8103   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   test -z "$as_dir" && as_dir=.
8110     for ac_exec_ext in '' $ac_executable_extensions; do
8111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114     break 2
8115   fi
8116 done
8117   done
8118 IFS=$as_save_IFS
8119
8120 fi
8121 fi
8122 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8123 if test -n "$MANIFEST_TOOL"; then
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8125 $as_echo "$MANIFEST_TOOL" >&6; }
8126 else
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 fi
8130
8131
8132 fi
8133 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8134   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8135   # Extract the first word of "mt", so it can be a program name with args.
8136 set dummy mt; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8140   $as_echo_n "(cached) " >&6
8141 else
8142   if test -n "$ac_ct_MANIFEST_TOOL"; then
8143   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148   IFS=$as_save_IFS
8149   test -z "$as_dir" && as_dir=.
8150     for ac_exec_ext in '' $ac_executable_extensions; do
8151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154     break 2
8155   fi
8156 done
8157   done
8158 IFS=$as_save_IFS
8159
8160 fi
8161 fi
8162 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8163 if test -n "$ac_ct_MANIFEST_TOOL"; then
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8165 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8166 else
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8169 fi
8170
8171   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8172     MANIFEST_TOOL=":"
8173   else
8174     case $cross_compiling:$ac_tool_warned in
8175 yes:)
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8178 ac_tool_warned=yes ;;
8179 esac
8180     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8181   fi
8182 else
8183   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8184 fi
8185
8186 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8188 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8189 if ${lt_cv_path_mainfest_tool+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   lt_cv_path_mainfest_tool=no
8193   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8194   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8195   cat conftest.err >&5
8196   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8197     lt_cv_path_mainfest_tool=yes
8198   fi
8199   rm -f conftest*
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8202 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8203 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8204   MANIFEST_TOOL=:
8205 fi
8206
8207
8208
8209
8210
8211
8212   case $host_os in
8213     rhapsody* | darwin*)
8214     if test -n "$ac_tool_prefix"; then
8215   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   if test -n "$DSYMUTIL"; then
8223   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8243 if test -n "$DSYMUTIL"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8245 $as_echo "$DSYMUTIL" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_DSYMUTIL"; then
8254   ac_ct_DSYMUTIL=$DSYMUTIL
8255   # Extract the first word of "dsymutil", so it can be a program name with args.
8256 set dummy dsymutil; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   if test -n "$ac_ct_DSYMUTIL"; then
8263   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268   IFS=$as_save_IFS
8269   test -z "$as_dir" && as_dir=.
8270     for ac_exec_ext in '' $ac_executable_extensions; do
8271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274     break 2
8275   fi
8276 done
8277   done
8278 IFS=$as_save_IFS
8279
8280 fi
8281 fi
8282 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8283 if test -n "$ac_ct_DSYMUTIL"; then
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8285 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8286 else
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291   if test "x$ac_ct_DSYMUTIL" = x; then
8292     DSYMUTIL=":"
8293   else
8294     case $cross_compiling:$ac_tool_warned in
8295 yes:)
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8298 ac_tool_warned=yes ;;
8299 esac
8300     DSYMUTIL=$ac_ct_DSYMUTIL
8301   fi
8302 else
8303   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8304 fi
8305
8306     if test -n "$ac_tool_prefix"; then
8307   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8308 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_NMEDIT+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   if test -n "$NMEDIT"; then
8315   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322     for ac_exec_ext in '' $ac_executable_extensions; do
8323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329   done
8330 IFS=$as_save_IFS
8331
8332 fi
8333 fi
8334 NMEDIT=$ac_cv_prog_NMEDIT
8335 if test -n "$NMEDIT"; then
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8337 $as_echo "$NMEDIT" >&6; }
8338 else
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341 fi
8342
8343
8344 fi
8345 if test -z "$ac_cv_prog_NMEDIT"; then
8346   ac_ct_NMEDIT=$NMEDIT
8347   # Extract the first word of "nmedit", so it can be a program name with args.
8348 set dummy nmedit; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   if test -n "$ac_ct_NMEDIT"; then
8355   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360   IFS=$as_save_IFS
8361   test -z "$as_dir" && as_dir=.
8362     for ac_exec_ext in '' $ac_executable_extensions; do
8363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366     break 2
8367   fi
8368 done
8369   done
8370 IFS=$as_save_IFS
8371
8372 fi
8373 fi
8374 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8375 if test -n "$ac_ct_NMEDIT"; then
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8377 $as_echo "$ac_ct_NMEDIT" >&6; }
8378 else
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383   if test "x$ac_ct_NMEDIT" = x; then
8384     NMEDIT=":"
8385   else
8386     case $cross_compiling:$ac_tool_warned in
8387 yes:)
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8390 ac_tool_warned=yes ;;
8391 esac
8392     NMEDIT=$ac_ct_NMEDIT
8393   fi
8394 else
8395   NMEDIT="$ac_cv_prog_NMEDIT"
8396 fi
8397
8398     if test -n "$ac_tool_prefix"; then
8399   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8400 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_LIPO+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   if test -n "$LIPO"; then
8407   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414     for ac_exec_ext in '' $ac_executable_extensions; do
8415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418     break 2
8419   fi
8420 done
8421   done
8422 IFS=$as_save_IFS
8423
8424 fi
8425 fi
8426 LIPO=$ac_cv_prog_LIPO
8427 if test -n "$LIPO"; then
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8429 $as_echo "$LIPO" >&6; }
8430 else
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435
8436 fi
8437 if test -z "$ac_cv_prog_LIPO"; then
8438   ac_ct_LIPO=$LIPO
8439   # Extract the first word of "lipo", so it can be a program name with args.
8440 set dummy lipo; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   if test -n "$ac_ct_LIPO"; then
8447   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452   IFS=$as_save_IFS
8453   test -z "$as_dir" && as_dir=.
8454     for ac_exec_ext in '' $ac_executable_extensions; do
8455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456     ac_cv_prog_ac_ct_LIPO="lipo"
8457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458     break 2
8459   fi
8460 done
8461   done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8467 if test -n "$ac_ct_LIPO"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8469 $as_echo "$ac_ct_LIPO" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475   if test "x$ac_ct_LIPO" = x; then
8476     LIPO=":"
8477   else
8478     case $cross_compiling:$ac_tool_warned in
8479 yes:)
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8483 esac
8484     LIPO=$ac_ct_LIPO
8485   fi
8486 else
8487   LIPO="$ac_cv_prog_LIPO"
8488 fi
8489
8490     if test -n "$ac_tool_prefix"; then
8491   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}otool; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_OTOOL+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   if test -n "$OTOOL"; then
8499   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506     for ac_exec_ext in '' $ac_executable_extensions; do
8507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513   done
8514 IFS=$as_save_IFS
8515
8516 fi
8517 fi
8518 OTOOL=$ac_cv_prog_OTOOL
8519 if test -n "$OTOOL"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8521 $as_echo "$OTOOL" >&6; }
8522 else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527
8528 fi
8529 if test -z "$ac_cv_prog_OTOOL"; then
8530   ac_ct_OTOOL=$OTOOL
8531   # Extract the first word of "otool", so it can be a program name with args.
8532 set dummy otool; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   if test -n "$ac_ct_OTOOL"; then
8539   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544   IFS=$as_save_IFS
8545   test -z "$as_dir" && as_dir=.
8546     for ac_exec_ext in '' $ac_executable_extensions; do
8547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548     ac_cv_prog_ac_ct_OTOOL="otool"
8549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550     break 2
8551   fi
8552 done
8553   done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8559 if test -n "$ac_ct_OTOOL"; then
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8561 $as_echo "$ac_ct_OTOOL" >&6; }
8562 else
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567   if test "x$ac_ct_OTOOL" = x; then
8568     OTOOL=":"
8569   else
8570     case $cross_compiling:$ac_tool_warned in
8571 yes:)
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8575 esac
8576     OTOOL=$ac_ct_OTOOL
8577   fi
8578 else
8579   OTOOL="$ac_cv_prog_OTOOL"
8580 fi
8581
8582     if test -n "$ac_tool_prefix"; then
8583   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_OTOOL64+:} false; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$OTOOL64"; then
8591   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 OTOOL64=$ac_cv_prog_OTOOL64
8611 if test -n "$OTOOL64"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8613 $as_echo "$OTOOL64" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620 fi
8621 if test -z "$ac_cv_prog_OTOOL64"; then
8622   ac_ct_OTOOL64=$OTOOL64
8623   # Extract the first word of "otool64", so it can be a program name with args.
8624 set dummy otool64; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   if test -n "$ac_ct_OTOOL64"; then
8631   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638     for ac_exec_ext in '' $ac_executable_extensions; do
8639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640     ac_cv_prog_ac_ct_OTOOL64="otool64"
8641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645   done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8651 if test -n "$ac_ct_OTOOL64"; then
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8653 $as_echo "$ac_ct_OTOOL64" >&6; }
8654 else
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659   if test "x$ac_ct_OTOOL64" = x; then
8660     OTOOL64=":"
8661   else
8662     case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668     OTOOL64=$ac_ct_OTOOL64
8669   fi
8670 else
8671   OTOOL64="$ac_cv_prog_OTOOL64"
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8701 $as_echo_n "checking for -single_module linker flag... " >&6; }
8702 if ${lt_cv_apple_cc_single_mod+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   lt_cv_apple_cc_single_mod=no
8706       if test -z "${LT_MULTI_MODULE}"; then
8707         # By default we will add the -single_module flag. You can override
8708         # by either setting the environment variable LT_MULTI_MODULE
8709         # non-empty at configure time, or by adding -multi_module to the
8710         # link flags.
8711         rm -rf libconftest.dylib*
8712         echo "int foo(void){return 1;}" > conftest.c
8713         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8714 -dynamiclib -Wl,-single_module conftest.c" >&5
8715         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8716           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8717         _lt_result=$?
8718         # If there is a non-empty error log, and "single_module"
8719         # appears in it, assume the flag caused a linker warning
8720         if test -s conftest.err && $GREP single_module conftest.err; then
8721           cat conftest.err >&5
8722         # Otherwise, if the output was created with a 0 exit code from
8723         # the compiler, it worked.
8724         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8725           lt_cv_apple_cc_single_mod=yes
8726         else
8727           cat conftest.err >&5
8728         fi
8729         rm -rf libconftest.dylib*
8730         rm -f conftest.*
8731       fi
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8734 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8735
8736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8737 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8738 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   lt_cv_ld_exported_symbols_list=no
8742       save_LDFLAGS=$LDFLAGS
8743       echo "_main" > conftest.sym
8744       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8745       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h.  */
8747
8748 int
8749 main ()
8750 {
8751
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757   lt_cv_ld_exported_symbols_list=yes
8758 else
8759   lt_cv_ld_exported_symbols_list=no
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext \
8762     conftest$ac_exeext conftest.$ac_ext
8763         LDFLAGS="$save_LDFLAGS"
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8767 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8768
8769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8770 $as_echo_n "checking for -force_load linker flag... " >&6; }
8771 if ${lt_cv_ld_force_load+:} false; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   lt_cv_ld_force_load=no
8775       cat > conftest.c << _LT_EOF
8776 int forced_loaded() { return 2;}
8777 _LT_EOF
8778       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8779       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8780       echo "$AR cru libconftest.a conftest.o" >&5
8781       $AR cru libconftest.a conftest.o 2>&5
8782       echo "$RANLIB libconftest.a" >&5
8783       $RANLIB libconftest.a 2>&5
8784       cat > conftest.c << _LT_EOF
8785 int main() { return 0;}
8786 _LT_EOF
8787       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8788       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8789       _lt_result=$?
8790       if test -s conftest.err && $GREP force_load conftest.err; then
8791         cat conftest.err >&5
8792       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8793         lt_cv_ld_force_load=yes
8794       else
8795         cat conftest.err >&5
8796       fi
8797         rm -f conftest.err libconftest.a conftest conftest.c
8798         rm -rf conftest.dSYM
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8802 $as_echo "$lt_cv_ld_force_load" >&6; }
8803     case $host_os in
8804     rhapsody* | darwin1.[012])
8805       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8806     darwin1.*)
8807       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8808     darwin*) # darwin 5.x on
8809       # if running on 10.5 or later, the deployment target defaults
8810       # to the OS version, if on x86, and 10.4, the deployment
8811       # target defaults to 10.4. Don't you love it?
8812       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8813         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8814           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8815         10.[012]*)
8816           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8817         10.*)
8818           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8819       esac
8820     ;;
8821   esac
8822     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8823       _lt_dar_single_mod='$single_module'
8824     fi
8825     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8826       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8827     else
8828       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8829     fi
8830     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8831       _lt_dsymutil='~$DSYMUTIL $lib || :'
8832     else
8833       _lt_dsymutil=
8834     fi
8835     ;;
8836   esac
8837
8838 for ac_header in dlfcn.h
8839 do :
8840   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8841 "
8842 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8843   cat >>confdefs.h <<_ACEOF
8844 #define HAVE_DLFCN_H 1
8845 _ACEOF
8846
8847 fi
8848
8849 done
8850
8851
8852
8853
8854
8855 # Set options
8856 # Check whether --enable-static was given.
8857 if test "${enable_static+set}" = set; then :
8858   enableval=$enable_static; p=${PACKAGE-default}
8859     case $enableval in
8860     yes) enable_static=yes ;;
8861     no) enable_static=no ;;
8862     *)
8863      enable_static=no
8864       # Look at the argument we got.  We use all the common list separators.
8865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8866       for pkg in $enableval; do
8867         IFS="$lt_save_ifs"
8868         if test "X$pkg" = "X$p"; then
8869           enable_static=yes
8870         fi
8871       done
8872       IFS="$lt_save_ifs"
8873       ;;
8874     esac
8875 else
8876   enable_static=no
8877 fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888         enable_dlopen=no
8889
8890
8891   enable_win32_dll=no
8892
8893
8894             # Check whether --enable-shared was given.
8895 if test "${enable_shared+set}" = set; then :
8896   enableval=$enable_shared; p=${PACKAGE-default}
8897     case $enableval in
8898     yes) enable_shared=yes ;;
8899     no) enable_shared=no ;;
8900     *)
8901       enable_shared=no
8902       # Look at the argument we got.  We use all the common list separators.
8903       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8904       for pkg in $enableval; do
8905         IFS="$lt_save_ifs"
8906         if test "X$pkg" = "X$p"; then
8907           enable_shared=yes
8908         fi
8909       done
8910       IFS="$lt_save_ifs"
8911       ;;
8912     esac
8913 else
8914   enable_shared=yes
8915 fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 # Check whether --with-pic was given.
8928 if test "${with_pic+set}" = set; then :
8929   withval=$with_pic; lt_p=${PACKAGE-default}
8930     case $withval in
8931     yes|no) pic_mode=$withval ;;
8932     *)
8933       pic_mode=default
8934       # Look at the argument we got.  We use all the common list separators.
8935       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8936       for lt_pkg in $withval; do
8937         IFS="$lt_save_ifs"
8938         if test "X$lt_pkg" = "X$lt_p"; then
8939           pic_mode=yes
8940         fi
8941       done
8942       IFS="$lt_save_ifs"
8943       ;;
8944     esac
8945 else
8946   pic_mode=default
8947 fi
8948
8949
8950 test -z "$pic_mode" && pic_mode=default
8951
8952
8953
8954
8955
8956
8957
8958   # Check whether --enable-fast-install was given.
8959 if test "${enable_fast_install+set}" = set; then :
8960   enableval=$enable_fast_install; p=${PACKAGE-default}
8961     case $enableval in
8962     yes) enable_fast_install=yes ;;
8963     no) enable_fast_install=no ;;
8964     *)
8965       enable_fast_install=no
8966       # Look at the argument we got.  We use all the common list separators.
8967       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968       for pkg in $enableval; do
8969         IFS="$lt_save_ifs"
8970         if test "X$pkg" = "X$p"; then
8971           enable_fast_install=yes
8972         fi
8973       done
8974       IFS="$lt_save_ifs"
8975       ;;
8976     esac
8977 else
8978   enable_fast_install=yes
8979 fi
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991 # This can be used to rebuild libtool when needed
8992 LIBTOOL_DEPS="$ltmain"
8993
8994 # Always use our own libtool.
8995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 test -z "$LN_S" && LN_S="ln -s"
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 if test -n "${ZSH_VERSION+set}" ; then
9042    setopt NO_GLOB_SUBST
9043 fi
9044
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9046 $as_echo_n "checking for objdir... " >&6; }
9047 if ${lt_cv_objdir+:} false; then :
9048   $as_echo_n "(cached) " >&6
9049 else
9050   rm -f .libs 2>/dev/null
9051 mkdir .libs 2>/dev/null
9052 if test -d .libs; then
9053   lt_cv_objdir=.libs
9054 else
9055   # MS-DOS does not allow filenames that begin with a dot.
9056   lt_cv_objdir=_libs
9057 fi
9058 rmdir .libs 2>/dev/null
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9061 $as_echo "$lt_cv_objdir" >&6; }
9062 objdir=$lt_cv_objdir
9063
9064
9065
9066
9067
9068 cat >>confdefs.h <<_ACEOF
9069 #define LT_OBJDIR "$lt_cv_objdir/"
9070 _ACEOF
9071
9072
9073
9074
9075 case $host_os in
9076 aix3*)
9077   # AIX sometimes has problems with the GCC collect2 program.  For some
9078   # reason, if we set the COLLECT_NAMES environment variable, the problems
9079   # vanish in a puff of smoke.
9080   if test "X${COLLECT_NAMES+set}" != Xset; then
9081     COLLECT_NAMES=
9082     export COLLECT_NAMES
9083   fi
9084   ;;
9085 esac
9086
9087 # Global variables:
9088 ofile=libtool
9089 can_build_shared=yes
9090
9091 # All known linkers require a `.a' archive for static linking (except MSVC,
9092 # which needs '.lib').
9093 libext=a
9094
9095 with_gnu_ld="$lt_cv_prog_gnu_ld"
9096
9097 old_CC="$CC"
9098 old_CFLAGS="$CFLAGS"
9099
9100 # Set sane defaults for various variables
9101 test -z "$CC" && CC=cc
9102 test -z "$LTCC" && LTCC=$CC
9103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9104 test -z "$LD" && LD=ld
9105 test -z "$ac_objext" && ac_objext=o
9106
9107 for cc_temp in $compiler""; do
9108   case $cc_temp in
9109     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9110     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9111     \-*) ;;
9112     *) break;;
9113   esac
9114 done
9115 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9116
9117
9118 # Only perform the check for file, if the check method requires it
9119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9120 case $deplibs_check_method in
9121 file_magic*)
9122   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9125 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   case $MAGIC_CMD in
9129 [\\/*] |  ?:[\\/]*)
9130   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9131   ;;
9132 *)
9133   lt_save_MAGIC_CMD="$MAGIC_CMD"
9134   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9135   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9136   for ac_dir in $ac_dummy; do
9137     IFS="$lt_save_ifs"
9138     test -z "$ac_dir" && ac_dir=.
9139     if test -f $ac_dir/${ac_tool_prefix}file; then
9140       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9141       if test -n "$file_magic_test_file"; then
9142         case $deplibs_check_method in
9143         "file_magic "*)
9144           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9145           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9146           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9147             $EGREP "$file_magic_regex" > /dev/null; then
9148             :
9149           else
9150             cat <<_LT_EOF 1>&2
9151
9152 *** Warning: the command libtool uses to detect shared libraries,
9153 *** $file_magic_cmd, produces output that libtool cannot recognize.
9154 *** The result is that libtool may fail to recognize shared libraries
9155 *** as such.  This will affect the creation of libtool libraries that
9156 *** depend on shared libraries, but programs linked with such libtool
9157 *** libraries will work regardless of this problem.  Nevertheless, you
9158 *** may want to report the problem to your system manager and/or to
9159 *** bug-libtool@gnu.org
9160
9161 _LT_EOF
9162           fi ;;
9163         esac
9164       fi
9165       break
9166     fi
9167   done
9168   IFS="$lt_save_ifs"
9169   MAGIC_CMD="$lt_save_MAGIC_CMD"
9170   ;;
9171 esac
9172 fi
9173
9174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9175 if test -n "$MAGIC_CMD"; then
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9177 $as_echo "$MAGIC_CMD" >&6; }
9178 else
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9181 fi
9182
9183
9184
9185
9186
9187 if test -z "$lt_cv_path_MAGIC_CMD"; then
9188   if test -n "$ac_tool_prefix"; then
9189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9190 $as_echo_n "checking for file... " >&6; }
9191 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9192   $as_echo_n "(cached) " >&6
9193 else
9194   case $MAGIC_CMD in
9195 [\\/*] |  ?:[\\/]*)
9196   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9197   ;;
9198 *)
9199   lt_save_MAGIC_CMD="$MAGIC_CMD"
9200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9201   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9202   for ac_dir in $ac_dummy; do
9203     IFS="$lt_save_ifs"
9204     test -z "$ac_dir" && ac_dir=.
9205     if test -f $ac_dir/file; then
9206       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9207       if test -n "$file_magic_test_file"; then
9208         case $deplibs_check_method in
9209         "file_magic "*)
9210           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9211           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9212           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9213             $EGREP "$file_magic_regex" > /dev/null; then
9214             :
9215           else
9216             cat <<_LT_EOF 1>&2
9217
9218 *** Warning: the command libtool uses to detect shared libraries,
9219 *** $file_magic_cmd, produces output that libtool cannot recognize.
9220 *** The result is that libtool may fail to recognize shared libraries
9221 *** as such.  This will affect the creation of libtool libraries that
9222 *** depend on shared libraries, but programs linked with such libtool
9223 *** libraries will work regardless of this problem.  Nevertheless, you
9224 *** may want to report the problem to your system manager and/or to
9225 *** bug-libtool@gnu.org
9226
9227 _LT_EOF
9228           fi ;;
9229         esac
9230       fi
9231       break
9232     fi
9233   done
9234   IFS="$lt_save_ifs"
9235   MAGIC_CMD="$lt_save_MAGIC_CMD"
9236   ;;
9237 esac
9238 fi
9239
9240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241 if test -n "$MAGIC_CMD"; then
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9243 $as_echo "$MAGIC_CMD" >&6; }
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248
9249
9250   else
9251     MAGIC_CMD=:
9252   fi
9253 fi
9254
9255   fi
9256   ;;
9257 esac
9258
9259 # Use C for the default configuration in the libtool script
9260
9261 lt_save_CC="$CC"
9262 ac_ext=c
9263 ac_cpp='$CPP $CPPFLAGS'
9264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9267
9268
9269 # Source file extension for C test sources.
9270 ac_ext=c
9271
9272 # Object file extension for compiled C test sources.
9273 objext=o
9274 objext=$objext
9275
9276 # Code to be used in simple compile tests
9277 lt_simple_compile_test_code="int some_variable = 0;"
9278
9279 # Code to be used in simple link tests
9280 lt_simple_link_test_code='int main(){return(0);}'
9281
9282
9283
9284
9285
9286
9287
9288 # If no C compiler was specified, use CC.
9289 LTCC=${LTCC-"$CC"}
9290
9291 # If no C compiler flags were specified, use CFLAGS.
9292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9293
9294 # Allow CC to be a program name with arguments.
9295 compiler=$CC
9296
9297 # Save the default compiler, since it gets overwritten when the other
9298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9299 compiler_DEFAULT=$CC
9300
9301 # save warnings/boilerplate of simple test code
9302 ac_outfile=conftest.$ac_objext
9303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9305 _lt_compiler_boilerplate=`cat conftest.err`
9306 $RM conftest*
9307
9308 ac_outfile=conftest.$ac_objext
9309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9311 _lt_linker_boilerplate=`cat conftest.err`
9312 $RM -r conftest*
9313
9314
9315 ## CAVEAT EMPTOR:
9316 ## There is no encapsulation within the following macros, do not change
9317 ## the running order or otherwise move them around unless you know exactly
9318 ## what you are doing...
9319 if test -n "$compiler"; then
9320
9321 lt_prog_compiler_no_builtin_flag=
9322
9323 if test "$GCC" = yes; then
9324   case $cc_basename in
9325   nvcc*)
9326     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9327   *)
9328     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9329   esac
9330
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9333 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9334   $as_echo_n "(cached) " >&6
9335 else
9336   lt_cv_prog_compiler_rtti_exceptions=no
9337    ac_outfile=conftest.$ac_objext
9338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9339    lt_compiler_flag="-fno-rtti -fno-exceptions"
9340    # Insert the option either (1) after the last *FLAGS variable, or
9341    # (2) before a word containing "conftest.", or (3) at the end.
9342    # Note that $ac_compile itself does not contain backslashes and begins
9343    # with a dollar sign (not a hyphen), so the echo should work correctly.
9344    # The option is referenced via a variable to avoid confusing sed.
9345    lt_compile=`echo "$ac_compile" | $SED \
9346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9348    -e 's:$: $lt_compiler_flag:'`
9349    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9350    (eval "$lt_compile" 2>conftest.err)
9351    ac_status=$?
9352    cat conftest.err >&5
9353    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354    if (exit $ac_status) && test -s "$ac_outfile"; then
9355      # The compiler can only warn and ignore the option if not recognized
9356      # So say no if there are warnings other than the usual output.
9357      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9358      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9359      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9360        lt_cv_prog_compiler_rtti_exceptions=yes
9361      fi
9362    fi
9363    $RM conftest*
9364
9365 fi
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9368
9369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9370     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9371 else
9372     :
9373 fi
9374
9375 fi
9376
9377
9378
9379
9380
9381
9382   lt_prog_compiler_wl=
9383 lt_prog_compiler_pic=
9384 lt_prog_compiler_static=
9385
9386
9387   if test "$GCC" = yes; then
9388     lt_prog_compiler_wl='-Wl,'
9389     lt_prog_compiler_static='-static'
9390
9391     case $host_os in
9392       aix*)
9393       # All AIX code is PIC.
9394       if test "$host_cpu" = ia64; then
9395         # AIX 5 now supports IA64 processor
9396         lt_prog_compiler_static='-Bstatic'
9397       fi
9398       ;;
9399
9400     amigaos*)
9401       case $host_cpu in
9402       powerpc)
9403             # see comment about AmigaOS4 .so support
9404             lt_prog_compiler_pic='-fPIC'
9405         ;;
9406       m68k)
9407             # FIXME: we need at least 68020 code to build shared libraries, but
9408             # adding the `-m68020' flag to GCC prevents building anything better,
9409             # like `-m68040'.
9410             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9411         ;;
9412       esac
9413       ;;
9414
9415     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9416       # PIC is the default for these OSes.
9417       ;;
9418
9419     mingw* | cygwin* | pw32* | os2* | cegcc*)
9420       # This hack is so that the source file can tell whether it is being
9421       # built for inclusion in a dll (and should export symbols for example).
9422       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9423       # (--disable-auto-import) libraries
9424       lt_prog_compiler_pic='-DDLL_EXPORT'
9425       ;;
9426
9427     darwin* | rhapsody*)
9428       # PIC is the default on this platform
9429       # Common symbols not allowed in MH_DYLIB files
9430       lt_prog_compiler_pic='-fno-common'
9431       ;;
9432
9433     haiku*)
9434       # PIC is the default for Haiku.
9435       # The "-static" flag exists, but is broken.
9436       lt_prog_compiler_static=
9437       ;;
9438
9439     hpux*)
9440       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9441       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9442       # sets the default TLS model and affects inlining.
9443       case $host_cpu in
9444       hppa*64*)
9445         # +Z the default
9446         ;;
9447       *)
9448         lt_prog_compiler_pic='-fPIC'
9449         ;;
9450       esac
9451       ;;
9452
9453     interix[3-9]*)
9454       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9455       # Instead, we relocate shared libraries at runtime.
9456       ;;
9457
9458     msdosdjgpp*)
9459       # Just because we use GCC doesn't mean we suddenly get shared libraries
9460       # on systems that don't support them.
9461       lt_prog_compiler_can_build_shared=no
9462       enable_shared=no
9463       ;;
9464
9465     *nto* | *qnx*)
9466       # QNX uses GNU C++, but need to define -shared option too, otherwise
9467       # it will coredump.
9468       lt_prog_compiler_pic='-fPIC -shared'
9469       ;;
9470
9471     sysv4*MP*)
9472       if test -d /usr/nec; then
9473         lt_prog_compiler_pic=-Kconform_pic
9474       fi
9475       ;;
9476
9477     *)
9478       lt_prog_compiler_pic='-fPIC'
9479       ;;
9480     esac
9481
9482     case $cc_basename in
9483     nvcc*) # Cuda Compiler Driver 2.2
9484       lt_prog_compiler_wl='-Xlinker '
9485       if test -n "$lt_prog_compiler_pic"; then
9486         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9487       fi
9488       ;;
9489     esac
9490   else
9491     # PORTME Check for flag to pass linker flags through the system compiler.
9492     case $host_os in
9493     aix*)
9494       lt_prog_compiler_wl='-Wl,'
9495       if test "$host_cpu" = ia64; then
9496         # AIX 5 now supports IA64 processor
9497         lt_prog_compiler_static='-Bstatic'
9498       else
9499         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9500       fi
9501       ;;
9502
9503     mingw* | cygwin* | pw32* | os2* | cegcc*)
9504       # This hack is so that the source file can tell whether it is being
9505       # built for inclusion in a dll (and should export symbols for example).
9506       lt_prog_compiler_pic='-DDLL_EXPORT'
9507       ;;
9508
9509     hpux9* | hpux10* | hpux11*)
9510       lt_prog_compiler_wl='-Wl,'
9511       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9512       # not for PA HP-UX.
9513       case $host_cpu in
9514       hppa*64*|ia64*)
9515         # +Z the default
9516         ;;
9517       *)
9518         lt_prog_compiler_pic='+Z'
9519         ;;
9520       esac
9521       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9522       lt_prog_compiler_static='${wl}-a ${wl}archive'
9523       ;;
9524
9525     irix5* | irix6* | nonstopux*)
9526       lt_prog_compiler_wl='-Wl,'
9527       # PIC (with -KPIC) is the default.
9528       lt_prog_compiler_static='-non_shared'
9529       ;;
9530
9531     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9532       case $cc_basename in
9533       # old Intel for x86_64 which still supported -KPIC.
9534       ecc*)
9535         lt_prog_compiler_wl='-Wl,'
9536         lt_prog_compiler_pic='-KPIC'
9537         lt_prog_compiler_static='-static'
9538         ;;
9539       # icc used to be incompatible with GCC.
9540       # ICC 10 doesn't accept -KPIC any more.
9541       icc* | ifort*)
9542         lt_prog_compiler_wl='-Wl,'
9543         lt_prog_compiler_pic='-fPIC'
9544         lt_prog_compiler_static='-static'
9545         ;;
9546       # Lahey Fortran 8.1.
9547       lf95*)
9548         lt_prog_compiler_wl='-Wl,'
9549         lt_prog_compiler_pic='--shared'
9550         lt_prog_compiler_static='--static'
9551         ;;
9552       nagfor*)
9553         # NAG Fortran compiler
9554         lt_prog_compiler_wl='-Wl,-Wl,,'
9555         lt_prog_compiler_pic='-PIC'
9556         lt_prog_compiler_static='-Bstatic'
9557         ;;
9558       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9559         # Portland Group compilers (*not* the Pentium gcc compiler,
9560         # which looks to be a dead project)
9561         lt_prog_compiler_wl='-Wl,'
9562         lt_prog_compiler_pic='-fpic'
9563         lt_prog_compiler_static='-Bstatic'
9564         ;;
9565       ccc*)
9566         lt_prog_compiler_wl='-Wl,'
9567         # All Alpha code is PIC.
9568         lt_prog_compiler_static='-non_shared'
9569         ;;
9570       xl* | bgxl* | bgf* | mpixl*)
9571         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9572         lt_prog_compiler_wl='-Wl,'
9573         lt_prog_compiler_pic='-qpic'
9574         lt_prog_compiler_static='-qstaticlink'
9575         ;;
9576       *)
9577         case `$CC -V 2>&1 | sed 5q` in
9578         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9579           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9580           lt_prog_compiler_pic='-KPIC'
9581           lt_prog_compiler_static='-Bstatic'
9582           lt_prog_compiler_wl=''
9583           ;;
9584         *Sun\ F* | *Sun*Fortran*)
9585           lt_prog_compiler_pic='-KPIC'
9586           lt_prog_compiler_static='-Bstatic'
9587           lt_prog_compiler_wl='-Qoption ld '
9588           ;;
9589         *Sun\ C*)
9590           # Sun C 5.9
9591           lt_prog_compiler_pic='-KPIC'
9592           lt_prog_compiler_static='-Bstatic'
9593           lt_prog_compiler_wl='-Wl,'
9594           ;;
9595         *Intel*\ [CF]*Compiler*)
9596           lt_prog_compiler_wl='-Wl,'
9597           lt_prog_compiler_pic='-fPIC'
9598           lt_prog_compiler_static='-static'
9599           ;;
9600         *Portland\ Group*)
9601           lt_prog_compiler_wl='-Wl,'
9602           lt_prog_compiler_pic='-fpic'
9603           lt_prog_compiler_static='-Bstatic'
9604           ;;
9605         esac
9606         ;;
9607       esac
9608       ;;
9609
9610     newsos6)
9611       lt_prog_compiler_pic='-KPIC'
9612       lt_prog_compiler_static='-Bstatic'
9613       ;;
9614
9615     *nto* | *qnx*)
9616       # QNX uses GNU C++, but need to define -shared option too, otherwise
9617       # it will coredump.
9618       lt_prog_compiler_pic='-fPIC -shared'
9619       ;;
9620
9621     osf3* | osf4* | osf5*)
9622       lt_prog_compiler_wl='-Wl,'
9623       # All OSF/1 code is PIC.
9624       lt_prog_compiler_static='-non_shared'
9625       ;;
9626
9627     rdos*)
9628       lt_prog_compiler_static='-non_shared'
9629       ;;
9630
9631     solaris*)
9632       lt_prog_compiler_pic='-KPIC'
9633       lt_prog_compiler_static='-Bstatic'
9634       case $cc_basename in
9635       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9636         lt_prog_compiler_wl='-Qoption ld ';;
9637       *)
9638         lt_prog_compiler_wl='-Wl,';;
9639       esac
9640       ;;
9641
9642     sunos4*)
9643       lt_prog_compiler_wl='-Qoption ld '
9644       lt_prog_compiler_pic='-PIC'
9645       lt_prog_compiler_static='-Bstatic'
9646       ;;
9647
9648     sysv4 | sysv4.2uw2* | sysv4.3*)
9649       lt_prog_compiler_wl='-Wl,'
9650       lt_prog_compiler_pic='-KPIC'
9651       lt_prog_compiler_static='-Bstatic'
9652       ;;
9653
9654     sysv4*MP*)
9655       if test -d /usr/nec ;then
9656         lt_prog_compiler_pic='-Kconform_pic'
9657         lt_prog_compiler_static='-Bstatic'
9658       fi
9659       ;;
9660
9661     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9662       lt_prog_compiler_wl='-Wl,'
9663       lt_prog_compiler_pic='-KPIC'
9664       lt_prog_compiler_static='-Bstatic'
9665       ;;
9666
9667     unicos*)
9668       lt_prog_compiler_wl='-Wl,'
9669       lt_prog_compiler_can_build_shared=no
9670       ;;
9671
9672     uts4*)
9673       lt_prog_compiler_pic='-pic'
9674       lt_prog_compiler_static='-Bstatic'
9675       ;;
9676
9677     *)
9678       lt_prog_compiler_can_build_shared=no
9679       ;;
9680     esac
9681   fi
9682
9683 case $host_os in
9684   # For platforms which do not support PIC, -DPIC is meaningless:
9685   *djgpp*)
9686     lt_prog_compiler_pic=
9687     ;;
9688   *)
9689     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9690     ;;
9691 esac
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9694 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9695 if ${lt_cv_prog_compiler_pic+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9701 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9702 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9703
9704 #
9705 # Check to make sure the PIC flag actually works.
9706 #
9707 if test -n "$lt_prog_compiler_pic"; then
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9709 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9710 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   lt_cv_prog_compiler_pic_works=no
9714    ac_outfile=conftest.$ac_objext
9715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9716    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9717    # Insert the option either (1) after the last *FLAGS variable, or
9718    # (2) before a word containing "conftest.", or (3) at the end.
9719    # Note that $ac_compile itself does not contain backslashes and begins
9720    # with a dollar sign (not a hyphen), so the echo should work correctly.
9721    # The option is referenced via a variable to avoid confusing sed.
9722    lt_compile=`echo "$ac_compile" | $SED \
9723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9725    -e 's:$: $lt_compiler_flag:'`
9726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9727    (eval "$lt_compile" 2>conftest.err)
9728    ac_status=$?
9729    cat conftest.err >&5
9730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731    if (exit $ac_status) && test -s "$ac_outfile"; then
9732      # The compiler can only warn and ignore the option if not recognized
9733      # So say no if there are warnings other than the usual output.
9734      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9737        lt_cv_prog_compiler_pic_works=yes
9738      fi
9739    fi
9740    $RM conftest*
9741
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9744 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9745
9746 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9747     case $lt_prog_compiler_pic in
9748      "" | " "*) ;;
9749      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9750      esac
9751 else
9752     lt_prog_compiler_pic=
9753      lt_prog_compiler_can_build_shared=no
9754 fi
9755
9756 fi
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768 #
9769 # Check to make sure the static flag actually works.
9770 #
9771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9773 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9774 if ${lt_cv_prog_compiler_static_works+:} false; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   lt_cv_prog_compiler_static_works=no
9778    save_LDFLAGS="$LDFLAGS"
9779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9780    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9782      # The linker can only warn and ignore the option if not recognized
9783      # So say no if there are warnings
9784      if test -s conftest.err; then
9785        # Append any errors to the config.log.
9786        cat conftest.err 1>&5
9787        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789        if diff conftest.exp conftest.er2 >/dev/null; then
9790          lt_cv_prog_compiler_static_works=yes
9791        fi
9792      else
9793        lt_cv_prog_compiler_static_works=yes
9794      fi
9795    fi
9796    $RM -r conftest*
9797    LDFLAGS="$save_LDFLAGS"
9798
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9801 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9802
9803 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9804     :
9805 else
9806     lt_prog_compiler_static=
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9816 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9817 if ${lt_cv_prog_compiler_c_o+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   lt_cv_prog_compiler_c_o=no
9821    $RM -r conftest 2>/dev/null
9822    mkdir conftest
9823    cd conftest
9824    mkdir out
9825    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9826
9827    lt_compiler_flag="-o out/conftest2.$ac_objext"
9828    # Insert the option either (1) after the last *FLAGS variable, or
9829    # (2) before a word containing "conftest.", or (3) at the end.
9830    # Note that $ac_compile itself does not contain backslashes and begins
9831    # with a dollar sign (not a hyphen), so the echo should work correctly.
9832    lt_compile=`echo "$ac_compile" | $SED \
9833    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835    -e 's:$: $lt_compiler_flag:'`
9836    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9837    (eval "$lt_compile" 2>out/conftest.err)
9838    ac_status=$?
9839    cat out/conftest.err >&5
9840    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9842    then
9843      # The compiler can only warn and ignore the option if not recognized
9844      # So say no if there are warnings
9845      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9846      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9847      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9848        lt_cv_prog_compiler_c_o=yes
9849      fi
9850    fi
9851    chmod u+w . 2>&5
9852    $RM conftest*
9853    # SGI C++ compiler will create directory out/ii_files/ for
9854    # template instantiation
9855    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9856    $RM out/* && rmdir out
9857    cd ..
9858    $RM -r conftest
9859    $RM conftest*
9860
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9863 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9864
9865
9866
9867
9868
9869
9870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9872 if ${lt_cv_prog_compiler_c_o+:} false; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   lt_cv_prog_compiler_c_o=no
9876    $RM -r conftest 2>/dev/null
9877    mkdir conftest
9878    cd conftest
9879    mkdir out
9880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881
9882    lt_compiler_flag="-o out/conftest2.$ac_objext"
9883    # Insert the option either (1) after the last *FLAGS variable, or
9884    # (2) before a word containing "conftest.", or (3) at the end.
9885    # Note that $ac_compile itself does not contain backslashes and begins
9886    # with a dollar sign (not a hyphen), so the echo should work correctly.
9887    lt_compile=`echo "$ac_compile" | $SED \
9888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890    -e 's:$: $lt_compiler_flag:'`
9891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9892    (eval "$lt_compile" 2>out/conftest.err)
9893    ac_status=$?
9894    cat out/conftest.err >&5
9895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9897    then
9898      # The compiler can only warn and ignore the option if not recognized
9899      # So say no if there are warnings
9900      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9903        lt_cv_prog_compiler_c_o=yes
9904      fi
9905    fi
9906    chmod u+w . 2>&5
9907    $RM conftest*
9908    # SGI C++ compiler will create directory out/ii_files/ for
9909    # template instantiation
9910    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9911    $RM out/* && rmdir out
9912    cd ..
9913    $RM -r conftest
9914    $RM conftest*
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9919
9920
9921
9922
9923 hard_links="nottested"
9924 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9925   # do not overwrite the value of need_locks provided by the user
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9927 $as_echo_n "checking if we can lock with hard links... " >&6; }
9928   hard_links=yes
9929   $RM conftest*
9930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9931   touch conftest.a
9932   ln conftest.a conftest.b 2>&5 || hard_links=no
9933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9935 $as_echo "$hard_links" >&6; }
9936   if test "$hard_links" = no; then
9937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9938 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9939     need_locks=warn
9940   fi
9941 else
9942   need_locks=no
9943 fi
9944
9945
9946
9947
9948
9949
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9951 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9952
9953   runpath_var=
9954   allow_undefined_flag=
9955   always_export_symbols=no
9956   archive_cmds=
9957   archive_expsym_cmds=
9958   compiler_needs_object=no
9959   enable_shared_with_static_runtimes=no
9960   export_dynamic_flag_spec=
9961   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9962   hardcode_automatic=no
9963   hardcode_direct=no
9964   hardcode_direct_absolute=no
9965   hardcode_libdir_flag_spec=
9966   hardcode_libdir_separator=
9967   hardcode_minus_L=no
9968   hardcode_shlibpath_var=unsupported
9969   inherit_rpath=no
9970   link_all_deplibs=unknown
9971   module_cmds=
9972   module_expsym_cmds=
9973   old_archive_from_new_cmds=
9974   old_archive_from_expsyms_cmds=
9975   thread_safe_flag_spec=
9976   whole_archive_flag_spec=
9977   # include_expsyms should be a list of space-separated symbols to be *always*
9978   # included in the symbol list
9979   include_expsyms=
9980   # exclude_expsyms can be an extended regexp of symbols to exclude
9981   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9982   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9983   # as well as any symbol that contains `d'.
9984   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9985   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9986   # platforms (ab)use it in PIC code, but their linkers get confused if
9987   # the symbol is explicitly referenced.  Since portable code cannot
9988   # rely on this symbol name, it's probably fine to never include it in
9989   # preloaded symbol tables.
9990   # Exclude shared library initialization/finalization symbols.
9991   extract_expsyms_cmds=
9992
9993   case $host_os in
9994   cygwin* | mingw* | pw32* | cegcc*)
9995     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9996     # When not using gcc, we currently assume that we are using
9997     # Microsoft Visual C++.
9998     if test "$GCC" != yes; then
9999       with_gnu_ld=no
10000     fi
10001     ;;
10002   interix*)
10003     # we just hope/assume this is gcc and not c89 (= MSVC++)
10004     with_gnu_ld=yes
10005     ;;
10006   openbsd*)
10007     with_gnu_ld=no
10008     ;;
10009   linux* | k*bsd*-gnu | gnu*)
10010     link_all_deplibs=no
10011     ;;
10012   esac
10013
10014   ld_shlibs=yes
10015
10016   # On some targets, GNU ld is compatible enough with the native linker
10017   # that we're better off using the native interface for both.
10018   lt_use_gnu_ld_interface=no
10019   if test "$with_gnu_ld" = yes; then
10020     case $host_os in
10021       aix*)
10022         # The AIX port of GNU ld has always aspired to compatibility
10023         # with the native linker.  However, as the warning in the GNU ld
10024         # block says, versions before 2.19.5* couldn't really create working
10025         # shared libraries, regardless of the interface used.
10026         case `$LD -v 2>&1` in
10027           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10028           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10029           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10030           *)
10031             lt_use_gnu_ld_interface=yes
10032             ;;
10033         esac
10034         ;;
10035       *)
10036         lt_use_gnu_ld_interface=yes
10037         ;;
10038     esac
10039   fi
10040
10041   if test "$lt_use_gnu_ld_interface" = yes; then
10042     # If archive_cmds runs LD, not CC, wlarc should be empty
10043     wlarc='${wl}'
10044
10045     # Set some defaults for GNU ld with shared library support. These
10046     # are reset later if shared libraries are not supported. Putting them
10047     # here allows them to be overridden if necessary.
10048     runpath_var=LD_RUN_PATH
10049     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050     export_dynamic_flag_spec='${wl}--export-dynamic'
10051     # ancient GNU ld didn't support --whole-archive et. al.
10052     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10053       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10054     else
10055       whole_archive_flag_spec=
10056     fi
10057     supports_anon_versioning=no
10058     case `$LD -v 2>&1` in
10059       *GNU\ gold*) supports_anon_versioning=yes ;;
10060       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10061       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10062       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10063       *\ 2.11.*) ;; # other 2.11 versions
10064       *) supports_anon_versioning=yes ;;
10065     esac
10066
10067     # See if GNU ld supports shared libraries.
10068     case $host_os in
10069     aix[3-9]*)
10070       # On AIX/PPC, the GNU linker is very broken
10071       if test "$host_cpu" != ia64; then
10072         ld_shlibs=no
10073         cat <<_LT_EOF 1>&2
10074
10075 *** Warning: the GNU linker, at least up to release 2.19, is reported
10076 *** to be unable to reliably create shared libraries on AIX.
10077 *** Therefore, libtool is disabling shared libraries support.  If you
10078 *** really care for shared libraries, you may want to install binutils
10079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10080 *** You will then need to restart the configuration process.
10081
10082 _LT_EOF
10083       fi
10084       ;;
10085
10086     amigaos*)
10087       case $host_cpu in
10088       powerpc)
10089             # see comment about AmigaOS4 .so support
10090             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091             archive_expsym_cmds=''
10092         ;;
10093       m68k)
10094             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)'
10095             hardcode_libdir_flag_spec='-L$libdir'
10096             hardcode_minus_L=yes
10097         ;;
10098       esac
10099       ;;
10100
10101     beos*)
10102       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103         allow_undefined_flag=unsupported
10104         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10105         # support --undefined.  This deserves some investigation.  FIXME
10106         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107       else
10108         ld_shlibs=no
10109       fi
10110       ;;
10111
10112     cygwin* | mingw* | pw32* | cegcc*)
10113       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10114       # as there is no search path for DLLs.
10115       hardcode_libdir_flag_spec='-L$libdir'
10116       export_dynamic_flag_spec='${wl}--export-all-symbols'
10117       allow_undefined_flag=unsupported
10118       always_export_symbols=no
10119       enable_shared_with_static_runtimes=yes
10120       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'
10121       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10122
10123       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10124         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10125         # If the export-symbols file already is a .def file (1st line
10126         # is EXPORTS), use it as is; otherwise, prepend...
10127         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10128           cp $export_symbols $output_objdir/$soname.def;
10129         else
10130           echo EXPORTS > $output_objdir/$soname.def;
10131           cat $export_symbols >> $output_objdir/$soname.def;
10132         fi~
10133         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134       else
10135         ld_shlibs=no
10136       fi
10137       ;;
10138
10139     haiku*)
10140       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141       link_all_deplibs=yes
10142       ;;
10143
10144     interix[3-9]*)
10145       hardcode_direct=no
10146       hardcode_shlibpath_var=no
10147       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148       export_dynamic_flag_spec='${wl}-E'
10149       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10150       # Instead, shared libraries are loaded at an image base (0x10000000 by
10151       # default) and relocated if they conflict, which is a slow very memory
10152       # consuming and fragmenting process.  To avoid this, we pick a random,
10153       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10154       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10155       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10156       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'
10157       ;;
10158
10159     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10160       tmp_diet=no
10161       if test "$host_os" = linux-dietlibc; then
10162         case $cc_basename in
10163           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10164         esac
10165       fi
10166       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10167          && test "$tmp_diet" = no
10168       then
10169         tmp_addflag=' $pic_flag'
10170         tmp_sharedflag='-shared'
10171         case $cc_basename,$host_cpu in
10172         pgcc*)                          # Portland Group C compiler
10173           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'
10174           tmp_addflag=' $pic_flag'
10175           ;;
10176         pgf77* | pgf90* | pgf95* | pgfortran*)
10177                                         # Portland Group f77 and f90 compilers
10178           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'
10179           tmp_addflag=' $pic_flag -Mnomain' ;;
10180         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10181           tmp_addflag=' -i_dynamic' ;;
10182         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10183           tmp_addflag=' -i_dynamic -nofor_main' ;;
10184         ifc* | ifort*)                  # Intel Fortran compiler
10185           tmp_addflag=' -nofor_main' ;;
10186         lf95*)                          # Lahey Fortran 8.1
10187           whole_archive_flag_spec=
10188           tmp_sharedflag='--shared' ;;
10189         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10190           tmp_sharedflag='-qmkshrobj'
10191           tmp_addflag= ;;
10192         nvcc*)  # Cuda Compiler Driver 2.2
10193           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10194           compiler_needs_object=yes
10195           ;;
10196         esac
10197         case `$CC -V 2>&1 | sed 5q` in
10198         *Sun\ C*)                       # Sun C 5.9
10199           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'
10200           compiler_needs_object=yes
10201           tmp_sharedflag='-G' ;;
10202         *Sun\ F*)                       # Sun Fortran 8.3
10203           tmp_sharedflag='-G' ;;
10204         esac
10205         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206
10207         if test "x$supports_anon_versioning" = xyes; then
10208           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210             echo "local: *; };" >> $output_objdir/$libname.ver~
10211             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10212         fi
10213
10214         case $cc_basename in
10215         xlf* | bgf* | bgxlf* | mpixlf*)
10216           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10220           if test "x$supports_anon_versioning" = xyes; then
10221             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223               echo "local: *; };" >> $output_objdir/$libname.ver~
10224               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10225           fi
10226           ;;
10227         esac
10228       else
10229         ld_shlibs=no
10230       fi
10231       ;;
10232
10233     netbsd* | netbsdelf*-gnu)
10234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236         wlarc=
10237       else
10238         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240       fi
10241       ;;
10242
10243     solaris*)
10244       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10245         ld_shlibs=no
10246         cat <<_LT_EOF 1>&2
10247
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems.  Therefore, libtool
10250 *** is disabling shared libraries support.  We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer.  Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10254
10255 _LT_EOF
10256       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259       else
10260         ld_shlibs=no
10261       fi
10262       ;;
10263
10264     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265       case `$LD -v 2>&1` in
10266         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10272 *** is disabling shared libraries support.  We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10276
10277 _LT_EOF
10278         ;;
10279         *)
10280           # For security reasons, it is highly recommended that you always
10281           # use absolute paths for naming shared libraries, and exclude the
10282           # DT_RUNPATH tag from executables and libraries.  But doing so
10283           # requires that you compile everything twice, which is a pain.
10284           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10288           else
10289             ld_shlibs=no
10290           fi
10291         ;;
10292       esac
10293       ;;
10294
10295     sunos4*)
10296       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297       wlarc=
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306       else
10307         ld_shlibs=no
10308       fi
10309       ;;
10310     esac
10311
10312     if test "$ld_shlibs" = no; then
10313       runpath_var=
10314       hardcode_libdir_flag_spec=
10315       export_dynamic_flag_spec=
10316       whole_archive_flag_spec=
10317     fi
10318   else
10319     # PORTME fill in a description of your system's linker (not GNU ld)
10320     case $host_os in
10321     aix3*)
10322       allow_undefined_flag=unsupported
10323       always_export_symbols=yes
10324       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'
10325       # Note: this linker hardcodes the directories in LIBPATH if there
10326       # are no directories specified by -L.
10327       hardcode_minus_L=yes
10328       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329         # Neither direct hardcoding nor static linking is supported with a
10330         # broken collect2.
10331         hardcode_direct=unsupported
10332       fi
10333       ;;
10334
10335     aix[4-9]*)
10336       if test "$host_cpu" = ia64; then
10337         # On IA64, the linker does run time linking by default, so we don't
10338         # have to do anything special.
10339         aix_use_runtimelinking=no
10340         exp_sym_flag='-Bexport'
10341         no_entry_flag=""
10342       else
10343         # If we're using GNU nm, then we don't want the "-C" option.
10344         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345         # Also, AIX nm treats weak defined symbols like other global
10346         # defined symbols, whereas GNU nm marks them as "W".
10347         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10348           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10349         else
10350           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10351         fi
10352         aix_use_runtimelinking=no
10353
10354         # Test if we are trying to use run time linking or normal
10355         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10356         # need to do runtime linking.
10357         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10358           for ld_flag in $LDFLAGS; do
10359           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10360             aix_use_runtimelinking=yes
10361             break
10362           fi
10363           done
10364           ;;
10365         esac
10366
10367         exp_sym_flag='-bexport'
10368         no_entry_flag='-bnoentry'
10369       fi
10370
10371       # When large executables or shared objects are built, AIX ld can
10372       # have problems creating the table of contents.  If linking a library
10373       # or program results in "error TOC overflow" add -mminimal-toc to
10374       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10375       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10376
10377       archive_cmds=''
10378       hardcode_direct=yes
10379       hardcode_direct_absolute=yes
10380       hardcode_libdir_separator=':'
10381       link_all_deplibs=yes
10382       file_list_spec='${wl}-f,'
10383
10384       if test "$GCC" = yes; then
10385         case $host_os in aix4.[012]|aix4.[012].*)
10386         # We only want to do this on AIX 4.2 and lower, the check
10387         # below for broken collect2 doesn't work under 4.3+
10388           collect2name=`${CC} -print-prog-name=collect2`
10389           if test -f "$collect2name" &&
10390            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10391           then
10392           # We have reworked collect2
10393           :
10394           else
10395           # We have old collect2
10396           hardcode_direct=unsupported
10397           # It fails to find uninstalled libraries when the uninstalled
10398           # path is not listed in the libpath.  Setting hardcode_minus_L
10399           # to unsupported forces relinking
10400           hardcode_minus_L=yes
10401           hardcode_libdir_flag_spec='-L$libdir'
10402           hardcode_libdir_separator=
10403           fi
10404           ;;
10405         esac
10406         shared_flag='-shared'
10407         if test "$aix_use_runtimelinking" = yes; then
10408           shared_flag="$shared_flag "'${wl}-G'
10409         fi
10410         link_all_deplibs=no
10411       else
10412         # not using gcc
10413         if test "$host_cpu" = ia64; then
10414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415         # chokes on -Wl,-G. The following line is correct:
10416           shared_flag='-G'
10417         else
10418           if test "$aix_use_runtimelinking" = yes; then
10419             shared_flag='${wl}-G'
10420           else
10421             shared_flag='${wl}-bM:SRE'
10422           fi
10423         fi
10424       fi
10425
10426       export_dynamic_flag_spec='${wl}-bexpall'
10427       # It seems that -bexpall does not export symbols beginning with
10428       # underscore (_), so it is better to generate a list of symbols to export.
10429       always_export_symbols=yes
10430       if test "$aix_use_runtimelinking" = yes; then
10431         # Warning - without using the other runtime loading flags (-brtl),
10432         # -berok will link without error, but may produce a broken library.
10433         allow_undefined_flag='-berok'
10434         # Determine the default libpath from the value encoded in an
10435         # empty executable.
10436         if test "${lt_cv_aix_libpath+set}" = set; then
10437   aix_libpath=$lt_cv_aix_libpath
10438 else
10439   if ${lt_cv_aix_libpath_+:} false; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h.  */
10444
10445 int
10446 main ()
10447 {
10448
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"; then :
10454
10455   lt_aix_libpath_sed='
10456       /Import File Strings/,/^$/ {
10457           /^0/ {
10458               s/^0  *\([^ ]*\) *$/\1/
10459               p
10460           }
10461       }'
10462   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463   # Check for a 64-bit object if we didn't find anything.
10464   if test -z "$lt_cv_aix_libpath_"; then
10465     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10466   fi
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext \
10469     conftest$ac_exeext conftest.$ac_ext
10470   if test -z "$lt_cv_aix_libpath_"; then
10471     lt_cv_aix_libpath_="/usr/lib:/lib"
10472   fi
10473
10474 fi
10475
10476   aix_libpath=$lt_cv_aix_libpath_
10477 fi
10478
10479         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10480         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10481       else
10482         if test "$host_cpu" = ia64; then
10483           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10484           allow_undefined_flag="-z nodefs"
10485           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"
10486         else
10487          # Determine the default libpath from the value encoded in an
10488          # empty executable.
10489          if test "${lt_cv_aix_libpath+set}" = set; then
10490   aix_libpath=$lt_cv_aix_libpath
10491 else
10492   if ${lt_cv_aix_libpath_+:} false; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h.  */
10497
10498 int
10499 main ()
10500 {
10501
10502   ;
10503   return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_link "$LINENO"; then :
10507
10508   lt_aix_libpath_sed='
10509       /Import File Strings/,/^$/ {
10510           /^0/ {
10511               s/^0  *\([^ ]*\) *$/\1/
10512               p
10513           }
10514       }'
10515   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10516   # Check for a 64-bit object if we didn't find anything.
10517   if test -z "$lt_cv_aix_libpath_"; then
10518     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10519   fi
10520 fi
10521 rm -f core conftest.err conftest.$ac_objext \
10522     conftest$ac_exeext conftest.$ac_ext
10523   if test -z "$lt_cv_aix_libpath_"; then
10524     lt_cv_aix_libpath_="/usr/lib:/lib"
10525   fi
10526
10527 fi
10528
10529   aix_libpath=$lt_cv_aix_libpath_
10530 fi
10531
10532          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10533           # Warning - without using the other run time loading flags,
10534           # -berok will link without error, but may produce a broken library.
10535           no_undefined_flag=' ${wl}-bernotok'
10536           allow_undefined_flag=' ${wl}-berok'
10537           if test "$with_gnu_ld" = yes; then
10538             # We only use this code for GNU lds that support --whole-archive.
10539             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10540           else
10541             # Exported symbols can be pulled into shared objects from archives
10542             whole_archive_flag_spec='$convenience'
10543           fi
10544           archive_cmds_need_lc=yes
10545           # This is similar to how AIX traditionally builds its shared libraries.
10546           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10547         fi
10548       fi
10549       ;;
10550
10551     amigaos*)
10552       case $host_cpu in
10553       powerpc)
10554             # see comment about AmigaOS4 .so support
10555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556             archive_expsym_cmds=''
10557         ;;
10558       m68k)
10559             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)'
10560             hardcode_libdir_flag_spec='-L$libdir'
10561             hardcode_minus_L=yes
10562         ;;
10563       esac
10564       ;;
10565
10566     bsdi[45]*)
10567       export_dynamic_flag_spec=-rdynamic
10568       ;;
10569
10570     cygwin* | mingw* | pw32* | cegcc*)
10571       # When not using gcc, we currently assume that we are using
10572       # Microsoft Visual C++.
10573       # hardcode_libdir_flag_spec is actually meaningless, as there is
10574       # no search path for DLLs.
10575       case $cc_basename in
10576       cl*)
10577         # Native MSVC
10578         hardcode_libdir_flag_spec=' '
10579         allow_undefined_flag=unsupported
10580         always_export_symbols=yes
10581         file_list_spec='@'
10582         # Tell ltmain to make .lib files, not .a files.
10583         libext=lib
10584         # Tell ltmain to make .dll files, not .so files.
10585         shrext_cmds=".dll"
10586         # FIXME: Setting linknames here is a bad hack.
10587         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10588         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10589             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10590           else
10591             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10592           fi~
10593           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10594           linknames='
10595         # The linker will not automatically build a static lib if we build a DLL.
10596         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10597         enable_shared_with_static_runtimes=yes
10598         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10599         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10600         # Don't use ranlib
10601         old_postinstall_cmds='chmod 644 $oldlib'
10602         postlink_cmds='lt_outputfile="@OUTPUT@"~
10603           lt_tool_outputfile="@TOOL_OUTPUT@"~
10604           case $lt_outputfile in
10605             *.exe|*.EXE) ;;
10606             *)
10607               lt_outputfile="$lt_outputfile.exe"
10608               lt_tool_outputfile="$lt_tool_outputfile.exe"
10609               ;;
10610           esac~
10611           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10612             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10613             $RM "$lt_outputfile.manifest";
10614           fi'
10615         ;;
10616       *)
10617         # Assume MSVC wrapper
10618         hardcode_libdir_flag_spec=' '
10619         allow_undefined_flag=unsupported
10620         # Tell ltmain to make .lib files, not .a files.
10621         libext=lib
10622         # Tell ltmain to make .dll files, not .so files.
10623         shrext_cmds=".dll"
10624         # FIXME: Setting linknames here is a bad hack.
10625         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10626         # The linker will automatically build a .lib file if we build a DLL.
10627         old_archive_from_new_cmds='true'
10628         # FIXME: Should let the user specify the lib program.
10629         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10630         enable_shared_with_static_runtimes=yes
10631         ;;
10632       esac
10633       ;;
10634
10635     darwin* | rhapsody*)
10636
10637
10638   archive_cmds_need_lc=no
10639   hardcode_direct=no
10640   hardcode_automatic=yes
10641   hardcode_shlibpath_var=unsupported
10642   if test "$lt_cv_ld_force_load" = "yes"; then
10643     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\"`'
10644
10645   else
10646     whole_archive_flag_spec=''
10647   fi
10648   link_all_deplibs=yes
10649   allow_undefined_flag="$_lt_dar_allow_undefined"
10650   case $cc_basename in
10651      ifort*) _lt_dar_can_shared=yes ;;
10652      *) _lt_dar_can_shared=$GCC ;;
10653   esac
10654   if test "$_lt_dar_can_shared" = "yes"; then
10655     output_verbose_link_cmd=func_echo_all
10656     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10657     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10658     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}"
10659     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}"
10660
10661   else
10662   ld_shlibs=no
10663   fi
10664
10665       ;;
10666
10667     dgux*)
10668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669       hardcode_libdir_flag_spec='-L$libdir'
10670       hardcode_shlibpath_var=no
10671       ;;
10672
10673     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10674     # support.  Future versions do this automatically, but an explicit c++rt0.o
10675     # does not break anything, and helps significantly (at the cost of a little
10676     # extra space).
10677     freebsd2.2*)
10678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10679       hardcode_libdir_flag_spec='-R$libdir'
10680       hardcode_direct=yes
10681       hardcode_shlibpath_var=no
10682       ;;
10683
10684     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10685     freebsd2.*)
10686       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10687       hardcode_direct=yes
10688       hardcode_minus_L=yes
10689       hardcode_shlibpath_var=no
10690       ;;
10691
10692     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10693     freebsd* | dragonfly*)
10694       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10695       hardcode_libdir_flag_spec='-R$libdir'
10696       hardcode_direct=yes
10697       hardcode_shlibpath_var=no
10698       ;;
10699
10700     hpux9*)
10701       if test "$GCC" = yes; then
10702         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10703       else
10704         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10705       fi
10706       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10707       hardcode_libdir_separator=:
10708       hardcode_direct=yes
10709
10710       # hardcode_minus_L: Not really in the search PATH,
10711       # but as the default location of the library.
10712       hardcode_minus_L=yes
10713       export_dynamic_flag_spec='${wl}-E'
10714       ;;
10715
10716     hpux10*)
10717       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10718         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10719       else
10720         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10721       fi
10722       if test "$with_gnu_ld" = no; then
10723         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724         hardcode_libdir_separator=:
10725         hardcode_direct=yes
10726         hardcode_direct_absolute=yes
10727         export_dynamic_flag_spec='${wl}-E'
10728         # hardcode_minus_L: Not really in the search PATH,
10729         # but as the default location of the library.
10730         hardcode_minus_L=yes
10731       fi
10732       ;;
10733
10734     hpux11*)
10735       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10736         case $host_cpu in
10737         hppa*64*)
10738           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10739           ;;
10740         ia64*)
10741           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10742           ;;
10743         *)
10744           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10745           ;;
10746         esac
10747       else
10748         case $host_cpu in
10749         hppa*64*)
10750           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10751           ;;
10752         ia64*)
10753           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10754           ;;
10755         *)
10756
10757           # Older versions of the 11.00 compiler do not understand -b yet
10758           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10759           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10760 $as_echo_n "checking if $CC understands -b... " >&6; }
10761 if ${lt_cv_prog_compiler__b+:} false; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   lt_cv_prog_compiler__b=no
10765    save_LDFLAGS="$LDFLAGS"
10766    LDFLAGS="$LDFLAGS -b"
10767    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10768    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10769      # The linker can only warn and ignore the option if not recognized
10770      # So say no if there are warnings
10771      if test -s conftest.err; then
10772        # Append any errors to the config.log.
10773        cat conftest.err 1>&5
10774        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10775        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10776        if diff conftest.exp conftest.er2 >/dev/null; then
10777          lt_cv_prog_compiler__b=yes
10778        fi
10779      else
10780        lt_cv_prog_compiler__b=yes
10781      fi
10782    fi
10783    $RM -r conftest*
10784    LDFLAGS="$save_LDFLAGS"
10785
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10788 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10789
10790 if test x"$lt_cv_prog_compiler__b" = xyes; then
10791     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10792 else
10793     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10794 fi
10795
10796           ;;
10797         esac
10798       fi
10799       if test "$with_gnu_ld" = no; then
10800         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10801         hardcode_libdir_separator=:
10802
10803         case $host_cpu in
10804         hppa*64*|ia64*)
10805           hardcode_direct=no
10806           hardcode_shlibpath_var=no
10807           ;;
10808         *)
10809           hardcode_direct=yes
10810           hardcode_direct_absolute=yes
10811           export_dynamic_flag_spec='${wl}-E'
10812
10813           # hardcode_minus_L: Not really in the search PATH,
10814           # but as the default location of the library.
10815           hardcode_minus_L=yes
10816           ;;
10817         esac
10818       fi
10819       ;;
10820
10821     irix5* | irix6* | nonstopux*)
10822       if test "$GCC" = yes; then
10823         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'
10824         # Try to use the -exported_symbol ld option, if it does not
10825         # work, assume that -exports_file does not work either and
10826         # implicitly export all symbols.
10827         # This should be the same for all languages, so no per-tag cache variable.
10828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10829 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10830 if ${lt_cv_irix_exported_symbol+:} false; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   save_LDFLAGS="$LDFLAGS"
10834            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10835            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h.  */
10837 int foo (void) { return 0; }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840   lt_cv_irix_exported_symbol=yes
10841 else
10842   lt_cv_irix_exported_symbol=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845     conftest$ac_exeext conftest.$ac_ext
10846            LDFLAGS="$save_LDFLAGS"
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10849 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10850         if test "$lt_cv_irix_exported_symbol" = yes; then
10851           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'
10852         fi
10853       else
10854         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'
10855         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'
10856       fi
10857       archive_cmds_need_lc='no'
10858       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10859       hardcode_libdir_separator=:
10860       inherit_rpath=yes
10861       link_all_deplibs=yes
10862       ;;
10863
10864     netbsd* | netbsdelf*-gnu)
10865       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10867       else
10868         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10869       fi
10870       hardcode_libdir_flag_spec='-R$libdir'
10871       hardcode_direct=yes
10872       hardcode_shlibpath_var=no
10873       ;;
10874
10875     newsos6)
10876       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877       hardcode_direct=yes
10878       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879       hardcode_libdir_separator=:
10880       hardcode_shlibpath_var=no
10881       ;;
10882
10883     *nto* | *qnx*)
10884       ;;
10885
10886     openbsd*)
10887       if test -f /usr/libexec/ld.so; then
10888         hardcode_direct=yes
10889         hardcode_shlibpath_var=no
10890         hardcode_direct_absolute=yes
10891         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10894           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10895           export_dynamic_flag_spec='${wl}-E'
10896         else
10897           case $host_os in
10898            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10899              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10900              hardcode_libdir_flag_spec='-R$libdir'
10901              ;;
10902            *)
10903              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10904              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10905              ;;
10906           esac
10907         fi
10908       else
10909         ld_shlibs=no
10910       fi
10911       ;;
10912
10913     os2*)
10914       hardcode_libdir_flag_spec='-L$libdir'
10915       hardcode_minus_L=yes
10916       allow_undefined_flag=unsupported
10917       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10918       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10919       ;;
10920
10921     osf3*)
10922       if test "$GCC" = yes; then
10923         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924         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'
10925       else
10926         allow_undefined_flag=' -expect_unresolved \*'
10927         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'
10928       fi
10929       archive_cmds_need_lc='no'
10930       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931       hardcode_libdir_separator=:
10932       ;;
10933
10934     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10935       if test "$GCC" = yes; then
10936         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10937         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'
10938         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10939       else
10940         allow_undefined_flag=' -expect_unresolved \*'
10941         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'
10942         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~
10943         $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'
10944
10945         # Both c and cxx compiler support -rpath directly
10946         hardcode_libdir_flag_spec='-rpath $libdir'
10947       fi
10948       archive_cmds_need_lc='no'
10949       hardcode_libdir_separator=:
10950       ;;
10951
10952     solaris*)
10953       no_undefined_flag=' -z defs'
10954       if test "$GCC" = yes; then
10955         wlarc='${wl}'
10956         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958           $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'
10959       else
10960         case `$CC -V 2>&1` in
10961         *"Compilers 5.0"*)
10962           wlarc=''
10963           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10965           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10966           ;;
10967         *)
10968           wlarc='${wl}'
10969           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10970           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10972           ;;
10973         esac
10974       fi
10975       hardcode_libdir_flag_spec='-R$libdir'
10976       hardcode_shlibpath_var=no
10977       case $host_os in
10978       solaris2.[0-5] | solaris2.[0-5].*) ;;
10979       *)
10980         # The compiler driver will combine and reorder linker options,
10981         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10982         # but is careful enough not to reorder.
10983         # Supported since Solaris 2.6 (maybe 2.5.1?)
10984         if test "$GCC" = yes; then
10985           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10986         else
10987           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10988         fi
10989         ;;
10990       esac
10991       link_all_deplibs=yes
10992       ;;
10993
10994     sunos4*)
10995       if test "x$host_vendor" = xsequent; then
10996         # Use $CC to link under sequent, because it throws in some extra .o
10997         # files that make .init and .fini sections work.
10998         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10999       else
11000         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11001       fi
11002       hardcode_libdir_flag_spec='-L$libdir'
11003       hardcode_direct=yes
11004       hardcode_minus_L=yes
11005       hardcode_shlibpath_var=no
11006       ;;
11007
11008     sysv4)
11009       case $host_vendor in
11010         sni)
11011           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012           hardcode_direct=yes # is this really true???
11013         ;;
11014         siemens)
11015           ## LD is ld it makes a PLAMLIB
11016           ## CC just makes a GrossModule.
11017           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11018           reload_cmds='$CC -r -o $output$reload_objs'
11019           hardcode_direct=no
11020         ;;
11021         motorola)
11022           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11024         ;;
11025       esac
11026       runpath_var='LD_RUN_PATH'
11027       hardcode_shlibpath_var=no
11028       ;;
11029
11030     sysv4.3*)
11031       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032       hardcode_shlibpath_var=no
11033       export_dynamic_flag_spec='-Bexport'
11034       ;;
11035
11036     sysv4*MP*)
11037       if test -d /usr/nec; then
11038         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039         hardcode_shlibpath_var=no
11040         runpath_var=LD_RUN_PATH
11041         hardcode_runpath_var=yes
11042         ld_shlibs=yes
11043       fi
11044       ;;
11045
11046     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11047       no_undefined_flag='${wl}-z,text'
11048       archive_cmds_need_lc=no
11049       hardcode_shlibpath_var=no
11050       runpath_var='LD_RUN_PATH'
11051
11052       if test "$GCC" = yes; then
11053         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055       else
11056         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058       fi
11059       ;;
11060
11061     sysv5* | sco3.2v5* | sco5v6*)
11062       # Note: We can NOT use -z defs as we might desire, because we do not
11063       # link with -lc, and that would cause any symbols used from libc to
11064       # always be unresolved, which means just about no library would
11065       # ever link correctly.  If we're not using GNU ld we use -z text
11066       # though, which does catch some bad symbols but isn't as heavy-handed
11067       # as -z defs.
11068       no_undefined_flag='${wl}-z,text'
11069       allow_undefined_flag='${wl}-z,nodefs'
11070       archive_cmds_need_lc=no
11071       hardcode_shlibpath_var=no
11072       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11073       hardcode_libdir_separator=':'
11074       link_all_deplibs=yes
11075       export_dynamic_flag_spec='${wl}-Bexport'
11076       runpath_var='LD_RUN_PATH'
11077
11078       if test "$GCC" = yes; then
11079         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081       else
11082         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084       fi
11085       ;;
11086
11087     uts4*)
11088       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089       hardcode_libdir_flag_spec='-L$libdir'
11090       hardcode_shlibpath_var=no
11091       ;;
11092
11093     *)
11094       ld_shlibs=no
11095       ;;
11096     esac
11097
11098     if test x$host_vendor = xsni; then
11099       case $host in
11100       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11101         export_dynamic_flag_spec='${wl}-Blargedynsym'
11102         ;;
11103       esac
11104     fi
11105   fi
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11108 $as_echo "$ld_shlibs" >&6; }
11109 test "$ld_shlibs" = no && can_build_shared=no
11110
11111 with_gnu_ld=$with_gnu_ld
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127 #
11128 # Do we need to explicitly link libc?
11129 #
11130 case "x$archive_cmds_need_lc" in
11131 x|xyes)
11132   # Assume -lc should be added
11133   archive_cmds_need_lc=yes
11134
11135   if test "$enable_shared" = yes && test "$GCC" = yes; then
11136     case $archive_cmds in
11137     *'~'*)
11138       # FIXME: we may have to deal with multi-command sequences.
11139       ;;
11140     '$CC '*)
11141       # Test whether the compiler implicitly links with -lc since on some
11142       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11143       # to ld, don't add -lc before -lgcc.
11144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11146 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   $RM conftest*
11150         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11151
11152         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11153   (eval $ac_compile) 2>&5
11154   ac_status=$?
11155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156   test $ac_status = 0; } 2>conftest.err; then
11157           soname=conftest
11158           lib=conftest
11159           libobjs=conftest.$ac_objext
11160           deplibs=
11161           wl=$lt_prog_compiler_wl
11162           pic_flag=$lt_prog_compiler_pic
11163           compiler_flags=-v
11164           linker_flags=-v
11165           verstring=
11166           output_objdir=.
11167           libname=conftest
11168           lt_save_allow_undefined_flag=$allow_undefined_flag
11169           allow_undefined_flag=
11170           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11171   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11172   ac_status=$?
11173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11174   test $ac_status = 0; }
11175           then
11176             lt_cv_archive_cmds_need_lc=no
11177           else
11178             lt_cv_archive_cmds_need_lc=yes
11179           fi
11180           allow_undefined_flag=$lt_save_allow_undefined_flag
11181         else
11182           cat conftest.err 1>&5
11183         fi
11184         $RM conftest*
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11188 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11189       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11190       ;;
11191     esac
11192   fi
11193   ;;
11194 esac
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11349
11350 if test "$GCC" = yes; then
11351   case $host_os in
11352     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11353     *) lt_awk_arg="/^libraries:/" ;;
11354   esac
11355   case $host_os in
11356     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11357     *) lt_sed_strip_eq="s,=/,/,g" ;;
11358   esac
11359   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11360   case $lt_search_path_spec in
11361   *\;*)
11362     # if the path contains ";" then we assume it to be the separator
11363     # otherwise default to the standard path separator (i.e. ":") - it is
11364     # assumed that no part of a normal pathname contains ";" but that should
11365     # okay in the real world where ";" in dirpaths is itself problematic.
11366     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11367     ;;
11368   *)
11369     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11370     ;;
11371   esac
11372   # Ok, now we have the path, separated by spaces, we can step through it
11373   # and add multilib dir if necessary.
11374   lt_tmp_lt_search_path_spec=
11375   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11376   for lt_sys_path in $lt_search_path_spec; do
11377     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11378       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11379     else
11380       test -d "$lt_sys_path" && \
11381         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11382     fi
11383   done
11384   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11385 BEGIN {RS=" "; FS="/|\n";} {
11386   lt_foo="";
11387   lt_count=0;
11388   for (lt_i = NF; lt_i > 0; lt_i--) {
11389     if ($lt_i != "" && $lt_i != ".") {
11390       if ($lt_i == "..") {
11391         lt_count++;
11392       } else {
11393         if (lt_count == 0) {
11394           lt_foo="/" $lt_i lt_foo;
11395         } else {
11396           lt_count--;
11397         }
11398       }
11399     }
11400   }
11401   if (lt_foo != "") { lt_freq[lt_foo]++; }
11402   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11403 }'`
11404   # AWK program above erroneously prepends '/' to C:/dos/paths
11405   # for these hosts.
11406   case $host_os in
11407     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11408       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11409   esac
11410   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11411 else
11412   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11413 fi
11414 library_names_spec=
11415 libname_spec='lib$name'
11416 soname_spec=
11417 shrext_cmds=".so"
11418 postinstall_cmds=
11419 postuninstall_cmds=
11420 finish_cmds=
11421 finish_eval=
11422 shlibpath_var=
11423 shlibpath_overrides_runpath=unknown
11424 version_type=none
11425 dynamic_linker="$host_os ld.so"
11426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11427 need_lib_prefix=unknown
11428 hardcode_into_libs=no
11429
11430 # when you set need_version to no, make sure it does not cause -set_version
11431 # flags to be left without arguments
11432 need_version=unknown
11433
11434 case $host_os in
11435 aix3*)
11436   version_type=linux # correct to gnu/linux during the next big refactor
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11438   shlibpath_var=LIBPATH
11439
11440   # AIX 3 has no versioning support, so we append a major version to the name.
11441   soname_spec='${libname}${release}${shared_ext}$major'
11442   ;;
11443
11444 aix[4-9]*)
11445   version_type=linux # correct to gnu/linux during the next big refactor
11446   need_lib_prefix=no
11447   need_version=no
11448   hardcode_into_libs=yes
11449   if test "$host_cpu" = ia64; then
11450     # AIX 5 supports IA64
11451     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11452     shlibpath_var=LD_LIBRARY_PATH
11453   else
11454     # With GCC up to 2.95.x, collect2 would create an import file
11455     # for dependence libraries.  The import file would start with
11456     # the line `#! .'.  This would cause the generated library to
11457     # depend on `.', always an invalid library.  This was fixed in
11458     # development snapshots of GCC prior to 3.0.
11459     case $host_os in
11460       aix4 | aix4.[01] | aix4.[01].*)
11461       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11462            echo ' yes '
11463            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11464         :
11465       else
11466         can_build_shared=no
11467       fi
11468       ;;
11469     esac
11470     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11471     # soname into executable. Probably we can add versioning support to
11472     # collect2, so additional links can be useful in future.
11473     if test "$aix_use_runtimelinking" = yes; then
11474       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11475       # instead of lib<name>.a to let people know that these are not
11476       # typical AIX shared libraries.
11477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478     else
11479       # We preserve .a as extension for shared libraries through AIX4.2
11480       # and later when we are not doing run time linking.
11481       library_names_spec='${libname}${release}.a $libname.a'
11482       soname_spec='${libname}${release}${shared_ext}$major'
11483     fi
11484     shlibpath_var=LIBPATH
11485   fi
11486   ;;
11487
11488 amigaos*)
11489   case $host_cpu in
11490   powerpc)
11491     # Since July 2007 AmigaOS4 officially supports .so libraries.
11492     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494     ;;
11495   m68k)
11496     library_names_spec='$libname.ixlibrary $libname.a'
11497     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11498     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11499     ;;
11500   esac
11501   ;;
11502
11503 beos*)
11504   library_names_spec='${libname}${shared_ext}'
11505   dynamic_linker="$host_os ld.so"
11506   shlibpath_var=LIBRARY_PATH
11507   ;;
11508
11509 bsdi[45]*)
11510   version_type=linux # correct to gnu/linux during the next big refactor
11511   need_version=no
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11517   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11518   # the default ld.so.conf also contains /usr/contrib/lib and
11519   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11520   # libtool to hard-code these into programs
11521   ;;
11522
11523 cygwin* | mingw* | pw32* | cegcc*)
11524   version_type=windows
11525   shrext_cmds=".dll"
11526   need_version=no
11527   need_lib_prefix=no
11528
11529   case $GCC,$cc_basename in
11530   yes,*)
11531     # gcc
11532     library_names_spec='$libname.dll.a'
11533     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11534     postinstall_cmds='base_file=`basename \${file}`~
11535       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11536       dldir=$destdir/`dirname \$dlpath`~
11537       test -d \$dldir || mkdir -p \$dldir~
11538       $install_prog $dir/$dlname \$dldir/$dlname~
11539       chmod a+x \$dldir/$dlname~
11540       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11541         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11542       fi'
11543     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11544       dlpath=$dir/\$dldll~
11545        $RM \$dlpath'
11546     shlibpath_overrides_runpath=yes
11547
11548     case $host_os in
11549     cygwin*)
11550       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11551       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11552
11553       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11554       ;;
11555     mingw* | cegcc*)
11556       # MinGW DLLs use traditional 'lib' prefix
11557       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11558       ;;
11559     pw32*)
11560       # pw32 DLLs use 'pw' prefix rather than 'lib'
11561       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562       ;;
11563     esac
11564     dynamic_linker='Win32 ld.exe'
11565     ;;
11566
11567   *,cl*)
11568     # Native MSVC
11569     libname_spec='$name'
11570     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11571     library_names_spec='${libname}.dll.lib'
11572
11573     case $build_os in
11574     mingw*)
11575       sys_lib_search_path_spec=
11576       lt_save_ifs=$IFS
11577       IFS=';'
11578       for lt_path in $LIB
11579       do
11580         IFS=$lt_save_ifs
11581         # Let DOS variable expansion print the short 8.3 style file name.
11582         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11583         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11584       done
11585       IFS=$lt_save_ifs
11586       # Convert to MSYS style.
11587       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11588       ;;
11589     cygwin*)
11590       # Convert to unix form, then to dos form, then back to unix form
11591       # but this time dos style (no spaces!) so that the unix form looks
11592       # like /cygdrive/c/PROGRA~1:/cygdr...
11593       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11594       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11595       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11596       ;;
11597     *)
11598       sys_lib_search_path_spec="$LIB"
11599       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11600         # It is most probably a Windows format PATH.
11601         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11602       else
11603         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11604       fi
11605       # FIXME: find the short name or the path components, as spaces are
11606       # common. (e.g. "Program Files" -> "PROGRA~1")
11607       ;;
11608     esac
11609
11610     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11611     postinstall_cmds='base_file=`basename \${file}`~
11612       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11613       dldir=$destdir/`dirname \$dlpath`~
11614       test -d \$dldir || mkdir -p \$dldir~
11615       $install_prog $dir/$dlname \$dldir/$dlname'
11616     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11617       dlpath=$dir/\$dldll~
11618        $RM \$dlpath'
11619     shlibpath_overrides_runpath=yes
11620     dynamic_linker='Win32 link.exe'
11621     ;;
11622
11623   *)
11624     # Assume MSVC wrapper
11625     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11626     dynamic_linker='Win32 ld.exe'
11627     ;;
11628   esac
11629   # FIXME: first we should search . and the directory the executable is in
11630   shlibpath_var=PATH
11631   ;;
11632
11633 darwin* | rhapsody*)
11634   dynamic_linker="$host_os dyld"
11635   version_type=darwin
11636   need_lib_prefix=no
11637   need_version=no
11638   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11639   soname_spec='${libname}${release}${major}$shared_ext'
11640   shlibpath_overrides_runpath=yes
11641   shlibpath_var=DYLD_LIBRARY_PATH
11642   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11643
11644   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11645   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11646   ;;
11647
11648 dgux*)
11649   version_type=linux # correct to gnu/linux during the next big refactor
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   ;;
11656
11657 freebsd* | dragonfly*)
11658   # DragonFly does not have aout.  When/if they implement a new
11659   # versioning mechanism, adjust this.
11660   if test -x /usr/bin/objformat; then
11661     objformat=`/usr/bin/objformat`
11662   else
11663     case $host_os in
11664     freebsd[23].*) objformat=aout ;;
11665     *) objformat=elf ;;
11666     esac
11667   fi
11668   version_type=freebsd-$objformat
11669   case $version_type in
11670     freebsd-elf*)
11671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11672       need_version=no
11673       need_lib_prefix=no
11674       ;;
11675     freebsd-*)
11676       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11677       need_version=yes
11678       ;;
11679   esac
11680   shlibpath_var=LD_LIBRARY_PATH
11681   case $host_os in
11682   freebsd2.*)
11683     shlibpath_overrides_runpath=yes
11684     ;;
11685   freebsd3.[01]* | freebsdelf3.[01]*)
11686     shlibpath_overrides_runpath=yes
11687     hardcode_into_libs=yes
11688     ;;
11689   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11690   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11691     shlibpath_overrides_runpath=no
11692     hardcode_into_libs=yes
11693     ;;
11694   *) # from 4.6 on, and DragonFly
11695     shlibpath_overrides_runpath=yes
11696     hardcode_into_libs=yes
11697     ;;
11698   esac
11699   ;;
11700
11701 haiku*)
11702   version_type=linux # correct to gnu/linux during the next big refactor
11703   need_lib_prefix=no
11704   need_version=no
11705   dynamic_linker="$host_os runtime_loader"
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LIBRARY_PATH
11709   shlibpath_overrides_runpath=yes
11710   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11711   hardcode_into_libs=yes
11712   ;;
11713
11714 hpux9* | hpux10* | hpux11*)
11715   # Give a soname corresponding to the major version so that dld.sl refuses to
11716   # link against other versions.
11717   version_type=sunos
11718   need_lib_prefix=no
11719   need_version=no
11720   case $host_cpu in
11721   ia64*)
11722     shrext_cmds='.so'
11723     hardcode_into_libs=yes
11724     dynamic_linker="$host_os dld.so"
11725     shlibpath_var=LD_LIBRARY_PATH
11726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728     soname_spec='${libname}${release}${shared_ext}$major'
11729     if test "X$HPUX_IA64_MODE" = X32; then
11730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11731     else
11732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11733     fi
11734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11735     ;;
11736   hppa*64*)
11737     shrext_cmds='.sl'
11738     hardcode_into_libs=yes
11739     dynamic_linker="$host_os dld.sl"
11740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743     soname_spec='${libname}${release}${shared_ext}$major'
11744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11746     ;;
11747   *)
11748     shrext_cmds='.sl'
11749     dynamic_linker="$host_os dld.sl"
11750     shlibpath_var=SHLIB_PATH
11751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753     soname_spec='${libname}${release}${shared_ext}$major'
11754     ;;
11755   esac
11756   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11757   postinstall_cmds='chmod 555 $lib'
11758   # or fails outright, so override atomically:
11759   install_override_mode=555
11760   ;;
11761
11762 interix[3-9]*)
11763   version_type=linux # correct to gnu/linux during the next big refactor
11764   need_lib_prefix=no
11765   need_version=no
11766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11767   soname_spec='${libname}${release}${shared_ext}$major'
11768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11769   shlibpath_var=LD_LIBRARY_PATH
11770   shlibpath_overrides_runpath=no
11771   hardcode_into_libs=yes
11772   ;;
11773
11774 irix5* | irix6* | nonstopux*)
11775   case $host_os in
11776     nonstopux*) version_type=nonstopux ;;
11777     *)
11778         if test "$lt_cv_prog_gnu_ld" = yes; then
11779                 version_type=linux # correct to gnu/linux during the next big refactor
11780         else
11781                 version_type=irix
11782         fi ;;
11783   esac
11784   need_lib_prefix=no
11785   need_version=no
11786   soname_spec='${libname}${release}${shared_ext}$major'
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11788   case $host_os in
11789   irix5* | nonstopux*)
11790     libsuff= shlibsuff=
11791     ;;
11792   *)
11793     case $LD in # libtool.m4 will add one of these switches to LD
11794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11795       libsuff= shlibsuff= libmagic=32-bit;;
11796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11797       libsuff=32 shlibsuff=N32 libmagic=N32;;
11798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11800     *) libsuff= shlibsuff= libmagic=never-match;;
11801     esac
11802     ;;
11803   esac
11804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11805   shlibpath_overrides_runpath=no
11806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11808   hardcode_into_libs=yes
11809   ;;
11810
11811 # No shared lib support for Linux oldld, aout, or coff.
11812 linux*oldld* | linux*aout* | linux*coff*)
11813   dynamic_linker=no
11814   ;;
11815
11816 # This must be glibc/ELF.
11817 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11818   version_type=linux # correct to gnu/linux during the next big refactor
11819   need_lib_prefix=no
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   shlibpath_overrides_runpath=no
11826
11827   # Some binutils ld are patched to set DT_RUNPATH
11828   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831   lt_cv_shlibpath_overrides_runpath=no
11832     save_LDFLAGS=$LDFLAGS
11833     save_libdir=$libdir
11834     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11835          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h.  */
11838
11839 int
11840 main ()
11841 {
11842
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11849   lt_cv_shlibpath_overrides_runpath=yes
11850 fi
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853     conftest$ac_exeext conftest.$ac_ext
11854     LDFLAGS=$save_LDFLAGS
11855     libdir=$save_libdir
11856
11857 fi
11858
11859   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11860
11861   # This implies no fast_install, which is unacceptable.
11862   # Some rework will be needed to allow for fast_install
11863   # before this can be enabled.
11864   hardcode_into_libs=yes
11865
11866   # Append ld.so.conf contents to the search path
11867   if test -f /etc/ld.so.conf; then
11868     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' ' '`
11869     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11870   fi
11871
11872   # We used to test for /lib/ld.so.1 and disable shared libraries on
11873   # powerpc, because MkLinux only supported shared libraries with the
11874   # GNU dynamic linker.  Since this was broken with cross compilers,
11875   # most powerpc-linux boxes support dynamic linking these days and
11876   # people can always --disable-shared, the test was removed, and we
11877   # assume the GNU/Linux dynamic linker is in use.
11878   dynamic_linker='GNU/Linux ld.so'
11879   ;;
11880
11881 netbsdelf*-gnu)
11882   version_type=linux
11883   need_lib_prefix=no
11884   need_version=no
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11886   soname_spec='${libname}${release}${shared_ext}$major'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   shlibpath_overrides_runpath=no
11889   hardcode_into_libs=yes
11890   dynamic_linker='NetBSD ld.elf_so'
11891   ;;
11892
11893 netbsd*)
11894   version_type=sunos
11895   need_lib_prefix=no
11896   need_version=no
11897   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11900     dynamic_linker='NetBSD (a.out) ld.so'
11901   else
11902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11903     soname_spec='${libname}${release}${shared_ext}$major'
11904     dynamic_linker='NetBSD ld.elf_so'
11905   fi
11906   shlibpath_var=LD_LIBRARY_PATH
11907   shlibpath_overrides_runpath=yes
11908   hardcode_into_libs=yes
11909   ;;
11910
11911 newsos6)
11912   version_type=linux # correct to gnu/linux during the next big refactor
11913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914   shlibpath_var=LD_LIBRARY_PATH
11915   shlibpath_overrides_runpath=yes
11916   ;;
11917
11918 *nto* | *qnx*)
11919   version_type=qnx
11920   need_lib_prefix=no
11921   need_version=no
11922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923   soname_spec='${libname}${release}${shared_ext}$major'
11924   shlibpath_var=LD_LIBRARY_PATH
11925   shlibpath_overrides_runpath=no
11926   hardcode_into_libs=yes
11927   dynamic_linker='ldqnx.so'
11928   ;;
11929
11930 openbsd*)
11931   version_type=sunos
11932   sys_lib_dlsearch_path_spec="/usr/lib"
11933   need_lib_prefix=no
11934   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11935   case $host_os in
11936     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11937     *)                          need_version=no  ;;
11938   esac
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11943     case $host_os in
11944       openbsd2.[89] | openbsd2.[89].*)
11945         shlibpath_overrides_runpath=no
11946         ;;
11947       *)
11948         shlibpath_overrides_runpath=yes
11949         ;;
11950       esac
11951   else
11952     shlibpath_overrides_runpath=yes
11953   fi
11954   ;;
11955
11956 os2*)
11957   libname_spec='$name'
11958   shrext_cmds=".dll"
11959   need_lib_prefix=no
11960   library_names_spec='$libname${shared_ext} $libname.a'
11961   dynamic_linker='OS/2 ld.exe'
11962   shlibpath_var=LIBPATH
11963   ;;
11964
11965 osf3* | osf4* | osf5*)
11966   version_type=osf
11967   need_lib_prefix=no
11968   need_version=no
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971   shlibpath_var=LD_LIBRARY_PATH
11972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11974   ;;
11975
11976 rdos*)
11977   dynamic_linker=no
11978   ;;
11979
11980 solaris*)
11981   version_type=linux # correct to gnu/linux during the next big refactor
11982   need_lib_prefix=no
11983   need_version=no
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985   soname_spec='${libname}${release}${shared_ext}$major'
11986   shlibpath_var=LD_LIBRARY_PATH
11987   shlibpath_overrides_runpath=yes
11988   hardcode_into_libs=yes
11989   # ldd complains unless libraries are executable
11990   postinstall_cmds='chmod +x $lib'
11991   ;;
11992
11993 sunos4*)
11994   version_type=sunos
11995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11996   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11997   shlibpath_var=LD_LIBRARY_PATH
11998   shlibpath_overrides_runpath=yes
11999   if test "$with_gnu_ld" = yes; then
12000     need_lib_prefix=no
12001   fi
12002   need_version=yes
12003   ;;
12004
12005 sysv4 | sysv4.3*)
12006   version_type=linux # correct to gnu/linux during the next big refactor
12007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008   soname_spec='${libname}${release}${shared_ext}$major'
12009   shlibpath_var=LD_LIBRARY_PATH
12010   case $host_vendor in
12011     sni)
12012       shlibpath_overrides_runpath=no
12013       need_lib_prefix=no
12014       runpath_var=LD_RUN_PATH
12015       ;;
12016     siemens)
12017       need_lib_prefix=no
12018       ;;
12019     motorola)
12020       need_lib_prefix=no
12021       need_version=no
12022       shlibpath_overrides_runpath=no
12023       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12024       ;;
12025   esac
12026   ;;
12027
12028 sysv4*MP*)
12029   if test -d /usr/nec ;then
12030     version_type=linux # correct to gnu/linux during the next big refactor
12031     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12032     soname_spec='$libname${shared_ext}.$major'
12033     shlibpath_var=LD_LIBRARY_PATH
12034   fi
12035   ;;
12036
12037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12038   version_type=freebsd-elf
12039   need_lib_prefix=no
12040   need_version=no
12041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12042   soname_spec='${libname}${release}${shared_ext}$major'
12043   shlibpath_var=LD_LIBRARY_PATH
12044   shlibpath_overrides_runpath=yes
12045   hardcode_into_libs=yes
12046   if test "$with_gnu_ld" = yes; then
12047     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12048   else
12049     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12050     case $host_os in
12051       sco3.2v5*)
12052         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12053         ;;
12054     esac
12055   fi
12056   sys_lib_dlsearch_path_spec='/usr/lib'
12057   ;;
12058
12059 tpf*)
12060   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12061   version_type=linux # correct to gnu/linux during the next big refactor
12062   need_lib_prefix=no
12063   need_version=no
12064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065   shlibpath_var=LD_LIBRARY_PATH
12066   shlibpath_overrides_runpath=no
12067   hardcode_into_libs=yes
12068   ;;
12069
12070 uts4*)
12071   version_type=linux # correct to gnu/linux during the next big refactor
12072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073   soname_spec='${libname}${release}${shared_ext}$major'
12074   shlibpath_var=LD_LIBRARY_PATH
12075   ;;
12076
12077 *)
12078   dynamic_linker=no
12079   ;;
12080 esac
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12082 $as_echo "$dynamic_linker" >&6; }
12083 test "$dynamic_linker" = no && can_build_shared=no
12084
12085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12086 if test "$GCC" = yes; then
12087   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12088 fi
12089
12090 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12091   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12092 fi
12093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12094   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12095 fi
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12189 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12190 hardcode_action=
12191 if test -n "$hardcode_libdir_flag_spec" ||
12192    test -n "$runpath_var" ||
12193    test "X$hardcode_automatic" = "Xyes" ; then
12194
12195   # We can hardcode non-existent directories.
12196   if test "$hardcode_direct" != no &&
12197      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12198      # have to relink, otherwise we might link with an installed library
12199      # when we should be linking with a yet-to-be-installed one
12200      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12201      test "$hardcode_minus_L" != no; then
12202     # Linking always hardcodes the temporary library directory.
12203     hardcode_action=relink
12204   else
12205     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12206     hardcode_action=immediate
12207   fi
12208 else
12209   # We cannot hardcode anything, or else we can only hardcode existing
12210   # directories.
12211   hardcode_action=unsupported
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12214 $as_echo "$hardcode_action" >&6; }
12215
12216 if test "$hardcode_action" = relink ||
12217    test "$inherit_rpath" = yes; then
12218   # Fast installation is not supported
12219   enable_fast_install=no
12220 elif test "$shlibpath_overrides_runpath" = yes ||
12221      test "$enable_shared" = no; then
12222   # Fast installation is not necessary
12223   enable_fast_install=needless
12224 fi
12225
12226
12227
12228
12229
12230
12231   if test "x$enable_dlopen" != xyes; then
12232   enable_dlopen=unknown
12233   enable_dlopen_self=unknown
12234   enable_dlopen_self_static=unknown
12235 else
12236   lt_cv_dlopen=no
12237   lt_cv_dlopen_libs=
12238
12239   case $host_os in
12240   beos*)
12241     lt_cv_dlopen="load_add_on"
12242     lt_cv_dlopen_libs=
12243     lt_cv_dlopen_self=yes
12244     ;;
12245
12246   mingw* | pw32* | cegcc*)
12247     lt_cv_dlopen="LoadLibrary"
12248     lt_cv_dlopen_libs=
12249     ;;
12250
12251   cygwin*)
12252     lt_cv_dlopen="dlopen"
12253     lt_cv_dlopen_libs=
12254     ;;
12255
12256   darwin*)
12257   # if libdl is installed we need to link against it
12258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12259 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12260 if ${ac_cv_lib_dl_dlopen+:} false; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-ldl  $LIBS"
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267
12268 /* Override any GCC internal prototype to avoid an error.
12269    Use char because int might match the return type of a GCC
12270    builtin and then its argument prototype would still apply.  */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 char dlopen ();
12275 int
12276 main ()
12277 {
12278 return dlopen ();
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"; then :
12284   ac_cv_lib_dl_dlopen=yes
12285 else
12286   ac_cv_lib_dl_dlopen=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext \
12289     conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12293 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12294 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12296 else
12297
12298     lt_cv_dlopen="dyld"
12299     lt_cv_dlopen_libs=
12300     lt_cv_dlopen_self=yes
12301
12302 fi
12303
12304     ;;
12305
12306   *)
12307     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12308 if test "x$ac_cv_func_shl_load" = xyes; then :
12309   lt_cv_dlopen="shl_load"
12310 else
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12312 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12313 if ${ac_cv_lib_dld_shl_load+:} false; then :
12314   $as_echo_n "(cached) " >&6
12315 else
12316   ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldld  $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322    Use char because int might match the return type of a GCC
12323    builtin and then its argument prototype would still apply.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char shl_load ();
12328 int
12329 main ()
12330 {
12331 return shl_load ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337   ac_cv_lib_dld_shl_load=yes
12338 else
12339   ac_cv_lib_dld_shl_load=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext \
12342     conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12346 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12347 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12348   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12349 else
12350   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12351 if test "x$ac_cv_func_dlopen" = xyes; then :
12352   lt_cv_dlopen="dlopen"
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12356 if ${ac_cv_lib_dl_dlopen+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   ac_check_lib_save_LIBS=$LIBS
12360 LIBS="-ldl  $LIBS"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365    Use char because int might match the return type of a GCC
12366    builtin and then its argument prototype would still apply.  */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char dlopen ();
12371 int
12372 main ()
12373 {
12374 return dlopen ();
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380   ac_cv_lib_dl_dlopen=yes
12381 else
12382   ac_cv_lib_dl_dlopen=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385     conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12390 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12394 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12395 if ${ac_cv_lib_svld_dlopen+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lsvld  $LIBS"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h.  */
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404    Use char because int might match the return type of a GCC
12405    builtin and then its argument prototype would still apply.  */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char dlopen ();
12410 int
12411 main ()
12412 {
12413 return dlopen ();
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 if ac_fn_c_try_link "$LINENO"; then :
12419   ac_cv_lib_svld_dlopen=yes
12420 else
12421   ac_cv_lib_svld_dlopen=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext \
12424     conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12428 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12429 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12431 else
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12433 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12434 if ${ac_cv_lib_dld_dld_link+:} false; then :
12435   $as_echo_n "(cached) " >&6
12436 else
12437   ac_check_lib_save_LIBS=$LIBS
12438 LIBS="-ldld  $LIBS"
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h.  */
12441
12442 /* Override any GCC internal prototype to avoid an error.
12443    Use char because int might match the return type of a GCC
12444    builtin and then its argument prototype would still apply.  */
12445 #ifdef __cplusplus
12446 extern "C"
12447 #endif
12448 char dld_link ();
12449 int
12450 main ()
12451 {
12452 return dld_link ();
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 if ac_fn_c_try_link "$LINENO"; then :
12458   ac_cv_lib_dld_dld_link=yes
12459 else
12460   ac_cv_lib_dld_dld_link=no
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext \
12463     conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12467 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12468 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12469   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12470 fi
12471
12472
12473 fi
12474
12475
12476 fi
12477
12478
12479 fi
12480
12481
12482 fi
12483
12484
12485 fi
12486
12487     ;;
12488   esac
12489
12490   if test "x$lt_cv_dlopen" != xno; then
12491     enable_dlopen=yes
12492   else
12493     enable_dlopen=no
12494   fi
12495
12496   case $lt_cv_dlopen in
12497   dlopen)
12498     save_CPPFLAGS="$CPPFLAGS"
12499     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12500
12501     save_LDFLAGS="$LDFLAGS"
12502     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12503
12504     save_LIBS="$LIBS"
12505     LIBS="$lt_cv_dlopen_libs $LIBS"
12506
12507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12508 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12509 if ${lt_cv_dlopen_self+:} false; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512           if test "$cross_compiling" = yes; then :
12513   lt_cv_dlopen_self=cross
12514 else
12515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12516   lt_status=$lt_dlunknown
12517   cat > conftest.$ac_ext <<_LT_EOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12520
12521 #if HAVE_DLFCN_H
12522 #include <dlfcn.h>
12523 #endif
12524
12525 #include <stdio.h>
12526
12527 #ifdef RTLD_GLOBAL
12528 #  define LT_DLGLOBAL           RTLD_GLOBAL
12529 #else
12530 #  ifdef DL_GLOBAL
12531 #    define LT_DLGLOBAL         DL_GLOBAL
12532 #  else
12533 #    define LT_DLGLOBAL         0
12534 #  endif
12535 #endif
12536
12537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12538    find out it does not work in some platform. */
12539 #ifndef LT_DLLAZY_OR_NOW
12540 #  ifdef RTLD_LAZY
12541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12542 #  else
12543 #    ifdef DL_LAZY
12544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12545 #    else
12546 #      ifdef RTLD_NOW
12547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12548 #      else
12549 #        ifdef DL_NOW
12550 #          define LT_DLLAZY_OR_NOW      DL_NOW
12551 #        else
12552 #          define LT_DLLAZY_OR_NOW      0
12553 #        endif
12554 #      endif
12555 #    endif
12556 #  endif
12557 #endif
12558
12559 /* When -fvisbility=hidden is used, assume the code has been annotated
12560    correspondingly for the symbols needed.  */
12561 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12562 int fnord () __attribute__((visibility("default")));
12563 #endif
12564
12565 int fnord () { return 42; }
12566 int main ()
12567 {
12568   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12569   int status = $lt_dlunknown;
12570
12571   if (self)
12572     {
12573       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12574       else
12575         {
12576           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12577           else puts (dlerror ());
12578         }
12579       /* dlclose (self); */
12580     }
12581   else
12582     puts (dlerror ());
12583
12584   return status;
12585 }
12586 _LT_EOF
12587   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12588   (eval $ac_link) 2>&5
12589   ac_status=$?
12590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12591   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12592     (./conftest; exit; ) >&5 2>/dev/null
12593     lt_status=$?
12594     case x$lt_status in
12595       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12596       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12597       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12598     esac
12599   else :
12600     # compilation failed
12601     lt_cv_dlopen_self=no
12602   fi
12603 fi
12604 rm -fr conftest*
12605
12606
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12609 $as_echo "$lt_cv_dlopen_self" >&6; }
12610
12611     if test "x$lt_cv_dlopen_self" = xyes; then
12612       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12614 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12615 if ${lt_cv_dlopen_self_static+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618           if test "$cross_compiling" = yes; then :
12619   lt_cv_dlopen_self_static=cross
12620 else
12621   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12622   lt_status=$lt_dlunknown
12623   cat > conftest.$ac_ext <<_LT_EOF
12624 #line $LINENO "configure"
12625 #include "confdefs.h"
12626
12627 #if HAVE_DLFCN_H
12628 #include <dlfcn.h>
12629 #endif
12630
12631 #include <stdio.h>
12632
12633 #ifdef RTLD_GLOBAL
12634 #  define LT_DLGLOBAL           RTLD_GLOBAL
12635 #else
12636 #  ifdef DL_GLOBAL
12637 #    define LT_DLGLOBAL         DL_GLOBAL
12638 #  else
12639 #    define LT_DLGLOBAL         0
12640 #  endif
12641 #endif
12642
12643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12644    find out it does not work in some platform. */
12645 #ifndef LT_DLLAZY_OR_NOW
12646 #  ifdef RTLD_LAZY
12647 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12648 #  else
12649 #    ifdef DL_LAZY
12650 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12651 #    else
12652 #      ifdef RTLD_NOW
12653 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12654 #      else
12655 #        ifdef DL_NOW
12656 #          define LT_DLLAZY_OR_NOW      DL_NOW
12657 #        else
12658 #          define LT_DLLAZY_OR_NOW      0
12659 #        endif
12660 #      endif
12661 #    endif
12662 #  endif
12663 #endif
12664
12665 /* When -fvisbility=hidden is used, assume the code has been annotated
12666    correspondingly for the symbols needed.  */
12667 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12668 int fnord () __attribute__((visibility("default")));
12669 #endif
12670
12671 int fnord () { return 42; }
12672 int main ()
12673 {
12674   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12675   int status = $lt_dlunknown;
12676
12677   if (self)
12678     {
12679       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12680       else
12681         {
12682           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12683           else puts (dlerror ());
12684         }
12685       /* dlclose (self); */
12686     }
12687   else
12688     puts (dlerror ());
12689
12690   return status;
12691 }
12692 _LT_EOF
12693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12694   (eval $ac_link) 2>&5
12695   ac_status=$?
12696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12697   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12698     (./conftest; exit; ) >&5 2>/dev/null
12699     lt_status=$?
12700     case x$lt_status in
12701       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12702       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12703       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12704     esac
12705   else :
12706     # compilation failed
12707     lt_cv_dlopen_self_static=no
12708   fi
12709 fi
12710 rm -fr conftest*
12711
12712
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12715 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12716     fi
12717
12718     CPPFLAGS="$save_CPPFLAGS"
12719     LDFLAGS="$save_LDFLAGS"
12720     LIBS="$save_LIBS"
12721     ;;
12722   esac
12723
12724   case $lt_cv_dlopen_self in
12725   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12726   *) enable_dlopen_self=unknown ;;
12727   esac
12728
12729   case $lt_cv_dlopen_self_static in
12730   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12731   *) enable_dlopen_self_static=unknown ;;
12732   esac
12733 fi
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751 striplib=
12752 old_striplib=
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12754 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12755 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12756   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12757   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 $as_echo "yes" >&6; }
12760 else
12761 # FIXME - insert some real tests, host_os isn't really good enough
12762   case $host_os in
12763   darwin*)
12764     if test -n "$STRIP" ; then
12765       striplib="$STRIP -x"
12766       old_striplib="$STRIP -S"
12767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768 $as_echo "yes" >&6; }
12769     else
12770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772     fi
12773     ;;
12774   *)
12775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777     ;;
12778   esac
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792   # Report which library types will actually be built
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12794 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12796 $as_echo "$can_build_shared" >&6; }
12797
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12799 $as_echo_n "checking whether to build shared libraries... " >&6; }
12800   test "$can_build_shared" = "no" && enable_shared=no
12801
12802   # On AIX, shared libraries and static libraries use the same namespace, and
12803   # are all built from PIC.
12804   case $host_os in
12805   aix3*)
12806     test "$enable_shared" = yes && enable_static=no
12807     if test -n "$RANLIB"; then
12808       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12809       postinstall_cmds='$RANLIB $lib'
12810     fi
12811     ;;
12812
12813   aix[4-9]*)
12814     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12815       test "$enable_shared" = yes && enable_static=no
12816     fi
12817     ;;
12818   esac
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12820 $as_echo "$enable_shared" >&6; }
12821
12822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12823 $as_echo_n "checking whether to build static libraries... " >&6; }
12824   # Make sure either enable_shared or enable_static is yes.
12825   test "$enable_shared" = yes || enable_static=yes
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12827 $as_echo "$enable_static" >&6; }
12828
12829
12830
12831
12832 fi
12833 ac_ext=c
12834 ac_cpp='$CPP $CPPFLAGS'
12835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12838
12839 CC="$lt_save_CC"
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855         ac_config_commands="$ac_config_commands libtool"
12856
12857
12858
12859
12860 # Only expand once:
12861
12862
12863
12864 ac_config_headers="$ac_config_headers config.h"
12865
12866
12867
12868 # Check $PATH for the following programs and append suitable options.
12869 ac_ext=c
12870 ac_cpp='$CPP $CPPFLAGS'
12871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12874 if test -n "$ac_tool_prefix"; then
12875   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if ${ac_cv_prog_CC+:} false; then :
12880   $as_echo_n "(cached) " >&6
12881 else
12882   if test -n "$CC"; then
12883   ac_cv_prog_CC="$CC" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888   IFS=$as_save_IFS
12889   test -z "$as_dir" && as_dir=.
12890     for ac_exec_ext in '' $ac_executable_extensions; do
12891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894     break 2
12895   fi
12896 done
12897   done
12898 IFS=$as_save_IFS
12899
12900 fi
12901 fi
12902 CC=$ac_cv_prog_CC
12903 if test -n "$CC"; then
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12905 $as_echo "$CC" >&6; }
12906 else
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910
12911
12912 fi
12913 if test -z "$ac_cv_prog_CC"; then
12914   ac_ct_CC=$CC
12915   # Extract the first word of "gcc", so it can be a program name with args.
12916 set dummy gcc; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12920   $as_echo_n "(cached) " >&6
12921 else
12922   if test -n "$ac_ct_CC"; then
12923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12924 else
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12927 do
12928   IFS=$as_save_IFS
12929   test -z "$as_dir" && as_dir=.
12930     for ac_exec_ext in '' $ac_executable_extensions; do
12931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932     ac_cv_prog_ac_ct_CC="gcc"
12933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934     break 2
12935   fi
12936 done
12937   done
12938 IFS=$as_save_IFS
12939
12940 fi
12941 fi
12942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12943 if test -n "$ac_ct_CC"; then
12944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12945 $as_echo "$ac_ct_CC" >&6; }
12946 else
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12949 fi
12950
12951   if test "x$ac_ct_CC" = x; then
12952     CC=""
12953   else
12954     case $cross_compiling:$ac_tool_warned in
12955 yes:)
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12958 ac_tool_warned=yes ;;
12959 esac
12960     CC=$ac_ct_CC
12961   fi
12962 else
12963   CC="$ac_cv_prog_CC"
12964 fi
12965
12966 if test -z "$CC"; then
12967           if test -n "$ac_tool_prefix"; then
12968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12969 set dummy ${ac_tool_prefix}cc; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_prog_CC+:} false; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975   if test -n "$CC"; then
12976   ac_cv_prog_CC="$CC" # Let the user override the test.
12977 else
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981   IFS=$as_save_IFS
12982   test -z "$as_dir" && as_dir=.
12983     for ac_exec_ext in '' $ac_executable_extensions; do
12984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985     ac_cv_prog_CC="${ac_tool_prefix}cc"
12986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987     break 2
12988   fi
12989 done
12990   done
12991 IFS=$as_save_IFS
12992
12993 fi
12994 fi
12995 CC=$ac_cv_prog_CC
12996 if test -n "$CC"; then
12997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12998 $as_echo "$CC" >&6; }
12999 else
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 fi
13003
13004
13005   fi
13006 fi
13007 if test -z "$CC"; then
13008   # Extract the first word of "cc", so it can be a program name with args.
13009 set dummy cc; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_CC+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   if test -n "$CC"; then
13016   ac_cv_prog_CC="$CC" # Let the user override the test.
13017 else
13018   ac_prog_rejected=no
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022   IFS=$as_save_IFS
13023   test -z "$as_dir" && as_dir=.
13024     for ac_exec_ext in '' $ac_executable_extensions; do
13025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13027        ac_prog_rejected=yes
13028        continue
13029      fi
13030     ac_cv_prog_CC="cc"
13031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035   done
13036 IFS=$as_save_IFS
13037
13038 if test $ac_prog_rejected = yes; then
13039   # We found a bogon in the path, so make sure we never use it.
13040   set dummy $ac_cv_prog_CC
13041   shift
13042   if test $# != 0; then
13043     # We chose a different compiler from the bogus one.
13044     # However, it has the same basename, so the bogon will be chosen
13045     # first if we set CC to just the basename; use the full file name.
13046     shift
13047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13048   fi
13049 fi
13050 fi
13051 fi
13052 CC=$ac_cv_prog_CC
13053 if test -n "$CC"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13055 $as_echo "$CC" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060
13061
13062 fi
13063 if test -z "$CC"; then
13064   if test -n "$ac_tool_prefix"; then
13065   for ac_prog in cl.exe
13066   do
13067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_prog_CC+:} false; then :
13072   $as_echo_n "(cached) " >&6
13073 else
13074   if test -n "$CC"; then
13075   ac_cv_prog_CC="$CC" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080   IFS=$as_save_IFS
13081   test -z "$as_dir" && as_dir=.
13082     for ac_exec_ext in '' $ac_executable_extensions; do
13083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086     break 2
13087   fi
13088 done
13089   done
13090 IFS=$as_save_IFS
13091
13092 fi
13093 fi
13094 CC=$ac_cv_prog_CC
13095 if test -n "$CC"; then
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13097 $as_echo "$CC" >&6; }
13098 else
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13101 fi
13102
13103
13104     test -n "$CC" && break
13105   done
13106 fi
13107 if test -z "$CC"; then
13108   ac_ct_CC=$CC
13109   for ac_prog in cl.exe
13110 do
13111   # Extract the first word of "$ac_prog", so it can be a program name with args.
13112 set dummy $ac_prog; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13116   $as_echo_n "(cached) " >&6
13117 else
13118   if test -n "$ac_ct_CC"; then
13119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13120 else
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13123 do
13124   IFS=$as_save_IFS
13125   test -z "$as_dir" && as_dir=.
13126     for ac_exec_ext in '' $ac_executable_extensions; do
13127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128     ac_cv_prog_ac_ct_CC="$ac_prog"
13129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130     break 2
13131   fi
13132 done
13133   done
13134 IFS=$as_save_IFS
13135
13136 fi
13137 fi
13138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13139 if test -n "$ac_ct_CC"; then
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13141 $as_echo "$ac_ct_CC" >&6; }
13142 else
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145 fi
13146
13147
13148   test -n "$ac_ct_CC" && break
13149 done
13150
13151   if test "x$ac_ct_CC" = x; then
13152     CC=""
13153   else
13154     case $cross_compiling:$ac_tool_warned in
13155 yes:)
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158 ac_tool_warned=yes ;;
13159 esac
13160     CC=$ac_ct_CC
13161   fi
13162 fi
13163
13164 fi
13165
13166
13167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13169 as_fn_error $? "no acceptable C compiler found in \$PATH
13170 See \`config.log' for more details" "$LINENO" 5; }
13171
13172 # Provide some information about the compiler.
13173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13174 set X $ac_compile
13175 ac_compiler=$2
13176 for ac_option in --version -v -V -qversion; do
13177   { { ac_try="$ac_compiler $ac_option >&5"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13183 $as_echo "$ac_try_echo"; } >&5
13184   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13185   ac_status=$?
13186   if test -s conftest.err; then
13187     sed '10a\
13188 ... rest of stderr output deleted ...
13189          10q' conftest.err >conftest.er1
13190     cat conftest.er1 >&5
13191   fi
13192   rm -f conftest.er1 conftest.err
13193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194   test $ac_status = 0; }
13195 done
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13199 if ${ac_cv_c_compiler_gnu+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h.  */
13204
13205 int
13206 main ()
13207 {
13208 #ifndef __GNUC__
13209        choke me
13210 #endif
13211
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217   ac_compiler_gnu=yes
13218 else
13219   ac_compiler_gnu=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13223
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13227 if test $ac_compiler_gnu = yes; then
13228   GCC=yes
13229 else
13230   GCC=
13231 fi
13232 ac_test_CFLAGS=${CFLAGS+set}
13233 ac_save_CFLAGS=$CFLAGS
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13236 if ${ac_cv_prog_cc_g+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_save_c_werror_flag=$ac_c_werror_flag
13240    ac_c_werror_flag=yes
13241    ac_cv_prog_cc_g=no
13242    CFLAGS="-g"
13243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245
13246 int
13247 main ()
13248 {
13249
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_compile "$LINENO"; then :
13255   ac_cv_prog_cc_g=yes
13256 else
13257   CFLAGS=""
13258       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h.  */
13260
13261 int
13262 main ()
13263 {
13264
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_compile "$LINENO"; then :
13270
13271 else
13272   ac_c_werror_flag=$ac_save_c_werror_flag
13273          CFLAGS="-g"
13274          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h.  */
13276
13277 int
13278 main ()
13279 {
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286   ac_cv_prog_cc_g=yes
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293    ac_c_werror_flag=$ac_save_c_werror_flag
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13296 $as_echo "$ac_cv_prog_cc_g" >&6; }
13297 if test "$ac_test_CFLAGS" = set; then
13298   CFLAGS=$ac_save_CFLAGS
13299 elif test $ac_cv_prog_cc_g = yes; then
13300   if test "$GCC" = yes; then
13301     CFLAGS="-g -O2"
13302   else
13303     CFLAGS="-g"
13304   fi
13305 else
13306   if test "$GCC" = yes; then
13307     CFLAGS="-O2"
13308   else
13309     CFLAGS=
13310   fi
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13314 if ${ac_cv_prog_cc_c89+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   ac_cv_prog_cc_c89=no
13318 ac_save_CC=$CC
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321 #include <stdarg.h>
13322 #include <stdio.h>
13323 struct stat;
13324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13325 struct buf { int x; };
13326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13327 static char *e (p, i)
13328      char **p;
13329      int i;
13330 {
13331   return p[i];
13332 }
13333 static char *f (char * (*g) (char **, int), char **p, ...)
13334 {
13335   char *s;
13336   va_list v;
13337   va_start (v,p);
13338   s = g (p, va_arg (v,int));
13339   va_end (v);
13340   return s;
13341 }
13342
13343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13344    function prototypes and stuff, but not '\xHH' hex character constants.
13345    These don't provoke an error unfortunately, instead are silently treated
13346    as 'x'.  The following induces an error, until -std is added to get
13347    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13348    array size at least.  It's necessary to write '\x00'==0 to get something
13349    that's true only with -std.  */
13350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13351
13352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13353    inside strings and character constants.  */
13354 #define FOO(x) 'x'
13355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13356
13357 int test (int i, double x);
13358 struct s1 {int (*f) (int a);};
13359 struct s2 {int (*f) (double a);};
13360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13361 int argc;
13362 char **argv;
13363 int
13364 main ()
13365 {
13366 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13372         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13373 do
13374   CC="$ac_save_CC $ac_arg"
13375   if ac_fn_c_try_compile "$LINENO"; then :
13376   ac_cv_prog_cc_c89=$ac_arg
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext
13379   test "x$ac_cv_prog_cc_c89" != "xno" && break
13380 done
13381 rm -f conftest.$ac_ext
13382 CC=$ac_save_CC
13383
13384 fi
13385 # AC_CACHE_VAL
13386 case "x$ac_cv_prog_cc_c89" in
13387   x)
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13389 $as_echo "none needed" >&6; } ;;
13390   xno)
13391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13392 $as_echo "unsupported" >&6; } ;;
13393   *)
13394     CC="$CC $ac_cv_prog_cc_c89"
13395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13397 esac
13398 if test "x$ac_cv_prog_cc_c89" != xno; then :
13399
13400 fi
13401
13402 ac_ext=c
13403 ac_cpp='$CPP $CPPFLAGS'
13404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13407
13408 ac_ext=c
13409 ac_cpp='$CPP $CPPFLAGS'
13410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13414 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13415 if ${am_cv_prog_cc_c_o+:} false; then :
13416   $as_echo_n "(cached) " >&6
13417 else
13418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h.  */
13420
13421 int
13422 main ()
13423 {
13424
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429   # Make sure it works both with $CC and with simple cc.
13430   # Following AC_PROG_CC_C_O, we do the test twice because some
13431   # compilers refuse to overwrite an existing .o file with -o,
13432   # though they will create one.
13433   am_cv_prog_cc_c_o=yes
13434   for am_i in 1 2; do
13435     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13436    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13437    ac_status=$?
13438    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439    (exit $ac_status); } \
13440          && test -f conftest2.$ac_objext; then
13441       : OK
13442     else
13443       am_cv_prog_cc_c_o=no
13444       break
13445     fi
13446   done
13447   rm -f core conftest*
13448   unset am_i
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13451 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13452 if test "$am_cv_prog_cc_c_o" != yes; then
13453    # Losing compiler, so override with the script.
13454    # FIXME: It is wrong to rewrite CC.
13455    # But if we don't then we get into trouble of one sort or another.
13456    # A longer-term fix would be to have automake use am__CC in this case,
13457    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13458    CC="$am_aux_dir/compile $CC"
13459 fi
13460 ac_ext=c
13461 ac_cpp='$CPP $CPPFLAGS'
13462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13465
13466
13467 depcc="$CC"   am_compiler_list=
13468
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13470 $as_echo_n "checking dependency style of $depcc... " >&6; }
13471 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13475   # We make a subdir and do the tests there.  Otherwise we can end up
13476   # making bogus files that we don't know about and never remove.  For
13477   # instance it was reported that on HP-UX the gcc test will end up
13478   # making a dummy file named 'D' -- because '-MD' means "put the output
13479   # in D".
13480   rm -rf conftest.dir
13481   mkdir conftest.dir
13482   # Copy depcomp to subdir because otherwise we won't find it if we're
13483   # using a relative directory.
13484   cp "$am_depcomp" conftest.dir
13485   cd conftest.dir
13486   # We will build objects and dependencies in a subdirectory because
13487   # it helps to detect inapplicable dependency modes.  For instance
13488   # both Tru64's cc and ICC support -MD to output dependencies as a
13489   # side effect of compilation, but ICC will put the dependencies in
13490   # the current directory while Tru64 will put them in the object
13491   # directory.
13492   mkdir sub
13493
13494   am_cv_CC_dependencies_compiler_type=none
13495   if test "$am_compiler_list" = ""; then
13496      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13497   fi
13498   am__universal=false
13499   case " $depcc " in #(
13500      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13501      esac
13502
13503   for depmode in $am_compiler_list; do
13504     # Setup a source with many dependencies, because some compilers
13505     # like to wrap large dependency lists on column 80 (with \), and
13506     # we should not choose a depcomp mode which is confused by this.
13507     #
13508     # We need to recreate these files for each test, as the compiler may
13509     # overwrite some of them when testing with obscure command lines.
13510     # This happens at least with the AIX C compiler.
13511     : > sub/conftest.c
13512     for i in 1 2 3 4 5 6; do
13513       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13514       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13515       # Solaris 10 /bin/sh.
13516       echo '/* dummy */' > sub/conftst$i.h
13517     done
13518     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13519
13520     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13521     # mode.  It turns out that the SunPro C++ compiler does not properly
13522     # handle '-M -o', and we need to detect this.  Also, some Intel
13523     # versions had trouble with output in subdirs.
13524     am__obj=sub/conftest.${OBJEXT-o}
13525     am__minus_obj="-o $am__obj"
13526     case $depmode in
13527     gcc)
13528       # This depmode causes a compiler race in universal mode.
13529       test "$am__universal" = false || continue
13530       ;;
13531     nosideeffect)
13532       # After this tag, mechanisms are not by side-effect, so they'll
13533       # only be used when explicitly requested.
13534       if test "x$enable_dependency_tracking" = xyes; then
13535         continue
13536       else
13537         break
13538       fi
13539       ;;
13540     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13541       # This compiler won't grok '-c -o', but also, the minuso test has
13542       # not run yet.  These depmodes are late enough in the game, and
13543       # so weak that their functioning should not be impacted.
13544       am__obj=conftest.${OBJEXT-o}
13545       am__minus_obj=
13546       ;;
13547     none) break ;;
13548     esac
13549     if depmode=$depmode \
13550        source=sub/conftest.c object=$am__obj \
13551        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13552        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13553          >/dev/null 2>conftest.err &&
13554        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13555        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13556        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13557        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13558       # icc doesn't choke on unknown options, it will just issue warnings
13559       # or remarks (even with -Werror).  So we grep stderr for any message
13560       # that says an option was ignored or not supported.
13561       # When given -MP, icc 7.0 and 7.1 complain thusly:
13562       #   icc: Command line warning: ignoring option '-M'; no argument required
13563       # The diagnosis changed in icc 8.0:
13564       #   icc: Command line remark: option '-MP' not supported
13565       if (grep 'ignoring option' conftest.err ||
13566           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13567         am_cv_CC_dependencies_compiler_type=$depmode
13568         break
13569       fi
13570     fi
13571   done
13572
13573   cd ..
13574   rm -rf conftest.dir
13575 else
13576   am_cv_CC_dependencies_compiler_type=none
13577 fi
13578
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13583
13584  if
13585   test "x$enable_dependency_tracking" != xno \
13586   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13587   am__fastdepCC_TRUE=
13588   am__fastdepCC_FALSE='#'
13589 else
13590   am__fastdepCC_TRUE='#'
13591   am__fastdepCC_FALSE=
13592 fi
13593
13594
13595
13596
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13598 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13599 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602
13603       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605
13606 #ifdef __ACK__
13607 Amsterdam
13608 #endif
13609
13610 _ACEOF
13611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13612   $EGREP "Amsterdam" >/dev/null 2>&1; then :
13613   gl_cv_c_amsterdam_compiler=yes
13614 else
13615   gl_cv_c_amsterdam_compiler=no
13616 fi
13617 rm -f conftest*
13618
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13622 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13623   if test -z "$AR"; then
13624     if test $gl_cv_c_amsterdam_compiler = yes; then
13625       AR='cc -c.a'
13626       if test -z "$ARFLAGS"; then
13627         ARFLAGS='-o'
13628       fi
13629     else
13630                   if test -n "$ac_tool_prefix"; then
13631   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13632 set dummy ${ac_tool_prefix}ar; ac_word=$2
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634 $as_echo_n "checking for $ac_word... " >&6; }
13635 if ${ac_cv_prog_AR+:} false; then :
13636   $as_echo_n "(cached) " >&6
13637 else
13638   if test -n "$AR"; then
13639   ac_cv_prog_AR="$AR" # Let the user override the test.
13640 else
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13643 do
13644   IFS=$as_save_IFS
13645   test -z "$as_dir" && as_dir=.
13646     for ac_exec_ext in '' $ac_executable_extensions; do
13647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13648     ac_cv_prog_AR="${ac_tool_prefix}ar"
13649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13650     break 2
13651   fi
13652 done
13653   done
13654 IFS=$as_save_IFS
13655
13656 fi
13657 fi
13658 AR=$ac_cv_prog_AR
13659 if test -n "$AR"; then
13660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13661 $as_echo "$AR" >&6; }
13662 else
13663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13665 fi
13666
13667
13668 fi
13669 if test -z "$ac_cv_prog_AR"; then
13670   ac_ct_AR=$AR
13671   # Extract the first word of "ar", so it can be a program name with args.
13672 set dummy ar; ac_word=$2
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 $as_echo_n "checking for $ac_word... " >&6; }
13675 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   if test -n "$ac_ct_AR"; then
13679   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13680 else
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13683 do
13684   IFS=$as_save_IFS
13685   test -z "$as_dir" && as_dir=.
13686     for ac_exec_ext in '' $ac_executable_extensions; do
13687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688     ac_cv_prog_ac_ct_AR="ar"
13689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690     break 2
13691   fi
13692 done
13693   done
13694 IFS=$as_save_IFS
13695
13696 fi
13697 fi
13698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13699 if test -n "$ac_ct_AR"; then
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13701 $as_echo "$ac_ct_AR" >&6; }
13702 else
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705 fi
13706
13707   if test "x$ac_ct_AR" = x; then
13708     AR="ar"
13709   else
13710     case $cross_compiling:$ac_tool_warned in
13711 yes:)
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13714 ac_tool_warned=yes ;;
13715 esac
13716     AR=$ac_ct_AR
13717   fi
13718 else
13719   AR="$ac_cv_prog_AR"
13720 fi
13721
13722       if test -z "$ARFLAGS"; then
13723         ARFLAGS='cru'
13724       fi
13725     fi
13726   else
13727     if test -z "$ARFLAGS"; then
13728       ARFLAGS='cru'
13729     fi
13730   fi
13731
13732
13733   if test -z "$RANLIB"; then
13734     if test $gl_cv_c_amsterdam_compiler = yes; then
13735       RANLIB=':'
13736     else
13737             if test -n "$ac_tool_prefix"; then
13738   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741 $as_echo_n "checking for $ac_word... " >&6; }
13742 if ${ac_cv_prog_RANLIB+:} false; then :
13743   $as_echo_n "(cached) " >&6
13744 else
13745   if test -n "$RANLIB"; then
13746   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13747 else
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751   IFS=$as_save_IFS
13752   test -z "$as_dir" && as_dir=.
13753     for ac_exec_ext in '' $ac_executable_extensions; do
13754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757     break 2
13758   fi
13759 done
13760   done
13761 IFS=$as_save_IFS
13762
13763 fi
13764 fi
13765 RANLIB=$ac_cv_prog_RANLIB
13766 if test -n "$RANLIB"; then
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13768 $as_echo "$RANLIB" >&6; }
13769 else
13770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773
13774
13775 fi
13776 if test -z "$ac_cv_prog_RANLIB"; then
13777   ac_ct_RANLIB=$RANLIB
13778   # Extract the first word of "ranlib", so it can be a program name with args.
13779 set dummy ranlib; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   if test -n "$ac_ct_RANLIB"; then
13786   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791   IFS=$as_save_IFS
13792   test -z "$as_dir" && as_dir=.
13793     for ac_exec_ext in '' $ac_executable_extensions; do
13794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795     ac_cv_prog_ac_ct_RANLIB="ranlib"
13796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797     break 2
13798   fi
13799 done
13800   done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13806 if test -n "$ac_ct_RANLIB"; then
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13808 $as_echo "$ac_ct_RANLIB" >&6; }
13809 else
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814   if test "x$ac_ct_RANLIB" = x; then
13815     RANLIB=":"
13816   else
13817     case $cross_compiling:$ac_tool_warned in
13818 yes:)
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13821 ac_tool_warned=yes ;;
13822 esac
13823     RANLIB=$ac_ct_RANLIB
13824   fi
13825 else
13826   RANLIB="$ac_cv_prog_RANLIB"
13827 fi
13828
13829     fi
13830   fi
13831
13832
13833
13834
13835
13836
13837
13838
13839 # Check whether --enable-largefile was given.
13840 if test "${enable_largefile+set}" = set; then :
13841   enableval=$enable_largefile;
13842 fi
13843
13844 if test "$enable_largefile" != no; then
13845
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13848 if ${ac_cv_sys_largefile_CC+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   ac_cv_sys_largefile_CC=no
13852      if test "$GCC" != yes; then
13853        ac_save_CC=$CC
13854        while :; do
13855          # IRIX 6.2 and later do not support large files by default,
13856          # so use the C compiler's -n32 option if that helps.
13857          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h.  */
13859 #include <sys/types.h>
13860  /* Check that off_t can represent 2**63 - 1 correctly.
13861     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13862     since some C++ compilers masquerading as C compilers
13863     incorrectly reject 9223372036854775807.  */
13864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13865   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13866                        && LARGE_OFF_T % 2147483647 == 1)
13867                       ? 1 : -1];
13868 int
13869 main ()
13870 {
13871
13872   ;
13873   return 0;
13874 }
13875 _ACEOF
13876          if ac_fn_c_try_compile "$LINENO"; then :
13877   break
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext
13880          CC="$CC -n32"
13881          if ac_fn_c_try_compile "$LINENO"; then :
13882   ac_cv_sys_largefile_CC=' -n32'; break
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext
13885          break
13886        done
13887        CC=$ac_save_CC
13888        rm -f conftest.$ac_ext
13889     fi
13890 fi
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13893   if test "$ac_cv_sys_largefile_CC" != no; then
13894     CC=$CC$ac_cv_sys_largefile_CC
13895   fi
13896
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13899 if ${ac_cv_sys_file_offset_bits+:} false; then :
13900   $as_echo_n "(cached) " >&6
13901 else
13902   while :; do
13903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h.  */
13905 #include <sys/types.h>
13906  /* Check that off_t can represent 2**63 - 1 correctly.
13907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13908     since some C++ compilers masquerading as C compilers
13909     incorrectly reject 9223372036854775807.  */
13910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13912                        && LARGE_OFF_T % 2147483647 == 1)
13913                       ? 1 : -1];
13914 int
13915 main ()
13916 {
13917
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923   ac_cv_sys_file_offset_bits=no; break
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h.  */
13928 #define _FILE_OFFSET_BITS 64
13929 #include <sys/types.h>
13930  /* Check that off_t can represent 2**63 - 1 correctly.
13931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13932     since some C++ compilers masquerading as C compilers
13933     incorrectly reject 9223372036854775807.  */
13934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13936                        && LARGE_OFF_T % 2147483647 == 1)
13937                       ? 1 : -1];
13938 int
13939 main ()
13940 {
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_compile "$LINENO"; then :
13947   ac_cv_sys_file_offset_bits=64; break
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950   ac_cv_sys_file_offset_bits=unknown
13951   break
13952 done
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13956 case $ac_cv_sys_file_offset_bits in #(
13957   no | unknown) ;;
13958   *)
13959 cat >>confdefs.h <<_ACEOF
13960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13961 _ACEOF
13962 ;;
13963 esac
13964 rm -rf conftest*
13965   if test $ac_cv_sys_file_offset_bits = unknown; then
13966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13968 if ${ac_cv_sys_large_files+:} false; then :
13969   $as_echo_n "(cached) " >&6
13970 else
13971   while :; do
13972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h.  */
13974 #include <sys/types.h>
13975  /* Check that off_t can represent 2**63 - 1 correctly.
13976     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13977     since some C++ compilers masquerading as C compilers
13978     incorrectly reject 9223372036854775807.  */
13979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13980   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13981                        && LARGE_OFF_T % 2147483647 == 1)
13982                       ? 1 : -1];
13983 int
13984 main ()
13985 {
13986
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992   ac_cv_sys_large_files=no; break
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997 #define _LARGE_FILES 1
13998 #include <sys/types.h>
13999  /* Check that off_t can represent 2**63 - 1 correctly.
14000     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14001     since some C++ compilers masquerading as C compilers
14002     incorrectly reject 9223372036854775807.  */
14003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14004   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14005                        && LARGE_OFF_T % 2147483647 == 1)
14006                       ? 1 : -1];
14007 int
14008 main ()
14009 {
14010
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016   ac_cv_sys_large_files=1; break
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019   ac_cv_sys_large_files=unknown
14020   break
14021 done
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14024 $as_echo "$ac_cv_sys_large_files" >&6; }
14025 case $ac_cv_sys_large_files in #(
14026   no | unknown) ;;
14027   *)
14028 cat >>confdefs.h <<_ACEOF
14029 #define _LARGE_FILES $ac_cv_sys_large_files
14030 _ACEOF
14031 ;;
14032 esac
14033 rm -rf conftest*
14034   fi
14035
14036
14037 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14038
14039 fi
14040
14041    case $ac_cv_prog_cc_stdc in #(
14042   no) :
14043     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14044   *) :
14045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14046 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14047 if ${ac_cv_prog_cc_c99+:} false; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   ac_cv_prog_cc_c99=no
14051 ac_save_CC=$CC
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h.  */
14054 #include <stdarg.h>
14055 #include <stdbool.h>
14056 #include <stdlib.h>
14057 #include <wchar.h>
14058 #include <stdio.h>
14059
14060 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14061 #define debug(...) fprintf (stderr, __VA_ARGS__)
14062 #define showlist(...) puts (#__VA_ARGS__)
14063 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14064 static void
14065 test_varargs_macros (void)
14066 {
14067   int x = 1234;
14068   int y = 5678;
14069   debug ("Flag");
14070   debug ("X = %d\n", x);
14071   showlist (The first, second, and third items.);
14072   report (x>y, "x is %d but y is %d", x, y);
14073 }
14074
14075 // Check long long types.
14076 #define BIG64 18446744073709551615ull
14077 #define BIG32 4294967295ul
14078 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14079 #if !BIG_OK
14080   your preprocessor is broken;
14081 #endif
14082 #if BIG_OK
14083 #else
14084   your preprocessor is broken;
14085 #endif
14086 static long long int bignum = -9223372036854775807LL;
14087 static unsigned long long int ubignum = BIG64;
14088
14089 struct incomplete_array
14090 {
14091   int datasize;
14092   double data[];
14093 };
14094
14095 struct named_init {
14096   int number;
14097   const wchar_t *name;
14098   double average;
14099 };
14100
14101 typedef const char *ccp;
14102
14103 static inline int
14104 test_restrict (ccp restrict text)
14105 {
14106   // See if C++-style comments work.
14107   // Iterate through items via the restricted pointer.
14108   // Also check for declarations in for loops.
14109   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14110     continue;
14111   return 0;
14112 }
14113
14114 // Check varargs and va_copy.
14115 static void
14116 test_varargs (const char *format, ...)
14117 {
14118   va_list args;
14119   va_start (args, format);
14120   va_list args_copy;
14121   va_copy (args_copy, args);
14122
14123   const char *str;
14124   int number;
14125   float fnumber;
14126
14127   while (*format)
14128     {
14129       switch (*format++)
14130         {
14131         case 's': // string
14132           str = va_arg (args_copy, const char *);
14133           break;
14134         case 'd': // int
14135           number = va_arg (args_copy, int);
14136           break;
14137         case 'f': // float
14138           fnumber = va_arg (args_copy, double);
14139           break;
14140         default:
14141           break;
14142         }
14143     }
14144   va_end (args_copy);
14145   va_end (args);
14146 }
14147
14148 int
14149 main ()
14150 {
14151
14152   // Check bool.
14153   _Bool success = false;
14154
14155   // Check restrict.
14156   if (test_restrict ("String literal") == 0)
14157     success = true;
14158   char *restrict newvar = "Another string";
14159
14160   // Check varargs.
14161   test_varargs ("s, d' f .", "string", 65, 34.234);
14162   test_varargs_macros ();
14163
14164   // Check flexible array members.
14165   struct incomplete_array *ia =
14166     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14167   ia->datasize = 10;
14168   for (int i = 0; i < ia->datasize; ++i)
14169     ia->data[i] = i * 1.234;
14170
14171   // Check named initializers.
14172   struct named_init ni = {
14173     .number = 34,
14174     .name = L"Test wide string",
14175     .average = 543.34343,
14176   };
14177
14178   ni.number = 58;
14179
14180   int dynamic_array[ni.number];
14181   dynamic_array[ni.number - 1] = 543;
14182
14183   // work around unused variable warnings
14184   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14185           || dynamic_array[ni.number - 1] != 543);
14186
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14192 do
14193   CC="$ac_save_CC $ac_arg"
14194   if ac_fn_c_try_compile "$LINENO"; then :
14195   ac_cv_prog_cc_c99=$ac_arg
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext
14198   test "x$ac_cv_prog_cc_c99" != "xno" && break
14199 done
14200 rm -f conftest.$ac_ext
14201 CC=$ac_save_CC
14202
14203 fi
14204 # AC_CACHE_VAL
14205 case "x$ac_cv_prog_cc_c99" in
14206   x)
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14208 $as_echo "none needed" >&6; } ;;
14209   xno)
14210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14211 $as_echo "unsupported" >&6; } ;;
14212   *)
14213     CC="$CC $ac_cv_prog_cc_c99"
14214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14215 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14216 esac
14217 if test "x$ac_cv_prog_cc_c99" != xno; then :
14218   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14219 else
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14222 if ${ac_cv_prog_cc_c89+:} false; then :
14223   $as_echo_n "(cached) " >&6
14224 else
14225   ac_cv_prog_cc_c89=no
14226 ac_save_CC=$CC
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229 #include <stdarg.h>
14230 #include <stdio.h>
14231 struct stat;
14232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14233 struct buf { int x; };
14234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14235 static char *e (p, i)
14236      char **p;
14237      int i;
14238 {
14239   return p[i];
14240 }
14241 static char *f (char * (*g) (char **, int), char **p, ...)
14242 {
14243   char *s;
14244   va_list v;
14245   va_start (v,p);
14246   s = g (p, va_arg (v,int));
14247   va_end (v);
14248   return s;
14249 }
14250
14251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14252    function prototypes and stuff, but not '\xHH' hex character constants.
14253    These don't provoke an error unfortunately, instead are silently treated
14254    as 'x'.  The following induces an error, until -std is added to get
14255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14256    array size at least.  It's necessary to write '\x00'==0 to get something
14257    that's true only with -std.  */
14258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14259
14260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14261    inside strings and character constants.  */
14262 #define FOO(x) 'x'
14263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14264
14265 int test (int i, double x);
14266 struct s1 {int (*f) (int a);};
14267 struct s2 {int (*f) (double a);};
14268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14269 int argc;
14270 char **argv;
14271 int
14272 main ()
14273 {
14274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14280         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14281 do
14282   CC="$ac_save_CC $ac_arg"
14283   if ac_fn_c_try_compile "$LINENO"; then :
14284   ac_cv_prog_cc_c89=$ac_arg
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext
14287   test "x$ac_cv_prog_cc_c89" != "xno" && break
14288 done
14289 rm -f conftest.$ac_ext
14290 CC=$ac_save_CC
14291
14292 fi
14293 # AC_CACHE_VAL
14294 case "x$ac_cv_prog_cc_c89" in
14295   x)
14296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14297 $as_echo "none needed" >&6; } ;;
14298   xno)
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14300 $as_echo "unsupported" >&6; } ;;
14301   *)
14302     CC="$CC $ac_cv_prog_cc_c89"
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14305 esac
14306 if test "x$ac_cv_prog_cc_c89" != xno; then :
14307   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14308 else
14309   ac_cv_prog_cc_stdc=no
14310 fi
14311
14312 fi
14313  ;;
14314 esac
14315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14316 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14317   if ${ac_cv_prog_cc_stdc+:} false; then :
14318   $as_echo_n "(cached) " >&6
14319 fi
14320
14321   case $ac_cv_prog_cc_stdc in #(
14322   no) :
14323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14324 $as_echo "unsupported" >&6; } ;; #(
14325   '') :
14326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14327 $as_echo "none needed" >&6; } ;; #(
14328   *) :
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14330 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14331 esac
14332
14333
14334
14335
14336
14337
14338   # Check whether --enable-threads was given.
14339 if test "${enable_threads+set}" = set; then :
14340   enableval=$enable_threads; gl_use_threads=$enableval
14341 else
14342   if test -n "$gl_use_threads_default"; then
14343        gl_use_threads="$gl_use_threads_default"
14344      else
14345        case "$host_os" in
14346                                                                osf*) gl_use_threads=no ;;
14347          cygwin*)
14348                case `uname -r` in
14349                  1.[0-5].*) gl_use_threads=no ;;
14350                  *)         gl_use_threads=yes ;;
14351                esac
14352                ;;
14353          *)    gl_use_threads=yes ;;
14354        esac
14355      fi
14356
14357 fi
14358
14359   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14360     # For using <pthread.h>:
14361     case "$host_os" in
14362       osf*)
14363         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14364         # groks <pthread.h>. cc also understands the flag -pthread, but
14365         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14366         # 2. putting a flag into CPPFLAGS that has an effect on the linker
14367         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14368         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14369         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14370         ;;
14371     esac
14372     # Some systems optimize for single-threaded programs by default, and
14373     # need special flags to disable these optimizations. For example, the
14374     # definition of 'errno' in <errno.h>.
14375     case "$host_os" in
14376       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14377       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14378     esac
14379   fi
14380
14381
14382
14383
14384   # Code from module absolute-header:
14385   # Code from module alloca-opt:
14386   # Code from module dirname:
14387   # Code from module dirname-lgpl:
14388   # Code from module dosname:
14389   # Code from module double-slash-root:
14390   # Code from module environ:
14391   # Code from module errno:
14392   # Code from module error:
14393   # Code from module exitfail:
14394   # Code from module extensions:
14395
14396   # Code from module extern-inline:
14397   # Code from module float:
14398   # Code from module full-write:
14399   # Code from module gettext-h:
14400   # Code from module gettimeofday:
14401   # Code from module gitlog-to-changelog:
14402   # Code from module gnupload:
14403   # Code from module havelib:
14404   # Code from module include_next:
14405   # Code from module intprops:
14406   # Code from module largefile:
14407
14408   # Code from module lib-ignore:
14409   # Code from module lock:
14410   # Code from module malloc-posix:
14411   # Code from module malloca:
14412   # Code from module memchr:
14413   # Code from module msvc-inval:
14414   # Code from module msvc-nothrow:
14415   # Code from module multiarch:
14416   # Code from module raise:
14417   # Code from module read:
14418   # Code from module safe-read:
14419   # Code from module safe-write:
14420   # Code from module setenv:
14421   # Code from module sigaction:
14422   # Code from module signal:
14423   # Code from module signal-h:
14424   # Code from module sigprocmask:
14425   # Code from module size_max:
14426   # Code from module snippet/_Noreturn:
14427   # Code from module snippet/arg-nonnull:
14428   # Code from module snippet/c++defs:
14429   # Code from module snippet/warn-on-use:
14430   # Code from module snprintf:
14431   # Code from module ssize_t:
14432   # Code from module stdarg:
14433
14434
14435
14436   # Code from module stdbool:
14437   # Code from module stddef:
14438   # Code from module stdint:
14439   # Code from module stdio:
14440   # Code from module stdlib:
14441   # Code from module strerror:
14442   # Code from module strerror-override:
14443   # Code from module string:
14444   # Code from module strndup:
14445   # Code from module strnlen:
14446   # Code from module strsignal:
14447   # Code from module sys_select:
14448   # Code from module sys_stat:
14449   # Code from module sys_time:
14450   # Code from module sys_types:
14451   # Code from module sys_wait:
14452   # Code from module threadlib:
14453
14454
14455
14456   # Code from module time:
14457   # Code from module tls:
14458   # Code from module unistd:
14459   # Code from module unsetenv:
14460   # Code from module vasnprintf:
14461   # Code from module vasprintf:
14462   # Code from module verify:
14463   # Code from module waitpid:
14464   # Code from module warnings:
14465   # Code from module wchar:
14466   # Code from module write:
14467   # Code from module xalloc:
14468   # Code from module xalloc-die:
14469   # Code from module xalloc-oversized:
14470   # Code from module xsize:
14471   # Code from module xstrndup:
14472   # Code from module xvasprintf:
14473
14474 ac_ext=c
14475 ac_cpp='$CPP $CPPFLAGS'
14476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14480 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14481 # On Suns, sometimes $CPP names a directory.
14482 if test -n "$CPP" && test -d "$CPP"; then
14483   CPP=
14484 fi
14485 if test -z "$CPP"; then
14486   if ${ac_cv_prog_CPP+:} false; then :
14487   $as_echo_n "(cached) " >&6
14488 else
14489       # Double quotes because CPP needs to be expanded
14490     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14491     do
14492       ac_preproc_ok=false
14493 for ac_c_preproc_warn_flag in '' yes
14494 do
14495   # Use a header file that comes with gcc, so configuring glibc
14496   # with a fresh cross-compiler works.
14497   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14498   # <limits.h> exists even on freestanding compilers.
14499   # On the NeXT, cc -E runs the code through the compiler's parser,
14500   # not just through cpp. "Syntax error" is here to catch this case.
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503 #ifdef __STDC__
14504 # include <limits.h>
14505 #else
14506 # include <assert.h>
14507 #endif
14508                      Syntax error
14509 _ACEOF
14510 if ac_fn_c_try_cpp "$LINENO"; then :
14511
14512 else
14513   # Broken: fails on valid input.
14514 continue
14515 fi
14516 rm -f conftest.err conftest.i conftest.$ac_ext
14517
14518   # OK, works on sane cases.  Now check whether nonexistent headers
14519   # can be detected and how.
14520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h.  */
14522 #include <ac_nonexistent.h>
14523 _ACEOF
14524 if ac_fn_c_try_cpp "$LINENO"; then :
14525   # Broken: success on invalid input.
14526 continue
14527 else
14528   # Passes both tests.
14529 ac_preproc_ok=:
14530 break
14531 fi
14532 rm -f conftest.err conftest.i conftest.$ac_ext
14533
14534 done
14535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14536 rm -f conftest.i conftest.err conftest.$ac_ext
14537 if $ac_preproc_ok; then :
14538   break
14539 fi
14540
14541     done
14542     ac_cv_prog_CPP=$CPP
14543
14544 fi
14545   CPP=$ac_cv_prog_CPP
14546 else
14547   ac_cv_prog_CPP=$CPP
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14550 $as_echo "$CPP" >&6; }
14551 ac_preproc_ok=false
14552 for ac_c_preproc_warn_flag in '' yes
14553 do
14554   # Use a header file that comes with gcc, so configuring glibc
14555   # with a fresh cross-compiler works.
14556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14557   # <limits.h> exists even on freestanding compilers.
14558   # On the NeXT, cc -E runs the code through the compiler's parser,
14559   # not just through cpp. "Syntax error" is here to catch this case.
14560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h.  */
14562 #ifdef __STDC__
14563 # include <limits.h>
14564 #else
14565 # include <assert.h>
14566 #endif
14567                      Syntax error
14568 _ACEOF
14569 if ac_fn_c_try_cpp "$LINENO"; then :
14570
14571 else
14572   # Broken: fails on valid input.
14573 continue
14574 fi
14575 rm -f conftest.err conftest.i conftest.$ac_ext
14576
14577   # OK, works on sane cases.  Now check whether nonexistent headers
14578   # can be detected and how.
14579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h.  */
14581 #include <ac_nonexistent.h>
14582 _ACEOF
14583 if ac_fn_c_try_cpp "$LINENO"; then :
14584   # Broken: success on invalid input.
14585 continue
14586 else
14587   # Passes both tests.
14588 ac_preproc_ok=:
14589 break
14590 fi
14591 rm -f conftest.err conftest.i conftest.$ac_ext
14592
14593 done
14594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14595 rm -f conftest.i conftest.err conftest.$ac_ext
14596 if $ac_preproc_ok; then :
14597
14598 else
14599   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14601 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14602 See \`config.log' for more details" "$LINENO" 5; }
14603 fi
14604
14605 ac_ext=c
14606 ac_cpp='$CPP $CPPFLAGS'
14607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14610
14611 CFLAGS="$CFLAGS -Wall"
14612 if test "$GCC" = yes
14613 then
14614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14615 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14616 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14617   $as_echo_n "(cached) " >&6
14618 else
14619
14620   gl_save_compiler_FLAGS="$CFLAGS"
14621   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625 int
14626 main ()
14627 {
14628
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 if ac_fn_c_try_link "$LINENO"; then :
14634   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14635 else
14636   gl_cv_warn_c__Werror__Wunknown_warning_option=no
14637 fi
14638 rm -f core conftest.err conftest.$ac_objext \
14639     conftest$ac_exeext conftest.$ac_ext
14640   CFLAGS="$gl_save_compiler_FLAGS"
14641
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14644 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14645 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14646   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14647 else
14648   gl_unknown_warnings_are_errors=
14649 fi
14650
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14653 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14654 if ${gl_cv_warn_c__W+:} false; then :
14655   $as_echo_n "(cached) " >&6
14656 else
14657
14658   gl_save_compiler_FLAGS="$CFLAGS"
14659   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h.  */
14662
14663 int
14664 main ()
14665 {
14666
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 if ac_fn_c_try_link "$LINENO"; then :
14672   gl_cv_warn_c__W=yes
14673 else
14674   gl_cv_warn_c__W=no
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext \
14677     conftest$ac_exeext conftest.$ac_ext
14678   CFLAGS="$gl_save_compiler_FLAGS"
14679
14680 fi
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14682 $as_echo "$gl_cv_warn_c__W" >&6; }
14683 if test "x$gl_cv_warn_c__W" = xyes; then :
14684   as_fn_append WARN_CFLAGS " -W"
14685 fi
14686
14687
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14690 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14691 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14692   $as_echo_n "(cached) " >&6
14693 else
14694
14695   gl_save_compiler_FLAGS="$CFLAGS"
14696   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h.  */
14699
14700 int
14701 main ()
14702 {
14703
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 if ac_fn_c_try_link "$LINENO"; then :
14709   gl_cv_warn_c__Wpointer_arith=yes
14710 else
14711   gl_cv_warn_c__Wpointer_arith=no
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext \
14714     conftest$ac_exeext conftest.$ac_ext
14715   CFLAGS="$gl_save_compiler_FLAGS"
14716
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14719 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14720 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14721   as_fn_append WARN_CFLAGS " -Wpointer-arith"
14722 fi
14723
14724
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14727 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14728 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14729   $as_echo_n "(cached) " >&6
14730 else
14731
14732   gl_save_compiler_FLAGS="$CFLAGS"
14733   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h.  */
14736
14737 int
14738 main ()
14739 {
14740
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_c_try_link "$LINENO"; then :
14746   gl_cv_warn_c__Wwrite_strings=yes
14747 else
14748   gl_cv_warn_c__Wwrite_strings=no
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext \
14751     conftest$ac_exeext conftest.$ac_ext
14752   CFLAGS="$gl_save_compiler_FLAGS"
14753
14754 fi
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14756 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14757 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14758   as_fn_append WARN_CFLAGS " -Wwrite-strings"
14759 fi
14760
14761
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14764 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14765 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14766   $as_echo_n "(cached) " >&6
14767 else
14768
14769   gl_save_compiler_FLAGS="$CFLAGS"
14770   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h.  */
14773
14774 int
14775 main ()
14776 {
14777
14778   ;
14779   return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_link "$LINENO"; then :
14783   gl_cv_warn_c__Wstrict_prototypes=yes
14784 else
14785   gl_cv_warn_c__Wstrict_prototypes=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext \
14788     conftest$ac_exeext conftest.$ac_ext
14789   CFLAGS="$gl_save_compiler_FLAGS"
14790
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14793 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14794 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14795   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14796 fi
14797
14798
14799
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14801 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14802 if ${gl_cv_warn_c__Wshadow+:} false; then :
14803   $as_echo_n "(cached) " >&6
14804 else
14805
14806   gl_save_compiler_FLAGS="$CFLAGS"
14807   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h.  */
14810
14811 int
14812 main ()
14813 {
14814
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820   gl_cv_warn_c__Wshadow=yes
14821 else
14822   gl_cv_warn_c__Wshadow=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825     conftest$ac_exeext conftest.$ac_ext
14826   CFLAGS="$gl_save_compiler_FLAGS"
14827
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14830 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14831 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14832   as_fn_append WARN_CFLAGS " -Wshadow"
14833 fi
14834
14835
14836
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14838 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14839 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842
14843   gl_save_compiler_FLAGS="$CFLAGS"
14844   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h.  */
14847
14848 int
14849 main ()
14850 {
14851
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_link "$LINENO"; then :
14857   gl_cv_warn_c__Wformat_security=yes
14858 else
14859   gl_cv_warn_c__Wformat_security=no
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext \
14862     conftest$ac_exeext conftest.$ac_ext
14863   CFLAGS="$gl_save_compiler_FLAGS"
14864
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14867 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14868 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14869   as_fn_append WARN_CFLAGS " -Wformat-security"
14870 fi
14871
14872
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14875 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14876 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14877   $as_echo_n "(cached) " >&6
14878 else
14879
14880   gl_save_compiler_FLAGS="$CFLAGS"
14881   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h.  */
14884
14885 int
14886 main ()
14887 {
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 if ac_fn_c_try_link "$LINENO"; then :
14894   gl_cv_warn_c__Wredundant_decls=yes
14895 else
14896   gl_cv_warn_c__Wredundant_decls=no
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext \
14899     conftest$ac_exeext conftest.$ac_ext
14900   CFLAGS="$gl_save_compiler_FLAGS"
14901
14902 fi
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14904 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14905 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14906   as_fn_append WARN_CFLAGS " -Wredundant-decls"
14907 fi
14908
14909
14910
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14912 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14913 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14914   $as_echo_n "(cached) " >&6
14915 else
14916
14917   gl_save_compiler_FLAGS="$CFLAGS"
14918   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
14919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h.  */
14921
14922 int
14923 main ()
14924 {
14925
14926   ;
14927   return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_c_try_link "$LINENO"; then :
14931   gl_cv_warn_c__Wno_missing_field_initializers=yes
14932 else
14933   gl_cv_warn_c__Wno_missing_field_initializers=no
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext \
14936     conftest$ac_exeext conftest.$ac_ext
14937   CFLAGS="$gl_save_compiler_FLAGS"
14938
14939 fi
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14941 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14942 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14943   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14944 fi
14945
14946
14947 fi
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14949 $as_echo_n "checking whether ln -s works... " >&6; }
14950 LN_S=$as_ln_s
14951 if test "$LN_S" = "ln -s"; then
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14953 $as_echo "yes" >&6; }
14954 else
14955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14956 $as_echo "no, using $LN_S" >&6; }
14957 fi
14958
14959
14960 cat >>confdefs.h <<_ACEOF
14961 #define SHELL "$SHELL"
14962 _ACEOF
14963
14964
14965
14966
14967
14968
14969
14970
14971 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14972         if test -n "$ac_tool_prefix"; then
14973   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14974 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14976 $as_echo_n "checking for $ac_word... " >&6; }
14977 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14978   $as_echo_n "(cached) " >&6
14979 else
14980   case $PKG_CONFIG in
14981   [\\/]* | ?:[\\/]*)
14982   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14983   ;;
14984   *)
14985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14986 for as_dir in $PATH
14987 do
14988   IFS=$as_save_IFS
14989   test -z "$as_dir" && as_dir=.
14990     for ac_exec_ext in '' $ac_executable_extensions; do
14991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14992     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14994     break 2
14995   fi
14996 done
14997   done
14998 IFS=$as_save_IFS
14999
15000   ;;
15001 esac
15002 fi
15003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15004 if test -n "$PKG_CONFIG"; then
15005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15006 $as_echo "$PKG_CONFIG" >&6; }
15007 else
15008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 $as_echo "no" >&6; }
15010 fi
15011
15012
15013 fi
15014 if test -z "$ac_cv_path_PKG_CONFIG"; then
15015   ac_pt_PKG_CONFIG=$PKG_CONFIG
15016   # Extract the first word of "pkg-config", so it can be a program name with args.
15017 set dummy pkg-config; ac_word=$2
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15019 $as_echo_n "checking for $ac_word... " >&6; }
15020 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15021   $as_echo_n "(cached) " >&6
15022 else
15023   case $ac_pt_PKG_CONFIG in
15024   [\\/]* | ?:[\\/]*)
15025   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15026   ;;
15027   *)
15028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15030 do
15031   IFS=$as_save_IFS
15032   test -z "$as_dir" && as_dir=.
15033     for ac_exec_ext in '' $ac_executable_extensions; do
15034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15037     break 2
15038   fi
15039 done
15040   done
15041 IFS=$as_save_IFS
15042
15043   ;;
15044 esac
15045 fi
15046 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15047 if test -n "$ac_pt_PKG_CONFIG"; then
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15049 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15050 else
15051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15053 fi
15054
15055   if test "x$ac_pt_PKG_CONFIG" = x; then
15056     PKG_CONFIG=""
15057   else
15058     case $cross_compiling:$ac_tool_warned in
15059 yes:)
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15062 ac_tool_warned=yes ;;
15063 esac
15064     PKG_CONFIG=$ac_pt_PKG_CONFIG
15065   fi
15066 else
15067   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15068 fi
15069
15070 fi
15071 if test -n "$PKG_CONFIG"; then
15072         _pkg_min_version=0.9.0
15073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15074 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15075         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15076                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15078         else
15079                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 $as_echo "no" >&6; }
15081                 PKG_CONFIG=""
15082         fi
15083 fi
15084
15085 pkg_failed=no
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15087 $as_echo_n "checking for CHECK... " >&6; }
15088
15089 if test -n "$CHECK_CFLAGS"; then
15090     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15091  elif test -n "$PKG_CONFIG"; then
15092     if test -n "$PKG_CONFIG" && \
15093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15094   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15095   ac_status=$?
15096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097   test $ac_status = 0; }; then
15098   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15099                       test "x$?" != "x0" && pkg_failed=yes
15100 else
15101   pkg_failed=yes
15102 fi
15103  else
15104     pkg_failed=untried
15105 fi
15106 if test -n "$CHECK_LIBS"; then
15107     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15108  elif test -n "$PKG_CONFIG"; then
15109     if test -n "$PKG_CONFIG" && \
15110     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15111   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15112   ac_status=$?
15113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114   test $ac_status = 0; }; then
15115   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15116                       test "x$?" != "x0" && pkg_failed=yes
15117 else
15118   pkg_failed=yes
15119 fi
15120  else
15121     pkg_failed=untried
15122 fi
15123
15124
15125
15126 if test $pkg_failed = yes; then
15127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15129
15130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15131         _pkg_short_errors_supported=yes
15132 else
15133         _pkg_short_errors_supported=no
15134 fi
15135         if test $_pkg_short_errors_supported = yes; then
15136                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15137         else
15138                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15139         fi
15140         # Put the nasty error message in config.log where it belongs
15141         echo "$CHECK_PKG_ERRORS" >&5
15142
15143         run_tests=no
15144 elif test $pkg_failed = untried; then
15145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15147         run_tests=no
15148 else
15149         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15150         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15152 $as_echo "yes" >&6; }
15153         run_tests=yes
15154 fi
15155  if test "x$run_tests" = xyes; then
15156   RUN_TESTS_TRUE=
15157   RUN_TESTS_FALSE='#'
15158 else
15159   RUN_TESTS_TRUE='#'
15160   RUN_TESTS_FALSE=
15161 fi
15162
15163
15164 # Check for various header files and associated libraries.
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15166 $as_echo_n "checking for library containing strerror... " >&6; }
15167 if ${ac_cv_search_strerror+:} false; then :
15168   $as_echo_n "(cached) " >&6
15169 else
15170   ac_func_search_save_LIBS=$LIBS
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h.  */
15173
15174 /* Override any GCC internal prototype to avoid an error.
15175    Use char because int might match the return type of a GCC
15176    builtin and then its argument prototype would still apply.  */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 char strerror ();
15181 int
15182 main ()
15183 {
15184 return strerror ();
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 for ac_lib in '' cposix; do
15190   if test -z "$ac_lib"; then
15191     ac_res="none required"
15192   else
15193     ac_res=-l$ac_lib
15194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15195   fi
15196   if ac_fn_c_try_link "$LINENO"; then :
15197   ac_cv_search_strerror=$ac_res
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext \
15200     conftest$ac_exeext
15201   if ${ac_cv_search_strerror+:} false; then :
15202   break
15203 fi
15204 done
15205 if ${ac_cv_search_strerror+:} false; then :
15206
15207 else
15208   ac_cv_search_strerror=no
15209 fi
15210 rm conftest.$ac_ext
15211 LIBS=$ac_func_search_save_LIBS
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15214 $as_echo "$ac_cv_search_strerror" >&6; }
15215 ac_res=$ac_cv_search_strerror
15216 if test "$ac_res" != no; then :
15217   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15218
15219 fi
15220
15221
15222
15223
15224
15225
15226           LIBC_FATAL_STDERR_=1
15227   export LIBC_FATAL_STDERR_
15228
15229 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15230 if test "x$ac_cv_type_size_t" = xyes; then :
15231
15232 else
15233
15234 cat >>confdefs.h <<_ACEOF
15235 #define size_t unsigned int
15236 _ACEOF
15237
15238 fi
15239
15240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15241 # for constant arguments.  Useless!
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15243 $as_echo_n "checking for working alloca.h... " >&6; }
15244 if ${ac_cv_working_alloca_h+:} false; then :
15245   $as_echo_n "(cached) " >&6
15246 else
15247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h.  */
15249 #include <alloca.h>
15250 int
15251 main ()
15252 {
15253 char *p = (char *) alloca (2 * sizeof (int));
15254                           if (p) return 0;
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_c_try_link "$LINENO"; then :
15260   ac_cv_working_alloca_h=yes
15261 else
15262   ac_cv_working_alloca_h=no
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext \
15265     conftest$ac_exeext conftest.$ac_ext
15266 fi
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15268 $as_echo "$ac_cv_working_alloca_h" >&6; }
15269 if test $ac_cv_working_alloca_h = yes; then
15270
15271 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15272
15273 fi
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15276 $as_echo_n "checking for alloca... " >&6; }
15277 if ${ac_cv_func_alloca_works+:} false; then :
15278   $as_echo_n "(cached) " >&6
15279 else
15280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h.  */
15282 #ifdef __GNUC__
15283 # define alloca __builtin_alloca
15284 #else
15285 # ifdef _MSC_VER
15286 #  include <malloc.h>
15287 #  define alloca _alloca
15288 # else
15289 #  ifdef HAVE_ALLOCA_H
15290 #   include <alloca.h>
15291 #  else
15292 #   ifdef _AIX
15293  #pragma alloca
15294 #   else
15295 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15296 void *alloca (size_t);
15297 #    endif
15298 #   endif
15299 #  endif
15300 # endif
15301 #endif
15302
15303 int
15304 main ()
15305 {
15306 char *p = (char *) alloca (1);
15307                                     if (p) return 0;
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313   ac_cv_func_alloca_works=yes
15314 else
15315   ac_cv_func_alloca_works=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext \
15318     conftest$ac_exeext conftest.$ac_ext
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15321 $as_echo "$ac_cv_func_alloca_works" >&6; }
15322
15323 if test $ac_cv_func_alloca_works = yes; then
15324
15325 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15326
15327 else
15328   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15329 # that cause trouble.  Some versions do not even contain alloca or
15330 # contain a buggy version.  If you still want to use their alloca,
15331 # use ar to extract alloca.o from them instead of compiling alloca.c.
15332
15333
15334
15335
15336
15337 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15338
15339 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15340
15341
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15343 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15344 if ${ac_cv_os_cray+:} false; then :
15345   $as_echo_n "(cached) " >&6
15346 else
15347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h.  */
15349 #if defined CRAY && ! defined CRAY2
15350 webecray
15351 #else
15352 wenotbecray
15353 #endif
15354
15355 _ACEOF
15356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15357   $EGREP "webecray" >/dev/null 2>&1; then :
15358   ac_cv_os_cray=yes
15359 else
15360   ac_cv_os_cray=no
15361 fi
15362 rm -f conftest*
15363
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15366 $as_echo "$ac_cv_os_cray" >&6; }
15367 if test $ac_cv_os_cray = yes; then
15368   for ac_func in _getb67 GETB67 getb67; do
15369     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15372
15373 cat >>confdefs.h <<_ACEOF
15374 #define CRAY_STACKSEG_END $ac_func
15375 _ACEOF
15376
15377     break
15378 fi
15379
15380   done
15381 fi
15382
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15384 $as_echo_n "checking stack direction for C alloca... " >&6; }
15385 if ${ac_cv_c_stack_direction+:} false; then :
15386   $as_echo_n "(cached) " >&6
15387 else
15388   if test "$cross_compiling" = yes; then :
15389   ac_cv_c_stack_direction=0
15390 else
15391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h.  */
15393 $ac_includes_default
15394 int
15395 find_stack_direction (int *addr, int depth)
15396 {
15397   int dir, dummy = 0;
15398   if (! addr)
15399     addr = &dummy;
15400   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15401   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15402   return dir + dummy;
15403 }
15404
15405 int
15406 main (int argc, char **argv)
15407 {
15408   return find_stack_direction (0, argc + !argv + 20) < 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_run "$LINENO"; then :
15412   ac_cv_c_stack_direction=1
15413 else
15414   ac_cv_c_stack_direction=-1
15415 fi
15416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15417   conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 fi
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15422 $as_echo "$ac_cv_c_stack_direction" >&6; }
15423 cat >>confdefs.h <<_ACEOF
15424 #define STACK_DIRECTION $ac_cv_c_stack_direction
15425 _ACEOF
15426
15427
15428 fi
15429
15430
15431
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15433 $as_echo_n "checking whether // is distinct from /... " >&6; }
15434 if ${gl_cv_double_slash_root+:} false; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437    if test x"$cross_compiling" = xyes ; then
15438         # When cross-compiling, there is no way to tell whether // is special
15439         # short of a list of hosts.  However, the only known hosts to date
15440         # that have a distinct // are Apollo DomainOS (too old to port to),
15441         # Cygwin, and z/OS.  If anyone knows of another system for which // has
15442         # special semantics and is distinct from /, please report it to
15443         # <bug-gnulib@gnu.org>.
15444         case $host in
15445           *-cygwin | i370-ibm-openedition)
15446             gl_cv_double_slash_root=yes ;;
15447           *)
15448             # Be optimistic and assume that / and // are the same when we
15449             # don't know.
15450             gl_cv_double_slash_root='unknown, assuming no' ;;
15451         esac
15452       else
15453         set x `ls -di / // 2>/dev/null`
15454         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15455           gl_cv_double_slash_root=no
15456         else
15457           gl_cv_double_slash_root=yes
15458         fi
15459       fi
15460 fi
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15462 $as_echo "$gl_cv_double_slash_root" >&6; }
15463   if test "$gl_cv_double_slash_root" = yes; then
15464
15465 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15466
15467   fi
15468
15469
15470
15471
15472
15473
15474   GNULIB_CHDIR=0;
15475   GNULIB_CHOWN=0;
15476   GNULIB_CLOSE=0;
15477   GNULIB_DUP=0;
15478   GNULIB_DUP2=0;
15479   GNULIB_DUP3=0;
15480   GNULIB_ENVIRON=0;
15481   GNULIB_EUIDACCESS=0;
15482   GNULIB_FACCESSAT=0;
15483   GNULIB_FCHDIR=0;
15484   GNULIB_FCHOWNAT=0;
15485   GNULIB_FDATASYNC=0;
15486   GNULIB_FSYNC=0;
15487   GNULIB_FTRUNCATE=0;
15488   GNULIB_GETCWD=0;
15489   GNULIB_GETDOMAINNAME=0;
15490   GNULIB_GETDTABLESIZE=0;
15491   GNULIB_GETGROUPS=0;
15492   GNULIB_GETHOSTNAME=0;
15493   GNULIB_GETLOGIN=0;
15494   GNULIB_GETLOGIN_R=0;
15495   GNULIB_GETPAGESIZE=0;
15496   GNULIB_GETUSERSHELL=0;
15497   GNULIB_GROUP_MEMBER=0;
15498   GNULIB_ISATTY=0;
15499   GNULIB_LCHOWN=0;
15500   GNULIB_LINK=0;
15501   GNULIB_LINKAT=0;
15502   GNULIB_LSEEK=0;
15503   GNULIB_PIPE=0;
15504   GNULIB_PIPE2=0;
15505   GNULIB_PREAD=0;
15506   GNULIB_PWRITE=0;
15507   GNULIB_READ=0;
15508   GNULIB_READLINK=0;
15509   GNULIB_READLINKAT=0;
15510   GNULIB_RMDIR=0;
15511   GNULIB_SETHOSTNAME=0;
15512   GNULIB_SLEEP=0;
15513   GNULIB_SYMLINK=0;
15514   GNULIB_SYMLINKAT=0;
15515   GNULIB_TTYNAME_R=0;
15516   GNULIB_UNISTD_H_NONBLOCKING=0;
15517   GNULIB_UNISTD_H_SIGPIPE=0;
15518   GNULIB_UNLINK=0;
15519   GNULIB_UNLINKAT=0;
15520   GNULIB_USLEEP=0;
15521   GNULIB_WRITE=0;
15522     HAVE_CHOWN=1;
15523   HAVE_DUP2=1;
15524   HAVE_DUP3=1;
15525   HAVE_EUIDACCESS=1;
15526   HAVE_FACCESSAT=1;
15527   HAVE_FCHDIR=1;
15528   HAVE_FCHOWNAT=1;
15529   HAVE_FDATASYNC=1;
15530   HAVE_FSYNC=1;
15531   HAVE_FTRUNCATE=1;
15532   HAVE_GETDTABLESIZE=1;
15533   HAVE_GETGROUPS=1;
15534   HAVE_GETHOSTNAME=1;
15535   HAVE_GETLOGIN=1;
15536   HAVE_GETPAGESIZE=1;
15537   HAVE_GROUP_MEMBER=1;
15538   HAVE_LCHOWN=1;
15539   HAVE_LINK=1;
15540   HAVE_LINKAT=1;
15541   HAVE_PIPE=1;
15542   HAVE_PIPE2=1;
15543   HAVE_PREAD=1;
15544   HAVE_PWRITE=1;
15545   HAVE_READLINK=1;
15546   HAVE_READLINKAT=1;
15547   HAVE_SETHOSTNAME=1;
15548   HAVE_SLEEP=1;
15549   HAVE_SYMLINK=1;
15550   HAVE_SYMLINKAT=1;
15551   HAVE_UNLINKAT=1;
15552   HAVE_USLEEP=1;
15553   HAVE_DECL_ENVIRON=1;
15554   HAVE_DECL_FCHDIR=1;
15555   HAVE_DECL_FDATASYNC=1;
15556   HAVE_DECL_GETDOMAINNAME=1;
15557   HAVE_DECL_GETLOGIN_R=1;
15558   HAVE_DECL_GETPAGESIZE=1;
15559   HAVE_DECL_GETUSERSHELL=1;
15560   HAVE_DECL_SETHOSTNAME=1;
15561   HAVE_DECL_TTYNAME_R=1;
15562   HAVE_OS_H=0;
15563   HAVE_SYS_PARAM_H=0;
15564   REPLACE_CHOWN=0;
15565   REPLACE_CLOSE=0;
15566   REPLACE_DUP=0;
15567   REPLACE_DUP2=0;
15568   REPLACE_FCHOWNAT=0;
15569   REPLACE_FTRUNCATE=0;
15570   REPLACE_GETCWD=0;
15571   REPLACE_GETDOMAINNAME=0;
15572   REPLACE_GETDTABLESIZE=0;
15573   REPLACE_GETLOGIN_R=0;
15574   REPLACE_GETGROUPS=0;
15575   REPLACE_GETPAGESIZE=0;
15576   REPLACE_ISATTY=0;
15577   REPLACE_LCHOWN=0;
15578   REPLACE_LINK=0;
15579   REPLACE_LINKAT=0;
15580   REPLACE_LSEEK=0;
15581   REPLACE_PREAD=0;
15582   REPLACE_PWRITE=0;
15583   REPLACE_READ=0;
15584   REPLACE_READLINK=0;
15585   REPLACE_RMDIR=0;
15586   REPLACE_SLEEP=0;
15587   REPLACE_SYMLINK=0;
15588   REPLACE_TTYNAME_R=0;
15589   REPLACE_UNLINK=0;
15590   REPLACE_UNLINKAT=0;
15591   REPLACE_USLEEP=0;
15592   REPLACE_WRITE=0;
15593   UNISTD_H_HAVE_WINSOCK2_H=0;
15594   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15595
15596
15597
15598
15599
15600
15601   for ac_header in $gl_header_list
15602 do :
15603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15606   cat >>confdefs.h <<_ACEOF
15607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 _ACEOF
15609
15610 fi
15611
15612 done
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623   :
15624
15625
15626
15627
15628
15629
15630
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15632 $as_echo_n "checking if environ is properly declared... " >&6; }
15633   if ${gt_cv_var_environ_declaration+:} false; then :
15634   $as_echo_n "(cached) " >&6
15635 else
15636
15637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h.  */
15639 #if HAVE_UNISTD_H
15640      #include <unistd.h>
15641      #endif
15642      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
15643      #include <stdlib.h>
15644
15645            extern struct { int foo; } environ;
15646 int
15647 main ()
15648 {
15649 environ.foo = 1;
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 if ac_fn_c_try_compile "$LINENO"; then :
15655   gt_cv_var_environ_declaration=no
15656 else
15657   gt_cv_var_environ_declaration=yes
15658 fi
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 fi
15661
15662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15663 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15664   if test $gt_cv_var_environ_declaration = yes; then
15665
15666 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15667
15668   fi
15669
15670
15671   if test $gt_cv_var_environ_declaration != yes; then
15672     HAVE_DECL_ENVIRON=0
15673   fi
15674
15675
15676
15677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15678 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15679 if ${gl_cv_have_include_next+:} false; then :
15680   $as_echo_n "(cached) " >&6
15681 else
15682   rm -rf conftestd1a conftestd1b conftestd2
15683      mkdir conftestd1a conftestd1b conftestd2
15684                                                   cat <<EOF > conftestd1a/conftest.h
15685 #define DEFINED_IN_CONFTESTD1
15686 #include_next <conftest.h>
15687 #ifdef DEFINED_IN_CONFTESTD2
15688 int foo;
15689 #else
15690 #error "include_next doesn't work"
15691 #endif
15692 EOF
15693      cat <<EOF > conftestd1b/conftest.h
15694 #define DEFINED_IN_CONFTESTD1
15695 #include <stdio.h>
15696 #include_next <conftest.h>
15697 #ifdef DEFINED_IN_CONFTESTD2
15698 int foo;
15699 #else
15700 #error "include_next doesn't work"
15701 #endif
15702 EOF
15703      cat <<EOF > conftestd2/conftest.h
15704 #ifndef DEFINED_IN_CONFTESTD1
15705 #error "include_next test doesn't work"
15706 #endif
15707 #define DEFINED_IN_CONFTESTD2
15708 EOF
15709      gl_save_CPPFLAGS="$CPPFLAGS"
15710      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h.  */
15713 #include <conftest.h>
15714 _ACEOF
15715 if ac_fn_c_try_compile "$LINENO"; then :
15716   gl_cv_have_include_next=yes
15717 else
15718   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15719         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h.  */
15721 #include <conftest.h>
15722 _ACEOF
15723 if ac_fn_c_try_compile "$LINENO"; then :
15724   gl_cv_have_include_next=buggy
15725 else
15726   gl_cv_have_include_next=no
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732      CPPFLAGS="$gl_save_CPPFLAGS"
15733      rm -rf conftestd1a conftestd1b conftestd2
15734
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15737 $as_echo "$gl_cv_have_include_next" >&6; }
15738   PRAGMA_SYSTEM_HEADER=
15739   if test $gl_cv_have_include_next = yes; then
15740     INCLUDE_NEXT=include_next
15741     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15742     if test -n "$GCC"; then
15743       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15744     fi
15745   else
15746     if test $gl_cv_have_include_next = buggy; then
15747       INCLUDE_NEXT=include
15748       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15749     else
15750       INCLUDE_NEXT=include
15751       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15752     fi
15753   fi
15754
15755
15756
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15758 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15759 if ${gl_cv_pragma_columns+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h.  */
15764
15765 #ifdef __TANDEM
15766 choke me
15767 #endif
15768
15769 _ACEOF
15770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15771   $EGREP "choke me" >/dev/null 2>&1; then :
15772   gl_cv_pragma_columns=yes
15773 else
15774   gl_cv_pragma_columns=no
15775 fi
15776 rm -f conftest*
15777
15778
15779 fi
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15781 $as_echo "$gl_cv_pragma_columns" >&6; }
15782   if test $gl_cv_pragma_columns = yes; then
15783     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15784   else
15785     PRAGMA_COLUMNS=
15786   fi
15787
15788
15789
15790
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15792 $as_echo_n "checking for complete errno.h... " >&6; }
15793 if ${gl_cv_header_errno_h_complete+:} false; then :
15794   $as_echo_n "(cached) " >&6
15795 else
15796
15797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h.  */
15799
15800 #include <errno.h>
15801 #if !defined ETXTBSY
15802 booboo
15803 #endif
15804 #if !defined ENOMSG
15805 booboo
15806 #endif
15807 #if !defined EIDRM
15808 booboo
15809 #endif
15810 #if !defined ENOLINK
15811 booboo
15812 #endif
15813 #if !defined EPROTO
15814 booboo
15815 #endif
15816 #if !defined EMULTIHOP
15817 booboo
15818 #endif
15819 #if !defined EBADMSG
15820 booboo
15821 #endif
15822 #if !defined EOVERFLOW
15823 booboo
15824 #endif
15825 #if !defined ENOTSUP
15826 booboo
15827 #endif
15828 #if !defined ENETRESET
15829 booboo
15830 #endif
15831 #if !defined ECONNABORTED
15832 booboo
15833 #endif
15834 #if !defined ESTALE
15835 booboo
15836 #endif
15837 #if !defined EDQUOT
15838 booboo
15839 #endif
15840 #if !defined ECANCELED
15841 booboo
15842 #endif
15843 #if !defined EOWNERDEAD
15844 booboo
15845 #endif
15846 #if !defined ENOTRECOVERABLE
15847 booboo
15848 #endif
15849 #if !defined EILSEQ
15850 booboo
15851 #endif
15852
15853 _ACEOF
15854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15855   $EGREP "booboo" >/dev/null 2>&1; then :
15856   gl_cv_header_errno_h_complete=no
15857 else
15858   gl_cv_header_errno_h_complete=yes
15859 fi
15860 rm -f conftest*
15861
15862
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15865 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15866   if test $gl_cv_header_errno_h_complete = yes; then
15867     ERRNO_H=''
15868   else
15869
15870
15871
15872
15873
15874
15875
15876
15877      if test $gl_cv_have_include_next = yes; then
15878        gl_cv_next_errno_h='<'errno.h'>'
15879      else
15880        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15881 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15882 if ${gl_cv_next_errno_h+:} false; then :
15883   $as_echo_n "(cached) " >&6
15884 else
15885
15886
15887
15888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h.  */
15890 #include <errno.h>
15891 _ACEOF
15892                 case "$host_os" in
15893     aix*) gl_absname_cpp="$ac_cpp -C" ;;
15894     *)    gl_absname_cpp="$ac_cpp" ;;
15895   esac
15896
15897   case "$host_os" in
15898     mingw*)
15899                                           gl_dirsep_regex='[/\\]'
15900       ;;
15901     *)
15902       gl_dirsep_regex='\/'
15903       ;;
15904   esac
15905       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15906   gl_header_literal_regex=`echo 'errno.h' \
15907                            | sed -e "$gl_make_literal_regex_sed"`
15908   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15909       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15910       s|^/[^/]|//&|
15911       p
15912       q
15913     }'
15914
15915         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15916   sed -n "$gl_absolute_header_sed"`
15917
15918            gl_header=$gl_cv_absolute_errno_h
15919            gl_cv_next_errno_h='"'$gl_header'"'
15920
15921
15922 fi
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15924 $as_echo "$gl_cv_next_errno_h" >&6; }
15925      fi
15926      NEXT_ERRNO_H=$gl_cv_next_errno_h
15927
15928      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15929        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15930        gl_next_as_first_directive='<'errno.h'>'
15931      else
15932        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15933        gl_next_as_first_directive=$gl_cv_next_errno_h
15934      fi
15935      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15936
15937
15938
15939
15940     ERRNO_H='errno.h'
15941   fi
15942
15943    if test -n "$ERRNO_H"; then
15944   GL_GENERATE_ERRNO_H_TRUE=
15945   GL_GENERATE_ERRNO_H_FALSE='#'
15946 else
15947   GL_GENERATE_ERRNO_H_TRUE='#'
15948   GL_GENERATE_ERRNO_H_FALSE=
15949 fi
15950
15951
15952   if test -n "$ERRNO_H"; then
15953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15954 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15955 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15956   $as_echo_n "(cached) " >&6
15957 else
15958
15959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h.  */
15961
15962 #include <errno.h>
15963 #ifdef EMULTIHOP
15964 yes
15965 #endif
15966
15967 _ACEOF
15968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15969   $EGREP "yes" >/dev/null 2>&1; then :
15970   gl_cv_header_errno_h_EMULTIHOP=yes
15971 else
15972   gl_cv_header_errno_h_EMULTIHOP=no
15973 fi
15974 rm -f conftest*
15975
15976       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15977         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h.  */
15979
15980 #define _XOPEN_SOURCE_EXTENDED 1
15981 #include <errno.h>
15982 #ifdef EMULTIHOP
15983 yes
15984 #endif
15985
15986 _ACEOF
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988   $EGREP "yes" >/dev/null 2>&1; then :
15989   gl_cv_header_errno_h_EMULTIHOP=hidden
15990 fi
15991 rm -f conftest*
15992
15993         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15994                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
15995 #define _XOPEN_SOURCE_EXTENDED 1
15996 #include <errno.h>
15997 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15998 #include <stdio.h>
15999 #include <stdlib.h>
16000 "; then :
16001
16002 fi
16003
16004         fi
16005       fi
16006
16007 fi
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16009 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16010     case $gl_cv_header_errno_h_EMULTIHOP in
16011       yes | no)
16012         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16013         ;;
16014       *)
16015         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16016         ;;
16017     esac
16018
16019
16020   fi
16021
16022
16023   if test -n "$ERRNO_H"; then
16024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16025 $as_echo_n "checking for ENOLINK value... " >&6; }
16026 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16027   $as_echo_n "(cached) " >&6
16028 else
16029
16030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h.  */
16032
16033 #include <errno.h>
16034 #ifdef ENOLINK
16035 yes
16036 #endif
16037
16038 _ACEOF
16039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16040   $EGREP "yes" >/dev/null 2>&1; then :
16041   gl_cv_header_errno_h_ENOLINK=yes
16042 else
16043   gl_cv_header_errno_h_ENOLINK=no
16044 fi
16045 rm -f conftest*
16046
16047       if test $gl_cv_header_errno_h_ENOLINK = no; then
16048         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h.  */
16050
16051 #define _XOPEN_SOURCE_EXTENDED 1
16052 #include <errno.h>
16053 #ifdef ENOLINK
16054 yes
16055 #endif
16056
16057 _ACEOF
16058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16059   $EGREP "yes" >/dev/null 2>&1; then :
16060   gl_cv_header_errno_h_ENOLINK=hidden
16061 fi
16062 rm -f conftest*
16063
16064         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16065                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16066 #define _XOPEN_SOURCE_EXTENDED 1
16067 #include <errno.h>
16068 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16069 #include <stdio.h>
16070 #include <stdlib.h>
16071 "; then :
16072
16073 fi
16074
16075         fi
16076       fi
16077
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16080 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16081     case $gl_cv_header_errno_h_ENOLINK in
16082       yes | no)
16083         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16084         ;;
16085       *)
16086         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16087         ;;
16088     esac
16089
16090
16091   fi
16092
16093
16094   if test -n "$ERRNO_H"; then
16095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16096 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16097 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16098   $as_echo_n "(cached) " >&6
16099 else
16100
16101       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h.  */
16103
16104 #include <errno.h>
16105 #ifdef EOVERFLOW
16106 yes
16107 #endif
16108
16109 _ACEOF
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111   $EGREP "yes" >/dev/null 2>&1; then :
16112   gl_cv_header_errno_h_EOVERFLOW=yes
16113 else
16114   gl_cv_header_errno_h_EOVERFLOW=no
16115 fi
16116 rm -f conftest*
16117
16118       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16119         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h.  */
16121
16122 #define _XOPEN_SOURCE_EXTENDED 1
16123 #include <errno.h>
16124 #ifdef EOVERFLOW
16125 yes
16126 #endif
16127
16128 _ACEOF
16129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16130   $EGREP "yes" >/dev/null 2>&1; then :
16131   gl_cv_header_errno_h_EOVERFLOW=hidden
16132 fi
16133 rm -f conftest*
16134
16135         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16136                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16137 #define _XOPEN_SOURCE_EXTENDED 1
16138 #include <errno.h>
16139 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16140 #include <stdio.h>
16141 #include <stdlib.h>
16142 "; then :
16143
16144 fi
16145
16146         fi
16147       fi
16148
16149 fi
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16151 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16152     case $gl_cv_header_errno_h_EOVERFLOW in
16153       yes | no)
16154         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16155         ;;
16156       *)
16157         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16158         ;;
16159     esac
16160
16161
16162   fi
16163
16164
16165 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16166 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16167   ac_have_decl=1
16168 else
16169   ac_have_decl=0
16170 fi
16171
16172 cat >>confdefs.h <<_ACEOF
16173 #define HAVE_DECL_STRERROR_R $ac_have_decl
16174 _ACEOF
16175
16176 for ac_func in strerror_r
16177 do :
16178   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16179 if test "x$ac_cv_func_strerror_r" = xyes; then :
16180   cat >>confdefs.h <<_ACEOF
16181 #define HAVE_STRERROR_R 1
16182 _ACEOF
16183
16184 fi
16185 done
16186
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16188 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16189 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16190   $as_echo_n "(cached) " >&6
16191 else
16192
16193     ac_cv_func_strerror_r_char_p=no
16194     if test $ac_cv_have_decl_strerror_r = yes; then
16195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h.  */
16197 $ac_includes_default
16198 int
16199 main ()
16200 {
16201
16202           char buf[100];
16203           char x = *strerror_r (0, buf, sizeof buf);
16204           char *p = strerror_r (0, buf, sizeof buf);
16205           return !p || x;
16206
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 if ac_fn_c_try_compile "$LINENO"; then :
16212   ac_cv_func_strerror_r_char_p=yes
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215     else
16216       # strerror_r is not declared.  Choose between
16217       # systems that have relatively inaccessible declarations for the
16218       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16219       # former has a strerror_r that returns char*, while the latter
16220       # has a strerror_r that returns `int'.
16221       # This test should segfault on the DEC system.
16222       if test "$cross_compiling" = yes; then :
16223   :
16224 else
16225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h.  */
16227 $ac_includes_default
16228         extern char *strerror_r ();
16229 int
16230 main ()
16231 {
16232 char buf[100];
16233           char x = *strerror_r (0, buf, sizeof buf);
16234           return ! isalpha (x);
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 if ac_fn_c_try_run "$LINENO"; then :
16240   ac_cv_func_strerror_r_char_p=yes
16241 fi
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243   conftest.$ac_objext conftest.beam conftest.$ac_ext
16244 fi
16245
16246     fi
16247
16248 fi
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16250 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16251 if test $ac_cv_func_strerror_r_char_p = yes; then
16252
16253 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16254
16255 fi
16256
16257
16258   XGETTEXT_EXTRA_OPTIONS=
16259
16260
16261
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16264 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16265 if ${ac_cv_c_restrict+:} false; then :
16266   $as_echo_n "(cached) " >&6
16267 else
16268   ac_cv_c_restrict=no
16269    # The order here caters to the fact that C++ does not require restrict.
16270    for ac_kw in __restrict __restrict__ _Restrict restrict; do
16271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h.  */
16273 typedef int * int_ptr;
16274         int foo (int_ptr $ac_kw ip) {
16275         return ip[0];
16276        }
16277 int
16278 main ()
16279 {
16280 int s[1];
16281         int * $ac_kw t = s;
16282         t[0] = 0;
16283         return foo(t)
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289   ac_cv_c_restrict=$ac_kw
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292      test "$ac_cv_c_restrict" != no && break
16293    done
16294
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16297 $as_echo "$ac_cv_c_restrict" >&6; }
16298
16299  case $ac_cv_c_restrict in
16300    restrict) ;;
16301    no) $as_echo "#define restrict /**/" >>confdefs.h
16302  ;;
16303    *)  cat >>confdefs.h <<_ACEOF
16304 #define restrict $ac_cv_c_restrict
16305 _ACEOF
16306  ;;
16307  esac
16308
16309
16310   GNULIB_GETTIMEOFDAY=0;
16311     HAVE_GETTIMEOFDAY=1;
16312   HAVE_STRUCT_TIMEVAL=1;
16313   HAVE_SYS_TIME_H=1;
16314   REPLACE_GETTIMEOFDAY=0;
16315   REPLACE_STRUCT_TIMEVAL=0;
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331   :
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343   :
16344
16345
16346
16347
16348
16349
16350
16351
16352      if test $gl_cv_have_include_next = yes; then
16353        gl_cv_next_sys_time_h='<'sys/time.h'>'
16354      else
16355        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16356 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16357 if ${gl_cv_next_sys_time_h+:} false; then :
16358   $as_echo_n "(cached) " >&6
16359 else
16360
16361              if test $ac_cv_header_sys_time_h = yes; then
16362
16363
16364
16365
16366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h.  */
16368 #include <sys/time.h>
16369 _ACEOF
16370                 case "$host_os" in
16371     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16372     *)    gl_absname_cpp="$ac_cpp" ;;
16373   esac
16374
16375   case "$host_os" in
16376     mingw*)
16377                                           gl_dirsep_regex='[/\\]'
16378       ;;
16379     *)
16380       gl_dirsep_regex='\/'
16381       ;;
16382   esac
16383       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16384   gl_header_literal_regex=`echo 'sys/time.h' \
16385                            | sed -e "$gl_make_literal_regex_sed"`
16386   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16387       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16388       s|^/[^/]|//&|
16389       p
16390       q
16391     }'
16392
16393         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16394   sed -n "$gl_absolute_header_sed"`
16395
16396            gl_header=$gl_cv_absolute_sys_time_h
16397            gl_cv_next_sys_time_h='"'$gl_header'"'
16398           else
16399                gl_cv_next_sys_time_h='<'sys/time.h'>'
16400              fi
16401
16402
16403 fi
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16405 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16406      fi
16407      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16408
16409      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16410        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16411        gl_next_as_first_directive='<'sys/time.h'>'
16412      else
16413        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16414        gl_next_as_first_directive=$gl_cv_next_sys_time_h
16415      fi
16416      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16417
16418
16419
16420
16421
16422   if test $ac_cv_header_sys_time_h != yes; then
16423     HAVE_SYS_TIME_H=0
16424   fi
16425
16426
16427
16428
16429
16430   :
16431
16432
16433
16434
16435
16436   if test $ac_cv_header_sys_socket_h != yes; then
16437                     for ac_header in winsock2.h
16438 do :
16439   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16440 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16441   cat >>confdefs.h <<_ACEOF
16442 #define HAVE_WINSOCK2_H 1
16443 _ACEOF
16444
16445 fi
16446
16447 done
16448
16449   fi
16450   if test "$ac_cv_header_winsock2_h" = yes; then
16451     HAVE_WINSOCK2_H=1
16452     UNISTD_H_HAVE_WINSOCK2_H=1
16453     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16454   else
16455     HAVE_WINSOCK2_H=0
16456   fi
16457
16458
16459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16460 $as_echo_n "checking for struct timeval... " >&6; }
16461 if ${gl_cv_sys_struct_timeval+:} false; then :
16462   $as_echo_n "(cached) " >&6
16463 else
16464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466 #if HAVE_SYS_TIME_H
16467              #include <sys/time.h>
16468             #endif
16469             #include <time.h>
16470             #if HAVE_WINSOCK2_H
16471             # include <winsock2.h>
16472             #endif
16473
16474 int
16475 main ()
16476 {
16477 static struct timeval x; x.tv_sec = x.tv_usec;
16478   ;
16479   return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483   gl_cv_sys_struct_timeval=yes
16484 else
16485   gl_cv_sys_struct_timeval=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488
16489 fi
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16491 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16492   if test $gl_cv_sys_struct_timeval != yes; then
16493     HAVE_STRUCT_TIMEVAL=0
16494   else
16495                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16496 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16497 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16498   $as_echo_n "(cached) " >&6
16499 else
16500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h.  */
16502 #if HAVE_SYS_TIME_H
16503                #include <sys/time.h>
16504               #endif
16505               #include <time.h>
16506               #if HAVE_WINSOCK2_H
16507               # include <winsock2.h>
16508               #endif
16509
16510 int
16511 main ()
16512 {
16513 static struct timeval x;
16514               typedef int verify_tv_sec_type[
16515                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16516               ];
16517
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522 if ac_fn_c_try_compile "$LINENO"; then :
16523   gl_cv_sys_struct_timeval_tv_sec=yes
16524 else
16525   gl_cv_sys_struct_timeval_tv_sec=no
16526 fi
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16531 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16532     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16533       REPLACE_STRUCT_TIMEVAL=1
16534     fi
16535   fi
16536
16537
16538     for gl_func in gettimeofday; do
16539     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16541 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16542 if eval \${$as_gl_Symbol+:} false; then :
16543   $as_echo_n "(cached) " >&6
16544 else
16545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h.  */
16547
16548 #if HAVE_SYS_TIME_H
16549 # include <sys/time.h>
16550 #endif
16551 #include <time.h>
16552
16553 int
16554 main ()
16555 {
16556 #undef $gl_func
16557   (void) $gl_func;
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_compile "$LINENO"; then :
16563   eval "$as_gl_Symbol=yes"
16564 else
16565   eval "$as_gl_Symbol=no"
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 fi
16569 eval ac_res=\$$as_gl_Symbol
16570                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16571 $as_echo "$ac_res" >&6; }
16572     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16573   cat >>confdefs.h <<_ACEOF
16574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16575 _ACEOF
16576
16577                      eval ac_cv_have_decl_$gl_func=yes
16578 fi
16579       done
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589   for ac_func in $gl_func_list
16590 do :
16591   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16594   cat >>confdefs.h <<_ACEOF
16595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 _ACEOF
16597
16598 fi
16599 done
16600
16601
16602
16603
16604
16605
16606
16607   case "$host_os" in
16608     mingw*)
16609                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16610 $as_echo_n "checking for 64-bit off_t... " >&6; }
16611 if ${gl_cv_type_off_t_64+:} false; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h.  */
16616 #include <sys/types.h>
16617                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16618
16619 int
16620 main ()
16621 {
16622
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 if ac_fn_c_try_compile "$LINENO"; then :
16628   gl_cv_type_off_t_64=yes
16629 else
16630   gl_cv_type_off_t_64=no
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633
16634 fi
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16636 $as_echo "$gl_cv_type_off_t_64" >&6; }
16637       if test $gl_cv_type_off_t_64 = no; then
16638         WINDOWS_64_BIT_OFF_T=1
16639       else
16640         WINDOWS_64_BIT_OFF_T=0
16641       fi
16642                   WINDOWS_64_BIT_ST_SIZE=1
16643       ;;
16644     *)
16645                                                       WINDOWS_64_BIT_OFF_T=0
16646       WINDOWS_64_BIT_ST_SIZE=0
16647       ;;
16648   esac
16649
16650
16651       if test "X$prefix" = "XNONE"; then
16652     acl_final_prefix="$ac_default_prefix"
16653   else
16654     acl_final_prefix="$prefix"
16655   fi
16656   if test "X$exec_prefix" = "XNONE"; then
16657     acl_final_exec_prefix='${prefix}'
16658   else
16659     acl_final_exec_prefix="$exec_prefix"
16660   fi
16661   acl_save_prefix="$prefix"
16662   prefix="$acl_final_prefix"
16663   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16664   prefix="$acl_save_prefix"
16665
16666
16667
16668 # Check whether --with-gnu-ld was given.
16669 if test "${with_gnu_ld+set}" = set; then :
16670   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16671 else
16672   with_gnu_ld=no
16673 fi
16674
16675 # Prepare PATH_SEPARATOR.
16676 # The user is always right.
16677 if test "${PATH_SEPARATOR+set}" != set; then
16678   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16679   # contains only /bin. Note that ksh looks also at the FPATH variable,
16680   # so we have to set that as well for the test.
16681   PATH_SEPARATOR=:
16682   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16683     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16684            || PATH_SEPARATOR=';'
16685        }
16686 fi
16687
16688 ac_prog=ld
16689 if test "$GCC" = yes; then
16690   # Check if gcc -print-prog-name=ld gives a path.
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16692 $as_echo_n "checking for ld used by $CC... " >&6; }
16693   case $host in
16694   *-*-mingw*)
16695     # gcc leaves a trailing carriage return which upsets mingw
16696     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16697   *)
16698     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16699   esac
16700   case $ac_prog in
16701     # Accept absolute paths.
16702     [\\/]* | ?:[\\/]*)
16703       re_direlt='/[^/][^/]*/\.\./'
16704       # Canonicalize the pathname of ld
16705       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16706       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16707         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16708       done
16709       test -z "$LD" && LD="$ac_prog"
16710       ;;
16711   "")
16712     # If it fails, then pretend we aren't using GCC.
16713     ac_prog=ld
16714     ;;
16715   *)
16716     # If it is relative, then search for the first ld in PATH.
16717     with_gnu_ld=unknown
16718     ;;
16719   esac
16720 elif test "$with_gnu_ld" = yes; then
16721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16722 $as_echo_n "checking for GNU ld... " >&6; }
16723 else
16724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16725 $as_echo_n "checking for non-GNU ld... " >&6; }
16726 fi
16727 if ${acl_cv_path_LD+:} false; then :
16728   $as_echo_n "(cached) " >&6
16729 else
16730   if test -z "$LD"; then
16731   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16732   for ac_dir in $PATH; do
16733     IFS="$acl_save_ifs"
16734     test -z "$ac_dir" && ac_dir=.
16735     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16736       acl_cv_path_LD="$ac_dir/$ac_prog"
16737       # Check to see if the program is GNU ld.  I'd rather use --version,
16738       # but apparently some variants of GNU ld only accept -v.
16739       # Break only if it was the GNU/non-GNU ld that we prefer.
16740       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16741       *GNU* | *'with BFD'*)
16742         test "$with_gnu_ld" != no && break
16743         ;;
16744       *)
16745         test "$with_gnu_ld" != yes && break
16746         ;;
16747       esac
16748     fi
16749   done
16750   IFS="$acl_save_ifs"
16751 else
16752   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16753 fi
16754 fi
16755
16756 LD="$acl_cv_path_LD"
16757 if test -n "$LD"; then
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16759 $as_echo "$LD" >&6; }
16760 else
16761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763 fi
16764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16767 if ${acl_cv_prog_gnu_ld+:} false; then :
16768   $as_echo_n "(cached) " >&6
16769 else
16770   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16771 case `$LD -v 2>&1 </dev/null` in
16772 *GNU* | *'with BFD'*)
16773   acl_cv_prog_gnu_ld=yes
16774   ;;
16775 *)
16776   acl_cv_prog_gnu_ld=no
16777   ;;
16778 esac
16779 fi
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16781 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16782 with_gnu_ld=$acl_cv_prog_gnu_ld
16783
16784
16785
16786
16787                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16788 $as_echo_n "checking for shared library run path origin... " >&6; }
16789 if ${acl_cv_rpath+:} false; then :
16790   $as_echo_n "(cached) " >&6
16791 else
16792
16793     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16794     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16795     . ./conftest.sh
16796     rm -f ./conftest.sh
16797     acl_cv_rpath=done
16798
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16801 $as_echo "$acl_cv_rpath" >&6; }
16802   wl="$acl_cv_wl"
16803   acl_libext="$acl_cv_libext"
16804   acl_shlibext="$acl_cv_shlibext"
16805   acl_libname_spec="$acl_cv_libname_spec"
16806   acl_library_names_spec="$acl_cv_library_names_spec"
16807   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16808   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16809   acl_hardcode_direct="$acl_cv_hardcode_direct"
16810   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16811     # Check whether --enable-rpath was given.
16812 if test "${enable_rpath+set}" = set; then :
16813   enableval=$enable_rpath; :
16814 else
16815   enable_rpath=yes
16816 fi
16817
16818
16819
16820
16821   acl_libdirstem=lib
16822   acl_libdirstem2=
16823   case "$host_os" in
16824     solaris*)
16825                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16826 $as_echo_n "checking for 64-bit host... " >&6; }
16827 if ${gl_cv_solaris_64bit+:} false; then :
16828   $as_echo_n "(cached) " >&6
16829 else
16830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h.  */
16832
16833 #ifdef _LP64
16834 sixtyfour bits
16835 #endif
16836
16837 _ACEOF
16838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16839   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16840   gl_cv_solaris_64bit=yes
16841 else
16842   gl_cv_solaris_64bit=no
16843 fi
16844 rm -f conftest*
16845
16846
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16849 $as_echo "$gl_cv_solaris_64bit" >&6; }
16850       if test $gl_cv_solaris_64bit = yes; then
16851         acl_libdirstem=lib/64
16852         case "$host_cpu" in
16853           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16854           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16855         esac
16856       fi
16857       ;;
16858     *)
16859       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16860       if test -n "$searchpath"; then
16861         acl_save_IFS="${IFS=    }"; IFS=":"
16862         for searchdir in $searchpath; do
16863           if test -d "$searchdir"; then
16864             case "$searchdir" in
16865               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16866               */../ | */.. )
16867                 # Better ignore directories of this form. They are misleading.
16868                 ;;
16869               *) searchdir=`cd "$searchdir" && pwd`
16870                  case "$searchdir" in
16871                    */lib64 ) acl_libdirstem=lib64 ;;
16872                  esac ;;
16873             esac
16874           fi
16875         done
16876         IFS="$acl_save_IFS"
16877       fi
16878       ;;
16879   esac
16880   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16881
16882
16883
16884   gl_threads_api=none
16885   LIBTHREAD=
16886   LTLIBTHREAD=
16887   LIBMULTITHREAD=
16888   LTLIBMULTITHREAD=
16889   if test "$gl_use_threads" != no; then
16890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16891 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16892 if ${gl_cv_have_weak+:} false; then :
16893   $as_echo_n "(cached) " >&6
16894 else
16895   gl_cv_have_weak=no
16896               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h.  */
16898 extern void xyzzy ();
16899 #pragma weak xyzzy
16900 int
16901 main ()
16902 {
16903 xyzzy();
16904   ;
16905   return 0;
16906 }
16907 _ACEOF
16908 if ac_fn_c_try_link "$LINENO"; then :
16909   gl_cv_have_weak=maybe
16910 fi
16911 rm -f core conftest.err conftest.$ac_objext \
16912     conftest$ac_exeext conftest.$ac_ext
16913        if test $gl_cv_have_weak = maybe; then
16914                            if test "$cross_compiling" = yes; then :
16915                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h.  */
16917 #ifdef __ELF__
16918                Extensible Linking Format
16919                #endif
16920
16921 _ACEOF
16922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16923   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16924   gl_cv_have_weak="guessing yes"
16925 else
16926   gl_cv_have_weak="guessing no"
16927 fi
16928 rm -f conftest*
16929
16930
16931 else
16932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h.  */
16934
16935 #include <stdio.h>
16936 #pragma weak fputs
16937 int main ()
16938 {
16939   return (fputs == NULL);
16940 }
16941 _ACEOF
16942 if ac_fn_c_try_run "$LINENO"; then :
16943   gl_cv_have_weak=yes
16944 else
16945   gl_cv_have_weak=no
16946 fi
16947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16948   conftest.$ac_objext conftest.beam conftest.$ac_ext
16949 fi
16950
16951        fi
16952
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16955 $as_echo "$gl_cv_have_weak" >&6; }
16956     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16957       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16958       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16959       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16960 if test "x$ac_cv_header_pthread_h" = xyes; then :
16961   gl_have_pthread_h=yes
16962 else
16963   gl_have_pthread_h=no
16964 fi
16965
16966
16967       if test "$gl_have_pthread_h" = yes; then
16968         # Other possible tests:
16969         #   -lpthreads (FSU threads, PCthreads)
16970         #   -lgthreads
16971         gl_have_pthread=
16972         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16973         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16974         # the second one only in libpthread, and lock.c needs it.
16975         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h.  */
16977 #include <pthread.h>
16978 int
16979 main ()
16980 {
16981 pthread_mutex_lock((pthread_mutex_t*)0);
16982                pthread_mutexattr_init((pthread_mutexattr_t*)0);
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 if ac_fn_c_try_link "$LINENO"; then :
16988   gl_have_pthread=yes
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext \
16991     conftest$ac_exeext conftest.$ac_ext
16992         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16993         # since it is defined as a macro on OSF/1.)
16994         if test -n "$gl_have_pthread"; then
16995           # The program links fine without libpthread. But it may actually
16996           # need to link with libpthread in order to create multiple threads.
16997           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16998 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16999 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17000   $as_echo_n "(cached) " >&6
17001 else
17002   ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lpthread  $LIBS"
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h.  */
17006
17007 /* Override any GCC internal prototype to avoid an error.
17008    Use char because int might match the return type of a GCC
17009    builtin and then its argument prototype would still apply.  */
17010 #ifdef __cplusplus
17011 extern "C"
17012 #endif
17013 char pthread_kill ();
17014 int
17015 main ()
17016 {
17017 return pthread_kill ();
17018   ;
17019   return 0;
17020 }
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023   ac_cv_lib_pthread_pthread_kill=yes
17024 else
17025   ac_cv_lib_pthread_pthread_kill=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext \
17028     conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17030 fi
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17032 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17033 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17034   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17035              # On Solaris and HP-UX, most pthread functions exist also in libc.
17036              # Therefore pthread_in_use() needs to actually try to create a
17037              # thread: pthread_create from libc will fail, whereas
17038              # pthread_create will actually create a thread.
17039              case "$host_os" in
17040                solaris* | hpux*)
17041
17042 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17043
17044              esac
17045
17046 fi
17047
17048         else
17049           # Some library is needed. Try libpthread and libc_r.
17050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17051 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17052 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17053   $as_echo_n "(cached) " >&6
17054 else
17055   ac_check_lib_save_LIBS=$LIBS
17056 LIBS="-lpthread  $LIBS"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059
17060 /* Override any GCC internal prototype to avoid an error.
17061    Use char because int might match the return type of a GCC
17062    builtin and then its argument prototype would still apply.  */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 char pthread_kill ();
17067 int
17068 main ()
17069 {
17070 return pthread_kill ();
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 if ac_fn_c_try_link "$LINENO"; then :
17076   ac_cv_lib_pthread_pthread_kill=yes
17077 else
17078   ac_cv_lib_pthread_pthread_kill=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext \
17081     conftest$ac_exeext conftest.$ac_ext
17082 LIBS=$ac_check_lib_save_LIBS
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17085 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17086 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17087   gl_have_pthread=yes
17088              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17089              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17090 fi
17091
17092           if test -z "$gl_have_pthread"; then
17093             # For FreeBSD 4.
17094             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17095 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17096 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17097   $as_echo_n "(cached) " >&6
17098 else
17099   ac_check_lib_save_LIBS=$LIBS
17100 LIBS="-lc_r  $LIBS"
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h.  */
17103
17104 /* Override any GCC internal prototype to avoid an error.
17105    Use char because int might match the return type of a GCC
17106    builtin and then its argument prototype would still apply.  */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char pthread_kill ();
17111 int
17112 main ()
17113 {
17114 return pthread_kill ();
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17120   ac_cv_lib_c_r_pthread_kill=yes
17121 else
17122   ac_cv_lib_c_r_pthread_kill=no
17123 fi
17124 rm -f core conftest.err conftest.$ac_objext \
17125     conftest$ac_exeext conftest.$ac_ext
17126 LIBS=$ac_check_lib_save_LIBS
17127 fi
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17129 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17130 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17131   gl_have_pthread=yes
17132                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17133                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17134 fi
17135
17136           fi
17137         fi
17138         if test -n "$gl_have_pthread"; then
17139           gl_threads_api=posix
17140
17141 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17142
17143           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17144             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17145
17146 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17147
17148               LIBTHREAD=
17149               LTLIBTHREAD=
17150             fi
17151           fi
17152         fi
17153       fi
17154     fi
17155     if test -z "$gl_have_pthread"; then
17156       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17157         gl_have_solaristhread=
17158         gl_save_LIBS="$LIBS"
17159         LIBS="$LIBS -lthread"
17160         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h.  */
17162
17163 #include <thread.h>
17164 #include <synch.h>
17165
17166 int
17167 main ()
17168 {
17169 thr_self();
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175   gl_have_solaristhread=yes
17176 fi
17177 rm -f core conftest.err conftest.$ac_objext \
17178     conftest$ac_exeext conftest.$ac_ext
17179         LIBS="$gl_save_LIBS"
17180         if test -n "$gl_have_solaristhread"; then
17181           gl_threads_api=solaris
17182           LIBTHREAD=-lthread
17183           LTLIBTHREAD=-lthread
17184           LIBMULTITHREAD="$LIBTHREAD"
17185           LTLIBMULTITHREAD="$LTLIBTHREAD"
17186
17187 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17188
17189           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17190
17191 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17192
17193             LIBTHREAD=
17194             LTLIBTHREAD=
17195           fi
17196         fi
17197       fi
17198     fi
17199     if test "$gl_use_threads" = pth; then
17200       gl_save_CPPFLAGS="$CPPFLAGS"
17201
17202
17203
17204
17205
17206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17207 $as_echo_n "checking how to link with libpth... " >&6; }
17208 if ${ac_cv_libpth_libs+:} false; then :
17209   $as_echo_n "(cached) " >&6
17210 else
17211
17212
17213
17214
17215
17216
17217
17218
17219     use_additional=yes
17220
17221   acl_save_prefix="$prefix"
17222   prefix="$acl_final_prefix"
17223   acl_save_exec_prefix="$exec_prefix"
17224   exec_prefix="$acl_final_exec_prefix"
17225
17226     eval additional_includedir=\"$includedir\"
17227     eval additional_libdir=\"$libdir\"
17228
17229   exec_prefix="$acl_save_exec_prefix"
17230   prefix="$acl_save_prefix"
17231
17232
17233 # Check whether --with-libpth-prefix was given.
17234 if test "${with_libpth_prefix+set}" = set; then :
17235   withval=$with_libpth_prefix;
17236     if test "X$withval" = "Xno"; then
17237       use_additional=no
17238     else
17239       if test "X$withval" = "X"; then
17240
17241   acl_save_prefix="$prefix"
17242   prefix="$acl_final_prefix"
17243   acl_save_exec_prefix="$exec_prefix"
17244   exec_prefix="$acl_final_exec_prefix"
17245
17246           eval additional_includedir=\"$includedir\"
17247           eval additional_libdir=\"$libdir\"
17248
17249   exec_prefix="$acl_save_exec_prefix"
17250   prefix="$acl_save_prefix"
17251
17252       else
17253         additional_includedir="$withval/include"
17254         additional_libdir="$withval/$acl_libdirstem"
17255         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17256            && ! test -d "$withval/$acl_libdirstem"; then
17257           additional_libdir="$withval/$acl_libdirstem2"
17258         fi
17259       fi
17260     fi
17261
17262 fi
17263
17264       LIBPTH=
17265   LTLIBPTH=
17266   INCPTH=
17267   LIBPTH_PREFIX=
17268       HAVE_LIBPTH=
17269   rpathdirs=
17270   ltrpathdirs=
17271   names_already_handled=
17272   names_next_round='pth '
17273   while test -n "$names_next_round"; do
17274     names_this_round="$names_next_round"
17275     names_next_round=
17276     for name in $names_this_round; do
17277       already_handled=
17278       for n in $names_already_handled; do
17279         if test "$n" = "$name"; then
17280           already_handled=yes
17281           break
17282         fi
17283       done
17284       if test -z "$already_handled"; then
17285         names_already_handled="$names_already_handled $name"
17286                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17287         eval value=\"\$HAVE_LIB$uppername\"
17288         if test -n "$value"; then
17289           if test "$value" = yes; then
17290             eval value=\"\$LIB$uppername\"
17291             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17292             eval value=\"\$LTLIB$uppername\"
17293             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17294           else
17295                                     :
17296           fi
17297         else
17298                               found_dir=
17299           found_la=
17300           found_so=
17301           found_a=
17302           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17303           if test -n "$acl_shlibext"; then
17304             shrext=".$acl_shlibext"             # typically: shrext=.so
17305           else
17306             shrext=
17307           fi
17308           if test $use_additional = yes; then
17309             dir="$additional_libdir"
17310                                     if test -n "$acl_shlibext"; then
17311               if test -f "$dir/$libname$shrext"; then
17312                 found_dir="$dir"
17313                 found_so="$dir/$libname$shrext"
17314               else
17315                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17316                   ver=`(cd "$dir" && \
17317                         for f in "$libname$shrext".*; do echo "$f"; done \
17318                         | sed -e "s,^$libname$shrext\\\\.,," \
17319                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17320                         | sed 1q ) 2>/dev/null`
17321                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17322                     found_dir="$dir"
17323                     found_so="$dir/$libname$shrext.$ver"
17324                   fi
17325                 else
17326                   eval library_names=\"$acl_library_names_spec\"
17327                   for f in $library_names; do
17328                     if test -f "$dir/$f"; then
17329                       found_dir="$dir"
17330                       found_so="$dir/$f"
17331                       break
17332                     fi
17333                   done
17334                 fi
17335               fi
17336             fi
17337                         if test "X$found_dir" = "X"; then
17338               if test -f "$dir/$libname.$acl_libext"; then
17339                 found_dir="$dir"
17340                 found_a="$dir/$libname.$acl_libext"
17341               fi
17342             fi
17343             if test "X$found_dir" != "X"; then
17344               if test -f "$dir/$libname.la"; then
17345                 found_la="$dir/$libname.la"
17346               fi
17347             fi
17348           fi
17349           if test "X$found_dir" = "X"; then
17350             for x in $LDFLAGS $LTLIBPTH; do
17351
17352   acl_save_prefix="$prefix"
17353   prefix="$acl_final_prefix"
17354   acl_save_exec_prefix="$exec_prefix"
17355   exec_prefix="$acl_final_exec_prefix"
17356   eval x=\"$x\"
17357   exec_prefix="$acl_save_exec_prefix"
17358   prefix="$acl_save_prefix"
17359
17360               case "$x" in
17361                 -L*)
17362                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17363                                     if test -n "$acl_shlibext"; then
17364                     if test -f "$dir/$libname$shrext"; then
17365                       found_dir="$dir"
17366                       found_so="$dir/$libname$shrext"
17367                     else
17368                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17369                         ver=`(cd "$dir" && \
17370                               for f in "$libname$shrext".*; do echo "$f"; done \
17371                               | sed -e "s,^$libname$shrext\\\\.,," \
17372                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17373                               | sed 1q ) 2>/dev/null`
17374                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17375                           found_dir="$dir"
17376                           found_so="$dir/$libname$shrext.$ver"
17377                         fi
17378                       else
17379                         eval library_names=\"$acl_library_names_spec\"
17380                         for f in $library_names; do
17381                           if test -f "$dir/$f"; then
17382                             found_dir="$dir"
17383                             found_so="$dir/$f"
17384                             break
17385                           fi
17386                         done
17387                       fi
17388                     fi
17389                   fi
17390                                     if test "X$found_dir" = "X"; then
17391                     if test -f "$dir/$libname.$acl_libext"; then
17392                       found_dir="$dir"
17393                       found_a="$dir/$libname.$acl_libext"
17394                     fi
17395                   fi
17396                   if test "X$found_dir" != "X"; then
17397                     if test -f "$dir/$libname.la"; then
17398                       found_la="$dir/$libname.la"
17399                     fi
17400                   fi
17401                   ;;
17402               esac
17403               if test "X$found_dir" != "X"; then
17404                 break
17405               fi
17406             done
17407           fi
17408           if test "X$found_dir" != "X"; then
17409                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17410             if test "X$found_so" != "X"; then
17411                                                         if test "$enable_rpath" = no \
17412                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17413                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17414                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17415               else
17416                                                                                 haveit=
17417                 for x in $ltrpathdirs; do
17418                   if test "X$x" = "X$found_dir"; then
17419                     haveit=yes
17420                     break
17421                   fi
17422                 done
17423                 if test -z "$haveit"; then
17424                   ltrpathdirs="$ltrpathdirs $found_dir"
17425                 fi
17426                                 if test "$acl_hardcode_direct" = yes; then
17427                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17428                 else
17429                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17430                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17431                                                             haveit=
17432                     for x in $rpathdirs; do
17433                       if test "X$x" = "X$found_dir"; then
17434                         haveit=yes
17435                         break
17436                       fi
17437                     done
17438                     if test -z "$haveit"; then
17439                       rpathdirs="$rpathdirs $found_dir"
17440                     fi
17441                   else
17442                                                                                 haveit=
17443                     for x in $LDFLAGS $LIBPTH; do
17444
17445   acl_save_prefix="$prefix"
17446   prefix="$acl_final_prefix"
17447   acl_save_exec_prefix="$exec_prefix"
17448   exec_prefix="$acl_final_exec_prefix"
17449   eval x=\"$x\"
17450   exec_prefix="$acl_save_exec_prefix"
17451   prefix="$acl_save_prefix"
17452
17453                       if test "X$x" = "X-L$found_dir"; then
17454                         haveit=yes
17455                         break
17456                       fi
17457                     done
17458                     if test -z "$haveit"; then
17459                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17460                     fi
17461                     if test "$acl_hardcode_minus_L" != no; then
17462                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17463                     else
17464                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17465                     fi
17466                   fi
17467                 fi
17468               fi
17469             else
17470               if test "X$found_a" != "X"; then
17471                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17472               else
17473                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17474               fi
17475             fi
17476                         additional_includedir=
17477             case "$found_dir" in
17478               */$acl_libdirstem | */$acl_libdirstem/)
17479                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17480                 if test "$name" = 'pth'; then
17481                   LIBPTH_PREFIX="$basedir"
17482                 fi
17483                 additional_includedir="$basedir/include"
17484                 ;;
17485               */$acl_libdirstem2 | */$acl_libdirstem2/)
17486                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17487                 if test "$name" = 'pth'; then
17488                   LIBPTH_PREFIX="$basedir"
17489                 fi
17490                 additional_includedir="$basedir/include"
17491                 ;;
17492             esac
17493             if test "X$additional_includedir" != "X"; then
17494                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17495                 haveit=
17496                 if test "X$additional_includedir" = "X/usr/local/include"; then
17497                   if test -n "$GCC"; then
17498                     case $host_os in
17499                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17500                     esac
17501                   fi
17502                 fi
17503                 if test -z "$haveit"; then
17504                   for x in $CPPFLAGS $INCPTH; do
17505
17506   acl_save_prefix="$prefix"
17507   prefix="$acl_final_prefix"
17508   acl_save_exec_prefix="$exec_prefix"
17509   exec_prefix="$acl_final_exec_prefix"
17510   eval x=\"$x\"
17511   exec_prefix="$acl_save_exec_prefix"
17512   prefix="$acl_save_prefix"
17513
17514                     if test "X$x" = "X-I$additional_includedir"; then
17515                       haveit=yes
17516                       break
17517                     fi
17518                   done
17519                   if test -z "$haveit"; then
17520                     if test -d "$additional_includedir"; then
17521                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17522                     fi
17523                   fi
17524                 fi
17525               fi
17526             fi
17527                         if test -n "$found_la"; then
17528                                                         save_libdir="$libdir"
17529               case "$found_la" in
17530                 */* | *\\*) . "$found_la" ;;
17531                 *) . "./$found_la" ;;
17532               esac
17533               libdir="$save_libdir"
17534                             for dep in $dependency_libs; do
17535                 case "$dep" in
17536                   -L*)
17537                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17538                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17539                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17540                       haveit=
17541                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17542                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17543                         if test -n "$GCC"; then
17544                           case $host_os in
17545                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17546                           esac
17547                         fi
17548                       fi
17549                       if test -z "$haveit"; then
17550                         haveit=
17551                         for x in $LDFLAGS $LIBPTH; do
17552
17553   acl_save_prefix="$prefix"
17554   prefix="$acl_final_prefix"
17555   acl_save_exec_prefix="$exec_prefix"
17556   exec_prefix="$acl_final_exec_prefix"
17557   eval x=\"$x\"
17558   exec_prefix="$acl_save_exec_prefix"
17559   prefix="$acl_save_prefix"
17560
17561                           if test "X$x" = "X-L$additional_libdir"; then
17562                             haveit=yes
17563                             break
17564                           fi
17565                         done
17566                         if test -z "$haveit"; then
17567                           if test -d "$additional_libdir"; then
17568                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17569                           fi
17570                         fi
17571                         haveit=
17572                         for x in $LDFLAGS $LTLIBPTH; do
17573
17574   acl_save_prefix="$prefix"
17575   prefix="$acl_final_prefix"
17576   acl_save_exec_prefix="$exec_prefix"
17577   exec_prefix="$acl_final_exec_prefix"
17578   eval x=\"$x\"
17579   exec_prefix="$acl_save_exec_prefix"
17580   prefix="$acl_save_prefix"
17581
17582                           if test "X$x" = "X-L$additional_libdir"; then
17583                             haveit=yes
17584                             break
17585                           fi
17586                         done
17587                         if test -z "$haveit"; then
17588                           if test -d "$additional_libdir"; then
17589                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17590                           fi
17591                         fi
17592                       fi
17593                     fi
17594                     ;;
17595                   -R*)
17596                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17597                     if test "$enable_rpath" != no; then
17598                                                                   haveit=
17599                       for x in $rpathdirs; do
17600                         if test "X$x" = "X$dir"; then
17601                           haveit=yes
17602                           break
17603                         fi
17604                       done
17605                       if test -z "$haveit"; then
17606                         rpathdirs="$rpathdirs $dir"
17607                       fi
17608                                                                   haveit=
17609                       for x in $ltrpathdirs; do
17610                         if test "X$x" = "X$dir"; then
17611                           haveit=yes
17612                           break
17613                         fi
17614                       done
17615                       if test -z "$haveit"; then
17616                         ltrpathdirs="$ltrpathdirs $dir"
17617                       fi
17618                     fi
17619                     ;;
17620                   -l*)
17621                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17622                     ;;
17623                   *.la)
17624                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17625                     ;;
17626                   *)
17627                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17628                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17629                     ;;
17630                 esac
17631               done
17632             fi
17633           else
17634                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17635             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17636           fi
17637         fi
17638       fi
17639     done
17640   done
17641   if test "X$rpathdirs" != "X"; then
17642     if test -n "$acl_hardcode_libdir_separator"; then
17643                         alldirs=
17644       for found_dir in $rpathdirs; do
17645         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17646       done
17647             acl_save_libdir="$libdir"
17648       libdir="$alldirs"
17649       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17650       libdir="$acl_save_libdir"
17651       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17652     else
17653             for found_dir in $rpathdirs; do
17654         acl_save_libdir="$libdir"
17655         libdir="$found_dir"
17656         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17657         libdir="$acl_save_libdir"
17658         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17659       done
17660     fi
17661   fi
17662   if test "X$ltrpathdirs" != "X"; then
17663             for found_dir in $ltrpathdirs; do
17664       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17665     done
17666   fi
17667
17668
17669
17670
17671
17672
17673     ac_cv_libpth_libs="$LIBPTH"
17674     ac_cv_libpth_ltlibs="$LTLIBPTH"
17675     ac_cv_libpth_cppflags="$INCPTH"
17676     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17677
17678 fi
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17680 $as_echo "$ac_cv_libpth_libs" >&6; }
17681   LIBPTH="$ac_cv_libpth_libs"
17682   LTLIBPTH="$ac_cv_libpth_ltlibs"
17683   INCPTH="$ac_cv_libpth_cppflags"
17684   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17685
17686   for element in $INCPTH; do
17687     haveit=
17688     for x in $CPPFLAGS; do
17689
17690   acl_save_prefix="$prefix"
17691   prefix="$acl_final_prefix"
17692   acl_save_exec_prefix="$exec_prefix"
17693   exec_prefix="$acl_final_exec_prefix"
17694   eval x=\"$x\"
17695   exec_prefix="$acl_save_exec_prefix"
17696   prefix="$acl_save_prefix"
17697
17698       if test "X$x" = "X$element"; then
17699         haveit=yes
17700         break
17701       fi
17702     done
17703     if test -z "$haveit"; then
17704       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17705     fi
17706   done
17707
17708
17709
17710
17711       HAVE_LIBPTH=yes
17712
17713
17714
17715       gl_have_pth=
17716       gl_save_LIBS="$LIBS"
17717       LIBS="$LIBS $LIBPTH"
17718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h.  */
17720 #include <pth.h>
17721 int
17722 main ()
17723 {
17724 pth_self();
17725   ;
17726   return 0;
17727 }
17728 _ACEOF
17729 if ac_fn_c_try_link "$LINENO"; then :
17730   gl_have_pth=yes
17731 fi
17732 rm -f core conftest.err conftest.$ac_objext \
17733     conftest$ac_exeext conftest.$ac_ext
17734       LIBS="$gl_save_LIBS"
17735       if test -n "$gl_have_pth"; then
17736         gl_threads_api=pth
17737         LIBTHREAD="$LIBPTH"
17738         LTLIBTHREAD="$LTLIBPTH"
17739         LIBMULTITHREAD="$LIBTHREAD"
17740         LTLIBMULTITHREAD="$LTLIBTHREAD"
17741
17742 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17743
17744         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17745           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17746
17747 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17748
17749             LIBTHREAD=
17750             LTLIBTHREAD=
17751           fi
17752         fi
17753       else
17754         CPPFLAGS="$gl_save_CPPFLAGS"
17755       fi
17756     fi
17757     if test -z "$gl_have_pthread"; then
17758       case "$gl_use_threads" in
17759         yes | windows | win32) # The 'win32' is for backward compatibility.
17760           if { case "$host_os" in
17761                  mingw*) true;;
17762                  *) false;;
17763                esac
17764              }; then
17765             gl_threads_api=windows
17766
17767 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17768
17769           fi
17770           ;;
17771       esac
17772     fi
17773   fi
17774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17775 $as_echo_n "checking for multithread API to use... " >&6; }
17776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17777 $as_echo "$gl_threads_api" >&6; }
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788   GNULIB__EXIT=0;
17789   GNULIB_ATOLL=0;
17790   GNULIB_CALLOC_POSIX=0;
17791   GNULIB_CANONICALIZE_FILE_NAME=0;
17792   GNULIB_GETLOADAVG=0;
17793   GNULIB_GETSUBOPT=0;
17794   GNULIB_GRANTPT=0;
17795   GNULIB_MALLOC_POSIX=0;
17796   GNULIB_MBTOWC=0;
17797   GNULIB_MKDTEMP=0;
17798   GNULIB_MKOSTEMP=0;
17799   GNULIB_MKOSTEMPS=0;
17800   GNULIB_MKSTEMP=0;
17801   GNULIB_MKSTEMPS=0;
17802   GNULIB_POSIX_OPENPT=0;
17803   GNULIB_PTSNAME=0;
17804   GNULIB_PTSNAME_R=0;
17805   GNULIB_PUTENV=0;
17806   GNULIB_RANDOM=0;
17807   GNULIB_RANDOM_R=0;
17808   GNULIB_REALLOC_POSIX=0;
17809   GNULIB_REALPATH=0;
17810   GNULIB_RPMATCH=0;
17811   GNULIB_SECURE_GETENV=0;
17812   GNULIB_SETENV=0;
17813   GNULIB_STRTOD=0;
17814   GNULIB_STRTOLL=0;
17815   GNULIB_STRTOULL=0;
17816   GNULIB_SYSTEM_POSIX=0;
17817   GNULIB_UNLOCKPT=0;
17818   GNULIB_UNSETENV=0;
17819   GNULIB_WCTOMB=0;
17820     HAVE__EXIT=1;
17821   HAVE_ATOLL=1;
17822   HAVE_CANONICALIZE_FILE_NAME=1;
17823   HAVE_DECL_GETLOADAVG=1;
17824   HAVE_GETSUBOPT=1;
17825   HAVE_GRANTPT=1;
17826   HAVE_MKDTEMP=1;
17827   HAVE_MKOSTEMP=1;
17828   HAVE_MKOSTEMPS=1;
17829   HAVE_MKSTEMP=1;
17830   HAVE_MKSTEMPS=1;
17831   HAVE_POSIX_OPENPT=1;
17832   HAVE_PTSNAME=1;
17833   HAVE_PTSNAME_R=1;
17834   HAVE_RANDOM=1;
17835   HAVE_RANDOM_H=1;
17836   HAVE_RANDOM_R=1;
17837   HAVE_REALPATH=1;
17838   HAVE_RPMATCH=1;
17839   HAVE_SECURE_GETENV=1;
17840   HAVE_SETENV=1;
17841   HAVE_DECL_SETENV=1;
17842   HAVE_STRTOD=1;
17843   HAVE_STRTOLL=1;
17844   HAVE_STRTOULL=1;
17845   HAVE_STRUCT_RANDOM_DATA=1;
17846   HAVE_SYS_LOADAVG_H=0;
17847   HAVE_UNLOCKPT=1;
17848   HAVE_DECL_UNSETENV=1;
17849   REPLACE_CALLOC=0;
17850   REPLACE_CANONICALIZE_FILE_NAME=0;
17851   REPLACE_MALLOC=0;
17852   REPLACE_MBTOWC=0;
17853   REPLACE_MKSTEMP=0;
17854   REPLACE_PTSNAME=0;
17855   REPLACE_PTSNAME_R=0;
17856   REPLACE_PUTENV=0;
17857   REPLACE_RANDOM_R=0;
17858   REPLACE_REALLOC=0;
17859   REPLACE_REALPATH=0;
17860   REPLACE_SETENV=0;
17861   REPLACE_STRTOD=0;
17862   REPLACE_UNSETENV=0;
17863   REPLACE_WCTOMB=0;
17864
17865
17866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17867 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17868 if ${gl_cv_func_malloc_posix+:} false; then :
17869   $as_echo_n "(cached) " >&6
17870 else
17871
17872                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h.  */
17874
17875 int
17876 main ()
17877 {
17878 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17879              choke me
17880              #endif
17881
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_compile "$LINENO"; then :
17887   gl_cv_func_malloc_posix=yes
17888 else
17889   gl_cv_func_malloc_posix=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892
17893 fi
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17895 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17896
17897
17898
17899       for ac_header in stdlib.h
17900 do :
17901   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17902 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17903   cat >>confdefs.h <<_ACEOF
17904 #define HAVE_STDLIB_H 1
17905 _ACEOF
17906
17907 fi
17908
17909 done
17910
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17912 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17913 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17914   $as_echo_n "(cached) " >&6
17915 else
17916   if test "$cross_compiling" = yes; then :
17917   case "$host_os" in
17918           # Guess yes on platforms where we know the result.
17919           *-gnu* | freebsd* | netbsd* | openbsd* \
17920           | hpux* | solaris* | cygwin* | mingw*)
17921             ac_cv_func_malloc_0_nonnull=yes ;;
17922           # If we don't know, assume the worst.
17923           *) ac_cv_func_malloc_0_nonnull=no ;;
17924         esac
17925
17926 else
17927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h.  */
17929 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17930             # include <stdlib.h>
17931             #else
17932             char *malloc ();
17933             #endif
17934
17935 int
17936 main ()
17937 {
17938 return ! malloc (0);
17939   ;
17940   return 0;
17941 }
17942
17943 _ACEOF
17944 if ac_fn_c_try_run "$LINENO"; then :
17945   ac_cv_func_malloc_0_nonnull=yes
17946 else
17947   ac_cv_func_malloc_0_nonnull=no
17948 fi
17949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17950   conftest.$ac_objext conftest.beam conftest.$ac_ext
17951 fi
17952
17953
17954 fi
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17956 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17957   if test $ac_cv_func_malloc_0_nonnull = yes; then :
17958   gl_cv_func_malloc_0_nonnull=1
17959 else
17960   gl_cv_func_malloc_0_nonnull=0
17961 fi
17962
17963
17964 cat >>confdefs.h <<_ACEOF
17965 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17966 _ACEOF
17967
17968
17969
17970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17971 $as_echo_n "checking for unsigned long long int... " >&6; }
17972 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17973   $as_echo_n "(cached) " >&6
17974 else
17975   ac_cv_type_unsigned_long_long_int=yes
17976      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17977        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979
17980   /* For now, do not test the preprocessor; as of 2007 there are too many
17981          implementations with broken preprocessors.  Perhaps this can
17982          be revisited in 2012.  In the meantime, code should not expect
17983          #if to work with literals wider than 32 bits.  */
17984       /* Test literals.  */
17985       long long int ll = 9223372036854775807ll;
17986       long long int nll = -9223372036854775807LL;
17987       unsigned long long int ull = 18446744073709551615ULL;
17988       /* Test constant expressions.   */
17989       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17990                      ? 1 : -1)];
17991       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17992                      ? 1 : -1)];
17993       int i = 63;
17994 int
17995 main ()
17996 {
17997 /* Test availability of runtime routines for shift and division.  */
17998       long long int llmax = 9223372036854775807ll;
17999       unsigned long long int ullmax = 18446744073709551615ull;
18000       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18001               | (llmax / ll) | (llmax % ll)
18002               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18003               | (ullmax / ull) | (ullmax % ull));
18004   ;
18005   return 0;
18006 }
18007
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010
18011 else
18012   ac_cv_type_unsigned_long_long_int=no
18013 fi
18014 rm -f core conftest.err conftest.$ac_objext \
18015     conftest$ac_exeext conftest.$ac_ext
18016      fi
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18019 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18020   if test $ac_cv_type_unsigned_long_long_int = yes; then
18021
18022 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18023
18024   fi
18025
18026
18027
18028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18029 $as_echo_n "checking for long long int... " >&6; }
18030 if ${ac_cv_type_long_long_int+:} false; then :
18031   $as_echo_n "(cached) " >&6
18032 else
18033   ac_cv_type_long_long_int=yes
18034       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18035         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18036         if test $ac_cv_type_long_long_int = yes; then
18037                                         if test "$cross_compiling" = yes; then :
18038   :
18039 else
18040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h.  */
18042 #include <limits.h>
18043                  #ifndef LLONG_MAX
18044                  # define HALF \
18045                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18046                  # define LLONG_MAX (HALF - 1 + HALF)
18047                  #endif
18048 int
18049 main ()
18050 {
18051 long long int n = 1;
18052                  int i;
18053                  for (i = 0; ; i++)
18054                    {
18055                      long long int m = n << i;
18056                      if (m >> i != n)
18057                        return 1;
18058                      if (LLONG_MAX / 2 < m)
18059                        break;
18060                    }
18061                  return 0;
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 if ac_fn_c_try_run "$LINENO"; then :
18067
18068 else
18069   ac_cv_type_long_long_int=no
18070 fi
18071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18072   conftest.$ac_objext conftest.beam conftest.$ac_ext
18073 fi
18074
18075         fi
18076       fi
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18079 $as_echo "$ac_cv_type_long_long_int" >&6; }
18080   if test $ac_cv_type_long_long_int = yes; then
18081
18082 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18083
18084   fi
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097   GNULIB_FFSL=0;
18098   GNULIB_FFSLL=0;
18099   GNULIB_MEMCHR=0;
18100   GNULIB_MEMMEM=0;
18101   GNULIB_MEMPCPY=0;
18102   GNULIB_MEMRCHR=0;
18103   GNULIB_RAWMEMCHR=0;
18104   GNULIB_STPCPY=0;
18105   GNULIB_STPNCPY=0;
18106   GNULIB_STRCHRNUL=0;
18107   GNULIB_STRDUP=0;
18108   GNULIB_STRNCAT=0;
18109   GNULIB_STRNDUP=0;
18110   GNULIB_STRNLEN=0;
18111   GNULIB_STRPBRK=0;
18112   GNULIB_STRSEP=0;
18113   GNULIB_STRSTR=0;
18114   GNULIB_STRCASESTR=0;
18115   GNULIB_STRTOK_R=0;
18116   GNULIB_MBSLEN=0;
18117   GNULIB_MBSNLEN=0;
18118   GNULIB_MBSCHR=0;
18119   GNULIB_MBSRCHR=0;
18120   GNULIB_MBSSTR=0;
18121   GNULIB_MBSCASECMP=0;
18122   GNULIB_MBSNCASECMP=0;
18123   GNULIB_MBSPCASECMP=0;
18124   GNULIB_MBSCASESTR=0;
18125   GNULIB_MBSCSPN=0;
18126   GNULIB_MBSPBRK=0;
18127   GNULIB_MBSSPN=0;
18128   GNULIB_MBSSEP=0;
18129   GNULIB_MBSTOK_R=0;
18130   GNULIB_STRERROR=0;
18131   GNULIB_STRERROR_R=0;
18132   GNULIB_STRSIGNAL=0;
18133   GNULIB_STRVERSCMP=0;
18134   HAVE_MBSLEN=0;
18135     HAVE_FFSL=1;
18136   HAVE_FFSLL=1;
18137   HAVE_MEMCHR=1;
18138   HAVE_DECL_MEMMEM=1;
18139   HAVE_MEMPCPY=1;
18140   HAVE_DECL_MEMRCHR=1;
18141   HAVE_RAWMEMCHR=1;
18142   HAVE_STPCPY=1;
18143   HAVE_STPNCPY=1;
18144   HAVE_STRCHRNUL=1;
18145   HAVE_DECL_STRDUP=1;
18146   HAVE_DECL_STRNDUP=1;
18147   HAVE_DECL_STRNLEN=1;
18148   HAVE_STRPBRK=1;
18149   HAVE_STRSEP=1;
18150   HAVE_STRCASESTR=1;
18151   HAVE_DECL_STRTOK_R=1;
18152   HAVE_DECL_STRERROR_R=1;
18153   HAVE_DECL_STRSIGNAL=1;
18154   HAVE_STRVERSCMP=1;
18155   REPLACE_MEMCHR=0;
18156   REPLACE_MEMMEM=0;
18157   REPLACE_STPNCPY=0;
18158   REPLACE_STRDUP=0;
18159   REPLACE_STRSTR=0;
18160   REPLACE_STRCASESTR=0;
18161   REPLACE_STRCHRNUL=0;
18162   REPLACE_STRERROR=0;
18163   REPLACE_STRERROR_R=0;
18164   REPLACE_STRNCAT=0;
18165   REPLACE_STRNDUP=0;
18166   REPLACE_STRNLEN=0;
18167   REPLACE_STRSIGNAL=0;
18168   REPLACE_STRTOK_R=0;
18169   UNDEFINE_STRTOK_R=0;
18170
18171
18172
18173
18174
18175   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
18176   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
18177   # irrelevant for anonymous mappings.
18178   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18179 if test "x$ac_cv_func_mmap" = xyes; then :
18180   gl_have_mmap=yes
18181 else
18182   gl_have_mmap=no
18183 fi
18184
18185
18186   # Try to allow MAP_ANONYMOUS.
18187   gl_have_mmap_anonymous=no
18188   if test $gl_have_mmap = yes; then
18189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
18190 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
18191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h.  */
18193
18194 #include <sys/mman.h>
18195 #ifdef MAP_ANONYMOUS
18196     I cannot identify this map
18197 #endif
18198
18199 _ACEOF
18200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18201   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18202   gl_have_mmap_anonymous=yes
18203 fi
18204 rm -f conftest*
18205
18206     if test $gl_have_mmap_anonymous != yes; then
18207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h.  */
18209
18210 #include <sys/mman.h>
18211 #ifdef MAP_ANON
18212     I cannot identify this map
18213 #endif
18214
18215 _ACEOF
18216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18217   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18218
18219 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
18220
18221          gl_have_mmap_anonymous=yes
18222 fi
18223 rm -f conftest*
18224
18225     fi
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
18227 $as_echo "$gl_have_mmap_anonymous" >&6; }
18228     if test $gl_have_mmap_anonymous = yes; then
18229
18230 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
18231
18232     fi
18233   fi
18234
18235
18236   :
18237
18238
18239
18240
18241
18242
18243   :
18244
18245
18246
18247
18248
18249
18250
18251
18252   if test $HAVE_MEMCHR = 1; then
18253     # Detect platform-specific bugs in some versions of glibc:
18254     # memchr should not dereference anything with length 0
18255     #   http://bugzilla.redhat.com/499689
18256     # memchr should not dereference overestimated length after a match
18257     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
18258     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
18259     # Assume that memchr works on platforms that lack mprotect.
18260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
18261 $as_echo_n "checking whether memchr works... " >&6; }
18262 if ${gl_cv_func_memchr_works+:} false; then :
18263   $as_echo_n "(cached) " >&6
18264 else
18265   if test "$cross_compiling" = yes; then :
18266          gl_cv_func_memchr_works="guessing no"
18267 else
18268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h.  */
18270
18271 #include <string.h>
18272 #if HAVE_SYS_MMAN_H
18273 # include <fcntl.h>
18274 # include <unistd.h>
18275 # include <sys/types.h>
18276 # include <sys/mman.h>
18277 # ifndef MAP_FILE
18278 #  define MAP_FILE 0
18279 # endif
18280 #endif
18281
18282 int
18283 main ()
18284 {
18285
18286   int result = 0;
18287   char *fence = NULL;
18288 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
18289 # if HAVE_MAP_ANONYMOUS
18290   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
18291   const int fd = -1;
18292 # else /* !HAVE_MAP_ANONYMOUS */
18293   const int flags = MAP_FILE | MAP_PRIVATE;
18294   int fd = open ("/dev/zero", O_RDONLY, 0666);
18295   if (fd >= 0)
18296 # endif
18297     {
18298       int pagesize = getpagesize ();
18299       char *two_pages =
18300         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
18301                        flags, fd, 0);
18302       if (two_pages != (char *)(-1)
18303           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
18304         fence = two_pages + pagesize;
18305     }
18306 #endif
18307   if (fence)
18308     {
18309       if (memchr (fence, 0, 0))
18310         result |= 1;
18311       strcpy (fence - 9, "12345678");
18312       if (memchr (fence - 9, 0, 79) != fence - 1)
18313         result |= 2;
18314       if (memchr (fence - 1, 0, 3) != fence - 1)
18315         result |= 4;
18316     }
18317   return result;
18318
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 if ac_fn_c_try_run "$LINENO"; then :
18324   gl_cv_func_memchr_works=yes
18325 else
18326   gl_cv_func_memchr_works=no
18327 fi
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329   conftest.$ac_objext conftest.beam conftest.$ac_ext
18330 fi
18331
18332 fi
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
18334 $as_echo "$gl_cv_func_memchr_works" >&6; }
18335     if test "$gl_cv_func_memchr_works" != yes; then
18336       REPLACE_MEMCHR=1
18337     fi
18338   fi
18339
18340
18341
18342
18343
18344
18345
18346     gl_cv_c_multiarch=no
18347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h.  */
18349 #ifndef __APPLE_CC__
18350          not a universal capable compiler
18351         #endif
18352         typedef int dummy;
18353
18354 _ACEOF
18355 if ac_fn_c_try_compile "$LINENO"; then :
18356
18357                arch=
18358      prev=
18359      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18360        if test -n "$prev"; then
18361          case $word in
18362            i?86 | x86_64 | ppc | ppc64)
18363              if test -z "$arch" || test "$arch" = "$word"; then
18364                arch="$word"
18365              else
18366                gl_cv_c_multiarch=yes
18367              fi
18368              ;;
18369          esac
18370          prev=
18371        else
18372          if test "x$word" = "x-arch"; then
18373            prev=arch
18374          fi
18375        fi
18376      done
18377
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380   if test $gl_cv_c_multiarch = yes; then
18381     APPLE_UNIVERSAL_BUILD=1
18382   else
18383     APPLE_UNIVERSAL_BUILD=0
18384   fi
18385
18386
18387
18388   GNULIB_PTHREAD_SIGMASK=0;
18389   GNULIB_RAISE=0;
18390   GNULIB_SIGNAL_H_SIGPIPE=0;
18391   GNULIB_SIGPROCMASK=0;
18392   GNULIB_SIGACTION=0;
18393     HAVE_POSIX_SIGNALBLOCKING=1;
18394   HAVE_PTHREAD_SIGMASK=1;
18395   HAVE_RAISE=1;
18396   HAVE_SIGSET_T=1;
18397   HAVE_SIGINFO_T=1;
18398   HAVE_SIGACTION=1;
18399   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18400
18401   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18402
18403   HAVE_SIGHANDLER_T=1;
18404   REPLACE_PTHREAD_SIGMASK=0;
18405   REPLACE_RAISE=0;
18406
18407
18408   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18409       #include <signal.h>
18410       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
18411       #include <sys/types.h>
18412
18413 "
18414 if test "x$ac_cv_type_sigset_t" = xyes; then :
18415
18416 cat >>confdefs.h <<_ACEOF
18417 #define HAVE_SIGSET_T 1
18418 _ACEOF
18419
18420 gl_cv_type_sigset_t=yes
18421 else
18422   gl_cv_type_sigset_t=no
18423 fi
18424
18425   if test $gl_cv_type_sigset_t != yes; then
18426     HAVE_SIGSET_T=0
18427   fi
18428
18429
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18431 $as_echo_n "checking for ssize_t... " >&6; }
18432 if ${gt_cv_ssize_t+:} false; then :
18433   $as_echo_n "(cached) " >&6
18434 else
18435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h.  */
18437 #include <sys/types.h>
18438 int
18439 main ()
18440 {
18441 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18442             return !x;
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448   gt_cv_ssize_t=yes
18449 else
18450   gt_cv_ssize_t=no
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 fi
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18455 $as_echo "$gt_cv_ssize_t" >&6; }
18456   if test $gt_cv_ssize_t = no; then
18457
18458 $as_echo "#define ssize_t int" >>confdefs.h
18459
18460   fi
18461
18462
18463       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18464 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18465   ac_have_decl=1
18466 else
18467   ac_have_decl=0
18468 fi
18469
18470 cat >>confdefs.h <<_ACEOF
18471 #define HAVE_DECL_SETENV $ac_have_decl
18472 _ACEOF
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483   :
18484
18485
18486
18487
18488
18489   if test $ac_cv_have_decl_setenv = no; then
18490     HAVE_DECL_SETENV=0
18491   fi
18492
18493   :
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503   :
18504
18505
18506
18507
18508
18509   for ac_header in search.h
18510 do :
18511   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18512 if test "x$ac_cv_header_search_h" = xyes; then :
18513   cat >>confdefs.h <<_ACEOF
18514 #define HAVE_SEARCH_H 1
18515 _ACEOF
18516
18517 fi
18518
18519 done
18520
18521   for ac_func in tsearch
18522 do :
18523   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18524 if test "x$ac_cv_func_tsearch" = xyes; then :
18525   cat >>confdefs.h <<_ACEOF
18526 #define HAVE_TSEARCH 1
18527 _ACEOF
18528
18529 fi
18530 done
18531
18532
18533
18534
18535
18536
18537
18538
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18540 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18541 if ${ac_cv_type_uid_t+:} false; then :
18542   $as_echo_n "(cached) " >&6
18543 else
18544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h.  */
18546 #include <sys/types.h>
18547
18548 _ACEOF
18549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18550   $EGREP "uid_t" >/dev/null 2>&1; then :
18551   ac_cv_type_uid_t=yes
18552 else
18553   ac_cv_type_uid_t=no
18554 fi
18555 rm -f conftest*
18556
18557 fi
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18559 $as_echo "$ac_cv_type_uid_t" >&6; }
18560 if test $ac_cv_type_uid_t = no; then
18561
18562 $as_echo "#define uid_t int" >>confdefs.h
18563
18564
18565 $as_echo "#define gid_t int" >>confdefs.h
18566
18567 fi
18568
18569 :
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18581 if test "x$ac_cv_type_pid_t" = xyes; then :
18582
18583 else
18584
18585 cat >>confdefs.h <<_ACEOF
18586 #define pid_t int
18587 _ACEOF
18588
18589 fi
18590
18591
18592   GNULIB_DPRINTF=0;
18593   GNULIB_FCLOSE=0;
18594   GNULIB_FDOPEN=0;
18595   GNULIB_FFLUSH=0;
18596   GNULIB_FGETC=0;
18597   GNULIB_FGETS=0;
18598   GNULIB_FOPEN=0;
18599   GNULIB_FPRINTF=0;
18600   GNULIB_FPRINTF_POSIX=0;
18601   GNULIB_FPURGE=0;
18602   GNULIB_FPUTC=0;
18603   GNULIB_FPUTS=0;
18604   GNULIB_FREAD=0;
18605   GNULIB_FREOPEN=0;
18606   GNULIB_FSCANF=0;
18607   GNULIB_FSEEK=0;
18608   GNULIB_FSEEKO=0;
18609   GNULIB_FTELL=0;
18610   GNULIB_FTELLO=0;
18611   GNULIB_FWRITE=0;
18612   GNULIB_GETC=0;
18613   GNULIB_GETCHAR=0;
18614   GNULIB_GETDELIM=0;
18615   GNULIB_GETLINE=0;
18616   GNULIB_OBSTACK_PRINTF=0;
18617   GNULIB_OBSTACK_PRINTF_POSIX=0;
18618   GNULIB_PCLOSE=0;
18619   GNULIB_PERROR=0;
18620   GNULIB_POPEN=0;
18621   GNULIB_PRINTF=0;
18622   GNULIB_PRINTF_POSIX=0;
18623   GNULIB_PUTC=0;
18624   GNULIB_PUTCHAR=0;
18625   GNULIB_PUTS=0;
18626   GNULIB_REMOVE=0;
18627   GNULIB_RENAME=0;
18628   GNULIB_RENAMEAT=0;
18629   GNULIB_SCANF=0;
18630   GNULIB_SNPRINTF=0;
18631   GNULIB_SPRINTF_POSIX=0;
18632   GNULIB_STDIO_H_NONBLOCKING=0;
18633   GNULIB_STDIO_H_SIGPIPE=0;
18634   GNULIB_TMPFILE=0;
18635   GNULIB_VASPRINTF=0;
18636   GNULIB_VFSCANF=0;
18637   GNULIB_VSCANF=0;
18638   GNULIB_VDPRINTF=0;
18639   GNULIB_VFPRINTF=0;
18640   GNULIB_VFPRINTF_POSIX=0;
18641   GNULIB_VPRINTF=0;
18642   GNULIB_VPRINTF_POSIX=0;
18643   GNULIB_VSNPRINTF=0;
18644   GNULIB_VSPRINTF_POSIX=0;
18645     HAVE_DECL_FPURGE=1;
18646   HAVE_DECL_FSEEKO=1;
18647   HAVE_DECL_FTELLO=1;
18648   HAVE_DECL_GETDELIM=1;
18649   HAVE_DECL_GETLINE=1;
18650   HAVE_DECL_OBSTACK_PRINTF=1;
18651   HAVE_DECL_SNPRINTF=1;
18652   HAVE_DECL_VSNPRINTF=1;
18653   HAVE_DPRINTF=1;
18654   HAVE_FSEEKO=1;
18655   HAVE_FTELLO=1;
18656   HAVE_PCLOSE=1;
18657   HAVE_POPEN=1;
18658   HAVE_RENAMEAT=1;
18659   HAVE_VASPRINTF=1;
18660   HAVE_VDPRINTF=1;
18661   REPLACE_DPRINTF=0;
18662   REPLACE_FCLOSE=0;
18663   REPLACE_FDOPEN=0;
18664   REPLACE_FFLUSH=0;
18665   REPLACE_FOPEN=0;
18666   REPLACE_FPRINTF=0;
18667   REPLACE_FPURGE=0;
18668   REPLACE_FREOPEN=0;
18669   REPLACE_FSEEK=0;
18670   REPLACE_FSEEKO=0;
18671   REPLACE_FTELL=0;
18672   REPLACE_FTELLO=0;
18673   REPLACE_GETDELIM=0;
18674   REPLACE_GETLINE=0;
18675   REPLACE_OBSTACK_PRINTF=0;
18676   REPLACE_PERROR=0;
18677   REPLACE_POPEN=0;
18678   REPLACE_PRINTF=0;
18679   REPLACE_REMOVE=0;
18680   REPLACE_RENAME=0;
18681   REPLACE_RENAMEAT=0;
18682   REPLACE_SNPRINTF=0;
18683   REPLACE_SPRINTF=0;
18684   REPLACE_STDIO_READ_FUNCS=0;
18685   REPLACE_STDIO_WRITE_FUNCS=0;
18686   REPLACE_TMPFILE=0;
18687   REPLACE_VASPRINTF=0;
18688   REPLACE_VDPRINTF=0;
18689   REPLACE_VFPRINTF=0;
18690   REPLACE_VPRINTF=0;
18691   REPLACE_VSNPRINTF=0;
18692   REPLACE_VSPRINTF=0;
18693
18694
18695
18696
18697
18698
18699
18700
18701   :
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18712 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18713 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18714   $as_echo_n "(cached) " >&6
18715 else
18716
18717       if test "$cross_compiling" = yes; then :
18718
18719          case "$host_os" in
18720                                  # Guess yes on glibc systems.
18721            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
18722                                  # Guess yes on FreeBSD >= 5.
18723            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18724            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18725                                  # Guess yes on Mac OS X >= 10.3.
18726            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18727            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18728                                  # Guess yes on OpenBSD >= 3.9.
18729            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18730                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18731            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
18732                                  # Guess yes on Solaris >= 2.10.
18733            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18734            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
18735                                  # Guess yes on AIX >= 4.
18736            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
18737            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
18738                                  # Guess yes on NetBSD >= 3.
18739            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18740                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18741            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18742                                  # Guess yes on BeOS.
18743            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
18744                                  # If we don't know, assume the worst.
18745            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
18746          esac
18747
18748 else
18749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h.  */
18751
18752 #include <stdio.h>
18753 #include <string.h>
18754 #if HAVE_SNPRINTF
18755 # define my_snprintf snprintf
18756 #else
18757 # include <stdarg.h>
18758 static int my_snprintf (char *buf, int size, const char *format, ...)
18759 {
18760   va_list args;
18761   int ret;
18762   va_start (args, format);
18763   ret = vsnprintf (buf, size, format, args);
18764   va_end (args);
18765   return ret;
18766 }
18767 #endif
18768 static char buf[100];
18769 int main ()
18770 {
18771   strcpy (buf, "ABCDEF");
18772   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18773     return 1;
18774   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18775     return 2;
18776   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18777     return 3;
18778   return 0;
18779 }
18780 _ACEOF
18781 if ac_fn_c_try_run "$LINENO"; then :
18782   gl_cv_func_snprintf_retval_c99=yes
18783 else
18784   gl_cv_func_snprintf_retval_c99=no
18785 fi
18786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18787   conftest.$ac_objext conftest.beam conftest.$ac_ext
18788 fi
18789
18790
18791 fi
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18793 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18794
18795
18796       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18797 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18798   ac_have_decl=1
18799 else
18800   ac_have_decl=0
18801 fi
18802
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_DECL_SNPRINTF $ac_have_decl
18805 _ACEOF
18806
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18809 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18810 if ${ac_cv_header_stdbool_h+:} false; then :
18811   $as_echo_n "(cached) " >&6
18812 else
18813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h.  */
18815
18816              #include <stdbool.h>
18817              #ifndef bool
18818               "error: bool is not defined"
18819              #endif
18820              #ifndef false
18821               "error: false is not defined"
18822              #endif
18823              #if false
18824               "error: false is not 0"
18825              #endif
18826              #ifndef true
18827               "error: true is not defined"
18828              #endif
18829              #if true != 1
18830               "error: true is not 1"
18831              #endif
18832              #ifndef __bool_true_false_are_defined
18833               "error: __bool_true_false_are_defined is not defined"
18834              #endif
18835
18836              struct s { _Bool s: 1; _Bool t; } s;
18837
18838              char a[true == 1 ? 1 : -1];
18839              char b[false == 0 ? 1 : -1];
18840              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18841              char d[(bool) 0.5 == true ? 1 : -1];
18842              /* See body of main program for 'e'.  */
18843              char f[(_Bool) 0.0 == false ? 1 : -1];
18844              char g[true];
18845              char h[sizeof (_Bool)];
18846              char i[sizeof s.t];
18847              enum { j = false, k = true, l = false * true, m = true * 256 };
18848              /* The following fails for
18849                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18850              _Bool n[m];
18851              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18852              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18853              /* Catch a bug in an HP-UX C compiler.  See
18854                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18855                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18856               */
18857              _Bool q = true;
18858              _Bool *pq = &q;
18859
18860 int
18861 main ()
18862 {
18863
18864              bool e = &s;
18865              *pq |= q;
18866              *pq |= ! q;
18867              /* Refer to every declared value, to avoid compiler optimizations.  */
18868              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18869                      + !m + !n + !o + !p + !q + !pq);
18870
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 if ac_fn_c_try_compile "$LINENO"; then :
18876   ac_cv_header_stdbool_h=yes
18877 else
18878   ac_cv_header_stdbool_h=no
18879 fi
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18881 fi
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18883 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18884    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18885 if test "x$ac_cv_type__Bool" = xyes; then :
18886
18887 cat >>confdefs.h <<_ACEOF
18888 #define HAVE__BOOL 1
18889 _ACEOF
18890
18891
18892 fi
18893
18894
18895
18896     REPLACE_NULL=0;
18897   HAVE_WCHAR_T=1;
18898
18899
18900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18901 $as_echo_n "checking for wchar_t... " >&6; }
18902 if ${gt_cv_c_wchar_t+:} false; then :
18903   $as_echo_n "(cached) " >&6
18904 else
18905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h.  */
18907 #include <stddef.h>
18908             wchar_t foo = (wchar_t)'\0';
18909 int
18910 main ()
18911 {
18912
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_c_try_compile "$LINENO"; then :
18918   gt_cv_c_wchar_t=yes
18919 else
18920   gt_cv_c_wchar_t=no
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 fi
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18925 $as_echo "$gt_cv_c_wchar_t" >&6; }
18926   if test $gt_cv_c_wchar_t = yes; then
18927
18928 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18929
18930   fi
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945   if test $ac_cv_type_long_long_int = yes; then
18946     HAVE_LONG_LONG_INT=1
18947   else
18948     HAVE_LONG_LONG_INT=0
18949   fi
18950
18951
18952   if test $ac_cv_type_unsigned_long_long_int = yes; then
18953     HAVE_UNSIGNED_LONG_LONG_INT=1
18954   else
18955     HAVE_UNSIGNED_LONG_LONG_INT=0
18956   fi
18957
18958
18959
18960   :
18961
18962
18963
18964
18965
18966   if test $ac_cv_header_wchar_h = yes; then
18967     HAVE_WCHAR_H=1
18968   else
18969     HAVE_WCHAR_H=0
18970   fi
18971
18972
18973       if test $ac_cv_header_inttypes_h = yes; then
18974     HAVE_INTTYPES_H=1
18975   else
18976     HAVE_INTTYPES_H=0
18977   fi
18978
18979
18980       if test $ac_cv_header_sys_types_h = yes; then
18981     HAVE_SYS_TYPES_H=1
18982   else
18983     HAVE_SYS_TYPES_H=0
18984   fi
18985
18986
18987
18988
18989
18990
18991
18992
18993   :
18994
18995
18996
18997
18998
18999
19000
19001
19002      if test $gl_cv_have_include_next = yes; then
19003        gl_cv_next_stdint_h='<'stdint.h'>'
19004      else
19005        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19006 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19007 if ${gl_cv_next_stdint_h+:} false; then :
19008   $as_echo_n "(cached) " >&6
19009 else
19010
19011              if test $ac_cv_header_stdint_h = yes; then
19012
19013
19014
19015
19016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h.  */
19018 #include <stdint.h>
19019 _ACEOF
19020                 case "$host_os" in
19021     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19022     *)    gl_absname_cpp="$ac_cpp" ;;
19023   esac
19024
19025   case "$host_os" in
19026     mingw*)
19027                                           gl_dirsep_regex='[/\\]'
19028       ;;
19029     *)
19030       gl_dirsep_regex='\/'
19031       ;;
19032   esac
19033       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19034   gl_header_literal_regex=`echo 'stdint.h' \
19035                            | sed -e "$gl_make_literal_regex_sed"`
19036   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19037       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19038       s|^/[^/]|//&|
19039       p
19040       q
19041     }'
19042
19043         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19044   sed -n "$gl_absolute_header_sed"`
19045
19046            gl_header=$gl_cv_absolute_stdint_h
19047            gl_cv_next_stdint_h='"'$gl_header'"'
19048           else
19049                gl_cv_next_stdint_h='<'stdint.h'>'
19050              fi
19051
19052
19053 fi
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19055 $as_echo "$gl_cv_next_stdint_h" >&6; }
19056      fi
19057      NEXT_STDINT_H=$gl_cv_next_stdint_h
19058
19059      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19060        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19061        gl_next_as_first_directive='<'stdint.h'>'
19062      else
19063        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19064        gl_next_as_first_directive=$gl_cv_next_stdint_h
19065      fi
19066      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19067
19068
19069
19070
19071   if test $ac_cv_header_stdint_h = yes; then
19072     HAVE_STDINT_H=1
19073   else
19074     HAVE_STDINT_H=0
19075   fi
19076
19077
19078     if test $ac_cv_header_stdint_h = yes; then
19079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19080 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19081 if ${gl_cv_header_working_stdint_h+:} false; then :
19082   $as_echo_n "(cached) " >&6
19083 else
19084   gl_cv_header_working_stdint_h=no
19085        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h.  */
19087
19088
19089 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19090 #include <stdint.h>
19091 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
19092 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19093 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19094 #endif
19095
19096
19097   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19098      included before <wchar.h>.  */
19099   #include <stddef.h>
19100   #include <signal.h>
19101   #if HAVE_WCHAR_H
19102   # include <stdio.h>
19103   # include <time.h>
19104   # include <wchar.h>
19105   #endif
19106
19107
19108 #ifdef INT8_MAX
19109 int8_t a1 = INT8_MAX;
19110 int8_t a1min = INT8_MIN;
19111 #endif
19112 #ifdef INT16_MAX
19113 int16_t a2 = INT16_MAX;
19114 int16_t a2min = INT16_MIN;
19115 #endif
19116 #ifdef INT32_MAX
19117 int32_t a3 = INT32_MAX;
19118 int32_t a3min = INT32_MIN;
19119 #endif
19120 #ifdef INT64_MAX
19121 int64_t a4 = INT64_MAX;
19122 int64_t a4min = INT64_MIN;
19123 #endif
19124 #ifdef UINT8_MAX
19125 uint8_t b1 = UINT8_MAX;
19126 #else
19127 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19128 #endif
19129 #ifdef UINT16_MAX
19130 uint16_t b2 = UINT16_MAX;
19131 #endif
19132 #ifdef UINT32_MAX
19133 uint32_t b3 = UINT32_MAX;
19134 #endif
19135 #ifdef UINT64_MAX
19136 uint64_t b4 = UINT64_MAX;
19137 #endif
19138 int_least8_t c1 = INT8_C (0x7f);
19139 int_least8_t c1max = INT_LEAST8_MAX;
19140 int_least8_t c1min = INT_LEAST8_MIN;
19141 int_least16_t c2 = INT16_C (0x7fff);
19142 int_least16_t c2max = INT_LEAST16_MAX;
19143 int_least16_t c2min = INT_LEAST16_MIN;
19144 int_least32_t c3 = INT32_C (0x7fffffff);
19145 int_least32_t c3max = INT_LEAST32_MAX;
19146 int_least32_t c3min = INT_LEAST32_MIN;
19147 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19148 int_least64_t c4max = INT_LEAST64_MAX;
19149 int_least64_t c4min = INT_LEAST64_MIN;
19150 uint_least8_t d1 = UINT8_C (0xff);
19151 uint_least8_t d1max = UINT_LEAST8_MAX;
19152 uint_least16_t d2 = UINT16_C (0xffff);
19153 uint_least16_t d2max = UINT_LEAST16_MAX;
19154 uint_least32_t d3 = UINT32_C (0xffffffff);
19155 uint_least32_t d3max = UINT_LEAST32_MAX;
19156 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19157 uint_least64_t d4max = UINT_LEAST64_MAX;
19158 int_fast8_t e1 = INT_FAST8_MAX;
19159 int_fast8_t e1min = INT_FAST8_MIN;
19160 int_fast16_t e2 = INT_FAST16_MAX;
19161 int_fast16_t e2min = INT_FAST16_MIN;
19162 int_fast32_t e3 = INT_FAST32_MAX;
19163 int_fast32_t e3min = INT_FAST32_MIN;
19164 int_fast64_t e4 = INT_FAST64_MAX;
19165 int_fast64_t e4min = INT_FAST64_MIN;
19166 uint_fast8_t f1 = UINT_FAST8_MAX;
19167 uint_fast16_t f2 = UINT_FAST16_MAX;
19168 uint_fast32_t f3 = UINT_FAST32_MAX;
19169 uint_fast64_t f4 = UINT_FAST64_MAX;
19170 #ifdef INTPTR_MAX
19171 intptr_t g = INTPTR_MAX;
19172 intptr_t gmin = INTPTR_MIN;
19173 #endif
19174 #ifdef UINTPTR_MAX
19175 uintptr_t h = UINTPTR_MAX;
19176 #endif
19177 intmax_t i = INTMAX_MAX;
19178 uintmax_t j = UINTMAX_MAX;
19179
19180 #include <limits.h> /* for CHAR_BIT */
19181 #define TYPE_MINIMUM(t) \
19182   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19183 #define TYPE_MAXIMUM(t) \
19184   ((t) ((t) 0 < (t) -1 \
19185         ? (t) -1 \
19186         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19187 struct s {
19188   int check_PTRDIFF:
19189       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19190       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19191       ? 1 : -1;
19192   /* Detect bug in FreeBSD 6.0 / ia64.  */
19193   int check_SIG_ATOMIC:
19194       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19195       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19196       ? 1 : -1;
19197   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19198   int check_WCHAR:
19199       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19200       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19201       ? 1 : -1;
19202   /* Detect bug in mingw.  */
19203   int check_WINT:
19204       WINT_MIN == TYPE_MINIMUM (wint_t)
19205       && WINT_MAX == TYPE_MAXIMUM (wint_t)
19206       ? 1 : -1;
19207
19208   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
19209   int check_UINT8_C:
19210         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19211   int check_UINT16_C:
19212         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19213
19214   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
19215 #ifdef UINT8_MAX
19216   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19217 #endif
19218 #ifdef UINT16_MAX
19219   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19220 #endif
19221 #ifdef UINT32_MAX
19222   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19223 #endif
19224 #ifdef UINT64_MAX
19225   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19226 #endif
19227   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19228   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19229   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19230   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19231   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19232   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19233   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19234   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19235   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19236   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19237   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19238 };
19239
19240 int
19241 main ()
19242 {
19243
19244   ;
19245   return 0;
19246 }
19247 _ACEOF
19248 if ac_fn_c_try_compile "$LINENO"; then :
19249                                                     if test "$cross_compiling" = yes; then :
19250                  gl_cv_header_working_stdint_h=yes
19251
19252 else
19253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h.  */
19255
19256
19257 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19258 #include <stdint.h>
19259
19260
19261   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19262      included before <wchar.h>.  */
19263   #include <stddef.h>
19264   #include <signal.h>
19265   #if HAVE_WCHAR_H
19266   # include <stdio.h>
19267   # include <time.h>
19268   # include <wchar.h>
19269   #endif
19270
19271
19272 #include <stdio.h>
19273 #include <string.h>
19274 #define MVAL(macro) MVAL1(macro)
19275 #define MVAL1(expression) #expression
19276 static const char *macro_values[] =
19277   {
19278 #ifdef INT8_MAX
19279     MVAL (INT8_MAX),
19280 #endif
19281 #ifdef INT16_MAX
19282     MVAL (INT16_MAX),
19283 #endif
19284 #ifdef INT32_MAX
19285     MVAL (INT32_MAX),
19286 #endif
19287 #ifdef INT64_MAX
19288     MVAL (INT64_MAX),
19289 #endif
19290 #ifdef UINT8_MAX
19291     MVAL (UINT8_MAX),
19292 #endif
19293 #ifdef UINT16_MAX
19294     MVAL (UINT16_MAX),
19295 #endif
19296 #ifdef UINT32_MAX
19297     MVAL (UINT32_MAX),
19298 #endif
19299 #ifdef UINT64_MAX
19300     MVAL (UINT64_MAX),
19301 #endif
19302     NULL
19303   };
19304
19305 int
19306 main ()
19307 {
19308
19309   const char **mv;
19310   for (mv = macro_values; *mv != NULL; mv++)
19311     {
19312       const char *value = *mv;
19313       /* Test whether it looks like a cast expression.  */
19314       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19315           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19316           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19317           || strncmp (value, "((int)"/*)*/, 6) == 0
19318           || strncmp (value, "((signed short)"/*)*/, 15) == 0
19319           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19320         return mv - macro_values + 1;
19321     }
19322   return 0;
19323
19324   ;
19325   return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_run "$LINENO"; then :
19329   gl_cv_header_working_stdint_h=yes
19330 fi
19331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19332   conftest.$ac_objext conftest.beam conftest.$ac_ext
19333 fi
19334
19335
19336 fi
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338
19339 fi
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19341 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19342   fi
19343   if test "$gl_cv_header_working_stdint_h" = yes; then
19344     STDINT_H=
19345   else
19346             for ac_header in sys/inttypes.h sys/bitypes.h
19347 do :
19348   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19349 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19351   cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19353 _ACEOF
19354
19355 fi
19356
19357 done
19358
19359     if test $ac_cv_header_sys_inttypes_h = yes; then
19360       HAVE_SYS_INTTYPES_H=1
19361     else
19362       HAVE_SYS_INTTYPES_H=0
19363     fi
19364
19365     if test $ac_cv_header_sys_bitypes_h = yes; then
19366       HAVE_SYS_BITYPES_H=1
19367     else
19368       HAVE_SYS_BITYPES_H=0
19369     fi
19370
19371
19372
19373
19374   if test $APPLE_UNIVERSAL_BUILD = 0; then
19375
19376
19377   for gltype in ptrdiff_t size_t ; do
19378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19379 $as_echo_n "checking for bit size of $gltype... " >&6; }
19380 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19381   $as_echo_n "(cached) " >&6
19382 else
19383   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19384   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19385      included before <wchar.h>.  */
19386   #include <stddef.h>
19387   #include <signal.h>
19388   #if HAVE_WCHAR_H
19389   # include <stdio.h>
19390   # include <time.h>
19391   # include <wchar.h>
19392   #endif
19393
19394 #include <limits.h>"; then :
19395
19396 else
19397   result=unknown
19398 fi
19399
19400        eval gl_cv_bitsizeof_${gltype}=\$result
19401
19402 fi
19403 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19405 $as_echo "$ac_res" >&6; }
19406     eval result=\$gl_cv_bitsizeof_${gltype}
19407     if test $result = unknown; then
19408                                                 result=0
19409     fi
19410     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19411     cat >>confdefs.h <<_ACEOF
19412 #define BITSIZEOF_${GLTYPE} $result
19413 _ACEOF
19414
19415     eval BITSIZEOF_${GLTYPE}=\$result
19416   done
19417
19418
19419   fi
19420
19421
19422   for gltype in sig_atomic_t wchar_t wint_t ; do
19423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19424 $as_echo_n "checking for bit size of $gltype... " >&6; }
19425 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19426   $as_echo_n "(cached) " >&6
19427 else
19428   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19429   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19430      included before <wchar.h>.  */
19431   #include <stddef.h>
19432   #include <signal.h>
19433   #if HAVE_WCHAR_H
19434   # include <stdio.h>
19435   # include <time.h>
19436   # include <wchar.h>
19437   #endif
19438
19439 #include <limits.h>"; then :
19440
19441 else
19442   result=unknown
19443 fi
19444
19445        eval gl_cv_bitsizeof_${gltype}=\$result
19446
19447 fi
19448 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19449                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19450 $as_echo "$ac_res" >&6; }
19451     eval result=\$gl_cv_bitsizeof_${gltype}
19452     if test $result = unknown; then
19453                                                 result=0
19454     fi
19455     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19456     cat >>confdefs.h <<_ACEOF
19457 #define BITSIZEOF_${GLTYPE} $result
19458 _ACEOF
19459
19460     eval BITSIZEOF_${GLTYPE}=\$result
19461   done
19462
19463
19464
19465
19466   for gltype in sig_atomic_t wchar_t wint_t ; do
19467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19468 $as_echo_n "checking whether $gltype is signed... " >&6; }
19469 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19470   $as_echo_n "(cached) " >&6
19471 else
19472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h.  */
19474
19475   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19476      included before <wchar.h>.  */
19477   #include <stddef.h>
19478   #include <signal.h>
19479   #if HAVE_WCHAR_H
19480   # include <stdio.h>
19481   # include <time.h>
19482   # include <wchar.h>
19483   #endif
19484
19485             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19486 int
19487 main ()
19488 {
19489
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 if ac_fn_c_try_compile "$LINENO"; then :
19495   result=yes
19496 else
19497   result=no
19498 fi
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500        eval gl_cv_type_${gltype}_signed=\$result
19501
19502 fi
19503 eval ac_res=\$gl_cv_type_${gltype}_signed
19504                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19505 $as_echo "$ac_res" >&6; }
19506     eval result=\$gl_cv_type_${gltype}_signed
19507     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19508     if test "$result" = yes; then
19509       cat >>confdefs.h <<_ACEOF
19510 #define HAVE_SIGNED_${GLTYPE} 1
19511 _ACEOF
19512
19513       eval HAVE_SIGNED_${GLTYPE}=1
19514     else
19515       eval HAVE_SIGNED_${GLTYPE}=0
19516     fi
19517   done
19518
19519
19520   gl_cv_type_ptrdiff_t_signed=yes
19521   gl_cv_type_size_t_signed=no
19522   if test $APPLE_UNIVERSAL_BUILD = 0; then
19523
19524
19525   for gltype in ptrdiff_t size_t ; do
19526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19527 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19528 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19529   $as_echo_n "(cached) " >&6
19530 else
19531   eval gl_cv_type_${gltype}_suffix=no
19532        eval result=\$gl_cv_type_${gltype}_signed
19533        if test "$result" = yes; then
19534          glsufu=
19535        else
19536          glsufu=u
19537        fi
19538        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19539          case $glsuf in
19540            '')  gltype1='int';;
19541            l)   gltype1='long int';;
19542            ll)  gltype1='long long int';;
19543            i64) gltype1='__int64';;
19544            u)   gltype1='unsigned int';;
19545            ul)  gltype1='unsigned long int';;
19546            ull) gltype1='unsigned long long int';;
19547            ui64)gltype1='unsigned __int64';;
19548          esac
19549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h.  */
19551
19552   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19553      included before <wchar.h>.  */
19554   #include <stddef.h>
19555   #include <signal.h>
19556   #if HAVE_WCHAR_H
19557   # include <stdio.h>
19558   # include <time.h>
19559   # include <wchar.h>
19560   #endif
19561
19562               extern $gltype foo;
19563               extern $gltype1 foo;
19564 int
19565 main ()
19566 {
19567
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 if ac_fn_c_try_compile "$LINENO"; then :
19573   eval gl_cv_type_${gltype}_suffix=\$glsuf
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576          eval result=\$gl_cv_type_${gltype}_suffix
19577          test "$result" != no && break
19578        done
19579 fi
19580 eval ac_res=\$gl_cv_type_${gltype}_suffix
19581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19582 $as_echo "$ac_res" >&6; }
19583     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19584     eval result=\$gl_cv_type_${gltype}_suffix
19585     test "$result" = no && result=
19586     eval ${GLTYPE}_SUFFIX=\$result
19587     cat >>confdefs.h <<_ACEOF
19588 #define ${GLTYPE}_SUFFIX $result
19589 _ACEOF
19590
19591   done
19592
19593
19594   fi
19595
19596
19597   for gltype in sig_atomic_t wchar_t wint_t ; do
19598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19599 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19600 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   eval gl_cv_type_${gltype}_suffix=no
19604        eval result=\$gl_cv_type_${gltype}_signed
19605        if test "$result" = yes; then
19606          glsufu=
19607        else
19608          glsufu=u
19609        fi
19610        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19611          case $glsuf in
19612            '')  gltype1='int';;
19613            l)   gltype1='long int';;
19614            ll)  gltype1='long long int';;
19615            i64) gltype1='__int64';;
19616            u)   gltype1='unsigned int';;
19617            ul)  gltype1='unsigned long int';;
19618            ull) gltype1='unsigned long long int';;
19619            ui64)gltype1='unsigned __int64';;
19620          esac
19621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h.  */
19623
19624   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19625      included before <wchar.h>.  */
19626   #include <stddef.h>
19627   #include <signal.h>
19628   #if HAVE_WCHAR_H
19629   # include <stdio.h>
19630   # include <time.h>
19631   # include <wchar.h>
19632   #endif
19633
19634               extern $gltype foo;
19635               extern $gltype1 foo;
19636 int
19637 main ()
19638 {
19639
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645   eval gl_cv_type_${gltype}_suffix=\$glsuf
19646 fi
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648          eval result=\$gl_cv_type_${gltype}_suffix
19649          test "$result" != no && break
19650        done
19651 fi
19652 eval ac_res=\$gl_cv_type_${gltype}_suffix
19653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19654 $as_echo "$ac_res" >&6; }
19655     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19656     eval result=\$gl_cv_type_${gltype}_suffix
19657     test "$result" = no && result=
19658     eval ${GLTYPE}_SUFFIX=\$result
19659     cat >>confdefs.h <<_ACEOF
19660 #define ${GLTYPE}_SUFFIX $result
19661 _ACEOF
19662
19663   done
19664
19665
19666
19667           if test $BITSIZEOF_WINT_T -lt 32; then
19668     BITSIZEOF_WINT_T=32
19669   fi
19670
19671     STDINT_H=stdint.h
19672   fi
19673
19674    if test -n "$STDINT_H"; then
19675   GL_GENERATE_STDINT_H_TRUE=
19676   GL_GENERATE_STDINT_H_FALSE='#'
19677 else
19678   GL_GENERATE_STDINT_H_TRUE='#'
19679   GL_GENERATE_STDINT_H_FALSE=
19680 fi
19681
19682
19683
19684      REPLACE_STRERROR_0=0
19685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19686 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19687 if ${gl_cv_func_strerror_0_works+:} false; then :
19688   $as_echo_n "(cached) " >&6
19689 else
19690   if test "$cross_compiling" = yes; then :
19691   case "$host_os" in
19692                  # Guess yes on glibc systems.
19693          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19694                  # If we don't know, assume the worst.
19695          *)      gl_cv_func_strerror_0_works="guessing no" ;;
19696        esac
19697
19698 else
19699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h.  */
19701 #include <string.h>
19702            #include <errno.h>
19703
19704 int
19705 main ()
19706 {
19707 int result = 0;
19708            char *str;
19709            errno = 0;
19710            str = strerror (0);
19711            if (!*str) result |= 1;
19712            if (errno) result |= 2;
19713            if (strstr (str, "nknown") || strstr (str, "ndefined"))
19714              result |= 4;
19715            return result;
19716   ;
19717   return 0;
19718 }
19719 _ACEOF
19720 if ac_fn_c_try_run "$LINENO"; then :
19721   gl_cv_func_strerror_0_works=yes
19722 else
19723   gl_cv_func_strerror_0_works=no
19724 fi
19725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19726   conftest.$ac_objext conftest.beam conftest.$ac_ext
19727 fi
19728
19729
19730 fi
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19732 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19733   case "$gl_cv_func_strerror_0_works" in
19734     *yes) ;;
19735     *)
19736       REPLACE_STRERROR_0=1
19737
19738 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19739
19740       ;;
19741   esac
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754      if test $gl_cv_have_include_next = yes; then
19755        gl_cv_next_string_h='<'string.h'>'
19756      else
19757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19758 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19759 if ${gl_cv_next_string_h+:} false; then :
19760   $as_echo_n "(cached) " >&6
19761 else
19762
19763
19764
19765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h.  */
19767 #include <string.h>
19768 _ACEOF
19769                 case "$host_os" in
19770     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19771     *)    gl_absname_cpp="$ac_cpp" ;;
19772   esac
19773
19774   case "$host_os" in
19775     mingw*)
19776                                           gl_dirsep_regex='[/\\]'
19777       ;;
19778     *)
19779       gl_dirsep_regex='\/'
19780       ;;
19781   esac
19782       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19783   gl_header_literal_regex=`echo 'string.h' \
19784                            | sed -e "$gl_make_literal_regex_sed"`
19785   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19786       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19787       s|^/[^/]|//&|
19788       p
19789       q
19790     }'
19791
19792         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19793   sed -n "$gl_absolute_header_sed"`
19794
19795            gl_header=$gl_cv_absolute_string_h
19796            gl_cv_next_string_h='"'$gl_header'"'
19797
19798
19799 fi
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19801 $as_echo "$gl_cv_next_string_h" >&6; }
19802      fi
19803      NEXT_STRING_H=$gl_cv_next_string_h
19804
19805      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19806        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19807        gl_next_as_first_directive='<'string.h'>'
19808      else
19809        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19810        gl_next_as_first_directive=$gl_cv_next_string_h
19811      fi
19812      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19813
19814
19815
19816
19817
19818
19819     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
19820     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19822 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19823 if eval \${$as_gl_Symbol+:} false; then :
19824   $as_echo_n "(cached) " >&6
19825 else
19826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h.  */
19828 #include <string.h>
19829
19830 int
19831 main ()
19832 {
19833 #undef $gl_func
19834   (void) $gl_func;
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 if ac_fn_c_try_compile "$LINENO"; then :
19840   eval "$as_gl_Symbol=yes"
19841 else
19842   eval "$as_gl_Symbol=no"
19843 fi
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846 eval ac_res=\$$as_gl_Symbol
19847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19848 $as_echo "$ac_res" >&6; }
19849     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19850   cat >>confdefs.h <<_ACEOF
19851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19852 _ACEOF
19853
19854                      eval ac_cv_have_decl_$gl_func=yes
19855 fi
19856       done
19857
19858
19859
19860       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19861 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19862   ac_have_decl=1
19863 else
19864   ac_have_decl=0
19865 fi
19866
19867 cat >>confdefs.h <<_ACEOF
19868 #define HAVE_DECL_STRNDUP $ac_have_decl
19869 _ACEOF
19870
19871
19872
19873
19874
19875
19876
19877
19878       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19879 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19880   ac_have_decl=1
19881 else
19882   ac_have_decl=0
19883 fi
19884
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_DECL_STRNLEN $ac_have_decl
19887 _ACEOF
19888
19889
19890
19891       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19892 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19893   ac_have_decl=1
19894 else
19895   ac_have_decl=0
19896 fi
19897
19898 cat >>confdefs.h <<_ACEOF
19899 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19900 _ACEOF
19901
19902
19903 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19904 /* NetBSD declares sys_siglist in unistd.h.  */
19905 #ifdef HAVE_UNISTD_H
19906 # include <unistd.h>
19907 #endif
19908
19909 "
19910 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19911   ac_have_decl=1
19912 else
19913   ac_have_decl=0
19914 fi
19915
19916 cat >>confdefs.h <<_ACEOF
19917 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19918 _ACEOF
19919
19920
19921
19922   GNULIB_PSELECT=0;
19923   GNULIB_SELECT=0;
19924     HAVE_PSELECT=1;
19925   REPLACE_PSELECT=0;
19926   REPLACE_SELECT=0;
19927
19928
19929
19930
19931
19932
19933
19934      GNULIB_FCHMODAT=0;
19935   GNULIB_FSTAT=0;
19936   GNULIB_FSTATAT=0;
19937   GNULIB_FUTIMENS=0;
19938   GNULIB_LCHMOD=0;
19939   GNULIB_LSTAT=0;
19940   GNULIB_MKDIRAT=0;
19941   GNULIB_MKFIFO=0;
19942   GNULIB_MKFIFOAT=0;
19943   GNULIB_MKNOD=0;
19944   GNULIB_MKNODAT=0;
19945   GNULIB_STAT=0;
19946   GNULIB_UTIMENSAT=0;
19947     HAVE_FCHMODAT=1;
19948   HAVE_FSTATAT=1;
19949   HAVE_FUTIMENS=1;
19950   HAVE_LCHMOD=1;
19951   HAVE_LSTAT=1;
19952   HAVE_MKDIRAT=1;
19953   HAVE_MKFIFO=1;
19954   HAVE_MKFIFOAT=1;
19955   HAVE_MKNOD=1;
19956   HAVE_MKNODAT=1;
19957   HAVE_UTIMENSAT=1;
19958   REPLACE_FSTAT=0;
19959   REPLACE_FSTATAT=0;
19960   REPLACE_FUTIMENS=0;
19961   REPLACE_LSTAT=0;
19962   REPLACE_MKDIR=0;
19963   REPLACE_MKFIFO=0;
19964   REPLACE_MKNOD=0;
19965   REPLACE_STAT=0;
19966   REPLACE_UTIMENSAT=0;
19967
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19969 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19970 if ${ac_cv_header_stat_broken+:} false; then :
19971   $as_echo_n "(cached) " >&6
19972 else
19973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h.  */
19975 #include <sys/types.h>
19976 #include <sys/stat.h>
19977
19978 #if defined S_ISBLK && defined S_IFDIR
19979 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19980 #endif
19981
19982 #if defined S_ISBLK && defined S_IFCHR
19983 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19984 #endif
19985
19986 #if defined S_ISLNK && defined S_IFREG
19987 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19988 #endif
19989
19990 #if defined S_ISSOCK && defined S_IFREG
19991 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19992 #endif
19993
19994 _ACEOF
19995 if ac_fn_c_try_compile "$LINENO"; then :
19996   ac_cv_header_stat_broken=no
19997 else
19998   ac_cv_header_stat_broken=yes
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20001 fi
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20003 $as_echo "$ac_cv_header_stat_broken" >&6; }
20004 if test $ac_cv_header_stat_broken = yes; then
20005
20006 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20007
20008 fi
20009
20010
20011
20012
20013
20014
20015 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20016 if test "x$ac_cv_type_mode_t" = xyes; then :
20017
20018 else
20019
20020 cat >>confdefs.h <<_ACEOF
20021 #define mode_t int
20022 _ACEOF
20023
20024 fi
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044      if test $gl_cv_have_include_next = yes; then
20045        gl_cv_next_sys_types_h='<'sys/types.h'>'
20046      else
20047        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20048 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20049 if ${gl_cv_next_sys_types_h+:} false; then :
20050   $as_echo_n "(cached) " >&6
20051 else
20052
20053
20054
20055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056 /* end confdefs.h.  */
20057 #include <sys/types.h>
20058 _ACEOF
20059                 case "$host_os" in
20060     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20061     *)    gl_absname_cpp="$ac_cpp" ;;
20062   esac
20063
20064   case "$host_os" in
20065     mingw*)
20066                                           gl_dirsep_regex='[/\\]'
20067       ;;
20068     *)
20069       gl_dirsep_regex='\/'
20070       ;;
20071   esac
20072       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20073   gl_header_literal_regex=`echo 'sys/types.h' \
20074                            | sed -e "$gl_make_literal_regex_sed"`
20075   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20076       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20077       s|^/[^/]|//&|
20078       p
20079       q
20080     }'
20081
20082         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20083   sed -n "$gl_absolute_header_sed"`
20084
20085            gl_header=$gl_cv_absolute_sys_types_h
20086            gl_cv_next_sys_types_h='"'$gl_header'"'
20087
20088
20089 fi
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20091 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20092      fi
20093      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20094
20095      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20096        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20097        gl_next_as_first_directive='<'sys/types.h'>'
20098      else
20099        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20100        gl_next_as_first_directive=$gl_cv_next_sys_types_h
20101      fi
20102      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115   GNULIB_WAITPID=0;
20116
20117
20118
20119
20120
20121
20122
20123   GNULIB_MKTIME=0;
20124   GNULIB_NANOSLEEP=0;
20125   GNULIB_STRPTIME=0;
20126   GNULIB_TIMEGM=0;
20127   GNULIB_TIME_R=0;
20128     HAVE_DECL_LOCALTIME_R=1;
20129   HAVE_NANOSLEEP=1;
20130   HAVE_STRPTIME=1;
20131   HAVE_TIMEGM=1;
20132         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20133   REPLACE_MKTIME=GNULIB_PORTCHECK;
20134   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20135   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20136
20137       : ${GNULIB_GETTIMEOFDAY=0};
20138         REPLACE_GMTIME=0;
20139   REPLACE_LOCALTIME=0;
20140
20141
20142
20143   :
20144
20145
20146
20147
20148
20149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20150 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20151 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20152   $as_echo_n "(cached) " >&6
20153 else
20154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h.  */
20156 #include <time.h>
20157
20158 int
20159 main ()
20160 {
20161 static struct timespec x; x.tv_sec = x.tv_nsec;
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_compile "$LINENO"; then :
20167   gl_cv_sys_struct_timespec_in_time_h=yes
20168 else
20169   gl_cv_sys_struct_timespec_in_time_h=no
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 fi
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20174 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20175
20176   TIME_H_DEFINES_STRUCT_TIMESPEC=0
20177   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20178   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20179   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20180     TIME_H_DEFINES_STRUCT_TIMESPEC=1
20181   else
20182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20184 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20185   $as_echo_n "(cached) " >&6
20186 else
20187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h.  */
20189 #include <sys/time.h>
20190
20191 int
20192 main ()
20193 {
20194 static struct timespec x; x.tv_sec = x.tv_nsec;
20195   ;
20196   return 0;
20197 }
20198 _ACEOF
20199 if ac_fn_c_try_compile "$LINENO"; then :
20200   gl_cv_sys_struct_timespec_in_sys_time_h=yes
20201 else
20202   gl_cv_sys_struct_timespec_in_sys_time_h=no
20203 fi
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 fi
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20208     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20209       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20210     else
20211       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20213 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h.  */
20218 #include <pthread.h>
20219
20220 int
20221 main ()
20222 {
20223 static struct timespec x; x.tv_sec = x.tv_nsec;
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 if ac_fn_c_try_compile "$LINENO"; then :
20229   gl_cv_sys_struct_timespec_in_pthread_h=yes
20230 else
20231   gl_cv_sys_struct_timespec_in_pthread_h=no
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20234 fi
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20237       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20238         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20239       fi
20240     fi
20241   fi
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257      if test $gl_cv_have_include_next = yes; then
20258        gl_cv_next_time_h='<'time.h'>'
20259      else
20260        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20261 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20262 if ${gl_cv_next_time_h+:} false; then :
20263   $as_echo_n "(cached) " >&6
20264 else
20265
20266
20267
20268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h.  */
20270 #include <time.h>
20271 _ACEOF
20272                 case "$host_os" in
20273     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20274     *)    gl_absname_cpp="$ac_cpp" ;;
20275   esac
20276
20277   case "$host_os" in
20278     mingw*)
20279                                           gl_dirsep_regex='[/\\]'
20280       ;;
20281     *)
20282       gl_dirsep_regex='\/'
20283       ;;
20284   esac
20285       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20286   gl_header_literal_regex=`echo 'time.h' \
20287                            | sed -e "$gl_make_literal_regex_sed"`
20288   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20289       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20290       s|^/[^/]|//&|
20291       p
20292       q
20293     }'
20294
20295         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20296   sed -n "$gl_absolute_header_sed"`
20297
20298            gl_header=$gl_cv_absolute_time_h
20299            gl_cv_next_time_h='"'$gl_header'"'
20300
20301
20302 fi
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20304 $as_echo "$gl_cv_next_time_h" >&6; }
20305      fi
20306      NEXT_TIME_H=$gl_cv_next_time_h
20307
20308      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20309        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20310        gl_next_as_first_directive='<'time.h'>'
20311      else
20312        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20313        gl_next_as_first_directive=$gl_cv_next_time_h
20314      fi
20315      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20316
20317
20318
20319
20320
20321
20322
20323       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20324 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20325   ac_have_decl=1
20326 else
20327   ac_have_decl=0
20328 fi
20329
20330 cat >>confdefs.h <<_ACEOF
20331 #define HAVE_DECL_UNSETENV $ac_have_decl
20332 _ACEOF
20333
20334
20335
20336
20337
20338
20339
20340
20341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20342 $as_echo_n "checking for wint_t... " >&6; }
20343 if ${gt_cv_c_wint_t+:} false; then :
20344   $as_echo_n "(cached) " >&6
20345 else
20346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h.  */
20348
20349 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20350    <wchar.h>.
20351    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20352    before <wchar.h>.  */
20353 #include <stddef.h>
20354 #include <stdio.h>
20355 #include <time.h>
20356 #include <wchar.h>
20357             wint_t foo = (wchar_t)'\0';
20358 int
20359 main ()
20360 {
20361
20362   ;
20363   return 0;
20364 }
20365 _ACEOF
20366 if ac_fn_c_try_compile "$LINENO"; then :
20367   gt_cv_c_wint_t=yes
20368 else
20369   gt_cv_c_wint_t=no
20370 fi
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20374 $as_echo "$gt_cv_c_wint_t" >&6; }
20375   if test $gt_cv_c_wint_t = yes; then
20376
20377 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20378
20379   fi
20380
20381
20382
20383
20384
20385
20386
20387
20388   :
20389
20390
20391
20392
20393
20394   if test $ac_cv_header_features_h = yes; then
20395     HAVE_FEATURES_H=1
20396   else
20397     HAVE_FEATURES_H=0
20398   fi
20399
20400
20401
20402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20403 $as_echo_n "checking for inttypes.h... " >&6; }
20404 if ${gl_cv_header_inttypes_h+:} false; then :
20405   $as_echo_n "(cached) " >&6
20406 else
20407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h.  */
20409
20410 #include <sys/types.h>
20411 #include <inttypes.h>
20412
20413 int
20414 main ()
20415 {
20416 uintmax_t i = (uintmax_t) -1; return !i;
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 if ac_fn_c_try_compile "$LINENO"; then :
20422   gl_cv_header_inttypes_h=yes
20423 else
20424   gl_cv_header_inttypes_h=no
20425 fi
20426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427 fi
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20429 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20430   if test $gl_cv_header_inttypes_h = yes; then
20431
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20434 _ACEOF
20435
20436   fi
20437
20438
20439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20440 $as_echo_n "checking for stdint.h... " >&6; }
20441 if ${gl_cv_header_stdint_h+:} false; then :
20442   $as_echo_n "(cached) " >&6
20443 else
20444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h.  */
20446 #include <sys/types.h>
20447             #include <stdint.h>
20448 int
20449 main ()
20450 {
20451 uintmax_t i = (uintmax_t) -1; return !i;
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 if ac_fn_c_try_compile "$LINENO"; then :
20457   gl_cv_header_stdint_h=yes
20458 else
20459   gl_cv_header_stdint_h=no
20460 fi
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 fi
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20464 $as_echo "$gl_cv_header_stdint_h" >&6; }
20465   if test $gl_cv_header_stdint_h = yes; then
20466
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_STDINT_H_WITH_UINTMAX 1
20469 _ACEOF
20470
20471   fi
20472
20473
20474
20475
20476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20477 $as_echo_n "checking for intmax_t... " >&6; }
20478 if ${gt_cv_c_intmax_t+:} false; then :
20479   $as_echo_n "(cached) " >&6
20480 else
20481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h.  */
20483
20484 #include <stddef.h>
20485 #include <stdlib.h>
20486 #if HAVE_STDINT_H_WITH_UINTMAX
20487 #include <stdint.h>
20488 #endif
20489 #if HAVE_INTTYPES_H_WITH_UINTMAX
20490 #include <inttypes.h>
20491 #endif
20492
20493 int
20494 main ()
20495 {
20496 intmax_t x = -1; return !x;
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 if ac_fn_c_try_compile "$LINENO"; then :
20502   gt_cv_c_intmax_t=yes
20503 else
20504   gt_cv_c_intmax_t=no
20505 fi
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 fi
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20509 $as_echo "$gt_cv_c_intmax_t" >&6; }
20510   if test $gt_cv_c_intmax_t = yes; then
20511
20512 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20513
20514   else
20515
20516     test $ac_cv_type_long_long_int = yes \
20517       && ac_type='long long' \
20518       || ac_type='long'
20519
20520 cat >>confdefs.h <<_ACEOF
20521 #define intmax_t $ac_type
20522 _ACEOF
20523
20524   fi
20525
20526
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20528 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20529 if ${gl_cv_cc_double_expbit0+:} false; then :
20530   $as_echo_n "(cached) " >&6
20531 else
20532
20533       if test "$cross_compiling" = yes; then :
20534
20535                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h.  */
20537
20538 #if defined arm || defined __arm || defined __arm__
20539   mixed_endianness
20540 #endif
20541
20542 _ACEOF
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20545   gl_cv_cc_double_expbit0="unknown"
20546 else
20547
20548                                                          :
20549 if ${ac_cv_c_bigendian+:} false; then :
20550   $as_echo_n "(cached) " >&6
20551 else
20552   ac_cv_c_bigendian=unknown
20553     # See if we're dealing with a universal compiler.
20554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h.  */
20556 #ifndef __APPLE_CC__
20557                not a universal capable compiler
20558              #endif
20559              typedef int dummy;
20560
20561 _ACEOF
20562 if ac_fn_c_try_compile "$LINENO"; then :
20563
20564         # Check for potential -arch flags.  It is not universal unless
20565         # there are at least two -arch flags with different values.
20566         ac_arch=
20567         ac_prev=
20568         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20569          if test -n "$ac_prev"; then
20570            case $ac_word in
20571              i?86 | x86_64 | ppc | ppc64)
20572                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20573                  ac_arch=$ac_word
20574                else
20575                  ac_cv_c_bigendian=universal
20576                  break
20577                fi
20578                ;;
20579            esac
20580            ac_prev=
20581          elif test "x$ac_word" = "x-arch"; then
20582            ac_prev=arch
20583          fi
20584        done
20585 fi
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587     if test $ac_cv_c_bigendian = unknown; then
20588       # See if sys/param.h defines the BYTE_ORDER macro.
20589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h.  */
20591 #include <sys/types.h>
20592              #include <sys/param.h>
20593
20594 int
20595 main ()
20596 {
20597 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20598                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20599                      && LITTLE_ENDIAN)
20600               bogus endian macros
20601              #endif
20602
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 if ac_fn_c_try_compile "$LINENO"; then :
20608   # It does; now see whether it defined to BIG_ENDIAN or not.
20609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h.  */
20611 #include <sys/types.h>
20612                 #include <sys/param.h>
20613
20614 int
20615 main ()
20616 {
20617 #if BYTE_ORDER != BIG_ENDIAN
20618                  not big endian
20619                 #endif
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 if ac_fn_c_try_compile "$LINENO"; then :
20626   ac_cv_c_bigendian=yes
20627 else
20628   ac_cv_c_bigendian=no
20629 fi
20630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631 fi
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633     fi
20634     if test $ac_cv_c_bigendian = unknown; then
20635       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20637 /* end confdefs.h.  */
20638 #include <limits.h>
20639
20640 int
20641 main ()
20642 {
20643 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20644               bogus endian macros
20645              #endif
20646
20647   ;
20648   return 0;
20649 }
20650 _ACEOF
20651 if ac_fn_c_try_compile "$LINENO"; then :
20652   # It does; now see whether it defined to _BIG_ENDIAN or not.
20653          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h.  */
20655 #include <limits.h>
20656
20657 int
20658 main ()
20659 {
20660 #ifndef _BIG_ENDIAN
20661                  not big endian
20662                 #endif
20663
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 if ac_fn_c_try_compile "$LINENO"; then :
20669   ac_cv_c_bigendian=yes
20670 else
20671   ac_cv_c_bigendian=no
20672 fi
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674 fi
20675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676     fi
20677     if test $ac_cv_c_bigendian = unknown; then
20678       # Compile a test program.
20679       if test "$cross_compiling" = yes; then :
20680   # Try to guess by grepping values from an object file.
20681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h.  */
20683 short int ascii_mm[] =
20684                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20685                 short int ascii_ii[] =
20686                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20687                 int use_ascii (int i) {
20688                   return ascii_mm[i] + ascii_ii[i];
20689                 }
20690                 short int ebcdic_ii[] =
20691                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20692                 short int ebcdic_mm[] =
20693                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20694                 int use_ebcdic (int i) {
20695                   return ebcdic_mm[i] + ebcdic_ii[i];
20696                 }
20697                 extern int foo;
20698
20699 int
20700 main ()
20701 {
20702 return use_ascii (foo) == use_ebcdic (foo);
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 if ac_fn_c_try_compile "$LINENO"; then :
20708   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20709               ac_cv_c_bigendian=yes
20710             fi
20711             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20712               if test "$ac_cv_c_bigendian" = unknown; then
20713                 ac_cv_c_bigendian=no
20714               else
20715                 # finding both strings is unlikely to happen, but who knows?
20716                 ac_cv_c_bigendian=unknown
20717               fi
20718             fi
20719 fi
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 else
20722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h.  */
20724 $ac_includes_default
20725 int
20726 main ()
20727 {
20728
20729              /* Are we little or big endian?  From Harbison&Steele.  */
20730              union
20731              {
20732                long int l;
20733                char c[sizeof (long int)];
20734              } u;
20735              u.l = 1;
20736              return u.c[sizeof (long int) - 1] == 1;
20737
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 if ac_fn_c_try_run "$LINENO"; then :
20743   ac_cv_c_bigendian=no
20744 else
20745   ac_cv_c_bigendian=yes
20746 fi
20747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20748   conftest.$ac_objext conftest.beam conftest.$ac_ext
20749 fi
20750
20751     fi
20752 fi
20753 :
20754  case $ac_cv_c_bigendian in #(
20755    yes)
20756      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20757    no)
20758      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20759    universal)
20760
20761 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20762
20763      ;; #(
20764    *)
20765      gl_cv_cc_double_expbit0="unknown" ;;
20766  esac
20767
20768
20769 fi
20770 rm -f conftest*
20771
20772
20773 else
20774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h.  */
20776
20777 #include <float.h>
20778 #include <stddef.h>
20779 #include <stdio.h>
20780 #include <string.h>
20781 #define NWORDS \
20782   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20783 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20784 static unsigned int ored_words[NWORDS];
20785 static unsigned int anded_words[NWORDS];
20786 static void add_to_ored_words (double x)
20787 {
20788   memory_double m;
20789   size_t i;
20790   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20791   memset (&m, 0, sizeof (memory_double));
20792   m.value = x;
20793   for (i = 0; i < NWORDS; i++)
20794     {
20795       ored_words[i] |= m.word[i];
20796       anded_words[i] &= m.word[i];
20797     }
20798 }
20799 int main ()
20800 {
20801   size_t j;
20802   FILE *fp = fopen ("conftest.out", "w");
20803   if (fp == NULL)
20804     return 1;
20805   for (j = 0; j < NWORDS; j++)
20806     anded_words[j] = ~ (unsigned int) 0;
20807   add_to_ored_words (0.25);
20808   add_to_ored_words (0.5);
20809   add_to_ored_words (1.0);
20810   add_to_ored_words (2.0);
20811   add_to_ored_words (4.0);
20812   /* Remove bits that are common (e.g. if representation of the first mantissa
20813      bit is explicit).  */
20814   for (j = 0; j < NWORDS; j++)
20815     ored_words[j] &= ~anded_words[j];
20816   /* Now find the nonzero word.  */
20817   for (j = 0; j < NWORDS; j++)
20818     if (ored_words[j] != 0)
20819       break;
20820   if (j < NWORDS)
20821     {
20822       size_t i;
20823       for (i = j + 1; i < NWORDS; i++)
20824         if (ored_words[i] != 0)
20825           {
20826             fprintf (fp, "unknown");
20827             return (fclose (fp) != 0);
20828           }
20829       for (i = 0; ; i++)
20830         if ((ored_words[j] >> i) & 1)
20831           {
20832             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20833             return (fclose (fp) != 0);
20834           }
20835     }
20836   fprintf (fp, "unknown");
20837   return (fclose (fp) != 0);
20838 }
20839
20840 _ACEOF
20841 if ac_fn_c_try_run "$LINENO"; then :
20842   gl_cv_cc_double_expbit0=`cat conftest.out`
20843 else
20844   gl_cv_cc_double_expbit0="unknown"
20845 fi
20846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20847   conftest.$ac_objext conftest.beam conftest.$ac_ext
20848 fi
20849
20850       rm -f conftest.out
20851
20852 fi
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20854 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20855   case "$gl_cv_cc_double_expbit0" in
20856     word*bit*)
20857       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20858       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20859
20860 cat >>confdefs.h <<_ACEOF
20861 #define DBL_EXPBIT0_WORD $word
20862 _ACEOF
20863
20864
20865 cat >>confdefs.h <<_ACEOF
20866 #define DBL_EXPBIT0_BIT $bit
20867 _ACEOF
20868
20869       ;;
20870   esac
20871
20872
20873
20874
20875
20876
20877   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20878 do :
20879   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20882   cat >>confdefs.h <<_ACEOF
20883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20884 _ACEOF
20885
20886 fi
20887 done
20888
20889       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20890 "
20891 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20892   ac_have_decl=1
20893 else
20894   ac_have_decl=0
20895 fi
20896
20897 cat >>confdefs.h <<_ACEOF
20898 #define HAVE_DECL__SNPRINTF $ac_have_decl
20899 _ACEOF
20900
20901
20902
20903   case "$gl_cv_func_snprintf_retval_c99" in
20904     *yes)
20905
20906 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20907
20908       ;;
20909   esac
20910
20911
20912   GNULIB_BTOWC=0;
20913   GNULIB_WCTOB=0;
20914   GNULIB_MBSINIT=0;
20915   GNULIB_MBRTOWC=0;
20916   GNULIB_MBRLEN=0;
20917   GNULIB_MBSRTOWCS=0;
20918   GNULIB_MBSNRTOWCS=0;
20919   GNULIB_WCRTOMB=0;
20920   GNULIB_WCSRTOMBS=0;
20921   GNULIB_WCSNRTOMBS=0;
20922   GNULIB_WCWIDTH=0;
20923   GNULIB_WMEMCHR=0;
20924   GNULIB_WMEMCMP=0;
20925   GNULIB_WMEMCPY=0;
20926   GNULIB_WMEMMOVE=0;
20927   GNULIB_WMEMSET=0;
20928   GNULIB_WCSLEN=0;
20929   GNULIB_WCSNLEN=0;
20930   GNULIB_WCSCPY=0;
20931   GNULIB_WCPCPY=0;
20932   GNULIB_WCSNCPY=0;
20933   GNULIB_WCPNCPY=0;
20934   GNULIB_WCSCAT=0;
20935   GNULIB_WCSNCAT=0;
20936   GNULIB_WCSCMP=0;
20937   GNULIB_WCSNCMP=0;
20938   GNULIB_WCSCASECMP=0;
20939   GNULIB_WCSNCASECMP=0;
20940   GNULIB_WCSCOLL=0;
20941   GNULIB_WCSXFRM=0;
20942   GNULIB_WCSDUP=0;
20943   GNULIB_WCSCHR=0;
20944   GNULIB_WCSRCHR=0;
20945   GNULIB_WCSCSPN=0;
20946   GNULIB_WCSSPN=0;
20947   GNULIB_WCSPBRK=0;
20948   GNULIB_WCSSTR=0;
20949   GNULIB_WCSTOK=0;
20950   GNULIB_WCSWIDTH=0;
20951     HAVE_BTOWC=1;
20952   HAVE_MBSINIT=1;
20953   HAVE_MBRTOWC=1;
20954   HAVE_MBRLEN=1;
20955   HAVE_MBSRTOWCS=1;
20956   HAVE_MBSNRTOWCS=1;
20957   HAVE_WCRTOMB=1;
20958   HAVE_WCSRTOMBS=1;
20959   HAVE_WCSNRTOMBS=1;
20960   HAVE_WMEMCHR=1;
20961   HAVE_WMEMCMP=1;
20962   HAVE_WMEMCPY=1;
20963   HAVE_WMEMMOVE=1;
20964   HAVE_WMEMSET=1;
20965   HAVE_WCSLEN=1;
20966   HAVE_WCSNLEN=1;
20967   HAVE_WCSCPY=1;
20968   HAVE_WCPCPY=1;
20969   HAVE_WCSNCPY=1;
20970   HAVE_WCPNCPY=1;
20971   HAVE_WCSCAT=1;
20972   HAVE_WCSNCAT=1;
20973   HAVE_WCSCMP=1;
20974   HAVE_WCSNCMP=1;
20975   HAVE_WCSCASECMP=1;
20976   HAVE_WCSNCASECMP=1;
20977   HAVE_WCSCOLL=1;
20978   HAVE_WCSXFRM=1;
20979   HAVE_WCSDUP=1;
20980   HAVE_WCSCHR=1;
20981   HAVE_WCSRCHR=1;
20982   HAVE_WCSCSPN=1;
20983   HAVE_WCSSPN=1;
20984   HAVE_WCSPBRK=1;
20985   HAVE_WCSSTR=1;
20986   HAVE_WCSTOK=1;
20987   HAVE_WCSWIDTH=1;
20988   HAVE_DECL_WCTOB=1;
20989   HAVE_DECL_WCWIDTH=1;
20990   REPLACE_MBSTATE_T=0;
20991   REPLACE_BTOWC=0;
20992   REPLACE_WCTOB=0;
20993   REPLACE_MBSINIT=0;
20994   REPLACE_MBRTOWC=0;
20995   REPLACE_MBRLEN=0;
20996   REPLACE_MBSRTOWCS=0;
20997   REPLACE_MBSNRTOWCS=0;
20998   REPLACE_WCRTOMB=0;
20999   REPLACE_WCSRTOMBS=0;
21000   REPLACE_WCSNRTOMBS=0;
21001   REPLACE_WCWIDTH=0;
21002   REPLACE_WCSWIDTH=0;
21003
21004
21005             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21006 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21007 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   gl_cv_header_wchar_h_correct_inline=yes
21011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012 /* end confdefs.h.  */
21013
21014        #define wcstod renamed_wcstod
21015 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21016    <wchar.h>.
21017    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21018    included before <wchar.h>.  */
21019 #include <stddef.h>
21020 #include <stdio.h>
21021 #include <time.h>
21022 #include <wchar.h>
21023 extern int zero (void);
21024 int main () { return zero(); }
21025
21026 _ACEOF
21027      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21028   (eval $ac_compile) 2>&5
21029   ac_status=$?
21030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031   test $ac_status = 0; }; then
21032        mv conftest.$ac_objext conftest1.$ac_objext
21033        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h.  */
21035
21036          #define wcstod renamed_wcstod
21037 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21038    <wchar.h>.
21039    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21040    included before <wchar.h>.  */
21041 #include <stddef.h>
21042 #include <stdio.h>
21043 #include <time.h>
21044 #include <wchar.h>
21045 int zero (void) { return 0; }
21046
21047 _ACEOF
21048        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21049   (eval $ac_compile) 2>&5
21050   ac_status=$?
21051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21052   test $ac_status = 0; }; then
21053          mv conftest.$ac_objext conftest2.$ac_objext
21054          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21055            :
21056          else
21057            gl_cv_header_wchar_h_correct_inline=no
21058          fi
21059        fi
21060      fi
21061      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21062
21063 fi
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21065 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21066   if test $gl_cv_header_wchar_h_correct_inline = no; then
21067     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21068 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21069 C99 mode. You have four options:
21070   - Add the flag -fgnu89-inline to CC and reconfigure, or
21071   - Fix your include files, using parts of
21072     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21073   - Use a gcc version older than 4.3, or
21074   - Don't use the flags -std=c99 or -std=gnu99.
21075 Configuration aborted." "$LINENO" 5
21076   fi
21077
21078
21079    if true; then
21080   GL_COND_LIBTOOL_TRUE=
21081   GL_COND_LIBTOOL_FALSE='#'
21082 else
21083   GL_COND_LIBTOOL_TRUE='#'
21084   GL_COND_LIBTOOL_FALSE=
21085 fi
21086
21087   gl_cond_libtool=true
21088   gl_m4_base='gnulib/m4'
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098   gl_source_base='gnulib/lib'
21099
21100
21101   if test $ac_cv_func_alloca_works = no; then
21102     :
21103   fi
21104
21105   # Define an additional variable used in the Makefile substitution.
21106   if test $ac_cv_working_alloca_h = yes; then
21107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21108 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21109 if ${gl_cv_rpl_alloca+:} false; then :
21110   $as_echo_n "(cached) " >&6
21111 else
21112
21113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115
21116 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21117         Need own alloca
21118 #endif
21119
21120 _ACEOF
21121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21122   $EGREP "Need own alloca" >/dev/null 2>&1; then :
21123   gl_cv_rpl_alloca=yes
21124 else
21125   gl_cv_rpl_alloca=no
21126 fi
21127 rm -f conftest*
21128
21129
21130 fi
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21132 $as_echo "$gl_cv_rpl_alloca" >&6; }
21133     if test $gl_cv_rpl_alloca = yes; then
21134
21135 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21136
21137       ALLOCA_H=alloca.h
21138     else
21139                   ALLOCA_H=
21140     fi
21141   else
21142     ALLOCA_H=alloca.h
21143   fi
21144
21145    if test -n "$ALLOCA_H"; then
21146   GL_GENERATE_ALLOCA_H_TRUE=
21147   GL_GENERATE_ALLOCA_H_FALSE='#'
21148 else
21149   GL_GENERATE_ALLOCA_H_TRUE='#'
21150   GL_GENERATE_ALLOCA_H_FALSE=
21151 fi
21152
21153
21154
21155
21156
21157
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define GNULIB_DIRNAME 1
21161 _ACEOF
21162
21163
21164
21165
21166
21167
21168
21169
21170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21171 $as_echo_n "checking whether // is distinct from /... " >&6; }
21172 if ${gl_cv_double_slash_root+:} false; then :
21173   $as_echo_n "(cached) " >&6
21174 else
21175    if test x"$cross_compiling" = xyes ; then
21176         # When cross-compiling, there is no way to tell whether // is special
21177         # short of a list of hosts.  However, the only known hosts to date
21178         # that have a distinct // are Apollo DomainOS (too old to port to),
21179         # Cygwin, and z/OS.  If anyone knows of another system for which // has
21180         # special semantics and is distinct from /, please report it to
21181         # <bug-gnulib@gnu.org>.
21182         case $host in
21183           *-cygwin | i370-ibm-openedition)
21184             gl_cv_double_slash_root=yes ;;
21185           *)
21186             # Be optimistic and assume that / and // are the same when we
21187             # don't know.
21188             gl_cv_double_slash_root='unknown, assuming no' ;;
21189         esac
21190       else
21191         set x `ls -di / // 2>/dev/null`
21192         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21193           gl_cv_double_slash_root=no
21194         else
21195           gl_cv_double_slash_root=yes
21196         fi
21197       fi
21198 fi
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21200 $as_echo "$gl_cv_double_slash_root" >&6; }
21201   if test "$gl_cv_double_slash_root" = yes; then
21202
21203 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21204
21205   fi
21206
21207
21208
21209
21210
21211
21212
21213           GNULIB_ENVIRON=1
21214
21215
21216
21217
21218
21219 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21220
21221
21222
21223
21224
21225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21226 $as_echo_n "checking for error_at_line... " >&6; }
21227 if ${ac_cv_lib_error_at_line+:} false; then :
21228   $as_echo_n "(cached) " >&6
21229 else
21230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h.  */
21232 #include <error.h>
21233 int
21234 main ()
21235 {
21236 error_at_line (0, 0, "", 0, "an error occurred");
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 if ac_fn_c_try_link "$LINENO"; then :
21242   ac_cv_lib_error_at_line=yes
21243 else
21244   ac_cv_lib_error_at_line=no
21245 fi
21246 rm -f core conftest.err conftest.$ac_objext \
21247     conftest$ac_exeext conftest.$ac_ext
21248 fi
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21250 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21251
21252   if test $ac_cv_lib_error_at_line = no; then
21253
21254
21255
21256
21257
21258
21259
21260
21261   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21262
21263
21264
21265   :
21266
21267   fi
21268
21269
21270   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21271
21272
21273
21274   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21275
21276
21277
21278
21279
21280   FLOAT_H=
21281   REPLACE_FLOAT_LDBL=0
21282   case "$host_os" in
21283     aix* | beos* | openbsd* | mirbsd* | irix*)
21284       FLOAT_H=float.h
21285       ;;
21286     freebsd*)
21287       case "$host_cpu" in
21288         i[34567]86 )
21289           FLOAT_H=float.h
21290           ;;
21291         x86_64 )
21292           # On x86_64 systems, the C compiler may still be generating
21293           # 32-bit code.
21294           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h.  */
21296 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21297              yes
21298              #endif
21299 _ACEOF
21300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21301   $EGREP "yes" >/dev/null 2>&1; then :
21302
21303 else
21304   FLOAT_H=float.h
21305 fi
21306 rm -f conftest*
21307
21308           ;;
21309       esac
21310       ;;
21311     linux*)
21312       case "$host_cpu" in
21313         powerpc*)
21314           FLOAT_H=float.h
21315           ;;
21316       esac
21317       ;;
21318   esac
21319   case "$host_os" in
21320     aix* | freebsd* | linux*)
21321       if test -n "$FLOAT_H"; then
21322         REPLACE_FLOAT_LDBL=1
21323       fi
21324       ;;
21325   esac
21326
21327     REPLACE_ITOLD=0
21328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21329 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21330 if ${gl_cv_func_itold_works+:} false; then :
21331   $as_echo_n "(cached) " >&6
21332 else
21333
21334       if test "$cross_compiling" = yes; then :
21335   case "$host" in
21336            sparc*-*-linux*)
21337              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h.  */
21339 #if defined __LP64__ || defined __arch64__
21340                 yes
21341                 #endif
21342 _ACEOF
21343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21344   $EGREP "yes" >/dev/null 2>&1; then :
21345   gl_cv_func_itold_works="guessing no"
21346 else
21347   gl_cv_func_itold_works="guessing yes"
21348 fi
21349 rm -f conftest*
21350
21351              ;;
21352            *) gl_cv_func_itold_works="guessing yes" ;;
21353          esac
21354
21355 else
21356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h.  */
21358
21359 int i = -1;
21360 volatile long double ld;
21361 int main ()
21362 {
21363   ld += i * 1.0L;
21364   if (ld > 0)
21365     return 1;
21366   return 0;
21367 }
21368 _ACEOF
21369 if ac_fn_c_try_run "$LINENO"; then :
21370   gl_cv_func_itold_works=yes
21371 else
21372   gl_cv_func_itold_works=no
21373 fi
21374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21375   conftest.$ac_objext conftest.beam conftest.$ac_ext
21376 fi
21377
21378
21379 fi
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21381 $as_echo "$gl_cv_func_itold_works" >&6; }
21382   case "$gl_cv_func_itold_works" in
21383     *no)
21384       REPLACE_ITOLD=1
21385                   FLOAT_H=float.h
21386       ;;
21387   esac
21388
21389   if test -n "$FLOAT_H"; then
21390
21391
21392
21393
21394
21395
21396
21397
21398      if test $gl_cv_have_include_next = yes; then
21399        gl_cv_next_float_h='<'float.h'>'
21400      else
21401        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21402 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21403 if ${gl_cv_next_float_h+:} false; then :
21404   $as_echo_n "(cached) " >&6
21405 else
21406
21407
21408
21409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h.  */
21411 #include <float.h>
21412 _ACEOF
21413                 case "$host_os" in
21414     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21415     *)    gl_absname_cpp="$ac_cpp" ;;
21416   esac
21417
21418   case "$host_os" in
21419     mingw*)
21420                                           gl_dirsep_regex='[/\\]'
21421       ;;
21422     *)
21423       gl_dirsep_regex='\/'
21424       ;;
21425   esac
21426       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21427   gl_header_literal_regex=`echo 'float.h' \
21428                            | sed -e "$gl_make_literal_regex_sed"`
21429   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21430       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21431       s|^/[^/]|//&|
21432       p
21433       q
21434     }'
21435
21436         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21437   sed -n "$gl_absolute_header_sed"`
21438
21439            gl_header=$gl_cv_absolute_float_h
21440            gl_cv_next_float_h='"'$gl_header'"'
21441
21442
21443 fi
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21445 $as_echo "$gl_cv_next_float_h" >&6; }
21446      fi
21447      NEXT_FLOAT_H=$gl_cv_next_float_h
21448
21449      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21450        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21451        gl_next_as_first_directive='<'float.h'>'
21452      else
21453        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21454        gl_next_as_first_directive=$gl_cv_next_float_h
21455      fi
21456      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21457
21458
21459
21460
21461   fi
21462
21463    if test -n "$FLOAT_H"; then
21464   GL_GENERATE_FLOAT_H_TRUE=
21465   GL_GENERATE_FLOAT_H_FALSE='#'
21466 else
21467   GL_GENERATE_FLOAT_H_TRUE='#'
21468   GL_GENERATE_FLOAT_H_FALSE=
21469 fi
21470
21471
21472
21473   if test $REPLACE_FLOAT_LDBL = 1; then
21474
21475
21476
21477
21478
21479
21480
21481
21482   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21483
21484   fi
21485   if test $REPLACE_ITOLD = 1; then
21486
21487
21488
21489
21490
21491
21492
21493
21494   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21495
21496   fi
21497
21498
21499
21500
21501
21502
21503
21504   :
21505
21506
21507
21508
21509
21510
21511   gl_gettimeofday_timezone=void
21512   if test $ac_cv_func_gettimeofday != yes; then
21513     HAVE_GETTIMEOFDAY=0
21514   else
21515
21516
21517
21518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21519 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21520 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21521   $as_echo_n "(cached) " >&6
21522 else
21523   if test "$cross_compiling" = yes; then :
21524   # When cross-compiling:
21525       case "$host_os" in
21526                 # Guess all is fine on glibc systems.
21527         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21528                 # If we don't know, assume the worst.
21529         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21530       esac
21531
21532 else
21533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h.  */
21535 #include <string.h>
21536           #include <sys/time.h>
21537           #include <time.h>
21538           #include <stdlib.h>
21539
21540 int
21541 main ()
21542 {
21543
21544           time_t t = 0;
21545           struct tm *lt;
21546           struct tm saved_lt;
21547           struct timeval tv;
21548           lt = localtime (&t);
21549           saved_lt = *lt;
21550           gettimeofday (&tv, NULL);
21551           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21552
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_c_try_run "$LINENO"; then :
21558   gl_cv_func_gettimeofday_clobber=no
21559 else
21560   gl_cv_func_gettimeofday_clobber=yes
21561 fi
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563   conftest.$ac_objext conftest.beam conftest.$ac_ext
21564 fi
21565
21566 fi
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21568 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21569
21570  case "$gl_cv_func_gettimeofday_clobber" in
21571    *yes)
21572      REPLACE_GETTIMEOFDAY=1
21573
21574   REPLACE_GMTIME=1
21575   REPLACE_LOCALTIME=1
21576
21577
21578 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21579
21580      ;;
21581  esac
21582
21583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21584 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21585 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21586   $as_echo_n "(cached) " >&6
21587 else
21588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21589 /* end confdefs.h.  */
21590 #include <sys/time.h>
21591               struct timeval c;
21592               int gettimeofday (struct timeval *restrict, void *restrict);
21593
21594 int
21595 main ()
21596 {
21597 /* glibc uses struct timezone * rather than the POSIX void *
21598                  if _GNU_SOURCE is defined.  However, since the only portable
21599                  use of gettimeofday uses NULL as the second parameter, and
21600                  since the glibc definition is actually more typesafe, it is
21601                  not worth wrapping this to get a compliant signature.  */
21602               int (*f) (struct timeval *restrict, void *restrict)
21603                 = gettimeofday;
21604               int x = f (&c, 0);
21605               return !(x | c.tv_sec | c.tv_usec);
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 if ac_fn_c_try_compile "$LINENO"; then :
21612   gl_cv_func_gettimeofday_posix_signature=yes
21613 else
21614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h.  */
21616 #include <sys/time.h>
21617 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21618
21619 int
21620 main ()
21621 {
21622
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 if ac_fn_c_try_compile "$LINENO"; then :
21628   gl_cv_func_gettimeofday_posix_signature=almost
21629 else
21630   gl_cv_func_gettimeofday_posix_signature=no
21631 fi
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 fi
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 fi
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21637 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21638     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21639       gl_gettimeofday_timezone='struct timezone'
21640     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21641       REPLACE_GETTIMEOFDAY=1
21642     fi
21643         if test $REPLACE_STRUCT_TIMEVAL = 1; then
21644       REPLACE_GETTIMEOFDAY=1
21645     fi
21646
21647   fi
21648
21649 cat >>confdefs.h <<_ACEOF
21650 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21651 _ACEOF
21652
21653
21654   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21655
21656
21657
21658
21659
21660
21661
21662
21663   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21664
21665
21666   for ac_header in sys/timeb.h
21667 do :
21668   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21669 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
21670   cat >>confdefs.h <<_ACEOF
21671 #define HAVE_SYS_TIMEB_H 1
21672 _ACEOF
21673
21674 fi
21675
21676 done
21677
21678   for ac_func in _ftime
21679 do :
21680   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21681 if test "x$ac_cv_func__ftime" = xyes; then :
21682   cat >>confdefs.h <<_ACEOF
21683 #define HAVE__FTIME 1
21684 _ACEOF
21685
21686 fi
21687 done
21688
21689
21690   fi
21691
21692
21693
21694
21695
21696           GNULIB_GETTIMEOFDAY=1
21697
21698
21699
21700
21701
21702 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21703
21704
21705
21706
21707
21708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21709 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21710 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21711   $as_echo_n "(cached) " >&6
21712 else
21713   gl_cv_prog_c_ignore_unused_libraries=none
21714      gl_saved_ldflags=$LDFLAGS
21715      gl_saved_libs=$LIBS
21716      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21717      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21718      LIBS="$LIBS -lm"
21719      # Use long option sequences like '-z ignore' to test for the feature,
21720      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21721      # GCC + binutils likes '-Wl,--as-needed'.
21722      # GCC + Solaris ld likes '-Wl,-z,ignore'.
21723      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21724      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21725      # native cc issues annoying warnings and then ignores it,
21726      # which would cause us to incorrectly conclude that it worked.
21727      for gl_flags in  '-Wl,--as-needed' \
21728   '-Wl,-z,ignore' \
21729   '-z ignore'
21730
21731      do
21732        LDFLAGS="$gl_flags $LDFLAGS"
21733        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h.  */
21735
21736 int
21737 main ()
21738 {
21739
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 if ac_fn_c_try_link "$LINENO"; then :
21745   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21746 fi
21747 rm -f core conftest.err conftest.$ac_objext \
21748     conftest$ac_exeext conftest.$ac_ext
21749        LDFLAGS=$gl_saved_ldflags
21750        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21751          break
21752      done
21753      LIBS=$gl_saved_libs
21754
21755 fi
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21757 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21758   IGNORE_UNUSED_LIBRARIES_CFLAGS=
21759   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21760     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21761   fi
21762
21763
21764
21765
21766   if test "$gl_threads_api" = posix; then
21767     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21768     # pthread_rwlock_* functions.
21769     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21770 "
21771 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21772
21773 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21774
21775 fi
21776
21777     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h.  */
21780
21781       #include <pthread.h>
21782 int
21783 main ()
21784 {
21785
21786 #if __FreeBSD__ == 4
21787 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21788 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21789        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21790 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21791 #else
21792 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21793 return !x;
21794 #endif
21795
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 if ac_fn_c_try_compile "$LINENO"; then :
21801
21802 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21803
21804 fi
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806   fi
21807   :
21808
21809
21810
21811 cat >>confdefs.h <<_ACEOF
21812 #define GNULIB_LOCK 1
21813 _ACEOF
21814
21815
21816
21817
21818
21819   if test $gl_cv_func_malloc_posix = yes; then
21820
21821 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21822
21823   else
21824     REPLACE_MALLOC=1
21825   fi
21826
21827   if test $REPLACE_MALLOC = 1; then
21828
21829
21830
21831
21832
21833
21834
21835
21836   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21837
21838   fi
21839
21840
21841
21842
21843
21844           GNULIB_MALLOC_POSIX=1
21845
21846
21847
21848
21849
21850 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21851
21852
21853
21854
21855
21856
21857
21858
21859   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21860
21861
21862
21863
21864
21865
21866
21867
21868   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21869
21870
21871   for ac_header in bp-sym.h
21872 do :
21873   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21874 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21875   cat >>confdefs.h <<_ACEOF
21876 #define HAVE_BP_SYM_H 1
21877 _ACEOF
21878
21879 fi
21880
21881 done
21882
21883
21884   fi
21885
21886
21887
21888
21889
21890           GNULIB_MEMCHR=1
21891
21892
21893
21894
21895
21896 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21897
21898
21899
21900
21901
21902   :
21903
21904
21905
21906
21907
21908   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21909     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21910
21911 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21912
21913   else
21914     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21915   fi
21916
21917
21918   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21919
21920
21921
21922
21923
21924
21925
21926
21927   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21928
21929   fi
21930
21931
21932
21933   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21934
21935
21936
21937
21938
21939
21940
21941
21942   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21943
21944   fi
21945
21946
21947
21948
21949
21950   for ac_func in raise
21951 do :
21952   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21953 if test "x$ac_cv_func_raise" = xyes; then :
21954   cat >>confdefs.h <<_ACEOF
21955 #define HAVE_RAISE 1
21956 _ACEOF
21957
21958 fi
21959 done
21960
21961   if test $ac_cv_func_raise = no; then
21962     HAVE_RAISE=0
21963   else
21964     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21965       REPLACE_RAISE=1
21966     fi
21967
21968
21969
21970
21971   if test $gl_cv_type_sigset_t = yes; then
21972     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21973 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21974   gl_cv_func_sigprocmask=1
21975 fi
21976
21977   fi
21978   if test -z "$gl_cv_func_sigprocmask"; then
21979     HAVE_POSIX_SIGNALBLOCKING=0
21980   fi
21981
21982       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21983         :
21984       fi
21985
21986   fi
21987
21988   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21989
21990
21991
21992
21993
21994
21995
21996
21997   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21998
21999     :
22000   fi
22001
22002
22003
22004
22005
22006           GNULIB_RAISE=1
22007
22008
22009
22010
22011
22012 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
22013
22014
22015
22016
22017
22018
22019   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22020     REPLACE_READ=1
22021   fi
22022
22023
22024   if test $REPLACE_READ = 1; then
22025
22026
22027
22028
22029
22030
22031
22032
22033   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
22034
22035     :
22036   fi
22037
22038
22039
22040
22041
22042           GNULIB_READ=1
22043
22044
22045
22046
22047
22048 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062      if test $ac_cv_func_setenv = no; then
22063     HAVE_SETENV=0
22064   else
22065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22066 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22067 if ${gl_cv_func_setenv_works+:} false; then :
22068   $as_echo_n "(cached) " >&6
22069 else
22070   if test "$cross_compiling" = yes; then :
22071   case "$host_os" in
22072                  # Guess yes on glibc systems.
22073          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
22074                  # If we don't know, assume the worst.
22075          *)      gl_cv_func_setenv_works="guessing no" ;;
22076        esac
22077
22078 else
22079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h.  */
22081
22082        #include <stdlib.h>
22083        #include <errno.h>
22084        #include <string.h>
22085
22086 int
22087 main ()
22088 {
22089
22090        int result = 0;
22091        {
22092          if (setenv ("", "", 0) != -1)
22093            result |= 1;
22094          else if (errno != EINVAL)
22095            result |= 2;
22096        }
22097        {
22098          if (setenv ("a", "=", 1) != 0)
22099            result |= 4;
22100          else if (strcmp (getenv ("a"), "=") != 0)
22101            result |= 8;
22102        }
22103        return result;
22104
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 if ac_fn_c_try_run "$LINENO"; then :
22110   gl_cv_func_setenv_works=yes
22111 else
22112   gl_cv_func_setenv_works=no
22113 fi
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22115   conftest.$ac_objext conftest.beam conftest.$ac_ext
22116 fi
22117
22118 fi
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22120 $as_echo "$gl_cv_func_setenv_works" >&6; }
22121     case "$gl_cv_func_setenv_works" in
22122       *yes) ;;
22123       *)
22124         REPLACE_SETENV=1
22125         ;;
22126     esac
22127   fi
22128
22129   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
22130
22131
22132
22133
22134
22135
22136
22137
22138   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22139
22140   fi
22141
22142
22143
22144
22145
22146           GNULIB_SETENV=1
22147
22148
22149
22150
22151
22152 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22153
22154
22155
22156
22157
22158
22159   :
22160
22161
22162
22163
22164
22165   if test $ac_cv_func_sigaction = yes; then
22166     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
22167 "
22168 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
22169
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
22172 _ACEOF
22173
22174
22175 fi
22176
22177     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
22178       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
22179     fi
22180   else
22181     HAVE_SIGACTION=0
22182   fi
22183
22184   if test $HAVE_SIGACTION = 0; then
22185
22186
22187
22188
22189
22190
22191
22192
22193   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
22194
22195
22196
22197
22198
22199
22200
22201   :
22202
22203
22204
22205
22206
22207
22208
22209
22210   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
22211 #include <signal.h>
22212
22213 "
22214 if test "x$ac_cv_type_siginfo_t" = xyes; then :
22215
22216 cat >>confdefs.h <<_ACEOF
22217 #define HAVE_SIGINFO_T 1
22218 _ACEOF
22219
22220
22221 fi
22222
22223   if test $ac_cv_type_siginfo_t = no; then
22224     HAVE_SIGINFO_T=0
22225   fi
22226
22227   fi
22228
22229
22230
22231
22232
22233           GNULIB_SIGACTION=1
22234
22235
22236
22237
22238
22239 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254      if test $gl_cv_have_include_next = yes; then
22255        gl_cv_next_signal_h='<'signal.h'>'
22256      else
22257        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22258 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22259 if ${gl_cv_next_signal_h+:} false; then :
22260   $as_echo_n "(cached) " >&6
22261 else
22262
22263
22264
22265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h.  */
22267 #include <signal.h>
22268 _ACEOF
22269                 case "$host_os" in
22270     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22271     *)    gl_absname_cpp="$ac_cpp" ;;
22272   esac
22273
22274   case "$host_os" in
22275     mingw*)
22276                                           gl_dirsep_regex='[/\\]'
22277       ;;
22278     *)
22279       gl_dirsep_regex='\/'
22280       ;;
22281   esac
22282       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22283   gl_header_literal_regex=`echo 'signal.h' \
22284                            | sed -e "$gl_make_literal_regex_sed"`
22285   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22286       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22287       s|^/[^/]|//&|
22288       p
22289       q
22290     }'
22291
22292         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22293   sed -n "$gl_absolute_header_sed"`
22294
22295            gl_header=$gl_cv_absolute_signal_h
22296            gl_cv_next_signal_h='"'$gl_header'"'
22297
22298
22299 fi
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22301 $as_echo "$gl_cv_next_signal_h" >&6; }
22302      fi
22303      NEXT_SIGNAL_H=$gl_cv_next_signal_h
22304
22305      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22306        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22307        gl_next_as_first_directive='<'signal.h'>'
22308      else
22309        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22310        gl_next_as_first_directive=$gl_cv_next_signal_h
22311      fi
22312      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22313
22314
22315
22316
22317
22318 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22319 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
22320   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22321 #include <signal.h>
22322
22323 "
22324 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22325
22326 else
22327   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22328 fi
22329
22330
22331
22332
22333
22334
22335
22336   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22337 #include <signal.h>
22338
22339 "
22340 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22341
22342 else
22343   HAVE_SIGHANDLER_T=0
22344 fi
22345
22346
22347
22348     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
22349     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22351 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22352 if eval \${$as_gl_Symbol+:} false; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h.  */
22357 #include <signal.h>
22358
22359 int
22360 main ()
22361 {
22362 #undef $gl_func
22363   (void) $gl_func;
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 if ac_fn_c_try_compile "$LINENO"; then :
22369   eval "$as_gl_Symbol=yes"
22370 else
22371   eval "$as_gl_Symbol=no"
22372 fi
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22374 fi
22375 eval ac_res=\$$as_gl_Symbol
22376                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22377 $as_echo "$ac_res" >&6; }
22378     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22379   cat >>confdefs.h <<_ACEOF
22380 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22381 _ACEOF
22382
22383                      eval ac_cv_have_decl_$gl_func=yes
22384 fi
22385       done
22386
22387
22388
22389
22390
22391   if test $gl_cv_type_sigset_t = yes; then
22392     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22393 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22394   gl_cv_func_sigprocmask=1
22395 fi
22396
22397   fi
22398   if test -z "$gl_cv_func_sigprocmask"; then
22399     HAVE_POSIX_SIGNALBLOCKING=0
22400   fi
22401
22402   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22403
22404
22405
22406
22407
22408
22409
22410
22411   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22412
22413     :
22414   fi
22415
22416
22417
22418
22419
22420           GNULIB_SIGPROCMASK=1
22421
22422
22423
22424
22425
22426 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22427
22428
22429
22430
22431   for ac_header in stdint.h
22432 do :
22433   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22434 if test "x$ac_cv_header_stdint_h" = xyes; then :
22435   cat >>confdefs.h <<_ACEOF
22436 #define HAVE_STDINT_H 1
22437 _ACEOF
22438
22439 fi
22440
22441 done
22442
22443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22444 $as_echo_n "checking for SIZE_MAX... " >&6; }
22445 if ${gl_cv_size_max+:} false; then :
22446   $as_echo_n "(cached) " >&6
22447 else
22448
22449     gl_cv_size_max=
22450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h.  */
22452
22453 #include <limits.h>
22454 #if HAVE_STDINT_H
22455 #include <stdint.h>
22456 #endif
22457 #ifdef SIZE_MAX
22458 Found it
22459 #endif
22460
22461 _ACEOF
22462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22463   $EGREP "Found it" >/dev/null 2>&1; then :
22464   gl_cv_size_max=yes
22465 fi
22466 rm -f conftest*
22467
22468     if test -z "$gl_cv_size_max"; then
22469                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
22470 #include <limits.h>"; then :
22471
22472 else
22473   size_t_bits_minus_1=
22474 fi
22475
22476       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
22477
22478 else
22479   fits_in_uint=
22480 fi
22481
22482       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22483         if test $fits_in_uint = 1; then
22484                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h.  */
22486 #include <stddef.h>
22487                  extern size_t foo;
22488                  extern unsigned long foo;
22489
22490 int
22491 main ()
22492 {
22493
22494   ;
22495   return 0;
22496 }
22497 _ACEOF
22498 if ac_fn_c_try_compile "$LINENO"; then :
22499   fits_in_uint=0
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502         fi
22503                                 if test $fits_in_uint = 1; then
22504           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22505         else
22506           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22507         fi
22508       else
22509                 gl_cv_size_max='((size_t)~(size_t)0)'
22510       fi
22511     fi
22512
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22515 $as_echo "$gl_cv_size_max" >&6; }
22516   if test "$gl_cv_size_max" != yes; then
22517
22518 cat >>confdefs.h <<_ACEOF
22519 #define SIZE_MAX $gl_cv_size_max
22520 _ACEOF
22521
22522   fi
22523
22524
22525
22526
22527   gl_cv_func_snprintf_usable=no
22528   for ac_func in snprintf
22529 do :
22530   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22531 if test "x$ac_cv_func_snprintf" = xyes; then :
22532   cat >>confdefs.h <<_ACEOF
22533 #define HAVE_SNPRINTF 1
22534 _ACEOF
22535
22536 fi
22537 done
22538
22539   if test $ac_cv_func_snprintf = yes; then
22540
22541
22542
22543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22544 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22545 if ${gl_cv_func_snprintf_size1+:} false; then :
22546   $as_echo_n "(cached) " >&6
22547 else
22548
22549       if test "$cross_compiling" = yes; then :
22550   gl_cv_func_snprintf_size1="guessing yes"
22551 else
22552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h.  */
22554
22555 #include <stdio.h>
22556 #if HAVE_SNPRINTF
22557 # define my_snprintf snprintf
22558 #else
22559 # include <stdarg.h>
22560 static int my_snprintf (char *buf, int size, const char *format, ...)
22561 {
22562   va_list args;
22563   int ret;
22564   va_start (args, format);
22565   ret = vsnprintf (buf, size, format, args);
22566   va_end (args);
22567   return ret;
22568 }
22569 #endif
22570 int main()
22571 {
22572   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22573   my_snprintf (buf, 1, "%d", 12345);
22574   return buf[1] != 'E';
22575 }
22576 _ACEOF
22577 if ac_fn_c_try_run "$LINENO"; then :
22578   gl_cv_func_snprintf_size1=yes
22579 else
22580   gl_cv_func_snprintf_size1=no
22581 fi
22582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22583   conftest.$ac_objext conftest.beam conftest.$ac_ext
22584 fi
22585
22586
22587 fi
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22589 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22590
22591     case "$gl_cv_func_snprintf_size1" in
22592       *yes)
22593
22594         case "$gl_cv_func_snprintf_retval_c99" in
22595           *yes)
22596
22597
22598      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22599 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22600 if ${gl_cv_func_printf_positions+:} false; then :
22601   $as_echo_n "(cached) " >&6
22602 else
22603
22604       if test "$cross_compiling" = yes; then :
22605
22606          case "$host_os" in
22607            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22608                          gl_cv_func_printf_positions="guessing no";;
22609            beos*)        gl_cv_func_printf_positions="guessing no";;
22610            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22611            *)            gl_cv_func_printf_positions="guessing yes";;
22612          esac
22613
22614 else
22615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h.  */
22617
22618 #include <stdio.h>
22619 #include <string.h>
22620 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22621    dollar expansion (possibly an autoconf bug).  */
22622 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22623 static char buf[100];
22624 int main ()
22625 {
22626   sprintf (buf, format, 33, 55);
22627   return (strcmp (buf, "55 33") != 0);
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_run "$LINENO"; then :
22631   gl_cv_func_printf_positions=yes
22632 else
22633   gl_cv_func_printf_positions=no
22634 fi
22635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22636   conftest.$ac_objext conftest.beam conftest.$ac_ext
22637 fi
22638
22639
22640 fi
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22642 $as_echo "$gl_cv_func_printf_positions" >&6; }
22643
22644             case "$gl_cv_func_printf_positions" in
22645               *yes)
22646                 gl_cv_func_snprintf_usable=yes
22647                 ;;
22648             esac
22649             ;;
22650         esac
22651         ;;
22652     esac
22653   fi
22654   if test $gl_cv_func_snprintf_usable = no; then
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22666
22667   if test $ac_cv_func_snprintf = yes; then
22668     REPLACE_SNPRINTF=1
22669   fi
22670   :
22671
22672   fi
22673
22674   :
22675
22676
22677
22678
22679
22680   if test $ac_cv_have_decl_snprintf = no; then
22681     HAVE_DECL_SNPRINTF=0
22682   fi
22683
22684
22685
22686
22687
22688
22689           GNULIB_SNPRINTF=1
22690
22691
22692
22693
22694
22695 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22696
22697
22698
22699
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define GNULIB_SNPRINTF 1
22703 _ACEOF
22704
22705
22706
22707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22708 $as_echo_n "checking for ssize_t... " >&6; }
22709 if ${gt_cv_ssize_t+:} false; then :
22710   $as_echo_n "(cached) " >&6
22711 else
22712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714 #include <sys/types.h>
22715 int
22716 main ()
22717 {
22718 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22719             return !x;
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 if ac_fn_c_try_compile "$LINENO"; then :
22725   gt_cv_ssize_t=yes
22726 else
22727   gt_cv_ssize_t=no
22728 fi
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22730 fi
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22732 $as_echo "$gt_cv_ssize_t" >&6; }
22733   if test $gt_cv_ssize_t = no; then
22734
22735 $as_echo "#define ssize_t int" >>confdefs.h
22736
22737   fi
22738
22739
22740   STDARG_H=''
22741   NEXT_STDARG_H='<stdarg.h>'
22742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22743 $as_echo_n "checking for va_copy... " >&6; }
22744   if ${gl_cv_func_va_copy+:} false; then :
22745   $as_echo_n "(cached) " >&6
22746 else
22747
22748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h.  */
22750 #include <stdarg.h>
22751 int
22752 main ()
22753 {
22754
22755 #ifndef va_copy
22756 void (*func) (va_list, va_list) = va_copy;
22757 #endif
22758
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 if ac_fn_c_try_compile "$LINENO"; then :
22764   gl_cv_func_va_copy=yes
22765 else
22766   gl_cv_func_va_copy=no
22767 fi
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 fi
22770
22771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22772 $as_echo "$gl_cv_func_va_copy" >&6; }
22773   if test $gl_cv_func_va_copy = no; then
22774                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h.  */
22776 #if defined _AIX && !defined __GNUC__
22777         AIX vaccine
22778        #endif
22779
22780 _ACEOF
22781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22782   $EGREP "vaccine" >/dev/null 2>&1; then :
22783   gl_aixcc=yes
22784 else
22785   gl_aixcc=no
22786 fi
22787 rm -f conftest*
22788
22789     if test $gl_aixcc = yes; then
22790             STDARG_H=stdarg.h
22791
22792
22793
22794
22795
22796
22797
22798
22799      if test $gl_cv_have_include_next = yes; then
22800        gl_cv_next_stdarg_h='<'stdarg.h'>'
22801      else
22802        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22803 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22804 if ${gl_cv_next_stdarg_h+:} false; then :
22805   $as_echo_n "(cached) " >&6
22806 else
22807
22808
22809
22810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22811 /* end confdefs.h.  */
22812 #include <stdarg.h>
22813 _ACEOF
22814                 case "$host_os" in
22815     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22816     *)    gl_absname_cpp="$ac_cpp" ;;
22817   esac
22818
22819   case "$host_os" in
22820     mingw*)
22821                                           gl_dirsep_regex='[/\\]'
22822       ;;
22823     *)
22824       gl_dirsep_regex='\/'
22825       ;;
22826   esac
22827       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22828   gl_header_literal_regex=`echo 'stdarg.h' \
22829                            | sed -e "$gl_make_literal_regex_sed"`
22830   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22831       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22832       s|^/[^/]|//&|
22833       p
22834       q
22835     }'
22836
22837         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22838   sed -n "$gl_absolute_header_sed"`
22839
22840            gl_header=$gl_cv_absolute_stdarg_h
22841            gl_cv_next_stdarg_h='"'$gl_header'"'
22842
22843
22844 fi
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22846 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22847      fi
22848      NEXT_STDARG_H=$gl_cv_next_stdarg_h
22849
22850      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22852        gl_next_as_first_directive='<'stdarg.h'>'
22853      else
22854        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22855        gl_next_as_first_directive=$gl_cv_next_stdarg_h
22856      fi
22857      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22858
22859
22860
22861
22862             if test "$gl_cv_next_stdarg_h" = '""'; then
22863         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22864         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22865       fi
22866     else
22867
22868   saved_as_echo_n="$as_echo_n"
22869   as_echo_n=':'
22870   if ${gl_cv_func___va_copy+:} false; then :
22871   $as_echo_n "(cached) " >&6
22872 else
22873
22874         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875 /* end confdefs.h.  */
22876 #include <stdarg.h>
22877 int
22878 main ()
22879 {
22880
22881 #ifndef __va_copy
22882 error, bail out
22883 #endif
22884
22885   ;
22886   return 0;
22887 }
22888 _ACEOF
22889 if ac_fn_c_try_compile "$LINENO"; then :
22890   gl_cv_func___va_copy=yes
22891 else
22892   gl_cv_func___va_copy=no
22893 fi
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 fi
22896
22897   as_echo_n="$saved_as_echo_n"
22898
22899       if test $gl_cv_func___va_copy = yes; then
22900
22901 $as_echo "#define va_copy __va_copy" >>confdefs.h
22902
22903       else
22904
22905
22906 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22907
22908       fi
22909     fi
22910   fi
22911
22912    if test -n "$STDARG_H"; then
22913   GL_GENERATE_STDARG_H_TRUE=
22914   GL_GENERATE_STDARG_H_FALSE='#'
22915 else
22916   GL_GENERATE_STDARG_H_TRUE='#'
22917   GL_GENERATE_STDARG_H_FALSE=
22918 fi
22919
22920
22921
22922
22923
22924
22925   # Define two additional variables used in the Makefile substitution.
22926
22927   if test "$ac_cv_header_stdbool_h" = yes; then
22928     STDBOOL_H=''
22929   else
22930     STDBOOL_H='stdbool.h'
22931   fi
22932
22933    if test -n "$STDBOOL_H"; then
22934   GL_GENERATE_STDBOOL_H_TRUE=
22935   GL_GENERATE_STDBOOL_H_FALSE='#'
22936 else
22937   GL_GENERATE_STDBOOL_H_TRUE='#'
22938   GL_GENERATE_STDBOOL_H_FALSE=
22939 fi
22940
22941
22942   if test "$ac_cv_type__Bool" = yes; then
22943     HAVE__BOOL=1
22944   else
22945     HAVE__BOOL=0
22946   fi
22947
22948
22949
22950
22951
22952   STDDEF_H=
22953   if test $gt_cv_c_wchar_t = no; then
22954     HAVE_WCHAR_T=0
22955     STDDEF_H=stddef.h
22956   fi
22957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22958 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22959 if ${gl_cv_decl_null_works+:} false; then :
22960   $as_echo_n "(cached) " >&6
22961 else
22962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22963 /* end confdefs.h.  */
22964 #include <stddef.h>
22965       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22966
22967 int
22968 main ()
22969 {
22970
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 if ac_fn_c_try_compile "$LINENO"; then :
22976   gl_cv_decl_null_works=yes
22977 else
22978   gl_cv_decl_null_works=no
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22983 $as_echo "$gl_cv_decl_null_works" >&6; }
22984   if test $gl_cv_decl_null_works = no; then
22985     REPLACE_NULL=1
22986     STDDEF_H=stddef.h
22987   fi
22988
22989    if test -n "$STDDEF_H"; then
22990   GL_GENERATE_STDDEF_H_TRUE=
22991   GL_GENERATE_STDDEF_H_FALSE='#'
22992 else
22993   GL_GENERATE_STDDEF_H_TRUE='#'
22994   GL_GENERATE_STDDEF_H_FALSE=
22995 fi
22996
22997   if test -n "$STDDEF_H"; then
22998
22999
23000
23001
23002
23003
23004
23005
23006      if test $gl_cv_have_include_next = yes; then
23007        gl_cv_next_stddef_h='<'stddef.h'>'
23008      else
23009        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23010 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23011 if ${gl_cv_next_stddef_h+:} false; then :
23012   $as_echo_n "(cached) " >&6
23013 else
23014
23015
23016
23017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h.  */
23019 #include <stddef.h>
23020 _ACEOF
23021                 case "$host_os" in
23022     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23023     *)    gl_absname_cpp="$ac_cpp" ;;
23024   esac
23025
23026   case "$host_os" in
23027     mingw*)
23028                                           gl_dirsep_regex='[/\\]'
23029       ;;
23030     *)
23031       gl_dirsep_regex='\/'
23032       ;;
23033   esac
23034       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23035   gl_header_literal_regex=`echo 'stddef.h' \
23036                            | sed -e "$gl_make_literal_regex_sed"`
23037   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23038       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23039       s|^/[^/]|//&|
23040       p
23041       q
23042     }'
23043
23044         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23045   sed -n "$gl_absolute_header_sed"`
23046
23047            gl_header=$gl_cv_absolute_stddef_h
23048            gl_cv_next_stddef_h='"'$gl_header'"'
23049
23050
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23053 $as_echo "$gl_cv_next_stddef_h" >&6; }
23054      fi
23055      NEXT_STDDEF_H=$gl_cv_next_stddef_h
23056
23057      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23058        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23059        gl_next_as_first_directive='<'stddef.h'>'
23060      else
23061        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23062        gl_next_as_first_directive=$gl_cv_next_stddef_h
23063      fi
23064      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23065
23066
23067
23068
23069   fi
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082      if test $gl_cv_have_include_next = yes; then
23083        gl_cv_next_stdio_h='<'stdio.h'>'
23084      else
23085        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23086 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23087 if ${gl_cv_next_stdio_h+:} false; then :
23088   $as_echo_n "(cached) " >&6
23089 else
23090
23091
23092
23093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h.  */
23095 #include <stdio.h>
23096 _ACEOF
23097                 case "$host_os" in
23098     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23099     *)    gl_absname_cpp="$ac_cpp" ;;
23100   esac
23101
23102   case "$host_os" in
23103     mingw*)
23104                                           gl_dirsep_regex='[/\\]'
23105       ;;
23106     *)
23107       gl_dirsep_regex='\/'
23108       ;;
23109   esac
23110       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23111   gl_header_literal_regex=`echo 'stdio.h' \
23112                            | sed -e "$gl_make_literal_regex_sed"`
23113   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23114       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23115       s|^/[^/]|//&|
23116       p
23117       q
23118     }'
23119
23120         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23121   sed -n "$gl_absolute_header_sed"`
23122
23123            gl_header=$gl_cv_absolute_stdio_h
23124            gl_cv_next_stdio_h='"'$gl_header'"'
23125
23126
23127 fi
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23129 $as_echo "$gl_cv_next_stdio_h" >&6; }
23130      fi
23131      NEXT_STDIO_H=$gl_cv_next_stdio_h
23132
23133      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23134        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23135        gl_next_as_first_directive='<'stdio.h'>'
23136      else
23137        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23138        gl_next_as_first_directive=$gl_cv_next_stdio_h
23139      fi
23140      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23141
23142
23143
23144
23145
23146       GNULIB_FSCANF=1
23147
23148
23149 cat >>confdefs.h <<_ACEOF
23150 #define GNULIB_FSCANF 1
23151 _ACEOF
23152
23153
23154   GNULIB_SCANF=1
23155
23156
23157 cat >>confdefs.h <<_ACEOF
23158 #define GNULIB_SCANF 1
23159 _ACEOF
23160
23161
23162   GNULIB_FGETC=1
23163   GNULIB_GETC=1
23164   GNULIB_GETCHAR=1
23165   GNULIB_FGETS=1
23166   GNULIB_FREAD=1
23167
23168
23169       GNULIB_FPRINTF=1
23170   GNULIB_PRINTF=1
23171   GNULIB_VFPRINTF=1
23172   GNULIB_VPRINTF=1
23173   GNULIB_FPUTC=1
23174   GNULIB_PUTC=1
23175   GNULIB_PUTCHAR=1
23176   GNULIB_FPUTS=1
23177   GNULIB_PUTS=1
23178   GNULIB_FWRITE=1
23179
23180
23181
23182
23183     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
23184     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23186 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23187 if eval \${$as_gl_Symbol+:} false; then :
23188   $as_echo_n "(cached) " >&6
23189 else
23190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h.  */
23192 #include <stdio.h>
23193
23194 int
23195 main ()
23196 {
23197 #undef $gl_func
23198   (void) $gl_func;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204   eval "$as_gl_Symbol=yes"
23205 else
23206   eval "$as_gl_Symbol=no"
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 fi
23210 eval ac_res=\$$as_gl_Symbol
23211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23212 $as_echo "$ac_res" >&6; }
23213     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23214   cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23216 _ACEOF
23217
23218                      eval ac_cv_have_decl_$gl_func=yes
23219 fi
23220       done
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233      if test $gl_cv_have_include_next = yes; then
23234        gl_cv_next_stdlib_h='<'stdlib.h'>'
23235      else
23236        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23237 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23238 if ${gl_cv_next_stdlib_h+:} false; then :
23239   $as_echo_n "(cached) " >&6
23240 else
23241
23242
23243
23244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h.  */
23246 #include <stdlib.h>
23247 _ACEOF
23248                 case "$host_os" in
23249     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23250     *)    gl_absname_cpp="$ac_cpp" ;;
23251   esac
23252
23253   case "$host_os" in
23254     mingw*)
23255                                           gl_dirsep_regex='[/\\]'
23256       ;;
23257     *)
23258       gl_dirsep_regex='\/'
23259       ;;
23260   esac
23261       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23262   gl_header_literal_regex=`echo 'stdlib.h' \
23263                            | sed -e "$gl_make_literal_regex_sed"`
23264   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23265       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23266       s|^/[^/]|//&|
23267       p
23268       q
23269     }'
23270
23271         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23272   sed -n "$gl_absolute_header_sed"`
23273
23274            gl_header=$gl_cv_absolute_stdlib_h
23275            gl_cv_next_stdlib_h='"'$gl_header'"'
23276
23277
23278 fi
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23280 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23281      fi
23282      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23283
23284      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23285        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23286        gl_next_as_first_directive='<'stdlib.h'>'
23287      else
23288        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23289        gl_next_as_first_directive=$gl_cv_next_stdlib_h
23290      fi
23291      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23292
23293
23294
23295
23296
23297
23298     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
23299     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23301 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23302 if eval \${$as_gl_Symbol+:} false; then :
23303   $as_echo_n "(cached) " >&6
23304 else
23305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23306 /* end confdefs.h.  */
23307 #include <stdlib.h>
23308 #if HAVE_SYS_LOADAVG_H
23309 # include <sys/loadavg.h>
23310 #endif
23311 #if HAVE_RANDOM_H
23312 # include <random.h>
23313 #endif
23314
23315 int
23316 main ()
23317 {
23318 #undef $gl_func
23319   (void) $gl_func;
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 if ac_fn_c_try_compile "$LINENO"; then :
23325   eval "$as_gl_Symbol=yes"
23326 else
23327   eval "$as_gl_Symbol=no"
23328 fi
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 fi
23331 eval ac_res=\$$as_gl_Symbol
23332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23333 $as_echo "$ac_res" >&6; }
23334     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23335   cat >>confdefs.h <<_ACEOF
23336 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23337 _ACEOF
23338
23339                      eval ac_cv_have_decl_$gl_func=yes
23340 fi
23341       done
23342
23343
23344
23345
23346
23347
23348
23349   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23351 $as_echo_n "checking for working strerror function... " >&6; }
23352 if ${gl_cv_func_working_strerror+:} false; then :
23353   $as_echo_n "(cached) " >&6
23354 else
23355   if test "$cross_compiling" = yes; then :
23356   case "$host_os" in
23357                    # Guess yes on glibc systems.
23358            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
23359                    # If we don't know, assume the worst.
23360            *)      gl_cv_func_working_strerror="guessing no" ;;
23361          esac
23362
23363 else
23364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h.  */
23366 #include <string.h>
23367
23368 int
23369 main ()
23370 {
23371 if (!*strerror (-2)) return 1;
23372   ;
23373   return 0;
23374 }
23375 _ACEOF
23376 if ac_fn_c_try_run "$LINENO"; then :
23377   gl_cv_func_working_strerror=yes
23378 else
23379   gl_cv_func_working_strerror=no
23380 fi
23381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23382   conftest.$ac_objext conftest.beam conftest.$ac_ext
23383 fi
23384
23385
23386 fi
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23388 $as_echo "$gl_cv_func_working_strerror" >&6; }
23389     case "$gl_cv_func_working_strerror" in
23390       *yes) ;;
23391       *)
23392                         REPLACE_STRERROR=1
23393         ;;
23394     esac
23395
23396   else
23397             REPLACE_STRERROR=1
23398   fi
23399
23400   if test $REPLACE_STRERROR = 1; then
23401
23402
23403
23404
23405
23406
23407
23408
23409   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
23410
23411   fi
23412
23413
23414 cat >>confdefs.h <<_ACEOF
23415 #define GNULIB_STRERROR 1
23416 _ACEOF
23417
23418
23419
23420
23421
23422
23423
23424           GNULIB_STRERROR=1
23425
23426
23427
23428
23429
23430 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23431
23432
23433
23434
23435
23436   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
23437
23438
23439
23440
23441
23442
23443
23444
23445   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
23446
23447
23448
23449
23450
23451   :
23452
23453
23454
23455
23456
23457   if test $ac_cv_header_sys_socket_h != yes; then
23458                     for ac_header in winsock2.h
23459 do :
23460   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23461 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23462   cat >>confdefs.h <<_ACEOF
23463 #define HAVE_WINSOCK2_H 1
23464 _ACEOF
23465
23466 fi
23467
23468 done
23469
23470   fi
23471   if test "$ac_cv_header_winsock2_h" = yes; then
23472     HAVE_WINSOCK2_H=1
23473     UNISTD_H_HAVE_WINSOCK2_H=1
23474     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23475   else
23476     HAVE_WINSOCK2_H=0
23477   fi
23478
23479
23480   fi
23481
23482
23483
23484
23485
23486
23487
23488
23489   :
23490
23491
23492
23493
23494
23495
23496   :
23497
23498
23499
23500
23501
23502   if test $ac_cv_have_decl_strndup = no; then
23503     HAVE_DECL_STRNDUP=0
23504   fi
23505
23506   if test $ac_cv_func_strndup = yes; then
23507     HAVE_STRNDUP=1
23508     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23510 $as_echo_n "checking for working strndup... " >&6; }
23511 if ${gl_cv_func_strndup_works+:} false; then :
23512   $as_echo_n "(cached) " >&6
23513 else
23514   if test "$cross_compiling" = yes; then :
23515
23516           case $host_os in
23517             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23518             *)               gl_cv_func_strndup_works="guessing yes";;
23519           esac
23520
23521 else
23522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h.  */
23524
23525          #include <string.h>
23526                            #include <stdlib.h>
23527 int
23528 main ()
23529 {
23530
23531 #if !HAVE_DECL_STRNDUP
23532   extern
23533   #ifdef __cplusplus
23534   "C"
23535   #endif
23536   char *strndup (const char *, size_t);
23537 #endif
23538   char *s;
23539   s = strndup ("some longer string", 15);
23540   free (s);
23541   s = strndup ("shorter string", 13);
23542   return s[13] != '\0';
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 if ac_fn_c_try_run "$LINENO"; then :
23548   gl_cv_func_strndup_works=yes
23549 else
23550   gl_cv_func_strndup_works=no
23551 fi
23552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23553   conftest.$ac_objext conftest.beam conftest.$ac_ext
23554 fi
23555
23556 fi
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23558 $as_echo "$gl_cv_func_strndup_works" >&6; }
23559     case $gl_cv_func_strndup_works in
23560       *no) REPLACE_STRNDUP=1 ;;
23561     esac
23562   else
23563     HAVE_STRNDUP=0
23564   fi
23565
23566   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23567
23568
23569
23570
23571
23572
23573
23574
23575   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23576
23577   fi
23578
23579
23580
23581
23582
23583           GNULIB_STRNDUP=1
23584
23585
23586
23587
23588
23589 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599   :
23600
23601
23602
23603
23604
23605   if test $ac_cv_have_decl_strnlen = no; then
23606     HAVE_DECL_STRNLEN=0
23607   else
23608
23609          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23610 $as_echo_n "checking for working strnlen... " >&6; }
23611 if ${ac_cv_func_strnlen_working+:} false; then :
23612   $as_echo_n "(cached) " >&6
23613 else
23614   if test "$cross_compiling" = yes; then :
23615   # Guess no on AIX systems, yes otherwise.
23616                 case "$host_os" in
23617                   aix*) ac_cv_func_strnlen_working=no;;
23618                   *)    ac_cv_func_strnlen_working=yes;;
23619                 esac
23620 else
23621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h.  */
23623 $ac_includes_default
23624 int
23625 main ()
23626 {
23627
23628 #define S "foobar"
23629 #define S_LEN (sizeof S - 1)
23630
23631   /* At least one implementation is buggy: that of AIX 4.3 would
23632      give strnlen (S, 1) == 3.  */
23633
23634   int i;
23635   for (i = 0; i < S_LEN + 1; ++i)
23636     {
23637       int expected = i <= S_LEN ? i : S_LEN;
23638       if (strnlen (S, i) != expected)
23639         return 1;
23640     }
23641   return 0;
23642
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 if ac_fn_c_try_run "$LINENO"; then :
23648   ac_cv_func_strnlen_working=yes
23649 else
23650   ac_cv_func_strnlen_working=no
23651 fi
23652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23653   conftest.$ac_objext conftest.beam conftest.$ac_ext
23654 fi
23655
23656 fi
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23658 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23659 test $ac_cv_func_strnlen_working = no && :
23660
23661
23662     if test $ac_cv_func_strnlen_working = no; then
23663       REPLACE_STRNLEN=1
23664     fi
23665   fi
23666
23667   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23668
23669
23670
23671
23672
23673
23674
23675
23676   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23677
23678     :
23679   fi
23680
23681
23682
23683
23684
23685           GNULIB_STRNLEN=1
23686
23687
23688
23689
23690
23691 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701   :
23702
23703
23704
23705
23706
23707   if test $ac_cv_have_decl_strsignal = no; then
23708     HAVE_DECL_STRSIGNAL=0
23709   fi
23710
23711   for ac_func in strsignal
23712 do :
23713   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23714 if test "x$ac_cv_func_strsignal" = xyes; then :
23715   cat >>confdefs.h <<_ACEOF
23716 #define HAVE_STRSIGNAL 1
23717 _ACEOF
23718
23719 fi
23720 done
23721
23722   if test $ac_cv_func_strsignal = yes; then
23723     HAVE_STRSIGNAL=1
23724             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23725 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23726 if ${gl_cv_func_working_strsignal+:} false; then :
23727   $as_echo_n "(cached) " >&6
23728 else
23729   if test "$cross_compiling" = yes; then :
23730   case "$host_os" in
23731             solaris* | aix*) gl_cv_func_working_strsignal=no;;
23732             *)               gl_cv_func_working_strsignal="guessing yes";;
23733           esac
23734 else
23735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h.  */
23737 #include <string.h>
23738 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23739
23740 int
23741 main ()
23742 {
23743 int result = 0;
23744               char *s = strsignal (-1);
23745               if (s == (char *) 0)
23746                 result |= 1;
23747               if (s == (char *) -1)
23748                 result |= 2;
23749               return result;
23750
23751   ;
23752   return 0;
23753 }
23754 _ACEOF
23755 if ac_fn_c_try_run "$LINENO"; then :
23756   gl_cv_func_working_strsignal=yes
23757 else
23758   gl_cv_func_working_strsignal=no
23759 fi
23760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23761   conftest.$ac_objext conftest.beam conftest.$ac_ext
23762 fi
23763
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23766 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23767     if test "$gl_cv_func_working_strsignal" = no; then
23768       REPLACE_STRSIGNAL=1
23769     fi
23770   else
23771     HAVE_STRSIGNAL=0
23772   fi
23773
23774   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23775
23776
23777
23778
23779
23780
23781
23782
23783   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23784
23785
23786
23787   :
23788
23789
23790
23791
23792
23793
23794   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23795 "
23796 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23797   ac_have_decl=1
23798 else
23799   ac_have_decl=0
23800 fi
23801
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23804 _ACEOF
23805
23806
23807   fi
23808
23809
23810
23811
23812
23813           GNULIB_STRSIGNAL=1
23814
23815
23816
23817
23818
23819 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23820
23821
23822
23823
23824
23825
23826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23827 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23828 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23829   $as_echo_n "(cached) " >&6
23830 else
23831
23832                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h.  */
23834 #include <sys/select.h>
23835 int
23836 main ()
23837 {
23838 struct timeval b;
23839   ;
23840   return 0;
23841 }
23842 _ACEOF
23843 if ac_fn_c_try_compile "$LINENO"; then :
23844   gl_cv_header_sys_select_h_selfcontained=yes
23845 else
23846   gl_cv_header_sys_select_h_selfcontained=no
23847 fi
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23850         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23851 /* end confdefs.h.  */
23852 #include <sys/select.h>
23853 int
23854 main ()
23855 {
23856 int memset; int bzero;
23857   ;
23858   return 0;
23859 }
23860
23861 _ACEOF
23862 if ac_fn_c_try_compile "$LINENO"; then :
23863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865 #include <sys/select.h>
23866 int
23867 main ()
23868 {
23869
23870                   #undef memset
23871                   #define memset nonexistent_memset
23872                   extern
23873                   #ifdef __cplusplus
23874                   "C"
23875                   #endif
23876                   void *memset (void *, int, unsigned long);
23877                   #undef bzero
23878                   #define bzero nonexistent_bzero
23879                   extern
23880                   #ifdef __cplusplus
23881                   "C"
23882                   #endif
23883                   void bzero (void *, unsigned long);
23884                   fd_set fds;
23885                   FD_ZERO (&fds);
23886
23887   ;
23888   return 0;
23889 }
23890
23891 _ACEOF
23892 if ac_fn_c_try_link "$LINENO"; then :
23893
23894 else
23895   gl_cv_header_sys_select_h_selfcontained=no
23896 fi
23897 rm -f core conftest.err conftest.$ac_objext \
23898     conftest$ac_exeext conftest.$ac_ext
23899
23900 fi
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902       fi
23903
23904 fi
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23906 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23907
23908
23909
23910
23911
23912
23913   :
23914
23915
23916
23917
23918
23919
23920
23921
23922      if test $gl_cv_have_include_next = yes; then
23923        gl_cv_next_sys_select_h='<'sys/select.h'>'
23924      else
23925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23926 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23927 if ${gl_cv_next_sys_select_h+:} false; then :
23928   $as_echo_n "(cached) " >&6
23929 else
23930
23931              if test $ac_cv_header_sys_select_h = yes; then
23932
23933
23934
23935
23936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h.  */
23938 #include <sys/select.h>
23939 _ACEOF
23940                 case "$host_os" in
23941     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23942     *)    gl_absname_cpp="$ac_cpp" ;;
23943   esac
23944
23945   case "$host_os" in
23946     mingw*)
23947                                           gl_dirsep_regex='[/\\]'
23948       ;;
23949     *)
23950       gl_dirsep_regex='\/'
23951       ;;
23952   esac
23953       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23954   gl_header_literal_regex=`echo 'sys/select.h' \
23955                            | sed -e "$gl_make_literal_regex_sed"`
23956   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23957       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23958       s|^/[^/]|//&|
23959       p
23960       q
23961     }'
23962
23963         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23964   sed -n "$gl_absolute_header_sed"`
23965
23966            gl_header=$gl_cv_absolute_sys_select_h
23967            gl_cv_next_sys_select_h='"'$gl_header'"'
23968           else
23969                gl_cv_next_sys_select_h='<'sys/select.h'>'
23970              fi
23971
23972
23973 fi
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23975 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23976      fi
23977      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23978
23979      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23980        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23981        gl_next_as_first_directive='<'sys/select.h'>'
23982      else
23983        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23984        gl_next_as_first_directive=$gl_cv_next_sys_select_h
23985      fi
23986      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23987
23988
23989
23990
23991   if test $ac_cv_header_sys_select_h = yes; then
23992     HAVE_SYS_SELECT_H=1
23993   else
23994     HAVE_SYS_SELECT_H=0
23995   fi
23996
23997
23998
23999
24000
24001   :
24002
24003
24004
24005
24006
24007   if test $ac_cv_header_sys_socket_h != yes; then
24008                     for ac_header in winsock2.h
24009 do :
24010   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24011 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24012   cat >>confdefs.h <<_ACEOF
24013 #define HAVE_WINSOCK2_H 1
24014 _ACEOF
24015
24016 fi
24017
24018 done
24019
24020   fi
24021   if test "$ac_cv_header_winsock2_h" = yes; then
24022     HAVE_WINSOCK2_H=1
24023     UNISTD_H_HAVE_WINSOCK2_H=1
24024     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24025   else
24026     HAVE_WINSOCK2_H=0
24027   fi
24028
24029
24030
24031
24032     for gl_func in pselect select; do
24033     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24035 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24036 if eval \${$as_gl_Symbol+:} false; then :
24037   $as_echo_n "(cached) " >&6
24038 else
24039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h.  */
24041
24042 /* Some systems require prerequisite headers.  */
24043 #include <sys/types.h>
24044 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
24045 # include <sys/time.h>
24046 #endif
24047 #include <sys/select.h>
24048
24049 int
24050 main ()
24051 {
24052 #undef $gl_func
24053   (void) $gl_func;
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 if ac_fn_c_try_compile "$LINENO"; then :
24059   eval "$as_gl_Symbol=yes"
24060 else
24061   eval "$as_gl_Symbol=no"
24062 fi
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064 fi
24065 eval ac_res=\$$as_gl_Symbol
24066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24067 $as_echo "$ac_res" >&6; }
24068     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24069   cat >>confdefs.h <<_ACEOF
24070 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24071 _ACEOF
24072
24073                      eval ac_cv_have_decl_$gl_func=yes
24074 fi
24075       done
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090   :
24091
24092
24093
24094
24095
24096
24097
24098
24099      if test $gl_cv_have_include_next = yes; then
24100        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24101      else
24102        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24103 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24104 if ${gl_cv_next_sys_stat_h+:} false; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107
24108              if test $ac_cv_header_sys_stat_h = yes; then
24109
24110
24111
24112
24113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h.  */
24115 #include <sys/stat.h>
24116 _ACEOF
24117                 case "$host_os" in
24118     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24119     *)    gl_absname_cpp="$ac_cpp" ;;
24120   esac
24121
24122   case "$host_os" in
24123     mingw*)
24124                                           gl_dirsep_regex='[/\\]'
24125       ;;
24126     *)
24127       gl_dirsep_regex='\/'
24128       ;;
24129   esac
24130       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24131   gl_header_literal_regex=`echo 'sys/stat.h' \
24132                            | sed -e "$gl_make_literal_regex_sed"`
24133   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24134       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24135       s|^/[^/]|//&|
24136       p
24137       q
24138     }'
24139
24140         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24141   sed -n "$gl_absolute_header_sed"`
24142
24143            gl_header=$gl_cv_absolute_sys_stat_h
24144            gl_cv_next_sys_stat_h='"'$gl_header'"'
24145           else
24146                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24147              fi
24148
24149
24150 fi
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24152 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24153      fi
24154      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24155
24156      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24157        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24158        gl_next_as_first_directive='<'sys/stat.h'>'
24159      else
24160        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24161        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24162      fi
24163      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24176
24177 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24178
24179   fi
24180
24181       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24182      #include <sys/stat.h>
24183 "
24184 if test "x$ac_cv_type_nlink_t" = xyes; then :
24185
24186 else
24187
24188 $as_echo "#define nlink_t int" >>confdefs.h
24189
24190 fi
24191
24192
24193
24194     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24195     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24197 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24198 if eval \${$as_gl_Symbol+:} false; then :
24199   $as_echo_n "(cached) " >&6
24200 else
24201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h.  */
24203 #include <sys/stat.h>
24204
24205 int
24206 main ()
24207 {
24208 #undef $gl_func
24209   (void) $gl_func;
24210   ;
24211   return 0;
24212 }
24213 _ACEOF
24214 if ac_fn_c_try_compile "$LINENO"; then :
24215   eval "$as_gl_Symbol=yes"
24216 else
24217   eval "$as_gl_Symbol=no"
24218 fi
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 fi
24221 eval ac_res=\$$as_gl_Symbol
24222                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24223 $as_echo "$ac_res" >&6; }
24224     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24225   cat >>confdefs.h <<_ACEOF
24226 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24227 _ACEOF
24228
24229                      eval ac_cv_have_decl_$gl_func=yes
24230 fi
24231       done
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250   :
24251
24252
24253
24254
24255
24256
24257
24258
24259      if test $gl_cv_have_include_next = yes; then
24260        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24261      else
24262        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
24263 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
24264 if ${gl_cv_next_sys_wait_h+:} false; then :
24265   $as_echo_n "(cached) " >&6
24266 else
24267
24268              if test $ac_cv_header_sys_wait_h = yes; then
24269
24270
24271
24272
24273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24274 /* end confdefs.h.  */
24275 #include <sys/wait.h>
24276 _ACEOF
24277                 case "$host_os" in
24278     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24279     *)    gl_absname_cpp="$ac_cpp" ;;
24280   esac
24281
24282   case "$host_os" in
24283     mingw*)
24284                                           gl_dirsep_regex='[/\\]'
24285       ;;
24286     *)
24287       gl_dirsep_regex='\/'
24288       ;;
24289   esac
24290       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24291   gl_header_literal_regex=`echo 'sys/wait.h' \
24292                            | sed -e "$gl_make_literal_regex_sed"`
24293   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24294       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24295       s|^/[^/]|//&|
24296       p
24297       q
24298     }'
24299
24300         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24301   sed -n "$gl_absolute_header_sed"`
24302
24303            gl_header=$gl_cv_absolute_sys_wait_h
24304            gl_cv_next_sys_wait_h='"'$gl_header'"'
24305           else
24306                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24307              fi
24308
24309
24310 fi
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
24312 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
24313      fi
24314      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
24315
24316      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24317        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24318        gl_next_as_first_directive='<'sys/wait.h'>'
24319      else
24320        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24321        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
24322      fi
24323      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
24324
24325
24326
24327
24328
24329
24330
24331
24332     for gl_func in waitpid; do
24333     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24335 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24336 if eval \${$as_gl_Symbol+:} false; then :
24337   $as_echo_n "(cached) " >&6
24338 else
24339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340 /* end confdefs.h.  */
24341 #include <sys/wait.h>
24342 int
24343 main ()
24344 {
24345 #undef $gl_func
24346   (void) $gl_func;
24347   ;
24348   return 0;
24349 }
24350 _ACEOF
24351 if ac_fn_c_try_compile "$LINENO"; then :
24352   eval "$as_gl_Symbol=yes"
24353 else
24354   eval "$as_gl_Symbol=no"
24355 fi
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 fi
24358 eval ac_res=\$$as_gl_Symbol
24359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24360 $as_echo "$ac_res" >&6; }
24361     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24362   cat >>confdefs.h <<_ACEOF
24363 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24364 _ACEOF
24365
24366                      eval ac_cv_have_decl_$gl_func=yes
24367 fi
24368       done
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391   :
24392
24393
24394
24395
24396
24397
24398
24399
24400      if test $gl_cv_have_include_next = yes; then
24401        gl_cv_next_unistd_h='<'unistd.h'>'
24402      else
24403        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24404 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24405 if ${gl_cv_next_unistd_h+:} false; then :
24406   $as_echo_n "(cached) " >&6
24407 else
24408
24409              if test $ac_cv_header_unistd_h = yes; then
24410
24411
24412
24413
24414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h.  */
24416 #include <unistd.h>
24417 _ACEOF
24418                 case "$host_os" in
24419     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24420     *)    gl_absname_cpp="$ac_cpp" ;;
24421   esac
24422
24423   case "$host_os" in
24424     mingw*)
24425                                           gl_dirsep_regex='[/\\]'
24426       ;;
24427     *)
24428       gl_dirsep_regex='\/'
24429       ;;
24430   esac
24431       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24432   gl_header_literal_regex=`echo 'unistd.h' \
24433                            | sed -e "$gl_make_literal_regex_sed"`
24434   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24435       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24436       s|^/[^/]|//&|
24437       p
24438       q
24439     }'
24440
24441         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24442   sed -n "$gl_absolute_header_sed"`
24443
24444            gl_header=$gl_cv_absolute_unistd_h
24445            gl_cv_next_unistd_h='"'$gl_header'"'
24446           else
24447                gl_cv_next_unistd_h='<'unistd.h'>'
24448              fi
24449
24450
24451 fi
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24453 $as_echo "$gl_cv_next_unistd_h" >&6; }
24454      fi
24455      NEXT_UNISTD_H=$gl_cv_next_unistd_h
24456
24457      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24458        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24459        gl_next_as_first_directive='<'unistd.h'>'
24460      else
24461        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24462        gl_next_as_first_directive=$gl_cv_next_unistd_h
24463      fi
24464      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24465
24466
24467
24468
24469   if test $ac_cv_header_unistd_h = yes; then
24470     HAVE_UNISTD_H=1
24471   else
24472     HAVE_UNISTD_H=0
24473   fi
24474
24475
24476
24477
24478
24479
24480
24481     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
24482     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24484 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24485 if eval \${$as_gl_Symbol+:} false; then :
24486   $as_echo_n "(cached) " >&6
24487 else
24488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489 /* end confdefs.h.  */
24490
24491 #if HAVE_UNISTD_H
24492 # include <unistd.h>
24493 #endif
24494 /* Some systems declare various items in the wrong headers.  */
24495 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24496 # include <fcntl.h>
24497 # include <stdio.h>
24498 # include <stdlib.h>
24499 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24500 #  include <io.h>
24501 # endif
24502 #endif
24503
24504 int
24505 main ()
24506 {
24507 #undef $gl_func
24508   (void) $gl_func;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 if ac_fn_c_try_compile "$LINENO"; then :
24514   eval "$as_gl_Symbol=yes"
24515 else
24516   eval "$as_gl_Symbol=no"
24517 fi
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 fi
24520 eval ac_res=\$$as_gl_Symbol
24521                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24522 $as_echo "$ac_res" >&6; }
24523     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24524   cat >>confdefs.h <<_ACEOF
24525 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24526 _ACEOF
24527
24528                      eval ac_cv_have_decl_$gl_func=yes
24529 fi
24530       done
24531
24532
24533
24534
24535
24536   :
24537
24538
24539
24540
24541
24542   if test $ac_cv_have_decl_unsetenv = no; then
24543     HAVE_DECL_UNSETENV=0
24544   fi
24545   for ac_func in unsetenv
24546 do :
24547   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24548 if test "x$ac_cv_func_unsetenv" = xyes; then :
24549   cat >>confdefs.h <<_ACEOF
24550 #define HAVE_UNSETENV 1
24551 _ACEOF
24552
24553 fi
24554 done
24555
24556   if test $ac_cv_func_unsetenv = no; then
24557     HAVE_UNSETENV=0
24558   else
24559     HAVE_UNSETENV=1
24560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24561 $as_echo_n "checking for unsetenv() return type... " >&6; }
24562 if ${gt_cv_func_unsetenv_ret+:} false; then :
24563   $as_echo_n "(cached) " >&6
24564 else
24565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566 /* end confdefs.h.  */
24567
24568 #undef _BSD
24569 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24570 #include <stdlib.h>
24571 extern
24572 #ifdef __cplusplus
24573 "C"
24574 #endif
24575 int unsetenv (const char *name);
24576
24577 int
24578 main ()
24579 {
24580
24581   ;
24582   return 0;
24583 }
24584 _ACEOF
24585 if ac_fn_c_try_compile "$LINENO"; then :
24586   gt_cv_func_unsetenv_ret='int'
24587 else
24588   gt_cv_func_unsetenv_ret='void'
24589 fi
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 fi
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24593 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24594     if test $gt_cv_func_unsetenv_ret = 'void'; then
24595
24596 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24597
24598       REPLACE_UNSETENV=1
24599     fi
24600
24601                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24602 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24603 if ${gl_cv_func_unsetenv_works+:} false; then :
24604   $as_echo_n "(cached) " >&6
24605 else
24606   if test "$cross_compiling" = yes; then :
24607   case "$host_os" in
24608                  # Guess yes on glibc systems.
24609          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24610                  # If we don't know, assume the worst.
24611          *)      gl_cv_func_unsetenv_works="guessing no" ;;
24612        esac
24613
24614 else
24615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24616 /* end confdefs.h.  */
24617
24618        #include <stdlib.h>
24619        #include <errno.h>
24620        extern char **environ;
24621
24622 int
24623 main ()
24624 {
24625
24626        char entry1[] = "a=1";
24627        char entry2[] = "b=2";
24628        char *env[] = { entry1, entry2, NULL };
24629        if (putenv ((char *) "a=1")) return 1;
24630        if (putenv (entry2)) return 2;
24631        entry2[0] = 'a';
24632        unsetenv ("a");
24633        if (getenv ("a")) return 3;
24634        if (!unsetenv ("") || errno != EINVAL) return 4;
24635        entry2[0] = 'b';
24636        environ = env;
24637        if (!getenv ("a")) return 5;
24638        entry2[0] = 'a';
24639        unsetenv ("a");
24640        if (getenv ("a")) return 6;
24641
24642   ;
24643   return 0;
24644 }
24645 _ACEOF
24646 if ac_fn_c_try_run "$LINENO"; then :
24647   gl_cv_func_unsetenv_works=yes
24648 else
24649   gl_cv_func_unsetenv_works=no
24650 fi
24651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24652   conftest.$ac_objext conftest.beam conftest.$ac_ext
24653 fi
24654
24655 fi
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24657 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24658     case "$gl_cv_func_unsetenv_works" in
24659       *yes) ;;
24660       *)
24661         REPLACE_UNSETENV=1
24662         ;;
24663     esac
24664   fi
24665
24666   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24667
24668
24669
24670
24671
24672
24673
24674
24675   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24676
24677
24678
24679
24680   :
24681
24682
24683
24684
24685
24686
24687   fi
24688
24689
24690
24691
24692
24693           GNULIB_UNSETENV=1
24694
24695
24696
24697
24698
24699 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24700
24701
24702
24703
24704
24705   :
24706
24707
24708
24709
24710
24711   if test $ac_cv_func_vasnprintf = no; then
24712
24713
24714   :
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24759
24760   if test $ac_cv_func_vasnprintf = yes; then
24761
24762 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24763
24764   fi
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24777 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24778
24779 else
24780
24781 $as_echo "#define ptrdiff_t long" >>confdefs.h
24782
24783
24784 fi
24785
24786
24787
24788
24789
24790
24791
24792   fi
24793
24794
24795   for ac_func in vasprintf
24796 do :
24797   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24798 if test "x$ac_cv_func_vasprintf" = xyes; then :
24799   cat >>confdefs.h <<_ACEOF
24800 #define HAVE_VASPRINTF 1
24801 _ACEOF
24802
24803 fi
24804 done
24805
24806   if test $ac_cv_func_vasprintf = no; then
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24827
24828
24829   if test $ac_cv_func_vasprintf = yes; then
24830     REPLACE_VASPRINTF=1
24831   else
24832     HAVE_VASPRINTF=0
24833   fi
24834
24835
24836
24837
24838
24839
24840
24841
24842   fi
24843
24844
24845
24846
24847
24848
24849           GNULIB_VASPRINTF=1
24850
24851
24852
24853
24854
24855 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24856
24857
24858
24859
24860
24861   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24862
24863
24864
24865   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24866
24867
24868
24869   HAVE_WAITPID=1
24870   case $host_os in
24871     mingw*) HAVE_WAITPID=0 ;;
24872   esac
24873
24874   if test $HAVE_WAITPID = 0; then
24875
24876
24877
24878
24879
24880
24881
24882
24883   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24884
24885   fi
24886
24887
24888
24889
24890
24891           GNULIB_WAITPID=1
24892
24893
24894
24895
24896
24897 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910   :
24911
24912
24913
24914
24915
24916
24917
24918
24919      if test $gl_cv_have_include_next = yes; then
24920        gl_cv_next_wchar_h='<'wchar.h'>'
24921      else
24922        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24923 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24924 if ${gl_cv_next_wchar_h+:} false; then :
24925   $as_echo_n "(cached) " >&6
24926 else
24927
24928              if test $ac_cv_header_wchar_h = yes; then
24929
24930
24931
24932
24933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h.  */
24935 #include <wchar.h>
24936 _ACEOF
24937                 case "$host_os" in
24938     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24939     *)    gl_absname_cpp="$ac_cpp" ;;
24940   esac
24941
24942   case "$host_os" in
24943     mingw*)
24944                                           gl_dirsep_regex='[/\\]'
24945       ;;
24946     *)
24947       gl_dirsep_regex='\/'
24948       ;;
24949   esac
24950       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24951   gl_header_literal_regex=`echo 'wchar.h' \
24952                            | sed -e "$gl_make_literal_regex_sed"`
24953   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24954       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24955       s|^/[^/]|//&|
24956       p
24957       q
24958     }'
24959
24960         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24961   sed -n "$gl_absolute_header_sed"`
24962
24963            gl_header=$gl_cv_absolute_wchar_h
24964            gl_cv_next_wchar_h='"'$gl_header'"'
24965           else
24966                gl_cv_next_wchar_h='<'wchar.h'>'
24967              fi
24968
24969
24970 fi
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24972 $as_echo "$gl_cv_next_wchar_h" >&6; }
24973      fi
24974      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24975
24976      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24977        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24978        gl_next_as_first_directive='<'wchar.h'>'
24979      else
24980        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24981        gl_next_as_first_directive=$gl_cv_next_wchar_h
24982      fi
24983      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24984
24985
24986
24987
24988   if test $ac_cv_header_wchar_h = yes; then
24989     HAVE_WCHAR_H=1
24990   else
24991     HAVE_WCHAR_H=0
24992   fi
24993
24994
24995
24996
24997
24998   if test $gt_cv_c_wint_t = yes; then
24999     HAVE_WINT_T=1
25000   else
25001     HAVE_WINT_T=0
25002   fi
25003
25004
25005
25006     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
25007     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25009 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25010 if eval \${$as_gl_Symbol+:} false; then :
25011   $as_echo_n "(cached) " >&6
25012 else
25013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014 /* end confdefs.h.  */
25015
25016 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25017    <wchar.h>.
25018    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25019    included before <wchar.h>.  */
25020 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25021 # include <stddef.h>
25022 # include <stdio.h>
25023 # include <time.h>
25024 #endif
25025 #include <wchar.h>
25026
25027 int
25028 main ()
25029 {
25030 #undef $gl_func
25031   (void) $gl_func;
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 if ac_fn_c_try_compile "$LINENO"; then :
25037   eval "$as_gl_Symbol=yes"
25038 else
25039   eval "$as_gl_Symbol=no"
25040 fi
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042 fi
25043 eval ac_res=\$$as_gl_Symbol
25044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25045 $as_echo "$ac_res" >&6; }
25046     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25047   cat >>confdefs.h <<_ACEOF
25048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25049 _ACEOF
25050
25051                      eval ac_cv_have_decl_$gl_func=yes
25052 fi
25053       done
25054
25055
25056
25057
25058
25059   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25060     REPLACE_WRITE=1
25061   fi
25062
25063
25064
25065   if test $REPLACE_WRITE = 1; then
25066
25067
25068
25069
25070
25071
25072
25073
25074   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
25075
25076     :
25077   fi
25078
25079
25080
25081
25082
25083           GNULIB_WRITE=1
25084
25085
25086
25087
25088
25089 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
25090
25091
25092
25093   :
25094
25095
25096   for ac_header in stdint.h
25097 do :
25098   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25099 if test "x$ac_cv_header_stdint_h" = xyes; then :
25100   cat >>confdefs.h <<_ACEOF
25101 #define HAVE_STDINT_H 1
25102 _ACEOF
25103
25104 fi
25105
25106 done
25107
25108
25109
25110
25111   :
25112
25113
25114   :
25115
25116
25117   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
25118
25119   # End of code from modules
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129   gltests_libdeps=
25130   gltests_ltlibdeps=
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140   gl_source_base='tests'
25141   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
25142
25143   gl_module_indicator_condition=$gltests_WITNESS
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154 for ac_header in fcntl.h
25155 do :
25156   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25157 if test "x$ac_cv_header_fcntl_h" = xyes; then :
25158   cat >>confdefs.h <<_ACEOF
25159 #define HAVE_FCNTL_H 1
25160 _ACEOF
25161
25162 fi
25163
25164 done
25165
25166 for ac_func in clearenv
25167 do :
25168   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
25169 if test "x$ac_cv_func_clearenv" = xyes; then :
25170   cat >>confdefs.h <<_ACEOF
25171 #define HAVE_CLEARENV 1
25172 _ACEOF
25173
25174 fi
25175 done
25176
25177
25178 # Checks for structures and compiler characteristics.
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25180 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25181 if ${ac_cv_c_const+:} false; then :
25182   $as_echo_n "(cached) " >&6
25183 else
25184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185 /* end confdefs.h.  */
25186
25187 int
25188 main ()
25189 {
25190
25191 #ifndef __cplusplus
25192   /* Ultrix mips cc rejects this sort of thing.  */
25193   typedef int charset[2];
25194   const charset cs = { 0, 0 };
25195   /* SunOS 4.1.1 cc rejects this.  */
25196   char const *const *pcpcc;
25197   char **ppc;
25198   /* NEC SVR4.0.2 mips cc rejects this.  */
25199   struct point {int x, y;};
25200   static struct point const zero = {0,0};
25201   /* AIX XL C 1.02.0.0 rejects this.
25202      It does not let you subtract one const X* pointer from another in
25203      an arm of an if-expression whose if-part is not a constant
25204      expression */
25205   const char *g = "string";
25206   pcpcc = &g + (g ? g-g : 0);
25207   /* HPUX 7.0 cc rejects these. */
25208   ++pcpcc;
25209   ppc = (char**) pcpcc;
25210   pcpcc = (char const *const *) ppc;
25211   { /* SCO 3.2v4 cc rejects this sort of thing.  */
25212     char tx;
25213     char *t = &tx;
25214     char const *s = 0 ? (char *) 0 : (char const *) 0;
25215
25216     *t++ = 0;
25217     if (s) return 0;
25218   }
25219   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25220     int x[] = {25, 17};
25221     const int *foo = &x[0];
25222     ++foo;
25223   }
25224   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25225     typedef const int *iptr;
25226     iptr p = 0;
25227     ++p;
25228   }
25229   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25230        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25231     struct s { int j; const int *ap[3]; } bx;
25232     struct s *b = &bx; b->j = 5;
25233   }
25234   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25235     const int foo = 10;
25236     if (!foo) return 0;
25237   }
25238   return !cs[0] && !zero.x;
25239 #endif
25240
25241   ;
25242   return 0;
25243 }
25244 _ACEOF
25245 if ac_fn_c_try_compile "$LINENO"; then :
25246   ac_cv_c_const=yes
25247 else
25248   ac_cv_c_const=no
25249 fi
25250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25253 $as_echo "$ac_cv_c_const" >&6; }
25254 if test $ac_cv_c_const = no; then
25255
25256 $as_echo "#define const /**/" >>confdefs.h
25257
25258 fi
25259
25260 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25261 if test "x$ac_cv_type_pid_t" = xyes; then :
25262
25263 else
25264
25265 cat >>confdefs.h <<_ACEOF
25266 #define pid_t int
25267 _ACEOF
25268
25269 fi
25270
25271 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25272 if test "x$ac_cv_type_size_t" = xyes; then :
25273
25274 else
25275
25276 cat >>confdefs.h <<_ACEOF
25277 #define size_t unsigned int
25278 _ACEOF
25279
25280 fi
25281
25282
25283 # We must have fork(2) support.
25284 for ac_header in vfork.h
25285 do :
25286   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25287 if test "x$ac_cv_header_vfork_h" = xyes; then :
25288   cat >>confdefs.h <<_ACEOF
25289 #define HAVE_VFORK_H 1
25290 _ACEOF
25291
25292 fi
25293
25294 done
25295
25296 for ac_func in fork vfork
25297 do :
25298   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25301   cat >>confdefs.h <<_ACEOF
25302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25303 _ACEOF
25304
25305 fi
25306 done
25307
25308 if test "x$ac_cv_func_fork" = xyes; then
25309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25310 $as_echo_n "checking for working fork... " >&6; }
25311 if ${ac_cv_func_fork_works+:} false; then :
25312   $as_echo_n "(cached) " >&6
25313 else
25314   if test "$cross_compiling" = yes; then :
25315   ac_cv_func_fork_works=cross
25316 else
25317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h.  */
25319 $ac_includes_default
25320 int
25321 main ()
25322 {
25323
25324           /* By Ruediger Kuhlmann. */
25325           return fork () < 0;
25326
25327   ;
25328   return 0;
25329 }
25330 _ACEOF
25331 if ac_fn_c_try_run "$LINENO"; then :
25332   ac_cv_func_fork_works=yes
25333 else
25334   ac_cv_func_fork_works=no
25335 fi
25336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25337   conftest.$ac_objext conftest.beam conftest.$ac_ext
25338 fi
25339
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25342 $as_echo "$ac_cv_func_fork_works" >&6; }
25343
25344 else
25345   ac_cv_func_fork_works=$ac_cv_func_fork
25346 fi
25347 if test "x$ac_cv_func_fork_works" = xcross; then
25348   case $host in
25349     *-*-amigaos* | *-*-msdosdjgpp*)
25350       # Override, as these systems have only a dummy fork() stub
25351       ac_cv_func_fork_works=no
25352       ;;
25353     *)
25354       ac_cv_func_fork_works=yes
25355       ;;
25356   esac
25357   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25358 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25359 fi
25360 ac_cv_func_vfork_works=$ac_cv_func_vfork
25361 if test "x$ac_cv_func_vfork" = xyes; then
25362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25363 $as_echo_n "checking for working vfork... " >&6; }
25364 if ${ac_cv_func_vfork_works+:} false; then :
25365   $as_echo_n "(cached) " >&6
25366 else
25367   if test "$cross_compiling" = yes; then :
25368   ac_cv_func_vfork_works=cross
25369 else
25370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h.  */
25372 /* Thanks to Paul Eggert for this test.  */
25373 $ac_includes_default
25374 #include <sys/wait.h>
25375 #ifdef HAVE_VFORK_H
25376 # include <vfork.h>
25377 #endif
25378 /* On some sparc systems, changes by the child to local and incoming
25379    argument registers are propagated back to the parent.  The compiler
25380    is told about this with #include <vfork.h>, but some compilers
25381    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25382    static variable whose address is put into a register that is
25383    clobbered by the vfork.  */
25384 static void
25385 #ifdef __cplusplus
25386 sparc_address_test (int arg)
25387 # else
25388 sparc_address_test (arg) int arg;
25389 #endif
25390 {
25391   static pid_t child;
25392   if (!child) {
25393     child = vfork ();
25394     if (child < 0) {
25395       perror ("vfork");
25396       _exit(2);
25397     }
25398     if (!child) {
25399       arg = getpid();
25400       write(-1, "", 0);
25401       _exit (arg);
25402     }
25403   }
25404 }
25405
25406 int
25407 main ()
25408 {
25409   pid_t parent = getpid ();
25410   pid_t child;
25411
25412   sparc_address_test (0);
25413
25414   child = vfork ();
25415
25416   if (child == 0) {
25417     /* Here is another test for sparc vfork register problems.  This
25418        test uses lots of local variables, at least as many local
25419        variables as main has allocated so far including compiler
25420        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25421        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25422        reuse the register of parent for one of the local variables,
25423        since it will think that parent can't possibly be used any more
25424        in this routine.  Assigning to the local variable will thus
25425        munge parent in the parent process.  */
25426     pid_t
25427       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25428       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25429     /* Convince the compiler that p..p7 are live; otherwise, it might
25430        use the same hardware register for all 8 local variables.  */
25431     if (p != p1 || p != p2 || p != p3 || p != p4
25432         || p != p5 || p != p6 || p != p7)
25433       _exit(1);
25434
25435     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25436        from child file descriptors.  If the child closes a descriptor
25437        before it execs or exits, this munges the parent's descriptor
25438        as well.  Test for this by closing stdout in the child.  */
25439     _exit(close(fileno(stdout)) != 0);
25440   } else {
25441     int status;
25442     struct stat st;
25443
25444     while (wait(&status) != child)
25445       ;
25446     return (
25447          /* Was there some problem with vforking?  */
25448          child < 0
25449
25450          /* Did the child fail?  (This shouldn't happen.)  */
25451          || status
25452
25453          /* Did the vfork/compiler bug occur?  */
25454          || parent != getpid()
25455
25456          /* Did the file descriptor bug occur?  */
25457          || fstat(fileno(stdout), &st) != 0
25458          );
25459   }
25460 }
25461 _ACEOF
25462 if ac_fn_c_try_run "$LINENO"; then :
25463   ac_cv_func_vfork_works=yes
25464 else
25465   ac_cv_func_vfork_works=no
25466 fi
25467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25468   conftest.$ac_objext conftest.beam conftest.$ac_ext
25469 fi
25470
25471 fi
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25473 $as_echo "$ac_cv_func_vfork_works" >&6; }
25474
25475 fi;
25476 if test "x$ac_cv_func_fork_works" = xcross; then
25477   ac_cv_func_vfork_works=$ac_cv_func_vfork
25478   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25479 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25480 fi
25481
25482 if test "x$ac_cv_func_vfork_works" = xyes; then
25483
25484 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25485
25486 else
25487
25488 $as_echo "#define vfork fork" >>confdefs.h
25489
25490 fi
25491 if test "x$ac_cv_func_fork_works" = xyes; then
25492
25493 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25494
25495 fi
25496
25497 if test "x$ac_cv_func_fork_works" != xyes; then
25498   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25500 as_fn_error $? "cannot use libpipeline on systems without fork
25501 See \`config.log' for more details" "$LINENO" 5; }
25502 fi
25503
25504 # Check for socketpair(2) as fast replacement for pipe(2).
25505 # Check whether --enable-socketpair-pipe was given.
25506 if test "${enable_socketpair_pipe+set}" = set; then :
25507   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
25508     then
25509        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
25510 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
25511   if ${pipeline_cv_socketpair_pipe+:} false; then :
25512   $as_echo_n "(cached) " >&6
25513 else
25514
25515     if test "$cross_compiling" = yes; then :
25516   pipeline_cv_socketpair_pipe=no
25517 else
25518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h.  */
25520
25521 #include <netdb.h>
25522 #include <netinet/in.h>
25523 #include <signal.h>
25524 #include <sys/socket.h>
25525 #include <sys/types.h>
25526 #include <sys/wait.h>
25527 #include <unistd.h>
25528 #ifndef SHUT_RD
25529 #       define SHUT_RD  0
25530 #endif
25531 #ifndef SHUT_WR
25532 #       define SHUT_WR  1
25533 #endif
25534
25535 static void sigpipe(int sig)
25536 {
25537         _exit(0);
25538 }
25539
25540 int main()
25541 {
25542         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
25543         char buf[256];
25544         int sfd[2], s;
25545         pid_t pid;
25546         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25547                 return 1;
25548         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25549                 return 1;
25550         if ((pid = fork()) < 0)
25551                 return 1;
25552         if (pid) {
25553                 close(sfd[1]);
25554                 waitpid(-1,&s,0);
25555                 if (read(sfd[0],buf,sizeof(buf)) < 0)
25556                         return 1;
25557         } else {
25558                 close(sfd[0]);
25559                 write(sfd[1],test,sizeof(test) - 1);
25560                 return 0;
25561         }
25562         close(sfd[0]);
25563         signal(SIGPIPE, sigpipe);
25564         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25565                 return 1;
25566         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25567                 return 1;
25568         close(sfd[0]);
25569         write(sfd[1],test,sizeof(test) - 1);
25570         return 1;
25571 }
25572 _ACEOF
25573 if ac_fn_c_try_run "$LINENO"; then :
25574   pipeline_cv_socketpair_pipe=yes
25575 else
25576   pipeline_cv_socketpair_pipe=no
25577 fi
25578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25579   conftest.$ac_objext conftest.beam conftest.$ac_ext
25580 fi
25581
25582
25583 fi
25584
25585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
25586 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
25587   if test "$pipeline_cv_socketpair_pipe" = yes; then
25588
25589 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
25590
25591   fi
25592
25593       if test "$pipeline_cv_socketpair_pipe" = yes; then
25594          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
25595 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
25596   if ${pipeline_cv_socketpair_mode+:} false; then :
25597   $as_echo_n "(cached) " >&6
25598 else
25599
25600     if test "$cross_compiling" = yes; then :
25601   pipeline_cv_socketpair_mode=no
25602 else
25603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h.  */
25605
25606 #include <netdb.h>
25607 #include <netinet/in.h>
25608 #include <sys/stat.h>
25609 #include <sys/socket.h>
25610 #include <sys/types.h>
25611 #include <unistd.h>
25612 #ifndef SHUT_RD
25613 #       define SHUT_RD  0
25614 #endif
25615 #ifndef SHUT_WR
25616 #       define SHUT_WR  1
25617 #endif
25618
25619 int main()
25620 {
25621         int sfd[2];
25622         struct stat st[2];
25623         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25624                 return 1;
25625         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25626                 return 1;
25627         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25628                 return 1;
25629         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25630                 return 1;
25631         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25632                 return 1;
25633         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25634                 return 1;
25635         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25636                 return 1;
25637         return 0;
25638 }
25639 _ACEOF
25640 if ac_fn_c_try_run "$LINENO"; then :
25641   pipeline_cv_socketpair_mode=yes
25642 else
25643   pipeline_cv_socketpair_mode=no
25644 fi
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25646   conftest.$ac_objext conftest.beam conftest.$ac_ext
25647 fi
25648
25649
25650 fi
25651
25652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25653 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25654   if test "$pipeline_cv_socketpair_mode" = yes; then
25655
25656 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25657
25658   fi
25659
25660       fi
25661     fi
25662
25663 fi
25664
25665
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25667 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25669 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25671 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25673 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25675 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25677 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25678
25679 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25680
25681 cat >confcache <<\_ACEOF
25682 # This file is a shell script that caches the results of configure
25683 # tests run on this system so they can be shared between configure
25684 # scripts and configure runs, see configure's option --config-cache.
25685 # It is not useful on other systems.  If it contains results you don't
25686 # want to keep, you may remove or edit it.
25687 #
25688 # config.status only pays attention to the cache file if you give it
25689 # the --recheck option to rerun configure.
25690 #
25691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25693 # following values.
25694
25695 _ACEOF
25696
25697 # The following way of writing the cache mishandles newlines in values,
25698 # but we know of no workaround that is simple, portable, and efficient.
25699 # So, we kill variables containing newlines.
25700 # Ultrix sh set writes to stderr and can't be redirected directly,
25701 # and sets the high bit in the cache file unless we assign to the vars.
25702 (
25703   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25704     eval ac_val=\$$ac_var
25705     case $ac_val in #(
25706     *${as_nl}*)
25707       case $ac_var in #(
25708       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25710       esac
25711       case $ac_var in #(
25712       _ | IFS | as_nl) ;; #(
25713       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25714       *) { eval $ac_var=; unset $ac_var;} ;;
25715       esac ;;
25716     esac
25717   done
25718
25719   (set) 2>&1 |
25720     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25721     *${as_nl}ac_space=\ *)
25722       # `set' does not quote correctly, so add quotes: double-quote
25723       # substitution turns \\\\ into \\, and sed turns \\ into \.
25724       sed -n \
25725         "s/'/'\\\\''/g;
25726           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25727       ;; #(
25728     *)
25729       # `set' quotes correctly as required by POSIX, so do not add quotes.
25730       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25731       ;;
25732     esac |
25733     sort
25734 ) |
25735   sed '
25736      /^ac_cv_env_/b end
25737      t clear
25738      :clear
25739      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25740      t end
25741      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25742      :end' >>confcache
25743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25744   if test -w "$cache_file"; then
25745     if test "x$cache_file" != "x/dev/null"; then
25746       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25747 $as_echo "$as_me: updating cache $cache_file" >&6;}
25748       if test ! -f "$cache_file" || test -h "$cache_file"; then
25749         cat confcache >"$cache_file"
25750       else
25751         case $cache_file in #(
25752         */* | ?:*)
25753           mv -f confcache "$cache_file"$$ &&
25754           mv -f "$cache_file"$$ "$cache_file" ;; #(
25755         *)
25756           mv -f confcache "$cache_file" ;;
25757         esac
25758       fi
25759     fi
25760   else
25761     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25763   fi
25764 fi
25765 rm -f confcache
25766
25767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25768 # Let make expand exec_prefix.
25769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25770
25771 DEFS=-DHAVE_CONFIG_H
25772
25773 ac_libobjs=
25774 ac_ltlibobjs=
25775 U=
25776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25777   # 1. Remove the extension, and $U if already installed.
25778   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25779   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25780   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25781   #    will be set to the directory where LIBOBJS objects are built.
25782   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25783   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25784 done
25785 LIBOBJS=$ac_libobjs
25786
25787 LTLIBOBJS=$ac_ltlibobjs
25788
25789
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25791 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25792    if test -n "$am_sleep_pid"; then
25793      # Hide warnings about reused PIDs.
25794      wait $am_sleep_pid 2>/dev/null
25795    fi
25796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25797 $as_echo "done" >&6; }
25798  if test -n "$EXEEXT"; then
25799   am__EXEEXT_TRUE=
25800   am__EXEEXT_FALSE='#'
25801 else
25802   am__EXEEXT_TRUE='#'
25803   am__EXEEXT_FALSE=
25804 fi
25805
25806 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25807   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25809 fi
25810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25811   as_fn_error $? "conditional \"AMDEP\" was never defined.
25812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25813 fi
25814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25815   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25817 fi
25818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25819   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25821 fi
25822 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25823   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25825 fi
25826 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25827   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25829 fi
25830 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25831   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25833 fi
25834 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25835   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25837 fi
25838 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25839   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25841 fi
25842 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25843   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25845 fi
25846 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25847   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25849 fi
25850 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25851   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25853 fi
25854 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25855   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25857 fi
25858
25859
25860     gl_libobjs=
25861     gl_ltlibobjs=
25862     if test -n "$gl_LIBOBJS"; then
25863       # Remove the extension.
25864       sed_drop_objext='s/\.o$//;s/\.obj$//'
25865       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25866         gl_libobjs="$gl_libobjs $i.$ac_objext"
25867         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25868       done
25869     fi
25870     gl_LIBOBJS=$gl_libobjs
25871
25872     gl_LTLIBOBJS=$gl_ltlibobjs
25873
25874
25875
25876     gltests_libobjs=
25877     gltests_ltlibobjs=
25878     if test -n "$gltests_LIBOBJS"; then
25879       # Remove the extension.
25880       sed_drop_objext='s/\.o$//;s/\.obj$//'
25881       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25882         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25883         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25884       done
25885     fi
25886     gltests_LIBOBJS=$gltests_libobjs
25887
25888     gltests_LTLIBOBJS=$gltests_ltlibobjs
25889
25890
25891
25892 : "${CONFIG_STATUS=./config.status}"
25893 ac_write_fail=0
25894 ac_clean_files_save=$ac_clean_files
25895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25898 as_write_fail=0
25899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25900 #! $SHELL
25901 # Generated by $as_me.
25902 # Run this file to recreate the current configuration.
25903 # Compiler output produced by configure, useful for debugging
25904 # configure, is in config.log if it exists.
25905
25906 debug=false
25907 ac_cs_recheck=false
25908 ac_cs_silent=false
25909
25910 SHELL=\${CONFIG_SHELL-$SHELL}
25911 export SHELL
25912 _ASEOF
25913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25914 ## -------------------- ##
25915 ## M4sh Initialization. ##
25916 ## -------------------- ##
25917
25918 # Be more Bourne compatible
25919 DUALCASE=1; export DUALCASE # for MKS sh
25920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25921   emulate sh
25922   NULLCMD=:
25923   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25924   # is contrary to our usage.  Disable this feature.
25925   alias -g '${1+"$@"}'='"$@"'
25926   setopt NO_GLOB_SUBST
25927 else
25928   case `(set -o) 2>/dev/null` in #(
25929   *posix*) :
25930     set -o posix ;; #(
25931   *) :
25932      ;;
25933 esac
25934 fi
25935
25936
25937 as_nl='
25938 '
25939 export as_nl
25940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25944 # Prefer a ksh shell builtin over an external printf program on Solaris,
25945 # but without wasting forks for bash or zsh.
25946 if test -z "$BASH_VERSION$ZSH_VERSION" \
25947     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25948   as_echo='print -r --'
25949   as_echo_n='print -rn --'
25950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25951   as_echo='printf %s\n'
25952   as_echo_n='printf %s'
25953 else
25954   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25955     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25956     as_echo_n='/usr/ucb/echo -n'
25957   else
25958     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25959     as_echo_n_body='eval
25960       arg=$1;
25961       case $arg in #(
25962       *"$as_nl"*)
25963         expr "X$arg" : "X\\(.*\\)$as_nl";
25964         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25965       esac;
25966       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25967     '
25968     export as_echo_n_body
25969     as_echo_n='sh -c $as_echo_n_body as_echo'
25970   fi
25971   export as_echo_body
25972   as_echo='sh -c $as_echo_body as_echo'
25973 fi
25974
25975 # The user is always right.
25976 if test "${PATH_SEPARATOR+set}" != set; then
25977   PATH_SEPARATOR=:
25978   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25979     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25980       PATH_SEPARATOR=';'
25981   }
25982 fi
25983
25984
25985 # IFS
25986 # We need space, tab and new line, in precisely that order.  Quoting is
25987 # there to prevent editors from complaining about space-tab.
25988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25989 # splitting by setting IFS to empty value.)
25990 IFS=" ""        $as_nl"
25991
25992 # Find who we are.  Look in the path if we contain no directory separator.
25993 as_myself=
25994 case $0 in #((
25995   *[\\/]* ) as_myself=$0 ;;
25996   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
25998 do
25999   IFS=$as_save_IFS
26000   test -z "$as_dir" && as_dir=.
26001     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26002   done
26003 IFS=$as_save_IFS
26004
26005      ;;
26006 esac
26007 # We did not find ourselves, most probably we were run as `sh COMMAND'
26008 # in which case we are not to be found in the path.
26009 if test "x$as_myself" = x; then
26010   as_myself=$0
26011 fi
26012 if test ! -f "$as_myself"; then
26013   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26014   exit 1
26015 fi
26016
26017 # Unset variables that we do not need and which cause bugs (e.g. in
26018 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26019 # suppresses any "Segmentation fault" message there.  '((' could
26020 # trigger a bug in pdksh 5.2.14.
26021 for as_var in BASH_ENV ENV MAIL MAILPATH
26022 do eval test x\${$as_var+set} = xset \
26023   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26024 done
26025 PS1='$ '
26026 PS2='> '
26027 PS4='+ '
26028
26029 # NLS nuisances.
26030 LC_ALL=C
26031 export LC_ALL
26032 LANGUAGE=C
26033 export LANGUAGE
26034
26035 # CDPATH.
26036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26037
26038
26039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26040 # ----------------------------------------
26041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26043 # script with STATUS, using 1 if that was 0.
26044 as_fn_error ()
26045 {
26046   as_status=$1; test $as_status -eq 0 && as_status=1
26047   if test "$4"; then
26048     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26049     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26050   fi
26051   $as_echo "$as_me: error: $2" >&2
26052   as_fn_exit $as_status
26053 } # as_fn_error
26054
26055
26056 # as_fn_set_status STATUS
26057 # -----------------------
26058 # Set $? to STATUS, without forking.
26059 as_fn_set_status ()
26060 {
26061   return $1
26062 } # as_fn_set_status
26063
26064 # as_fn_exit STATUS
26065 # -----------------
26066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26067 as_fn_exit ()
26068 {
26069   set +e
26070   as_fn_set_status $1
26071   exit $1
26072 } # as_fn_exit
26073
26074 # as_fn_unset VAR
26075 # ---------------
26076 # Portably unset VAR.
26077 as_fn_unset ()
26078 {
26079   { eval $1=; unset $1;}
26080 }
26081 as_unset=as_fn_unset
26082 # as_fn_append VAR VALUE
26083 # ----------------------
26084 # Append the text in VALUE to the end of the definition contained in VAR. Take
26085 # advantage of any shell optimizations that allow amortized linear growth over
26086 # repeated appends, instead of the typical quadratic growth present in naive
26087 # implementations.
26088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26089   eval 'as_fn_append ()
26090   {
26091     eval $1+=\$2
26092   }'
26093 else
26094   as_fn_append ()
26095   {
26096     eval $1=\$$1\$2
26097   }
26098 fi # as_fn_append
26099
26100 # as_fn_arith ARG...
26101 # ------------------
26102 # Perform arithmetic evaluation on the ARGs, and store the result in the
26103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26104 # must be portable across $(()) and expr.
26105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26106   eval 'as_fn_arith ()
26107   {
26108     as_val=$(( $* ))
26109   }'
26110 else
26111   as_fn_arith ()
26112   {
26113     as_val=`expr "$@" || test $? -eq 1`
26114   }
26115 fi # as_fn_arith
26116
26117
26118 if expr a : '\(a\)' >/dev/null 2>&1 &&
26119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26120   as_expr=expr
26121 else
26122   as_expr=false
26123 fi
26124
26125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26126   as_basename=basename
26127 else
26128   as_basename=false
26129 fi
26130
26131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26132   as_dirname=dirname
26133 else
26134   as_dirname=false
26135 fi
26136
26137 as_me=`$as_basename -- "$0" ||
26138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26139          X"$0" : 'X\(//\)$' \| \
26140          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26141 $as_echo X/"$0" |
26142     sed '/^.*\/\([^/][^/]*\)\/*$/{
26143             s//\1/
26144             q
26145           }
26146           /^X\/\(\/\/\)$/{
26147             s//\1/
26148             q
26149           }
26150           /^X\/\(\/\).*/{
26151             s//\1/
26152             q
26153           }
26154           s/.*/./; q'`
26155
26156 # Avoid depending upon Character Ranges.
26157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26160 as_cr_digits='0123456789'
26161 as_cr_alnum=$as_cr_Letters$as_cr_digits
26162
26163 ECHO_C= ECHO_N= ECHO_T=
26164 case `echo -n x` in #(((((
26165 -n*)
26166   case `echo 'xy\c'` in
26167   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26168   xy)  ECHO_C='\c';;
26169   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26170        ECHO_T=' ';;
26171   esac;;
26172 *)
26173   ECHO_N='-n';;
26174 esac
26175
26176 rm -f conf$$ conf$$.exe conf$$.file
26177 if test -d conf$$.dir; then
26178   rm -f conf$$.dir/conf$$.file
26179 else
26180   rm -f conf$$.dir
26181   mkdir conf$$.dir 2>/dev/null
26182 fi
26183 if (echo >conf$$.file) 2>/dev/null; then
26184   if ln -s conf$$.file conf$$ 2>/dev/null; then
26185     as_ln_s='ln -s'
26186     # ... but there are two gotchas:
26187     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26188     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26189     # In both cases, we have to default to `cp -pR'.
26190     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26191       as_ln_s='cp -pR'
26192   elif ln conf$$.file conf$$ 2>/dev/null; then
26193     as_ln_s=ln
26194   else
26195     as_ln_s='cp -pR'
26196   fi
26197 else
26198   as_ln_s='cp -pR'
26199 fi
26200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26201 rmdir conf$$.dir 2>/dev/null
26202
26203
26204 # as_fn_mkdir_p
26205 # -------------
26206 # Create "$as_dir" as a directory, including parents if necessary.
26207 as_fn_mkdir_p ()
26208 {
26209
26210   case $as_dir in #(
26211   -*) as_dir=./$as_dir;;
26212   esac
26213   test -d "$as_dir" || eval $as_mkdir_p || {
26214     as_dirs=
26215     while :; do
26216       case $as_dir in #(
26217       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26218       *) as_qdir=$as_dir;;
26219       esac
26220       as_dirs="'$as_qdir' $as_dirs"
26221       as_dir=`$as_dirname -- "$as_dir" ||
26222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26223          X"$as_dir" : 'X\(//\)[^/]' \| \
26224          X"$as_dir" : 'X\(//\)$' \| \
26225          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26226 $as_echo X"$as_dir" |
26227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26228             s//\1/
26229             q
26230           }
26231           /^X\(\/\/\)[^/].*/{
26232             s//\1/
26233             q
26234           }
26235           /^X\(\/\/\)$/{
26236             s//\1/
26237             q
26238           }
26239           /^X\(\/\).*/{
26240             s//\1/
26241             q
26242           }
26243           s/.*/./; q'`
26244       test -d "$as_dir" && break
26245     done
26246     test -z "$as_dirs" || eval "mkdir $as_dirs"
26247   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26248
26249
26250 } # as_fn_mkdir_p
26251 if mkdir -p . 2>/dev/null; then
26252   as_mkdir_p='mkdir -p "$as_dir"'
26253 else
26254   test -d ./-p && rmdir ./-p
26255   as_mkdir_p=false
26256 fi
26257
26258
26259 # as_fn_executable_p FILE
26260 # -----------------------
26261 # Test if FILE is an executable regular file.
26262 as_fn_executable_p ()
26263 {
26264   test -f "$1" && test -x "$1"
26265 } # as_fn_executable_p
26266 as_test_x='test -x'
26267 as_executable_p=as_fn_executable_p
26268
26269 # Sed expression to map a string onto a valid CPP name.
26270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26271
26272 # Sed expression to map a string onto a valid variable name.
26273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26274
26275
26276 exec 6>&1
26277 ## ----------------------------------- ##
26278 ## Main body of $CONFIG_STATUS script. ##
26279 ## ----------------------------------- ##
26280 _ASEOF
26281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26282
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 # Save the log message, to keep $0 and so on meaningful, and to
26285 # report actual input values of CONFIG_FILES etc. instead of their
26286 # values after options handling.
26287 ac_log="
26288 This file was extended by libpipeline $as_me 1.3.1, which was
26289 generated by GNU Autoconf 2.69.  Invocation command line was
26290
26291   CONFIG_FILES    = $CONFIG_FILES
26292   CONFIG_HEADERS  = $CONFIG_HEADERS
26293   CONFIG_LINKS    = $CONFIG_LINKS
26294   CONFIG_COMMANDS = $CONFIG_COMMANDS
26295   $ $0 $@
26296
26297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26298 "
26299
26300 _ACEOF
26301
26302 case $ac_config_files in *"
26303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26304 esac
26305
26306 case $ac_config_headers in *"
26307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26308 esac
26309
26310
26311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26312 # Files that config.status was made for.
26313 config_files="$ac_config_files"
26314 config_headers="$ac_config_headers"
26315 config_commands="$ac_config_commands"
26316
26317 _ACEOF
26318
26319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26320 ac_cs_usage="\
26321 \`$as_me' instantiates files and other configuration actions
26322 from templates according to the current configuration.  Unless the files
26323 and actions are specified as TAGs, all are instantiated by default.
26324
26325 Usage: $0 [OPTION]... [TAG]...
26326
26327   -h, --help       print this help, then exit
26328   -V, --version    print version number and configuration settings, then exit
26329       --config     print configuration, then exit
26330   -q, --quiet, --silent
26331                    do not print progress messages
26332   -d, --debug      don't remove temporary files
26333       --recheck    update $as_me by reconfiguring in the same conditions
26334       --file=FILE[:TEMPLATE]
26335                    instantiate the configuration file FILE
26336       --header=FILE[:TEMPLATE]
26337                    instantiate the configuration header FILE
26338
26339 Configuration files:
26340 $config_files
26341
26342 Configuration headers:
26343 $config_headers
26344
26345 Configuration commands:
26346 $config_commands
26347
26348 Report bugs to <cjwatson@debian.org>."
26349
26350 _ACEOF
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26353 ac_cs_version="\\
26354 libpipeline config.status 1.3.1
26355 configured by $0, generated by GNU Autoconf 2.69,
26356   with options \\"\$ac_cs_config\\"
26357
26358 Copyright (C) 2012 Free Software Foundation, Inc.
26359 This config.status script is free software; the Free Software Foundation
26360 gives unlimited permission to copy, distribute and modify it."
26361
26362 ac_pwd='$ac_pwd'
26363 srcdir='$srcdir'
26364 INSTALL='$INSTALL'
26365 MKDIR_P='$MKDIR_P'
26366 AWK='$AWK'
26367 test -n "\$AWK" || AWK=awk
26368 _ACEOF
26369
26370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26371 # The default lists apply if the user does not specify any file.
26372 ac_need_defaults=:
26373 while test $# != 0
26374 do
26375   case $1 in
26376   --*=?*)
26377     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26378     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26379     ac_shift=:
26380     ;;
26381   --*=)
26382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26383     ac_optarg=
26384     ac_shift=:
26385     ;;
26386   *)
26387     ac_option=$1
26388     ac_optarg=$2
26389     ac_shift=shift
26390     ;;
26391   esac
26392
26393   case $ac_option in
26394   # Handling of the options.
26395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26396     ac_cs_recheck=: ;;
26397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26398     $as_echo "$ac_cs_version"; exit ;;
26399   --config | --confi | --conf | --con | --co | --c )
26400     $as_echo "$ac_cs_config"; exit ;;
26401   --debug | --debu | --deb | --de | --d | -d )
26402     debug=: ;;
26403   --file | --fil | --fi | --f )
26404     $ac_shift
26405     case $ac_optarg in
26406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26407     '') as_fn_error $? "missing file argument" ;;
26408     esac
26409     as_fn_append CONFIG_FILES " '$ac_optarg'"
26410     ac_need_defaults=false;;
26411   --header | --heade | --head | --hea )
26412     $ac_shift
26413     case $ac_optarg in
26414     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26415     esac
26416     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26417     ac_need_defaults=false;;
26418   --he | --h)
26419     # Conflict between --help and --header
26420     as_fn_error $? "ambiguous option: \`$1'
26421 Try \`$0 --help' for more information.";;
26422   --help | --hel | -h )
26423     $as_echo "$ac_cs_usage"; exit ;;
26424   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26425   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26426     ac_cs_silent=: ;;
26427
26428   # This is an error.
26429   -*) as_fn_error $? "unrecognized option: \`$1'
26430 Try \`$0 --help' for more information." ;;
26431
26432   *) as_fn_append ac_config_targets " $1"
26433      ac_need_defaults=false ;;
26434
26435   esac
26436   shift
26437 done
26438
26439 ac_configure_extra_args=
26440
26441 if $ac_cs_silent; then
26442   exec 6>/dev/null
26443   ac_configure_extra_args="$ac_configure_extra_args --silent"
26444 fi
26445
26446 _ACEOF
26447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26448 if \$ac_cs_recheck; then
26449   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26450   shift
26451   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26452   CONFIG_SHELL='$SHELL'
26453   export CONFIG_SHELL
26454   exec "\$@"
26455 fi
26456
26457 _ACEOF
26458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26459 exec 5>>config.log
26460 {
26461   echo
26462   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26463 ## Running $as_me. ##
26464 _ASBOX
26465   $as_echo "$ac_log"
26466 } >&5
26467
26468 _ACEOF
26469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26470 #
26471 # INIT-COMMANDS
26472 #
26473 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26474
26475
26476 # The HP-UX ksh and POSIX shell print the target directory to stdout
26477 # if CDPATH is set.
26478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26479
26480 sed_quote_subst='$sed_quote_subst'
26481 double_quote_subst='$double_quote_subst'
26482 delay_variable_subst='$delay_variable_subst'
26483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26486 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26487 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26488 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26489 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26490 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26491 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26492 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26493 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26494 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26495 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26496 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26497 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26498 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26499 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26500 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26501 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26502 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26503 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26504 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26505 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26506 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26507 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26508 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26509 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26510 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26511 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26512 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26513 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26524 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26525 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26526 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26527 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26528 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26529 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26530 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26531 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26532 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26533 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26534 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26535 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26536 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26537 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26538 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26539 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"`'
26540 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26541 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26542 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26543 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26544 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26545 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26546 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26547 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26548 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26549 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26550 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26551 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26552 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26553 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26554 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26555 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26556 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26557 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26558 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26559 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26560 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26561 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26562 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26563 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26564 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26565 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26566 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26567 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26568 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26569 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26570 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26571 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26572 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26573 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26574 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26575 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26576 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26577 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26578 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26579 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26580 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26581 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26582 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26583 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26584 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26585 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26586 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26587 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26588 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26589 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26590 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26591 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26592 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26593 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26594 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26595 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26596 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26597 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26598 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26599 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26600 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26601 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26602 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26603 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26604 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26605 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26606 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26613
26614 LTCC='$LTCC'
26615 LTCFLAGS='$LTCFLAGS'
26616 compiler='$compiler_DEFAULT'
26617
26618 # A function that is used when there is no print builtin or printf.
26619 func_fallback_echo ()
26620 {
26621   eval 'cat <<_LTECHO_EOF
26622 \$1
26623 _LTECHO_EOF'
26624 }
26625
26626 # Quote evaled strings.
26627 for var in SHELL \
26628 ECHO \
26629 PATH_SEPARATOR \
26630 SED \
26631 GREP \
26632 EGREP \
26633 FGREP \
26634 LD \
26635 NM \
26636 LN_S \
26637 lt_SP2NL \
26638 lt_NL2SP \
26639 reload_flag \
26640 OBJDUMP \
26641 deplibs_check_method \
26642 file_magic_cmd \
26643 file_magic_glob \
26644 want_nocaseglob \
26645 DLLTOOL \
26646 sharedlib_from_linklib_cmd \
26647 AR \
26648 AR_FLAGS \
26649 archiver_list_spec \
26650 STRIP \
26651 RANLIB \
26652 CC \
26653 CFLAGS \
26654 compiler \
26655 lt_cv_sys_global_symbol_pipe \
26656 lt_cv_sys_global_symbol_to_cdecl \
26657 lt_cv_sys_global_symbol_to_c_name_address \
26658 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26659 nm_file_list_spec \
26660 lt_prog_compiler_no_builtin_flag \
26661 lt_prog_compiler_pic \
26662 lt_prog_compiler_wl \
26663 lt_prog_compiler_static \
26664 lt_cv_prog_compiler_c_o \
26665 need_locks \
26666 MANIFEST_TOOL \
26667 DSYMUTIL \
26668 NMEDIT \
26669 LIPO \
26670 OTOOL \
26671 OTOOL64 \
26672 shrext_cmds \
26673 export_dynamic_flag_spec \
26674 whole_archive_flag_spec \
26675 compiler_needs_object \
26676 with_gnu_ld \
26677 allow_undefined_flag \
26678 no_undefined_flag \
26679 hardcode_libdir_flag_spec \
26680 hardcode_libdir_separator \
26681 exclude_expsyms \
26682 include_expsyms \
26683 file_list_spec \
26684 variables_saved_for_relink \
26685 libname_spec \
26686 library_names_spec \
26687 soname_spec \
26688 install_override_mode \
26689 finish_eval \
26690 old_striplib \
26691 striplib; do
26692     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26693     *[\\\\\\\`\\"\\\$]*)
26694       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26695       ;;
26696     *)
26697       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26698       ;;
26699     esac
26700 done
26701
26702 # Double-quote double-evaled strings.
26703 for var in reload_cmds \
26704 old_postinstall_cmds \
26705 old_postuninstall_cmds \
26706 old_archive_cmds \
26707 extract_expsyms_cmds \
26708 old_archive_from_new_cmds \
26709 old_archive_from_expsyms_cmds \
26710 archive_cmds \
26711 archive_expsym_cmds \
26712 module_cmds \
26713 module_expsym_cmds \
26714 export_symbols_cmds \
26715 prelink_cmds \
26716 postlink_cmds \
26717 postinstall_cmds \
26718 postuninstall_cmds \
26719 finish_cmds \
26720 sys_lib_search_path_spec \
26721 sys_lib_dlsearch_path_spec; do
26722     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26723     *[\\\\\\\`\\"\\\$]*)
26724       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26725       ;;
26726     *)
26727       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26728       ;;
26729     esac
26730 done
26731
26732 ac_aux_dir='$ac_aux_dir'
26733 xsi_shell='$xsi_shell'
26734 lt_shell_append='$lt_shell_append'
26735
26736 # See if we are running on zsh, and set the options which allow our
26737 # commands through without removal of \ escapes INIT.
26738 if test -n "\${ZSH_VERSION+set}" ; then
26739    setopt NO_GLOB_SUBST
26740 fi
26741
26742
26743     PACKAGE='$PACKAGE'
26744     VERSION='$VERSION'
26745     TIMESTAMP='$TIMESTAMP'
26746     RM='$RM'
26747     ofile='$ofile'
26748
26749
26750
26751
26752 _ACEOF
26753
26754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26755
26756 # Handling of arguments.
26757 for ac_config_target in $ac_config_targets
26758 do
26759   case $ac_config_target in
26760     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26761     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26762     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26763     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26764     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26765     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26766     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26767     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26768     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26769
26770   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26771   esac
26772 done
26773
26774
26775 # If the user did not use the arguments to specify the items to instantiate,
26776 # then the envvar interface is used.  Set only those that are not.
26777 # We use the long form for the default assignment because of an extremely
26778 # bizarre bug on SunOS 4.1.3.
26779 if $ac_need_defaults; then
26780   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26781   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26782   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26783 fi
26784
26785 # Have a temporary directory for convenience.  Make it in the build tree
26786 # simply because there is no reason against having it here, and in addition,
26787 # creating and moving files from /tmp can sometimes cause problems.
26788 # Hook for its removal unless debugging.
26789 # Note that there is a small window in which the directory will not be cleaned:
26790 # after its creation but before its name has been assigned to `$tmp'.
26791 $debug ||
26792 {
26793   tmp= ac_tmp=
26794   trap 'exit_status=$?
26795   : "${ac_tmp:=$tmp}"
26796   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26797 ' 0
26798   trap 'as_fn_exit 1' 1 2 13 15
26799 }
26800 # Create a (secure) tmp directory for tmp files.
26801
26802 {
26803   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26804   test -d "$tmp"
26805 }  ||
26806 {
26807   tmp=./conf$$-$RANDOM
26808   (umask 077 && mkdir "$tmp")
26809 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26810 ac_tmp=$tmp
26811
26812 # Set up the scripts for CONFIG_FILES section.
26813 # No need to generate them if there are no CONFIG_FILES.
26814 # This happens for instance with `./config.status config.h'.
26815 if test -n "$CONFIG_FILES"; then
26816
26817
26818 ac_cr=`echo X | tr X '\015'`
26819 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26820 # But we know of no other shell where ac_cr would be empty at this
26821 # point, so we can use a bashism as a fallback.
26822 if test "x$ac_cr" = x; then
26823   eval ac_cr=\$\'\\r\'
26824 fi
26825 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26826 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26827   ac_cs_awk_cr='\\r'
26828 else
26829   ac_cs_awk_cr=$ac_cr
26830 fi
26831
26832 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26833 _ACEOF
26834
26835
26836 {
26837   echo "cat >conf$$subs.awk <<_ACEOF" &&
26838   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26839   echo "_ACEOF"
26840 } >conf$$subs.sh ||
26841   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26842 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26843 ac_delim='%!_!# '
26844 for ac_last_try in false false false false false :; do
26845   . ./conf$$subs.sh ||
26846     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26847
26848   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26849   if test $ac_delim_n = $ac_delim_num; then
26850     break
26851   elif $ac_last_try; then
26852     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26853   else
26854     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26855   fi
26856 done
26857 rm -f conf$$subs.sh
26858
26859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26860 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26861 _ACEOF
26862 sed -n '
26863 h
26864 s/^/S["/; s/!.*/"]=/
26865 p
26866 g
26867 s/^[^!]*!//
26868 :repl
26869 t repl
26870 s/'"$ac_delim"'$//
26871 t delim
26872 :nl
26873 h
26874 s/\(.\{148\}\)..*/\1/
26875 t more1
26876 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26877 p
26878 n
26879 b repl
26880 :more1
26881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26882 p
26883 g
26884 s/.\{148\}//
26885 t nl
26886 :delim
26887 h
26888 s/\(.\{148\}\)..*/\1/
26889 t more2
26890 s/["\\]/\\&/g; s/^/"/; s/$/"/
26891 p
26892 b
26893 :more2
26894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26895 p
26896 g
26897 s/.\{148\}//
26898 t delim
26899 ' <conf$$subs.awk | sed '
26900 /^[^""]/{
26901   N
26902   s/\n//
26903 }
26904 ' >>$CONFIG_STATUS || ac_write_fail=1
26905 rm -f conf$$subs.awk
26906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26907 _ACAWK
26908 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26909   for (key in S) S_is_set[key] = 1
26910   FS = "\a"
26911
26912 }
26913 {
26914   line = $ 0
26915   nfields = split(line, field, "@")
26916   substed = 0
26917   len = length(field[1])
26918   for (i = 2; i < nfields; i++) {
26919     key = field[i]
26920     keylen = length(key)
26921     if (S_is_set[key]) {
26922       value = S[key]
26923       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26924       len += length(value) + length(field[++i])
26925       substed = 1
26926     } else
26927       len += 1 + keylen
26928   }
26929
26930   print line
26931 }
26932
26933 _ACAWK
26934 _ACEOF
26935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26936 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26937   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26938 else
26939   cat
26940 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26941   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26942 _ACEOF
26943
26944 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26945 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26946 # trailing colons and then remove the whole line if VPATH becomes empty
26947 # (actually we leave an empty line to preserve line numbers).
26948 if test "x$srcdir" = x.; then
26949   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26950 h
26951 s///
26952 s/^/:/
26953 s/[      ]*$/:/
26954 s/:\$(srcdir):/:/g
26955 s/:\${srcdir}:/:/g
26956 s/:@srcdir@:/:/g
26957 s/^:*//
26958 s/:*$//
26959 x
26960 s/\(=[   ]*\).*/\1/
26961 G
26962 s/\n//
26963 s/^[^=]*=[       ]*$//
26964 }'
26965 fi
26966
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26968 fi # test -n "$CONFIG_FILES"
26969
26970 # Set up the scripts for CONFIG_HEADERS section.
26971 # No need to generate them if there are no CONFIG_HEADERS.
26972 # This happens for instance with `./config.status Makefile'.
26973 if test -n "$CONFIG_HEADERS"; then
26974 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26975 BEGIN {
26976 _ACEOF
26977
26978 # Transform confdefs.h into an awk script `defines.awk', embedded as
26979 # here-document in config.status, that substitutes the proper values into
26980 # config.h.in to produce config.h.
26981
26982 # Create a delimiter string that does not exist in confdefs.h, to ease
26983 # handling of long lines.
26984 ac_delim='%!_!# '
26985 for ac_last_try in false false :; do
26986   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26987   if test -z "$ac_tt"; then
26988     break
26989   elif $ac_last_try; then
26990     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26991   else
26992     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26993   fi
26994 done
26995
26996 # For the awk script, D is an array of macro values keyed by name,
26997 # likewise P contains macro parameters if any.  Preserve backslash
26998 # newline sequences.
26999
27000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27001 sed -n '
27002 s/.\{148\}/&'"$ac_delim"'/g
27003 t rset
27004 :rset
27005 s/^[     ]*#[    ]*define[       ][      ]*/ /
27006 t def
27007 d
27008 :def
27009 s/\\$//
27010 t bsnl
27011 s/["\\]/\\&/g
27012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27013 D["\1"]=" \3"/p
27014 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27015 d
27016 :bsnl
27017 s/["\\]/\\&/g
27018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27019 D["\1"]=" \3\\\\\\n"\\/p
27020 t cont
27021 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27022 t cont
27023 d
27024 :cont
27025 n
27026 s/.\{148\}/&'"$ac_delim"'/g
27027 t clear
27028 :clear
27029 s/\\$//
27030 t bsnlc
27031 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27032 d
27033 :bsnlc
27034 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27035 b cont
27036 ' <confdefs.h | sed '
27037 s/'"$ac_delim"'/"\\\
27038 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27039
27040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27041   for (key in D) D_is_set[key] = 1
27042   FS = "\a"
27043 }
27044 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27045   line = \$ 0
27046   split(line, arg, " ")
27047   if (arg[1] == "#") {
27048     defundef = arg[2]
27049     mac1 = arg[3]
27050   } else {
27051     defundef = substr(arg[1], 2)
27052     mac1 = arg[2]
27053   }
27054   split(mac1, mac2, "(") #)
27055   macro = mac2[1]
27056   prefix = substr(line, 1, index(line, defundef) - 1)
27057   if (D_is_set[macro]) {
27058     # Preserve the white space surrounding the "#".
27059     print prefix "define", macro P[macro] D[macro]
27060     next
27061   } else {
27062     # Replace #undef with comments.  This is necessary, for example,
27063     # in the case of _POSIX_SOURCE, which is predefined and required
27064     # on some systems where configure will not decide to define it.
27065     if (defundef == "undef") {
27066       print "/*", prefix defundef, macro, "*/"
27067       next
27068     }
27069   }
27070 }
27071 { print }
27072 _ACAWK
27073 _ACEOF
27074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27075   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27076 fi # test -n "$CONFIG_HEADERS"
27077
27078
27079 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27080 shift
27081 for ac_tag
27082 do
27083   case $ac_tag in
27084   :[FHLC]) ac_mode=$ac_tag; continue;;
27085   esac
27086   case $ac_mode$ac_tag in
27087   :[FHL]*:*);;
27088   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27089   :[FH]-) ac_tag=-:-;;
27090   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27091   esac
27092   ac_save_IFS=$IFS
27093   IFS=:
27094   set x $ac_tag
27095   IFS=$ac_save_IFS
27096   shift
27097   ac_file=$1
27098   shift
27099
27100   case $ac_mode in
27101   :L) ac_source=$1;;
27102   :[FH])
27103     ac_file_inputs=
27104     for ac_f
27105     do
27106       case $ac_f in
27107       -) ac_f="$ac_tmp/stdin";;
27108       *) # Look for the file first in the build tree, then in the source tree
27109          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27110          # because $ac_f cannot contain `:'.
27111          test -f "$ac_f" ||
27112            case $ac_f in
27113            [\\/$]*) false;;
27114            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27115            esac ||
27116            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27117       esac
27118       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27119       as_fn_append ac_file_inputs " '$ac_f'"
27120     done
27121
27122     # Let's still pretend it is `configure' which instantiates (i.e., don't
27123     # use $as_me), people would be surprised to read:
27124     #    /* config.h.  Generated by config.status.  */
27125     configure_input='Generated from '`
27126           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27127         `' by configure.'
27128     if test x"$ac_file" != x-; then
27129       configure_input="$ac_file.  $configure_input"
27130       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27131 $as_echo "$as_me: creating $ac_file" >&6;}
27132     fi
27133     # Neutralize special characters interpreted by sed in replacement strings.
27134     case $configure_input in #(
27135     *\&* | *\|* | *\\* )
27136        ac_sed_conf_input=`$as_echo "$configure_input" |
27137        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27138     *) ac_sed_conf_input=$configure_input;;
27139     esac
27140
27141     case $ac_tag in
27142     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27143       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27144     esac
27145     ;;
27146   esac
27147
27148   ac_dir=`$as_dirname -- "$ac_file" ||
27149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27150          X"$ac_file" : 'X\(//\)[^/]' \| \
27151          X"$ac_file" : 'X\(//\)$' \| \
27152          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27153 $as_echo X"$ac_file" |
27154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27155             s//\1/
27156             q
27157           }
27158           /^X\(\/\/\)[^/].*/{
27159             s//\1/
27160             q
27161           }
27162           /^X\(\/\/\)$/{
27163             s//\1/
27164             q
27165           }
27166           /^X\(\/\).*/{
27167             s//\1/
27168             q
27169           }
27170           s/.*/./; q'`
27171   as_dir="$ac_dir"; as_fn_mkdir_p
27172   ac_builddir=.
27173
27174 case "$ac_dir" in
27175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27176 *)
27177   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27178   # A ".." for each directory in $ac_dir_suffix.
27179   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27180   case $ac_top_builddir_sub in
27181   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27182   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27183   esac ;;
27184 esac
27185 ac_abs_top_builddir=$ac_pwd
27186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27187 # for backward compatibility:
27188 ac_top_builddir=$ac_top_build_prefix
27189
27190 case $srcdir in
27191   .)  # We are building in place.
27192     ac_srcdir=.
27193     ac_top_srcdir=$ac_top_builddir_sub
27194     ac_abs_top_srcdir=$ac_pwd ;;
27195   [\\/]* | ?:[\\/]* )  # Absolute name.
27196     ac_srcdir=$srcdir$ac_dir_suffix;
27197     ac_top_srcdir=$srcdir
27198     ac_abs_top_srcdir=$srcdir ;;
27199   *) # Relative name.
27200     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27201     ac_top_srcdir=$ac_top_build_prefix$srcdir
27202     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27203 esac
27204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27205
27206
27207   case $ac_mode in
27208   :F)
27209   #
27210   # CONFIG_FILE
27211   #
27212
27213   case $INSTALL in
27214   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27215   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27216   esac
27217   ac_MKDIR_P=$MKDIR_P
27218   case $MKDIR_P in
27219   [\\/$]* | ?:[\\/]* ) ;;
27220   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27221   esac
27222 _ACEOF
27223
27224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27225 # If the template does not know about datarootdir, expand it.
27226 # FIXME: This hack should be removed a few years after 2.60.
27227 ac_datarootdir_hack=; ac_datarootdir_seen=
27228 ac_sed_dataroot='
27229 /datarootdir/ {
27230   p
27231   q
27232 }
27233 /@datadir@/p
27234 /@docdir@/p
27235 /@infodir@/p
27236 /@localedir@/p
27237 /@mandir@/p'
27238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27239 *datarootdir*) ac_datarootdir_seen=yes;;
27240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27241   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27243 _ACEOF
27244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27245   ac_datarootdir_hack='
27246   s&@datadir@&$datadir&g
27247   s&@docdir@&$docdir&g
27248   s&@infodir@&$infodir&g
27249   s&@localedir@&$localedir&g
27250   s&@mandir@&$mandir&g
27251   s&\\\${datarootdir}&$datarootdir&g' ;;
27252 esac
27253 _ACEOF
27254
27255 # Neutralize VPATH when `$srcdir' = `.'.
27256 # Shell code in configure.ac might set extrasub.
27257 # FIXME: do we really want to maintain this feature?
27258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27259 ac_sed_extra="$ac_vpsub
27260 $extrasub
27261 _ACEOF
27262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27263 :t
27264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27265 s|@configure_input@|$ac_sed_conf_input|;t t
27266 s&@top_builddir@&$ac_top_builddir_sub&;t t
27267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27268 s&@srcdir@&$ac_srcdir&;t t
27269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27270 s&@top_srcdir@&$ac_top_srcdir&;t t
27271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27272 s&@builddir@&$ac_builddir&;t t
27273 s&@abs_builddir@&$ac_abs_builddir&;t t
27274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27275 s&@INSTALL@&$ac_INSTALL&;t t
27276 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27277 $ac_datarootdir_hack
27278 "
27279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27280   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27281
27282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27283   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27284   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27285       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27286   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27287 which seems to be undefined.  Please make sure it is defined" >&5
27288 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27289 which seems to be undefined.  Please make sure it is defined" >&2;}
27290
27291   rm -f "$ac_tmp/stdin"
27292   case $ac_file in
27293   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27294   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27295   esac \
27296   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27297  ;;
27298   :H)
27299   #
27300   # CONFIG_HEADER
27301   #
27302   if test x"$ac_file" != x-; then
27303     {
27304       $as_echo "/* $configure_input  */" \
27305       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27306     } >"$ac_tmp/config.h" \
27307       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27308     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27309       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27310 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27311     else
27312       rm -f "$ac_file"
27313       mv "$ac_tmp/config.h" "$ac_file" \
27314         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27315     fi
27316   else
27317     $as_echo "/* $configure_input  */" \
27318       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27319       || as_fn_error $? "could not create -" "$LINENO" 5
27320   fi
27321 # Compute "$ac_file"'s index in $config_headers.
27322 _am_arg="$ac_file"
27323 _am_stamp_count=1
27324 for _am_header in $config_headers :; do
27325   case $_am_header in
27326     $_am_arg | $_am_arg:* )
27327       break ;;
27328     * )
27329       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27330   esac
27331 done
27332 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27333 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27334          X"$_am_arg" : 'X\(//\)[^/]' \| \
27335          X"$_am_arg" : 'X\(//\)$' \| \
27336          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27337 $as_echo X"$_am_arg" |
27338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27339             s//\1/
27340             q
27341           }
27342           /^X\(\/\/\)[^/].*/{
27343             s//\1/
27344             q
27345           }
27346           /^X\(\/\/\)$/{
27347             s//\1/
27348             q
27349           }
27350           /^X\(\/\).*/{
27351             s//\1/
27352             q
27353           }
27354           s/.*/./; q'`/stamp-h$_am_stamp_count
27355  ;;
27356
27357   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27358 $as_echo "$as_me: executing $ac_file commands" >&6;}
27359  ;;
27360   esac
27361
27362
27363   case $ac_file$ac_mode in
27364     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27365   # Older Autoconf quotes --file arguments for eval, but not when files
27366   # are listed without --file.  Let's play safe and only enable the eval
27367   # if we detect the quoting.
27368   case $CONFIG_FILES in
27369   *\'*) eval set x "$CONFIG_FILES" ;;
27370   *)   set x $CONFIG_FILES ;;
27371   esac
27372   shift
27373   for mf
27374   do
27375     # Strip MF so we end up with the name of the file.
27376     mf=`echo "$mf" | sed -e 's/:.*$//'`
27377     # Check whether this is an Automake generated Makefile or not.
27378     # We used to match only the files named 'Makefile.in', but
27379     # some people rename them; so instead we look at the file content.
27380     # Grep'ing the first line is not enough: some people post-process
27381     # each Makefile.in and add a new line on top of each file to say so.
27382     # Grep'ing the whole file is not good either: AIX grep has a line
27383     # limit of 2048, but all sed's we know have understand at least 4000.
27384     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27385       dirpart=`$as_dirname -- "$mf" ||
27386 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27387          X"$mf" : 'X\(//\)[^/]' \| \
27388          X"$mf" : 'X\(//\)$' \| \
27389          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27390 $as_echo X"$mf" |
27391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27392             s//\1/
27393             q
27394           }
27395           /^X\(\/\/\)[^/].*/{
27396             s//\1/
27397             q
27398           }
27399           /^X\(\/\/\)$/{
27400             s//\1/
27401             q
27402           }
27403           /^X\(\/\).*/{
27404             s//\1/
27405             q
27406           }
27407           s/.*/./; q'`
27408     else
27409       continue
27410     fi
27411     # Extract the definition of DEPDIR, am__include, and am__quote
27412     # from the Makefile without running 'make'.
27413     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27414     test -z "$DEPDIR" && continue
27415     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27416     test -z "$am__include" && continue
27417     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27418     # Find all dependency output files, they are included files with
27419     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27420     # simplest approach to changing $(DEPDIR) to its actual value in the
27421     # expansion.
27422     for file in `sed -n "
27423       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27424          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27425       # Make sure the directory exists.
27426       test -f "$dirpart/$file" && continue
27427       fdir=`$as_dirname -- "$file" ||
27428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27429          X"$file" : 'X\(//\)[^/]' \| \
27430          X"$file" : 'X\(//\)$' \| \
27431          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27432 $as_echo X"$file" |
27433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27434             s//\1/
27435             q
27436           }
27437           /^X\(\/\/\)[^/].*/{
27438             s//\1/
27439             q
27440           }
27441           /^X\(\/\/\)$/{
27442             s//\1/
27443             q
27444           }
27445           /^X\(\/\).*/{
27446             s//\1/
27447             q
27448           }
27449           s/.*/./; q'`
27450       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27451       # echo "creating $dirpart/$file"
27452       echo '# dummy' > "$dirpart/$file"
27453     done
27454   done
27455 }
27456  ;;
27457     "libtool":C)
27458
27459     # See if we are running on zsh, and set the options which allow our
27460     # commands through without removal of \ escapes.
27461     if test -n "${ZSH_VERSION+set}" ; then
27462       setopt NO_GLOB_SUBST
27463     fi
27464
27465     cfgfile="${ofile}T"
27466     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27467     $RM "$cfgfile"
27468
27469     cat <<_LT_EOF >> "$cfgfile"
27470 #! $SHELL
27471
27472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27476 #
27477 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27478 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27479 #                 Foundation, Inc.
27480 #   Written by Gordon Matzigkeit, 1996
27481 #
27482 #   This file is part of GNU Libtool.
27483 #
27484 # GNU Libtool is free software; you can redistribute it and/or
27485 # modify it under the terms of the GNU General Public License as
27486 # published by the Free Software Foundation; either version 2 of
27487 # the License, or (at your option) any later version.
27488 #
27489 # As a special exception to the GNU General Public License,
27490 # if you distribute this file as part of a program or library that
27491 # is built using GNU Libtool, you may include this file under the
27492 # same distribution terms that you use for the rest of that program.
27493 #
27494 # GNU Libtool is distributed in the hope that it will be useful,
27495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27497 # GNU General Public License for more details.
27498 #
27499 # You should have received a copy of the GNU General Public License
27500 # along with GNU Libtool; see the file COPYING.  If not, a copy
27501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27502 # obtained by writing to the Free Software Foundation, Inc.,
27503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27504
27505
27506 # The names of the tagged configurations supported by this script.
27507 available_tags=""
27508
27509 # ### BEGIN LIBTOOL CONFIG
27510
27511 # Which release of libtool.m4 was used?
27512 macro_version=$macro_version
27513 macro_revision=$macro_revision
27514
27515 # Whether or not to build static libraries.
27516 build_old_libs=$enable_static
27517
27518 # Whether or not to build shared libraries.
27519 build_libtool_libs=$enable_shared
27520
27521 # What type of objects to build.
27522 pic_mode=$pic_mode
27523
27524 # Whether or not to optimize for fast installation.
27525 fast_install=$enable_fast_install
27526
27527 # Shell to use when invoking shell scripts.
27528 SHELL=$lt_SHELL
27529
27530 # An echo program that protects backslashes.
27531 ECHO=$lt_ECHO
27532
27533 # The PATH separator for the build system.
27534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27535
27536 # The host system.
27537 host_alias=$host_alias
27538 host=$host
27539 host_os=$host_os
27540
27541 # The build system.
27542 build_alias=$build_alias
27543 build=$build
27544 build_os=$build_os
27545
27546 # A sed program that does not truncate output.
27547 SED=$lt_SED
27548
27549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27550 Xsed="\$SED -e 1s/^X//"
27551
27552 # A grep program that handles long lines.
27553 GREP=$lt_GREP
27554
27555 # An ERE matcher.
27556 EGREP=$lt_EGREP
27557
27558 # A literal string matcher.
27559 FGREP=$lt_FGREP
27560
27561 # A BSD- or MS-compatible name lister.
27562 NM=$lt_NM
27563
27564 # Whether we need soft or hard links.
27565 LN_S=$lt_LN_S
27566
27567 # What is the maximum length of a command?
27568 max_cmd_len=$max_cmd_len
27569
27570 # Object file suffix (normally "o").
27571 objext=$ac_objext
27572
27573 # Executable file suffix (normally "").
27574 exeext=$exeext
27575
27576 # whether the shell understands "unset".
27577 lt_unset=$lt_unset
27578
27579 # turn spaces into newlines.
27580 SP2NL=$lt_lt_SP2NL
27581
27582 # turn newlines into spaces.
27583 NL2SP=$lt_lt_NL2SP
27584
27585 # convert \$build file names to \$host format.
27586 to_host_file_cmd=$lt_cv_to_host_file_cmd
27587
27588 # convert \$build files to toolchain format.
27589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27590
27591 # An object symbol dumper.
27592 OBJDUMP=$lt_OBJDUMP
27593
27594 # Method to check whether dependent libraries are shared objects.
27595 deplibs_check_method=$lt_deplibs_check_method
27596
27597 # Command to use when deplibs_check_method = "file_magic".
27598 file_magic_cmd=$lt_file_magic_cmd
27599
27600 # How to find potential files when deplibs_check_method = "file_magic".
27601 file_magic_glob=$lt_file_magic_glob
27602
27603 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27604 want_nocaseglob=$lt_want_nocaseglob
27605
27606 # DLL creation program.
27607 DLLTOOL=$lt_DLLTOOL
27608
27609 # Command to associate shared and link libraries.
27610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27611
27612 # The archiver.
27613 AR=$lt_AR
27614
27615 # Flags to create an archive.
27616 AR_FLAGS=$lt_AR_FLAGS
27617
27618 # How to feed a file listing to the archiver.
27619 archiver_list_spec=$lt_archiver_list_spec
27620
27621 # A symbol stripping program.
27622 STRIP=$lt_STRIP
27623
27624 # Commands used to install an old-style archive.
27625 RANLIB=$lt_RANLIB
27626 old_postinstall_cmds=$lt_old_postinstall_cmds
27627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27628
27629 # Whether to use a lock for old archive extraction.
27630 lock_old_archive_extraction=$lock_old_archive_extraction
27631
27632 # A C compiler.
27633 LTCC=$lt_CC
27634
27635 # LTCC compiler flags.
27636 LTCFLAGS=$lt_CFLAGS
27637
27638 # Take the output of nm and produce a listing of raw symbols and C names.
27639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27640
27641 # Transform the output of nm in a proper C declaration.
27642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27643
27644 # Transform the output of nm in a C name address pair.
27645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27646
27647 # Transform the output of nm in a C name address pair when lib prefix is needed.
27648 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27649
27650 # Specify filename containing input files for \$NM.
27651 nm_file_list_spec=$lt_nm_file_list_spec
27652
27653 # The root where to search for dependent libraries,and in which our libraries should be installed.
27654 lt_sysroot=$lt_sysroot
27655
27656 # The name of the directory that contains temporary libtool files.
27657 objdir=$objdir
27658
27659 # Used to examine libraries when file_magic_cmd begins with "file".
27660 MAGIC_CMD=$MAGIC_CMD
27661
27662 # Must we lock files when doing compilation?
27663 need_locks=$lt_need_locks
27664
27665 # Manifest tool.
27666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27667
27668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27669 DSYMUTIL=$lt_DSYMUTIL
27670
27671 # Tool to change global to local symbols on Mac OS X.
27672 NMEDIT=$lt_NMEDIT
27673
27674 # Tool to manipulate fat objects and archives on Mac OS X.
27675 LIPO=$lt_LIPO
27676
27677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27678 OTOOL=$lt_OTOOL
27679
27680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27681 OTOOL64=$lt_OTOOL64
27682
27683 # Old archive suffix (normally "a").
27684 libext=$libext
27685
27686 # Shared library suffix (normally ".so").
27687 shrext_cmds=$lt_shrext_cmds
27688
27689 # The commands to extract the exported symbol list from a shared archive.
27690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27691
27692 # Variables whose values should be saved in libtool wrapper scripts and
27693 # restored at link time.
27694 variables_saved_for_relink=$lt_variables_saved_for_relink
27695
27696 # Do we need the "lib" prefix for modules?
27697 need_lib_prefix=$need_lib_prefix
27698
27699 # Do we need a version for libraries?
27700 need_version=$need_version
27701
27702 # Library versioning type.
27703 version_type=$version_type
27704
27705 # Shared library runtime path variable.
27706 runpath_var=$runpath_var
27707
27708 # Shared library path variable.
27709 shlibpath_var=$shlibpath_var
27710
27711 # Is shlibpath searched before the hard-coded library search path?
27712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27713
27714 # Format of library name prefix.
27715 libname_spec=$lt_libname_spec
27716
27717 # List of archive names.  First name is the real one, the rest are links.
27718 # The last name is the one that the linker finds with -lNAME
27719 library_names_spec=$lt_library_names_spec
27720
27721 # The coded name of the library, if different from the real name.
27722 soname_spec=$lt_soname_spec
27723
27724 # Permission mode override for installation of shared libraries.
27725 install_override_mode=$lt_install_override_mode
27726
27727 # Command to use after installation of a shared archive.
27728 postinstall_cmds=$lt_postinstall_cmds
27729
27730 # Command to use after uninstallation of a shared archive.
27731 postuninstall_cmds=$lt_postuninstall_cmds
27732
27733 # Commands used to finish a libtool library installation in a directory.
27734 finish_cmds=$lt_finish_cmds
27735
27736 # As "finish_cmds", except a single script fragment to be evaled but
27737 # not shown.
27738 finish_eval=$lt_finish_eval
27739
27740 # Whether we should hardcode library paths into libraries.
27741 hardcode_into_libs=$hardcode_into_libs
27742
27743 # Compile-time system search path for libraries.
27744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27745
27746 # Run-time system search path for libraries.
27747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27748
27749 # Whether dlopen is supported.
27750 dlopen_support=$enable_dlopen
27751
27752 # Whether dlopen of programs is supported.
27753 dlopen_self=$enable_dlopen_self
27754
27755 # Whether dlopen of statically linked programs is supported.
27756 dlopen_self_static=$enable_dlopen_self_static
27757
27758 # Commands to strip libraries.
27759 old_striplib=$lt_old_striplib
27760 striplib=$lt_striplib
27761
27762
27763 # The linker used to build libraries.
27764 LD=$lt_LD
27765
27766 # How to create reloadable object files.
27767 reload_flag=$lt_reload_flag
27768 reload_cmds=$lt_reload_cmds
27769
27770 # Commands used to build an old-style archive.
27771 old_archive_cmds=$lt_old_archive_cmds
27772
27773 # A language specific compiler.
27774 CC=$lt_compiler
27775
27776 # Is the compiler the GNU compiler?
27777 with_gcc=$GCC
27778
27779 # Compiler flag to turn off builtin functions.
27780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27781
27782 # Additional compiler flags for building library objects.
27783 pic_flag=$lt_lt_prog_compiler_pic
27784
27785 # How to pass a linker flag through the compiler.
27786 wl=$lt_lt_prog_compiler_wl
27787
27788 # Compiler flag to prevent dynamic linking.
27789 link_static_flag=$lt_lt_prog_compiler_static
27790
27791 # Does compiler simultaneously support -c and -o options?
27792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27793
27794 # Whether or not to add -lc for building shared libraries.
27795 build_libtool_need_lc=$archive_cmds_need_lc
27796
27797 # Whether or not to disallow shared libs when runtime libs are static.
27798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27799
27800 # Compiler flag to allow reflexive dlopens.
27801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27802
27803 # Compiler flag to generate shared objects directly from archives.
27804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27805
27806 # Whether the compiler copes with passing no objects directly.
27807 compiler_needs_object=$lt_compiler_needs_object
27808
27809 # Create an old-style archive from a shared archive.
27810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27811
27812 # Create a temporary old-style archive to link instead of a shared archive.
27813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27814
27815 # Commands used to build a shared archive.
27816 archive_cmds=$lt_archive_cmds
27817 archive_expsym_cmds=$lt_archive_expsym_cmds
27818
27819 # Commands used to build a loadable module if different from building
27820 # a shared archive.
27821 module_cmds=$lt_module_cmds
27822 module_expsym_cmds=$lt_module_expsym_cmds
27823
27824 # Whether we are building with GNU ld or not.
27825 with_gnu_ld=$lt_with_gnu_ld
27826
27827 # Flag that allows shared libraries with undefined symbols to be built.
27828 allow_undefined_flag=$lt_allow_undefined_flag
27829
27830 # Flag that enforces no undefined symbols.
27831 no_undefined_flag=$lt_no_undefined_flag
27832
27833 # Flag to hardcode \$libdir into a binary during linking.
27834 # This must work even if \$libdir does not exist
27835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27836
27837 # Whether we need a single "-rpath" flag with a separated argument.
27838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27839
27840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27841 # DIR into the resulting binary.
27842 hardcode_direct=$hardcode_direct
27843
27844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27845 # DIR into the resulting binary and the resulting library dependency is
27846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27847 # library is relocated.
27848 hardcode_direct_absolute=$hardcode_direct_absolute
27849
27850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27851 # into the resulting binary.
27852 hardcode_minus_L=$hardcode_minus_L
27853
27854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27855 # into the resulting binary.
27856 hardcode_shlibpath_var=$hardcode_shlibpath_var
27857
27858 # Set to "yes" if building a shared library automatically hardcodes DIR
27859 # into the library and all subsequent libraries and executables linked
27860 # against it.
27861 hardcode_automatic=$hardcode_automatic
27862
27863 # Set to yes if linker adds runtime paths of dependent libraries
27864 # to runtime path list.
27865 inherit_rpath=$inherit_rpath
27866
27867 # Whether libtool must link a program against all its dependency libraries.
27868 link_all_deplibs=$link_all_deplibs
27869
27870 # Set to "yes" if exported symbols are required.
27871 always_export_symbols=$always_export_symbols
27872
27873 # The commands to list exported symbols.
27874 export_symbols_cmds=$lt_export_symbols_cmds
27875
27876 # Symbols that should not be listed in the preloaded symbols.
27877 exclude_expsyms=$lt_exclude_expsyms
27878
27879 # Symbols that must always be exported.
27880 include_expsyms=$lt_include_expsyms
27881
27882 # Commands necessary for linking programs (against libraries) with templates.
27883 prelink_cmds=$lt_prelink_cmds
27884
27885 # Commands necessary for finishing linking programs.
27886 postlink_cmds=$lt_postlink_cmds
27887
27888 # Specify filename containing input files.
27889 file_list_spec=$lt_file_list_spec
27890
27891 # How to hardcode a shared library path into an executable.
27892 hardcode_action=$hardcode_action
27893
27894 # ### END LIBTOOL CONFIG
27895
27896 _LT_EOF
27897
27898   case $host_os in
27899   aix3*)
27900     cat <<\_LT_EOF >> "$cfgfile"
27901 # AIX sometimes has problems with the GCC collect2 program.  For some
27902 # reason, if we set the COLLECT_NAMES environment variable, the problems
27903 # vanish in a puff of smoke.
27904 if test "X${COLLECT_NAMES+set}" != Xset; then
27905   COLLECT_NAMES=
27906   export COLLECT_NAMES
27907 fi
27908 _LT_EOF
27909     ;;
27910   esac
27911
27912
27913 ltmain="$ac_aux_dir/ltmain.sh"
27914
27915
27916   # We use sed instead of cat because bash on DJGPP gets confused if
27917   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27918   # text mode, it properly converts lines to CR/LF.  This bash problem
27919   # is reportedly fixed, but why not run on old versions too?
27920   sed '$q' "$ltmain" >> "$cfgfile" \
27921      || (rm -f "$cfgfile"; exit 1)
27922
27923   if test x"$xsi_shell" = xyes; then
27924   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27925 func_dirname ()\
27926 {\
27927 \    case ${1} in\
27928 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27929 \      *  ) func_dirname_result="${3}" ;;\
27930 \    esac\
27931 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27932   && mv -f "$cfgfile.tmp" "$cfgfile" \
27933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27934 test 0 -eq $? || _lt_function_replace_fail=:
27935
27936
27937   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27938 func_basename ()\
27939 {\
27940 \    func_basename_result="${1##*/}"\
27941 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27942   && mv -f "$cfgfile.tmp" "$cfgfile" \
27943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27944 test 0 -eq $? || _lt_function_replace_fail=:
27945
27946
27947   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27948 func_dirname_and_basename ()\
27949 {\
27950 \    case ${1} in\
27951 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27952 \      *  ) func_dirname_result="${3}" ;;\
27953 \    esac\
27954 \    func_basename_result="${1##*/}"\
27955 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27956   && mv -f "$cfgfile.tmp" "$cfgfile" \
27957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27958 test 0 -eq $? || _lt_function_replace_fail=:
27959
27960
27961   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27962 func_stripname ()\
27963 {\
27964 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27965 \    # positional parameters, so assign one to ordinary parameter first.\
27966 \    func_stripname_result=${3}\
27967 \    func_stripname_result=${func_stripname_result#"${1}"}\
27968 \    func_stripname_result=${func_stripname_result%"${2}"}\
27969 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27970   && mv -f "$cfgfile.tmp" "$cfgfile" \
27971     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27972 test 0 -eq $? || _lt_function_replace_fail=:
27973
27974
27975   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27976 func_split_long_opt ()\
27977 {\
27978 \    func_split_long_opt_name=${1%%=*}\
27979 \    func_split_long_opt_arg=${1#*=}\
27980 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27981   && mv -f "$cfgfile.tmp" "$cfgfile" \
27982     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27983 test 0 -eq $? || _lt_function_replace_fail=:
27984
27985
27986   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27987 func_split_short_opt ()\
27988 {\
27989 \    func_split_short_opt_arg=${1#??}\
27990 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27991 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27992   && mv -f "$cfgfile.tmp" "$cfgfile" \
27993     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27994 test 0 -eq $? || _lt_function_replace_fail=:
27995
27996
27997   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27998 func_lo2o ()\
27999 {\
28000 \    case ${1} in\
28001 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28002 \      *)    func_lo2o_result=${1} ;;\
28003 \    esac\
28004 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28005   && mv -f "$cfgfile.tmp" "$cfgfile" \
28006     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28007 test 0 -eq $? || _lt_function_replace_fail=:
28008
28009
28010   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28011 func_xform ()\
28012 {\
28013     func_xform_result=${1%.*}.lo\
28014 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28015   && mv -f "$cfgfile.tmp" "$cfgfile" \
28016     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28017 test 0 -eq $? || _lt_function_replace_fail=:
28018
28019
28020   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28021 func_arith ()\
28022 {\
28023     func_arith_result=$(( $* ))\
28024 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28025   && mv -f "$cfgfile.tmp" "$cfgfile" \
28026     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28027 test 0 -eq $? || _lt_function_replace_fail=:
28028
28029
28030   sed -e '/^func_len ()$/,/^} # func_len /c\
28031 func_len ()\
28032 {\
28033     func_len_result=${#1}\
28034 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28035   && mv -f "$cfgfile.tmp" "$cfgfile" \
28036     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28037 test 0 -eq $? || _lt_function_replace_fail=:
28038
28039 fi
28040
28041 if test x"$lt_shell_append" = xyes; then
28042   sed -e '/^func_append ()$/,/^} # func_append /c\
28043 func_append ()\
28044 {\
28045     eval "${1}+=\\${2}"\
28046 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28047   && mv -f "$cfgfile.tmp" "$cfgfile" \
28048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28049 test 0 -eq $? || _lt_function_replace_fail=:
28050
28051
28052   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28053 func_append_quoted ()\
28054 {\
28055 \    func_quote_for_eval "${2}"\
28056 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28057 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28058   && mv -f "$cfgfile.tmp" "$cfgfile" \
28059     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28060 test 0 -eq $? || _lt_function_replace_fail=:
28061
28062
28063   # Save a `func_append' function call where possible by direct use of '+='
28064   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28065     && mv -f "$cfgfile.tmp" "$cfgfile" \
28066       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28067   test 0 -eq $? || _lt_function_replace_fail=:
28068 else
28069   # Save a `func_append' function call even when '+=' is not available
28070   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28071     && mv -f "$cfgfile.tmp" "$cfgfile" \
28072       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28073   test 0 -eq $? || _lt_function_replace_fail=:
28074 fi
28075
28076 if test x"$_lt_function_replace_fail" = x":"; then
28077   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28078 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28079 fi
28080
28081
28082    mv -f "$cfgfile" "$ofile" ||
28083     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28084   chmod +x "$ofile"
28085
28086  ;;
28087
28088   esac
28089 done # for ac_tag
28090
28091
28092 as_fn_exit 0
28093 _ACEOF
28094 ac_clean_files=$ac_clean_files_save
28095
28096 test $ac_write_fail = 0 ||
28097   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28098
28099
28100 # configure is writing to config.log, and then calls config.status.
28101 # config.status does its own redirection, appending to config.log.
28102 # Unfortunately, on DOS this fails, as config.log is still kept open
28103 # by configure, so config.status won't be able to write to it; its
28104 # output is simply discarded.  So we exec the FD to /dev/null,
28105 # effectively closing config.log, so it can be properly (re)opened and
28106 # appended to by config.status.  When coming back to configure, we
28107 # need to make the FD available again.
28108 if test "$no_create" != yes; then
28109   ac_cs_success=:
28110   ac_config_status_args=
28111   test "$silent" = yes &&
28112     ac_config_status_args="$ac_config_status_args --quiet"
28113   exec 5>/dev/null
28114   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28115   exec 5>>config.log
28116   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28117   # would make configure fail if this is the last instruction.
28118   $ac_cs_success || as_fn_exit 1
28119 fi
28120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28123 fi
28124