Imported Upstream version 1.2.4
[platform/upstream/libpipeline.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.2.4.
4 #
5 # Report bugs to <cjwatson@debian.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.2.4'
594 PACKAGE_STRING='libpipeline 1.2.4'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 gl_header_list=
637 gl_func_list=
638 ac_subst_vars='gltests_LTLIBOBJS
639 gltests_LIBOBJS
640 gl_LTLIBOBJS
641 gl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 gltests_WITNESS
647 HAVE_WINT_T
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
649 NEXT_WCHAR_H
650 REPLACE_WCSWIDTH
651 REPLACE_WCWIDTH
652 REPLACE_WCSNRTOMBS
653 REPLACE_WCSRTOMBS
654 REPLACE_WCRTOMB
655 REPLACE_MBSNRTOWCS
656 REPLACE_MBSRTOWCS
657 REPLACE_MBRLEN
658 REPLACE_MBRTOWC
659 REPLACE_MBSINIT
660 REPLACE_WCTOB
661 REPLACE_BTOWC
662 REPLACE_MBSTATE_T
663 HAVE_DECL_WCWIDTH
664 HAVE_DECL_WCTOB
665 HAVE_WCSWIDTH
666 HAVE_WCSTOK
667 HAVE_WCSSTR
668 HAVE_WCSPBRK
669 HAVE_WCSSPN
670 HAVE_WCSCSPN
671 HAVE_WCSRCHR
672 HAVE_WCSCHR
673 HAVE_WCSDUP
674 HAVE_WCSXFRM
675 HAVE_WCSCOLL
676 HAVE_WCSNCASECMP
677 HAVE_WCSCASECMP
678 HAVE_WCSNCMP
679 HAVE_WCSCMP
680 HAVE_WCSNCAT
681 HAVE_WCSCAT
682 HAVE_WCPNCPY
683 HAVE_WCSNCPY
684 HAVE_WCPCPY
685 HAVE_WCSCPY
686 HAVE_WCSNLEN
687 HAVE_WCSLEN
688 HAVE_WMEMSET
689 HAVE_WMEMMOVE
690 HAVE_WMEMCPY
691 HAVE_WMEMCMP
692 HAVE_WMEMCHR
693 HAVE_WCSNRTOMBS
694 HAVE_WCSRTOMBS
695 HAVE_WCRTOMB
696 HAVE_MBSNRTOWCS
697 HAVE_MBSRTOWCS
698 HAVE_MBRLEN
699 HAVE_MBRTOWC
700 HAVE_MBSINIT
701 HAVE_BTOWC
702 GNULIB_WCSWIDTH
703 GNULIB_WCSTOK
704 GNULIB_WCSSTR
705 GNULIB_WCSPBRK
706 GNULIB_WCSSPN
707 GNULIB_WCSCSPN
708 GNULIB_WCSRCHR
709 GNULIB_WCSCHR
710 GNULIB_WCSDUP
711 GNULIB_WCSXFRM
712 GNULIB_WCSCOLL
713 GNULIB_WCSNCASECMP
714 GNULIB_WCSCASECMP
715 GNULIB_WCSNCMP
716 GNULIB_WCSCMP
717 GNULIB_WCSNCAT
718 GNULIB_WCSCAT
719 GNULIB_WCPNCPY
720 GNULIB_WCSNCPY
721 GNULIB_WCPCPY
722 GNULIB_WCSCPY
723 GNULIB_WCSNLEN
724 GNULIB_WCSLEN
725 GNULIB_WMEMSET
726 GNULIB_WMEMMOVE
727 GNULIB_WMEMCPY
728 GNULIB_WMEMCMP
729 GNULIB_WMEMCHR
730 GNULIB_WCWIDTH
731 GNULIB_WCSNRTOMBS
732 GNULIB_WCSRTOMBS
733 GNULIB_WCRTOMB
734 GNULIB_MBSNRTOWCS
735 GNULIB_MBSRTOWCS
736 GNULIB_MBRLEN
737 GNULIB_MBRTOWC
738 GNULIB_MBSINIT
739 GNULIB_WCTOB
740 GNULIB_BTOWC
741 HAVE_FEATURES_H
742 HAVE_UNISTD_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
744 NEXT_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
749 NEXT_TIME_H
750 REPLACE_TIMEGM
751 REPLACE_NANOSLEEP
752 REPLACE_MKTIME
753 REPLACE_LOCALTIME_R
754 HAVE_TIMEGM
755 HAVE_STRPTIME
756 HAVE_NANOSLEEP
757 HAVE_DECL_LOCALTIME_R
758 GNULIB_TIME_R
759 GNULIB_TIMEGM
760 GNULIB_STRPTIME
761 GNULIB_NANOSLEEP
762 GNULIB_MKTIME
763 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
764 NEXT_SYS_WAIT_H
765 GNULIB_WAITPID
766 WINDOWS_64_BIT_OFF_T
767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
768 NEXT_SYS_TYPES_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
770 NEXT_SYS_TIME_H
771 REPLACE_STRUCT_TIMEVAL
772 REPLACE_GETTIMEOFDAY
773 HAVE_SYS_TIME_H
774 HAVE_STRUCT_TIMEVAL
775 HAVE_GETTIMEOFDAY
776 GNULIB_GETTIMEOFDAY
777 WINDOWS_64_BIT_ST_SIZE
778 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
779 NEXT_SYS_STAT_H
780 REPLACE_UTIMENSAT
781 REPLACE_STAT
782 REPLACE_MKNOD
783 REPLACE_MKFIFO
784 REPLACE_MKDIR
785 REPLACE_LSTAT
786 REPLACE_FUTIMENS
787 REPLACE_FSTATAT
788 REPLACE_FSTAT
789 HAVE_UTIMENSAT
790 HAVE_MKNODAT
791 HAVE_MKNOD
792 HAVE_MKFIFOAT
793 HAVE_MKFIFO
794 HAVE_MKDIRAT
795 HAVE_LSTAT
796 HAVE_LCHMOD
797 HAVE_FUTIMENS
798 HAVE_FSTATAT
799 HAVE_FCHMODAT
800 GNULIB_UTIMENSAT
801 GNULIB_STAT
802 GNULIB_MKNODAT
803 GNULIB_MKNOD
804 GNULIB_MKFIFOAT
805 GNULIB_MKFIFO
806 GNULIB_MKDIRAT
807 GNULIB_LSTAT
808 GNULIB_LCHMOD
809 GNULIB_FUTIMENS
810 GNULIB_FSTATAT
811 GNULIB_FSTAT
812 GNULIB_FCHMODAT
813 HAVE_SYS_SELECT_H
814 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
815 NEXT_SYS_SELECT_H
816 REPLACE_SELECT
817 REPLACE_PSELECT
818 HAVE_PSELECT
819 GNULIB_SELECT
820 GNULIB_PSELECT
821 NEXT_AS_FIRST_DIRECTIVE_STRING_H
822 NEXT_STRING_H
823 HAVE_WINSOCK2_H
824 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
825 NEXT_STDLIB_H
826 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
827 NEXT_STDIO_H
828 GL_GENERATE_STDINT_H_FALSE
829 GL_GENERATE_STDINT_H_TRUE
830 STDINT_H
831 WINT_T_SUFFIX
832 WCHAR_T_SUFFIX
833 SIG_ATOMIC_T_SUFFIX
834 SIZE_T_SUFFIX
835 PTRDIFF_T_SUFFIX
836 HAVE_SIGNED_WINT_T
837 HAVE_SIGNED_WCHAR_T
838 HAVE_SIGNED_SIG_ATOMIC_T
839 BITSIZEOF_WINT_T
840 BITSIZEOF_WCHAR_T
841 BITSIZEOF_SIG_ATOMIC_T
842 BITSIZEOF_SIZE_T
843 BITSIZEOF_PTRDIFF_T
844 HAVE_SYS_BITYPES_H
845 HAVE_SYS_INTTYPES_H
846 HAVE_STDINT_H
847 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
848 NEXT_STDINT_H
849 HAVE_SYS_TYPES_H
850 HAVE_INTTYPES_H
851 HAVE_WCHAR_H
852 HAVE_UNSIGNED_LONG_LONG_INT
853 HAVE_LONG_LONG_INT
854 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
855 NEXT_STDDEF_H
856 GL_GENERATE_STDDEF_H_FALSE
857 GL_GENERATE_STDDEF_H_TRUE
858 STDDEF_H
859 HAVE_WCHAR_T
860 REPLACE_NULL
861 HAVE__BOOL
862 GL_GENERATE_STDBOOL_H_FALSE
863 GL_GENERATE_STDBOOL_H_TRUE
864 STDBOOL_H
865 GL_GENERATE_STDARG_H_FALSE
866 GL_GENERATE_STDARG_H_TRUE
867 STDARG_H
868 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
869 NEXT_STDARG_H
870 REPLACE_VSPRINTF
871 REPLACE_VSNPRINTF
872 REPLACE_VPRINTF
873 REPLACE_VFPRINTF
874 REPLACE_VDPRINTF
875 REPLACE_VASPRINTF
876 REPLACE_TMPFILE
877 REPLACE_STDIO_WRITE_FUNCS
878 REPLACE_STDIO_READ_FUNCS
879 REPLACE_SPRINTF
880 REPLACE_SNPRINTF
881 REPLACE_RENAMEAT
882 REPLACE_RENAME
883 REPLACE_REMOVE
884 REPLACE_PRINTF
885 REPLACE_POPEN
886 REPLACE_PERROR
887 REPLACE_OBSTACK_PRINTF
888 REPLACE_GETLINE
889 REPLACE_GETDELIM
890 REPLACE_FTELLO
891 REPLACE_FTELL
892 REPLACE_FSEEKO
893 REPLACE_FSEEK
894 REPLACE_FREOPEN
895 REPLACE_FPURGE
896 REPLACE_FPRINTF
897 REPLACE_FOPEN
898 REPLACE_FFLUSH
899 REPLACE_FDOPEN
900 REPLACE_FCLOSE
901 REPLACE_DPRINTF
902 HAVE_VDPRINTF
903 HAVE_VASPRINTF
904 HAVE_RENAMEAT
905 HAVE_POPEN
906 HAVE_PCLOSE
907 HAVE_FTELLO
908 HAVE_FSEEKO
909 HAVE_DPRINTF
910 HAVE_DECL_VSNPRINTF
911 HAVE_DECL_SNPRINTF
912 HAVE_DECL_OBSTACK_PRINTF
913 HAVE_DECL_GETLINE
914 HAVE_DECL_GETDELIM
915 HAVE_DECL_FTELLO
916 HAVE_DECL_FSEEKO
917 HAVE_DECL_FPURGE
918 GNULIB_VSPRINTF_POSIX
919 GNULIB_VSNPRINTF
920 GNULIB_VPRINTF_POSIX
921 GNULIB_VPRINTF
922 GNULIB_VFPRINTF_POSIX
923 GNULIB_VFPRINTF
924 GNULIB_VDPRINTF
925 GNULIB_VSCANF
926 GNULIB_VFSCANF
927 GNULIB_VASPRINTF
928 GNULIB_TMPFILE
929 GNULIB_STDIO_H_SIGPIPE
930 GNULIB_STDIO_H_NONBLOCKING
931 GNULIB_SPRINTF_POSIX
932 GNULIB_SNPRINTF
933 GNULIB_SCANF
934 GNULIB_RENAMEAT
935 GNULIB_RENAME
936 GNULIB_REMOVE
937 GNULIB_PUTS
938 GNULIB_PUTCHAR
939 GNULIB_PUTC
940 GNULIB_PRINTF_POSIX
941 GNULIB_PRINTF
942 GNULIB_POPEN
943 GNULIB_PERROR
944 GNULIB_PCLOSE
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
947 GNULIB_GETLINE
948 GNULIB_GETDELIM
949 GNULIB_GETCHAR
950 GNULIB_GETC
951 GNULIB_FWRITE
952 GNULIB_FTELLO
953 GNULIB_FTELL
954 GNULIB_FSEEKO
955 GNULIB_FSEEK
956 GNULIB_FSCANF
957 GNULIB_FREOPEN
958 GNULIB_FREAD
959 GNULIB_FPUTS
960 GNULIB_FPUTC
961 GNULIB_FPURGE
962 GNULIB_FPRINTF_POSIX
963 GNULIB_FPRINTF
964 GNULIB_FOPEN
965 GNULIB_FGETS
966 GNULIB_FGETC
967 GNULIB_FFLUSH
968 GNULIB_FDOPEN
969 GNULIB_FCLOSE
970 GNULIB_DPRINTF
971 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
972 NEXT_SIGNAL_H
973 REPLACE_RAISE
974 REPLACE_PTHREAD_SIGMASK
975 HAVE_SIGHANDLER_T
976 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
977 HAVE_STRUCT_SIGACTION_SA_SIGACTION
978 HAVE_SIGACTION
979 HAVE_SIGINFO_T
980 HAVE_SIGSET_T
981 HAVE_RAISE
982 HAVE_PTHREAD_SIGMASK
983 HAVE_POSIX_SIGNALBLOCKING
984 GNULIB_SIGACTION
985 GNULIB_SIGPROCMASK
986 GNULIB_SIGNAL_H_SIGPIPE
987 GNULIB_RAISE
988 GNULIB_PTHREAD_SIGMASK
989 APPLE_UNIVERSAL_BUILD
990 HAVE_MSVC_INVALID_PARAMETER_HANDLER
991 UNDEFINE_STRTOK_R
992 REPLACE_STRTOK_R
993 REPLACE_STRSIGNAL
994 REPLACE_STRNLEN
995 REPLACE_STRNDUP
996 REPLACE_STRNCAT
997 REPLACE_STRERROR_R
998 REPLACE_STRERROR
999 REPLACE_STRCHRNUL
1000 REPLACE_STRCASESTR
1001 REPLACE_STRSTR
1002 REPLACE_STRDUP
1003 REPLACE_STPNCPY
1004 REPLACE_MEMMEM
1005 REPLACE_MEMCHR
1006 HAVE_STRVERSCMP
1007 HAVE_DECL_STRSIGNAL
1008 HAVE_DECL_STRERROR_R
1009 HAVE_DECL_STRTOK_R
1010 HAVE_STRCASESTR
1011 HAVE_STRSEP
1012 HAVE_STRPBRK
1013 HAVE_DECL_STRNLEN
1014 HAVE_DECL_STRNDUP
1015 HAVE_DECL_STRDUP
1016 HAVE_STRCHRNUL
1017 HAVE_STPNCPY
1018 HAVE_STPCPY
1019 HAVE_RAWMEMCHR
1020 HAVE_DECL_MEMRCHR
1021 HAVE_MEMPCPY
1022 HAVE_DECL_MEMMEM
1023 HAVE_MEMCHR
1024 HAVE_FFSLL
1025 HAVE_FFSL
1026 HAVE_MBSLEN
1027 GNULIB_STRVERSCMP
1028 GNULIB_STRSIGNAL
1029 GNULIB_STRERROR_R
1030 GNULIB_STRERROR
1031 GNULIB_MBSTOK_R
1032 GNULIB_MBSSEP
1033 GNULIB_MBSSPN
1034 GNULIB_MBSPBRK
1035 GNULIB_MBSCSPN
1036 GNULIB_MBSCASESTR
1037 GNULIB_MBSPCASECMP
1038 GNULIB_MBSNCASECMP
1039 GNULIB_MBSCASECMP
1040 GNULIB_MBSSTR
1041 GNULIB_MBSRCHR
1042 GNULIB_MBSCHR
1043 GNULIB_MBSNLEN
1044 GNULIB_MBSLEN
1045 GNULIB_STRTOK_R
1046 GNULIB_STRCASESTR
1047 GNULIB_STRSTR
1048 GNULIB_STRSEP
1049 GNULIB_STRPBRK
1050 GNULIB_STRNLEN
1051 GNULIB_STRNDUP
1052 GNULIB_STRNCAT
1053 GNULIB_STRDUP
1054 GNULIB_STRCHRNUL
1055 GNULIB_STPNCPY
1056 GNULIB_STPCPY
1057 GNULIB_RAWMEMCHR
1058 GNULIB_MEMRCHR
1059 GNULIB_MEMPCPY
1060 GNULIB_MEMMEM
1061 GNULIB_MEMCHR
1062 GNULIB_FFSLL
1063 GNULIB_FFSL
1064 REPLACE_WCTOMB
1065 REPLACE_UNSETENV
1066 REPLACE_STRTOD
1067 REPLACE_SETENV
1068 REPLACE_REALPATH
1069 REPLACE_REALLOC
1070 REPLACE_RANDOM_R
1071 REPLACE_PUTENV
1072 REPLACE_PTSNAME_R
1073 REPLACE_PTSNAME
1074 REPLACE_MKSTEMP
1075 REPLACE_MBTOWC
1076 REPLACE_MALLOC
1077 REPLACE_CANONICALIZE_FILE_NAME
1078 REPLACE_CALLOC
1079 HAVE_DECL_UNSETENV
1080 HAVE_UNLOCKPT
1081 HAVE_SYS_LOADAVG_H
1082 HAVE_STRUCT_RANDOM_DATA
1083 HAVE_STRTOULL
1084 HAVE_STRTOLL
1085 HAVE_STRTOD
1086 HAVE_DECL_SETENV
1087 HAVE_SETENV
1088 HAVE_SECURE_GETENV
1089 HAVE_RPMATCH
1090 HAVE_REALPATH
1091 HAVE_RANDOM_R
1092 HAVE_RANDOM_H
1093 HAVE_RANDOM
1094 HAVE_PTSNAME_R
1095 HAVE_PTSNAME
1096 HAVE_POSIX_OPENPT
1097 HAVE_MKSTEMPS
1098 HAVE_MKSTEMP
1099 HAVE_MKOSTEMPS
1100 HAVE_MKOSTEMP
1101 HAVE_MKDTEMP
1102 HAVE_GRANTPT
1103 HAVE_GETSUBOPT
1104 HAVE_DECL_GETLOADAVG
1105 HAVE_CANONICALIZE_FILE_NAME
1106 HAVE_ATOLL
1107 HAVE__EXIT
1108 GNULIB_WCTOMB
1109 GNULIB_UNSETENV
1110 GNULIB_UNLOCKPT
1111 GNULIB_SYSTEM_POSIX
1112 GNULIB_STRTOULL
1113 GNULIB_STRTOLL
1114 GNULIB_STRTOD
1115 GNULIB_SETENV
1116 GNULIB_SECURE_GETENV
1117 GNULIB_RPMATCH
1118 GNULIB_REALPATH
1119 GNULIB_REALLOC_POSIX
1120 GNULIB_RANDOM_R
1121 GNULIB_RANDOM
1122 GNULIB_PUTENV
1123 GNULIB_PTSNAME_R
1124 GNULIB_PTSNAME
1125 GNULIB_POSIX_OPENPT
1126 GNULIB_MKSTEMPS
1127 GNULIB_MKSTEMP
1128 GNULIB_MKOSTEMPS
1129 GNULIB_MKOSTEMP
1130 GNULIB_MKDTEMP
1131 GNULIB_MBTOWC
1132 GNULIB_MALLOC_POSIX
1133 GNULIB_GRANTPT
1134 GNULIB_GETSUBOPT
1135 GNULIB_GETLOADAVG
1136 GNULIB_CANONICALIZE_FILE_NAME
1137 GNULIB_CALLOC_POSIX
1138 GNULIB_ATOLL
1139 GNULIB__EXIT
1140 LTLIBMULTITHREAD
1141 LIBMULTITHREAD
1142 LTLIBTHREAD
1143 LIBTHREAD
1144 LIBPTH_PREFIX
1145 LTLIBPTH
1146 LIBPTH
1147 IGNORE_UNUSED_LIBRARIES_CFLAGS
1148 LTLIBINTL
1149 LIBINTL
1150 REPLACE_ITOLD
1151 GL_GENERATE_FLOAT_H_FALSE
1152 GL_GENERATE_FLOAT_H_TRUE
1153 FLOAT_H
1154 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1155 NEXT_FLOAT_H
1156 EOVERFLOW_VALUE
1157 EOVERFLOW_HIDDEN
1158 ENOLINK_VALUE
1159 ENOLINK_HIDDEN
1160 EMULTIHOP_VALUE
1161 EMULTIHOP_HIDDEN
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1164 ERRNO_H
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1166 NEXT_ERRNO_H
1167 PRAGMA_COLUMNS
1168 PRAGMA_SYSTEM_HEADER
1169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1170 INCLUDE_NEXT
1171 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1172 UNISTD_H_HAVE_WINSOCK2_H
1173 REPLACE_WRITE
1174 REPLACE_USLEEP
1175 REPLACE_UNLINKAT
1176 REPLACE_UNLINK
1177 REPLACE_TTYNAME_R
1178 REPLACE_SYMLINK
1179 REPLACE_SLEEP
1180 REPLACE_RMDIR
1181 REPLACE_READLINK
1182 REPLACE_READ
1183 REPLACE_PWRITE
1184 REPLACE_PREAD
1185 REPLACE_LSEEK
1186 REPLACE_LINKAT
1187 REPLACE_LINK
1188 REPLACE_LCHOWN
1189 REPLACE_ISATTY
1190 REPLACE_GETPAGESIZE
1191 REPLACE_GETGROUPS
1192 REPLACE_GETLOGIN_R
1193 REPLACE_GETDOMAINNAME
1194 REPLACE_GETCWD
1195 REPLACE_FTRUNCATE
1196 REPLACE_FCHOWNAT
1197 REPLACE_DUP2
1198 REPLACE_DUP
1199 REPLACE_CLOSE
1200 REPLACE_CHOWN
1201 HAVE_SYS_PARAM_H
1202 HAVE_OS_H
1203 HAVE_DECL_TTYNAME_R
1204 HAVE_DECL_SETHOSTNAME
1205 HAVE_DECL_GETUSERSHELL
1206 HAVE_DECL_GETPAGESIZE
1207 HAVE_DECL_GETLOGIN_R
1208 HAVE_DECL_GETDOMAINNAME
1209 HAVE_DECL_FDATASYNC
1210 HAVE_DECL_FCHDIR
1211 HAVE_DECL_ENVIRON
1212 HAVE_USLEEP
1213 HAVE_UNLINKAT
1214 HAVE_SYMLINKAT
1215 HAVE_SYMLINK
1216 HAVE_SLEEP
1217 HAVE_SETHOSTNAME
1218 HAVE_READLINKAT
1219 HAVE_READLINK
1220 HAVE_PWRITE
1221 HAVE_PREAD
1222 HAVE_PIPE2
1223 HAVE_PIPE
1224 HAVE_LINKAT
1225 HAVE_LINK
1226 HAVE_LCHOWN
1227 HAVE_GROUP_MEMBER
1228 HAVE_GETPAGESIZE
1229 HAVE_GETLOGIN
1230 HAVE_GETHOSTNAME
1231 HAVE_GETGROUPS
1232 HAVE_GETDTABLESIZE
1233 HAVE_FTRUNCATE
1234 HAVE_FSYNC
1235 HAVE_FDATASYNC
1236 HAVE_FCHOWNAT
1237 HAVE_FCHDIR
1238 HAVE_FACCESSAT
1239 HAVE_EUIDACCESS
1240 HAVE_DUP3
1241 HAVE_DUP2
1242 HAVE_CHOWN
1243 GNULIB_WRITE
1244 GNULIB_USLEEP
1245 GNULIB_UNLINKAT
1246 GNULIB_UNLINK
1247 GNULIB_UNISTD_H_SIGPIPE
1248 GNULIB_UNISTD_H_NONBLOCKING
1249 GNULIB_TTYNAME_R
1250 GNULIB_SYMLINKAT
1251 GNULIB_SYMLINK
1252 GNULIB_SLEEP
1253 GNULIB_SETHOSTNAME
1254 GNULIB_RMDIR
1255 GNULIB_READLINKAT
1256 GNULIB_READLINK
1257 GNULIB_READ
1258 GNULIB_PWRITE
1259 GNULIB_PREAD
1260 GNULIB_PIPE2
1261 GNULIB_PIPE
1262 GNULIB_LSEEK
1263 GNULIB_LINKAT
1264 GNULIB_LINK
1265 GNULIB_LCHOWN
1266 GNULIB_ISATTY
1267 GNULIB_GROUP_MEMBER
1268 GNULIB_GETUSERSHELL
1269 GNULIB_GETPAGESIZE
1270 GNULIB_GETLOGIN_R
1271 GNULIB_GETLOGIN
1272 GNULIB_GETHOSTNAME
1273 GNULIB_GETGROUPS
1274 GNULIB_GETDTABLESIZE
1275 GNULIB_GETDOMAINNAME
1276 GNULIB_GETCWD
1277 GNULIB_FTRUNCATE
1278 GNULIB_FSYNC
1279 GNULIB_FDATASYNC
1280 GNULIB_FCHOWNAT
1281 GNULIB_FCHDIR
1282 GNULIB_FACCESSAT
1283 GNULIB_EUIDACCESS
1284 GNULIB_ENVIRON
1285 GNULIB_DUP3
1286 GNULIB_DUP2
1287 GNULIB_DUP
1288 GNULIB_CLOSE
1289 GNULIB_CHOWN
1290 GNULIB_CHDIR
1291 GL_GENERATE_ALLOCA_H_FALSE
1292 GL_GENERATE_ALLOCA_H_TRUE
1293 ALLOCA_H
1294 ALLOCA
1295 GL_COND_LIBTOOL_FALSE
1296 GL_COND_LIBTOOL_TRUE
1297 RUN_TESTS_FALSE
1298 RUN_TESTS_TRUE
1299 CHECK_LIBS
1300 CHECK_CFLAGS
1301 PKG_CONFIG_LIBDIR
1302 PKG_CONFIG_PATH
1303 PKG_CONFIG
1304 WARN_CFLAGS
1305 ARFLAGS
1306 OTOOL64
1307 OTOOL
1308 LIPO
1309 NMEDIT
1310 DSYMUTIL
1311 MANIFEST_TOOL
1312 RANLIB
1313 DLLTOOL
1314 OBJDUMP
1315 LN_S
1316 NM
1317 ac_ct_DUMPBIN
1318 DUMPBIN
1319 LD
1320 FGREP
1321 SED
1322 host_os
1323 host_vendor
1324 host_cpu
1325 host
1326 build_os
1327 build_vendor
1328 build_cpu
1329 build
1330 LIBTOOL
1331 ac_ct_AR
1332 AR
1333 EGREP
1334 GREP
1335 CPP
1336 am__fastdepCC_FALSE
1337 am__fastdepCC_TRUE
1338 CCDEPMODE
1339 am__nodep
1340 AMDEPBACKSLASH
1341 AMDEP_FALSE
1342 AMDEP_TRUE
1343 am__quote
1344 am__include
1345 DEPDIR
1346 OBJEXT
1347 EXEEXT
1348 ac_ct_CC
1349 CPPFLAGS
1350 LDFLAGS
1351 CFLAGS
1352 CC
1353 MAINT
1354 MAINTAINER_MODE_FALSE
1355 MAINTAINER_MODE_TRUE
1356 AM_BACKSLASH
1357 AM_DEFAULT_VERBOSITY
1358 AM_DEFAULT_V
1359 AM_V
1360 am__untar
1361 am__tar
1362 AMTAR
1363 am__leading_dot
1364 SET_MAKE
1365 AWK
1366 mkdir_p
1367 MKDIR_P
1368 INSTALL_STRIP_PROGRAM
1369 STRIP
1370 install_sh
1371 MAKEINFO
1372 AUTOHEADER
1373 AUTOMAKE
1374 AUTOCONF
1375 ACLOCAL
1376 VERSION
1377 PACKAGE
1378 CYGPATH_W
1379 am__isrc
1380 INSTALL_DATA
1381 INSTALL_SCRIPT
1382 INSTALL_PROGRAM
1383 target_alias
1384 host_alias
1385 build_alias
1386 LIBS
1387 ECHO_T
1388 ECHO_N
1389 ECHO_C
1390 DEFS
1391 mandir
1392 localedir
1393 libdir
1394 psdir
1395 pdfdir
1396 dvidir
1397 htmldir
1398 infodir
1399 docdir
1400 oldincludedir
1401 includedir
1402 localstatedir
1403 sharedstatedir
1404 sysconfdir
1405 datadir
1406 datarootdir
1407 libexecdir
1408 sbindir
1409 bindir
1410 program_transform_name
1411 prefix
1412 exec_prefix
1413 PACKAGE_URL
1414 PACKAGE_BUGREPORT
1415 PACKAGE_STRING
1416 PACKAGE_VERSION
1417 PACKAGE_TARNAME
1418 PACKAGE_NAME
1419 PATH_SEPARATOR
1420 SHELL'
1421 ac_subst_files=''
1422 ac_user_opts='
1423 enable_option_checking
1424 enable_silent_rules
1425 enable_maintainer_mode
1426 enable_dependency_tracking
1427 enable_static
1428 enable_shared
1429 with_pic
1430 enable_fast_install
1431 with_gnu_ld
1432 with_sysroot
1433 enable_libtool_lock
1434 enable_threads
1435 enable_rpath
1436 with_libpth_prefix
1437 enable_socketpair_pipe
1438 '
1439       ac_precious_vars='build_alias
1440 host_alias
1441 target_alias
1442 CC
1443 CFLAGS
1444 LDFLAGS
1445 LIBS
1446 CPPFLAGS
1447 CPP
1448 PKG_CONFIG
1449 PKG_CONFIG_PATH
1450 PKG_CONFIG_LIBDIR
1451 CHECK_CFLAGS
1452 CHECK_LIBS'
1453
1454
1455 # Initialize some variables set by options.
1456 ac_init_help=
1457 ac_init_version=false
1458 ac_unrecognized_opts=
1459 ac_unrecognized_sep=
1460 # The variables have the same names as the options, with
1461 # dashes changed to underlines.
1462 cache_file=/dev/null
1463 exec_prefix=NONE
1464 no_create=
1465 no_recursion=
1466 prefix=NONE
1467 program_prefix=NONE
1468 program_suffix=NONE
1469 program_transform_name=s,x,x,
1470 silent=
1471 site=
1472 srcdir=
1473 verbose=
1474 x_includes=NONE
1475 x_libraries=NONE
1476
1477 # Installation directory options.
1478 # These are left unexpanded so users can "make install exec_prefix=/foo"
1479 # and all the variables that are supposed to be based on exec_prefix
1480 # by default will actually change.
1481 # Use braces instead of parens because sh, perl, etc. also accept them.
1482 # (The list follows the same order as the GNU Coding Standards.)
1483 bindir='${exec_prefix}/bin'
1484 sbindir='${exec_prefix}/sbin'
1485 libexecdir='${exec_prefix}/libexec'
1486 datarootdir='${prefix}/share'
1487 datadir='${datarootdir}'
1488 sysconfdir='${prefix}/etc'
1489 sharedstatedir='${prefix}/com'
1490 localstatedir='${prefix}/var'
1491 includedir='${prefix}/include'
1492 oldincludedir='/usr/include'
1493 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1494 infodir='${datarootdir}/info'
1495 htmldir='${docdir}'
1496 dvidir='${docdir}'
1497 pdfdir='${docdir}'
1498 psdir='${docdir}'
1499 libdir='${exec_prefix}/lib'
1500 localedir='${datarootdir}/locale'
1501 mandir='${datarootdir}/man'
1502
1503 ac_prev=
1504 ac_dashdash=
1505 for ac_option
1506 do
1507   # If the previous option needs an argument, assign it.
1508   if test -n "$ac_prev"; then
1509     eval $ac_prev=\$ac_option
1510     ac_prev=
1511     continue
1512   fi
1513
1514   case $ac_option in
1515   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1516   *=)   ac_optarg= ;;
1517   *)    ac_optarg=yes ;;
1518   esac
1519
1520   # Accept the important Cygnus configure options, so we can diagnose typos.
1521
1522   case $ac_dashdash$ac_option in
1523   --)
1524     ac_dashdash=yes ;;
1525
1526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1527     ac_prev=bindir ;;
1528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1529     bindir=$ac_optarg ;;
1530
1531   -build | --build | --buil | --bui | --bu)
1532     ac_prev=build_alias ;;
1533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1534     build_alias=$ac_optarg ;;
1535
1536   -cache-file | --cache-file | --cache-fil | --cache-fi \
1537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1538     ac_prev=cache_file ;;
1539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1541     cache_file=$ac_optarg ;;
1542
1543   --config-cache | -C)
1544     cache_file=config.cache ;;
1545
1546   -datadir | --datadir | --datadi | --datad)
1547     ac_prev=datadir ;;
1548   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1549     datadir=$ac_optarg ;;
1550
1551   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1552   | --dataroo | --dataro | --datar)
1553     ac_prev=datarootdir ;;
1554   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1555   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1556     datarootdir=$ac_optarg ;;
1557
1558   -disable-* | --disable-*)
1559     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1560     # Reject names that are not valid shell variable names.
1561     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1562       as_fn_error $? "invalid feature name: $ac_useropt"
1563     ac_useropt_orig=$ac_useropt
1564     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565     case $ac_user_opts in
1566       *"
1567 "enable_$ac_useropt"
1568 "*) ;;
1569       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1570          ac_unrecognized_sep=', ';;
1571     esac
1572     eval enable_$ac_useropt=no ;;
1573
1574   -docdir | --docdir | --docdi | --doc | --do)
1575     ac_prev=docdir ;;
1576   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1577     docdir=$ac_optarg ;;
1578
1579   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1580     ac_prev=dvidir ;;
1581   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1582     dvidir=$ac_optarg ;;
1583
1584   -enable-* | --enable-*)
1585     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1586     # Reject names that are not valid shell variable names.
1587     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1588       as_fn_error $? "invalid feature name: $ac_useropt"
1589     ac_useropt_orig=$ac_useropt
1590     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1591     case $ac_user_opts in
1592       *"
1593 "enable_$ac_useropt"
1594 "*) ;;
1595       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1596          ac_unrecognized_sep=', ';;
1597     esac
1598     eval enable_$ac_useropt=\$ac_optarg ;;
1599
1600   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1601   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1602   | --exec | --exe | --ex)
1603     ac_prev=exec_prefix ;;
1604   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1605   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1606   | --exec=* | --exe=* | --ex=*)
1607     exec_prefix=$ac_optarg ;;
1608
1609   -gas | --gas | --ga | --g)
1610     # Obsolete; use --with-gas.
1611     with_gas=yes ;;
1612
1613   -help | --help | --hel | --he | -h)
1614     ac_init_help=long ;;
1615   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1616     ac_init_help=recursive ;;
1617   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1618     ac_init_help=short ;;
1619
1620   -host | --host | --hos | --ho)
1621     ac_prev=host_alias ;;
1622   -host=* | --host=* | --hos=* | --ho=*)
1623     host_alias=$ac_optarg ;;
1624
1625   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1626     ac_prev=htmldir ;;
1627   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1628   | --ht=*)
1629     htmldir=$ac_optarg ;;
1630
1631   -includedir | --includedir | --includedi | --included | --include \
1632   | --includ | --inclu | --incl | --inc)
1633     ac_prev=includedir ;;
1634   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1635   | --includ=* | --inclu=* | --incl=* | --inc=*)
1636     includedir=$ac_optarg ;;
1637
1638   -infodir | --infodir | --infodi | --infod | --info | --inf)
1639     ac_prev=infodir ;;
1640   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1641     infodir=$ac_optarg ;;
1642
1643   -libdir | --libdir | --libdi | --libd)
1644     ac_prev=libdir ;;
1645   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1646     libdir=$ac_optarg ;;
1647
1648   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1649   | --libexe | --libex | --libe)
1650     ac_prev=libexecdir ;;
1651   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1652   | --libexe=* | --libex=* | --libe=*)
1653     libexecdir=$ac_optarg ;;
1654
1655   -localedir | --localedir | --localedi | --localed | --locale)
1656     ac_prev=localedir ;;
1657   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1658     localedir=$ac_optarg ;;
1659
1660   -localstatedir | --localstatedir | --localstatedi | --localstated \
1661   | --localstate | --localstat | --localsta | --localst | --locals)
1662     ac_prev=localstatedir ;;
1663   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1664   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1665     localstatedir=$ac_optarg ;;
1666
1667   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1668     ac_prev=mandir ;;
1669   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1670     mandir=$ac_optarg ;;
1671
1672   -nfp | --nfp | --nf)
1673     # Obsolete; use --without-fp.
1674     with_fp=no ;;
1675
1676   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1677   | --no-cr | --no-c | -n)
1678     no_create=yes ;;
1679
1680   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1681   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1682     no_recursion=yes ;;
1683
1684   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1685   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1686   | --oldin | --oldi | --old | --ol | --o)
1687     ac_prev=oldincludedir ;;
1688   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1689   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1690   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1691     oldincludedir=$ac_optarg ;;
1692
1693   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1694     ac_prev=prefix ;;
1695   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1696     prefix=$ac_optarg ;;
1697
1698   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1699   | --program-pre | --program-pr | --program-p)
1700     ac_prev=program_prefix ;;
1701   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1702   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1703     program_prefix=$ac_optarg ;;
1704
1705   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1706   | --program-suf | --program-su | --program-s)
1707     ac_prev=program_suffix ;;
1708   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1709   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1710     program_suffix=$ac_optarg ;;
1711
1712   -program-transform-name | --program-transform-name \
1713   | --program-transform-nam | --program-transform-na \
1714   | --program-transform-n | --program-transform- \
1715   | --program-transform | --program-transfor \
1716   | --program-transfo | --program-transf \
1717   | --program-trans | --program-tran \
1718   | --progr-tra | --program-tr | --program-t)
1719     ac_prev=program_transform_name ;;
1720   -program-transform-name=* | --program-transform-name=* \
1721   | --program-transform-nam=* | --program-transform-na=* \
1722   | --program-transform-n=* | --program-transform-=* \
1723   | --program-transform=* | --program-transfor=* \
1724   | --program-transfo=* | --program-transf=* \
1725   | --program-trans=* | --program-tran=* \
1726   | --progr-tra=* | --program-tr=* | --program-t=*)
1727     program_transform_name=$ac_optarg ;;
1728
1729   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1730     ac_prev=pdfdir ;;
1731   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1732     pdfdir=$ac_optarg ;;
1733
1734   -psdir | --psdir | --psdi | --psd | --ps)
1735     ac_prev=psdir ;;
1736   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1737     psdir=$ac_optarg ;;
1738
1739   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740   | -silent | --silent | --silen | --sile | --sil)
1741     silent=yes ;;
1742
1743   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1744     ac_prev=sbindir ;;
1745   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1746   | --sbi=* | --sb=*)
1747     sbindir=$ac_optarg ;;
1748
1749   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1750   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1751   | --sharedst | --shareds | --shared | --share | --shar \
1752   | --sha | --sh)
1753     ac_prev=sharedstatedir ;;
1754   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1755   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1756   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1757   | --sha=* | --sh=*)
1758     sharedstatedir=$ac_optarg ;;
1759
1760   -site | --site | --sit)
1761     ac_prev=site ;;
1762   -site=* | --site=* | --sit=*)
1763     site=$ac_optarg ;;
1764
1765   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1766     ac_prev=srcdir ;;
1767   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1768     srcdir=$ac_optarg ;;
1769
1770   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1771   | --syscon | --sysco | --sysc | --sys | --sy)
1772     ac_prev=sysconfdir ;;
1773   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1774   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1775     sysconfdir=$ac_optarg ;;
1776
1777   -target | --target | --targe | --targ | --tar | --ta | --t)
1778     ac_prev=target_alias ;;
1779   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1780     target_alias=$ac_optarg ;;
1781
1782   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1783     verbose=yes ;;
1784
1785   -version | --version | --versio | --versi | --vers | -V)
1786     ac_init_version=: ;;
1787
1788   -with-* | --with-*)
1789     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1790     # Reject names that are not valid shell variable names.
1791     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1792       as_fn_error $? "invalid package name: $ac_useropt"
1793     ac_useropt_orig=$ac_useropt
1794     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1795     case $ac_user_opts in
1796       *"
1797 "with_$ac_useropt"
1798 "*) ;;
1799       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1800          ac_unrecognized_sep=', ';;
1801     esac
1802     eval with_$ac_useropt=\$ac_optarg ;;
1803
1804   -without-* | --without-*)
1805     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1806     # Reject names that are not valid shell variable names.
1807     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1808       as_fn_error $? "invalid package name: $ac_useropt"
1809     ac_useropt_orig=$ac_useropt
1810     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1811     case $ac_user_opts in
1812       *"
1813 "with_$ac_useropt"
1814 "*) ;;
1815       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1816          ac_unrecognized_sep=', ';;
1817     esac
1818     eval with_$ac_useropt=no ;;
1819
1820   --x)
1821     # Obsolete; use --with-x.
1822     with_x=yes ;;
1823
1824   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1825   | --x-incl | --x-inc | --x-in | --x-i)
1826     ac_prev=x_includes ;;
1827   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1828   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1829     x_includes=$ac_optarg ;;
1830
1831   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1832   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1833     ac_prev=x_libraries ;;
1834   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1835   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1836     x_libraries=$ac_optarg ;;
1837
1838   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1839 Try \`$0 --help' for more information"
1840     ;;
1841
1842   *=*)
1843     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1844     # Reject names that are not valid shell variable names.
1845     case $ac_envvar in #(
1846       '' | [0-9]* | *[!_$as_cr_alnum]* )
1847       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1848     esac
1849     eval $ac_envvar=\$ac_optarg
1850     export $ac_envvar ;;
1851
1852   *)
1853     # FIXME: should be removed in autoconf 3.0.
1854     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1855     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1856       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1857     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1858     ;;
1859
1860   esac
1861 done
1862
1863 if test -n "$ac_prev"; then
1864   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1865   as_fn_error $? "missing argument to $ac_option"
1866 fi
1867
1868 if test -n "$ac_unrecognized_opts"; then
1869   case $enable_option_checking in
1870     no) ;;
1871     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1872     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1873   esac
1874 fi
1875
1876 # Check all directory arguments for consistency.
1877 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1878                 datadir sysconfdir sharedstatedir localstatedir includedir \
1879                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1880                 libdir localedir mandir
1881 do
1882   eval ac_val=\$$ac_var
1883   # Remove trailing slashes.
1884   case $ac_val in
1885     */ )
1886       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1887       eval $ac_var=\$ac_val;;
1888   esac
1889   # Be sure to have absolute directory names.
1890   case $ac_val in
1891     [\\/$]* | ?:[\\/]* )  continue;;
1892     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1893   esac
1894   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1895 done
1896
1897 # There might be people who depend on the old broken behavior: `$host'
1898 # used to hold the argument of --host etc.
1899 # FIXME: To remove some day.
1900 build=$build_alias
1901 host=$host_alias
1902 target=$target_alias
1903
1904 # FIXME: To remove some day.
1905 if test "x$host_alias" != x; then
1906   if test "x$build_alias" = x; then
1907     cross_compiling=maybe
1908   elif test "x$build_alias" != "x$host_alias"; then
1909     cross_compiling=yes
1910   fi
1911 fi
1912
1913 ac_tool_prefix=
1914 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1915
1916 test "$silent" = yes && exec 6>/dev/null
1917
1918
1919 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1920 ac_ls_di=`ls -di .` &&
1921 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1922   as_fn_error $? "working directory cannot be determined"
1923 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1924   as_fn_error $? "pwd does not report name of working directory"
1925
1926
1927 # Find the source files, if location was not specified.
1928 if test -z "$srcdir"; then
1929   ac_srcdir_defaulted=yes
1930   # Try the directory containing this script, then the parent directory.
1931   ac_confdir=`$as_dirname -- "$as_myself" ||
1932 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1933          X"$as_myself" : 'X\(//\)[^/]' \| \
1934          X"$as_myself" : 'X\(//\)$' \| \
1935          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1936 $as_echo X"$as_myself" |
1937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1938             s//\1/
1939             q
1940           }
1941           /^X\(\/\/\)[^/].*/{
1942             s//\1/
1943             q
1944           }
1945           /^X\(\/\/\)$/{
1946             s//\1/
1947             q
1948           }
1949           /^X\(\/\).*/{
1950             s//\1/
1951             q
1952           }
1953           s/.*/./; q'`
1954   srcdir=$ac_confdir
1955   if test ! -r "$srcdir/$ac_unique_file"; then
1956     srcdir=..
1957   fi
1958 else
1959   ac_srcdir_defaulted=no
1960 fi
1961 if test ! -r "$srcdir/$ac_unique_file"; then
1962   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1963   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1964 fi
1965 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1966 ac_abs_confdir=`(
1967         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1968         pwd)`
1969 # When building in place, set srcdir=.
1970 if test "$ac_abs_confdir" = "$ac_pwd"; then
1971   srcdir=.
1972 fi
1973 # Remove unnecessary trailing slashes from srcdir.
1974 # Double slashes in file names in object file debugging info
1975 # mess up M-x gdb in Emacs.
1976 case $srcdir in
1977 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1978 esac
1979 for ac_var in $ac_precious_vars; do
1980   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1981   eval ac_env_${ac_var}_value=\$${ac_var}
1982   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1983   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1984 done
1985
1986 #
1987 # Report the --help message.
1988 #
1989 if test "$ac_init_help" = "long"; then
1990   # Omit some internal or obsolete options to make the list less imposing.
1991   # This message is too long to be a string in the A/UX 3.1 sh.
1992   cat <<_ACEOF
1993 \`configure' configures libpipeline 1.2.4 to adapt to many kinds of systems.
1994
1995 Usage: $0 [OPTION]... [VAR=VALUE]...
1996
1997 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1998 VAR=VALUE.  See below for descriptions of some of the useful variables.
1999
2000 Defaults for the options are specified in brackets.
2001
2002 Configuration:
2003   -h, --help              display this help and exit
2004       --help=short        display options specific to this package
2005       --help=recursive    display the short help of all the included packages
2006   -V, --version           display version information and exit
2007   -q, --quiet, --silent   do not print \`checking ...' messages
2008       --cache-file=FILE   cache test results in FILE [disabled]
2009   -C, --config-cache      alias for \`--cache-file=config.cache'
2010   -n, --no-create         do not create output files
2011       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2012
2013 Installation directories:
2014   --prefix=PREFIX         install architecture-independent files in PREFIX
2015                           [$ac_default_prefix]
2016   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2017                           [PREFIX]
2018
2019 By default, \`make install' will install all the files in
2020 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2021 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2022 for instance \`--prefix=\$HOME'.
2023
2024 For better control, use the options below.
2025
2026 Fine tuning of the installation directories:
2027   --bindir=DIR            user executables [EPREFIX/bin]
2028   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2029   --libexecdir=DIR        program executables [EPREFIX/libexec]
2030   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2031   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2032   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2033   --libdir=DIR            object code libraries [EPREFIX/lib]
2034   --includedir=DIR        C header files [PREFIX/include]
2035   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2036   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2037   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2038   --infodir=DIR           info documentation [DATAROOTDIR/info]
2039   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2040   --mandir=DIR            man documentation [DATAROOTDIR/man]
2041   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2042   --htmldir=DIR           html documentation [DOCDIR]
2043   --dvidir=DIR            dvi documentation [DOCDIR]
2044   --pdfdir=DIR            pdf documentation [DOCDIR]
2045   --psdir=DIR             ps documentation [DOCDIR]
2046 _ACEOF
2047
2048   cat <<\_ACEOF
2049
2050 Program names:
2051   --program-prefix=PREFIX            prepend PREFIX to installed program names
2052   --program-suffix=SUFFIX            append SUFFIX to installed program names
2053   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2054
2055 System types:
2056   --build=BUILD     configure for building on BUILD [guessed]
2057   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2058 _ACEOF
2059 fi
2060
2061 if test -n "$ac_init_help"; then
2062   case $ac_init_help in
2063      short | recursive ) echo "Configuration of libpipeline 1.2.4:";;
2064    esac
2065   cat <<\_ACEOF
2066
2067 Optional Features:
2068   --disable-option-checking  ignore unrecognized --enable/--with options
2069   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2070   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2071   --enable-silent-rules   less verbose build output (undo: "make V=1")
2072   --disable-silent-rules  verbose build output (undo: "make V=0")
2073   --enable-maintainer-mode
2074                           enable make rules and dependencies not useful (and
2075                           sometimes confusing) to the casual installer
2076   --enable-dependency-tracking
2077                           do not reject slow dependency extractors
2078   --disable-dependency-tracking
2079                           speeds up one-time build
2080   --enable-static[=PKGS]  build static libraries [default=no]
2081   --enable-shared[=PKGS]  build shared libraries [default=yes]
2082   --enable-fast-install[=PKGS]
2083                           optimize for fast installation [default=yes]
2084   --disable-libtool-lock  avoid locking (might break parallel builds)
2085   --enable-threads={posix|solaris|pth|windows}
2086                           specify multithreading API
2087   --disable-threads       build without multithread safety
2088   --disable-rpath         do not hardcode runtime library paths
2089   --enable-socketpair-pipe
2090                           Use socketpair(2) as fast replacement for pipe(2)
2091
2092 Optional Packages:
2093   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2094   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2095   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2096                           both]
2097   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2098   --with-sysroot=DIR Search for dependent libraries within DIR
2099                         (or the compiler's sysroot if not specified).
2100   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2101   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2102   --without-libpth-prefix     don't search for libpth in includedir and libdir
2103
2104 Some influential environment variables:
2105   CC          C compiler command
2106   CFLAGS      C compiler flags
2107   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2108               nonstandard directory <lib dir>
2109   LIBS        libraries to pass to the linker, e.g. -l<library>
2110   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2111               you have headers in a nonstandard directory <include dir>
2112   CPP         C preprocessor
2113   PKG_CONFIG  path to pkg-config utility
2114   PKG_CONFIG_PATH
2115               directories to add to pkg-config's search path
2116   PKG_CONFIG_LIBDIR
2117               path overriding pkg-config's built-in search path
2118   CHECK_CFLAGS
2119               C compiler flags for CHECK, overriding pkg-config
2120   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2121
2122 Use these variables to override the choices made by `configure' or to help
2123 it to find libraries and programs with nonstandard names/locations.
2124
2125 Report bugs to <cjwatson@debian.org>.
2126 _ACEOF
2127 ac_status=$?
2128 fi
2129
2130 if test "$ac_init_help" = "recursive"; then
2131   # If there are subdirs, report their specific --help.
2132   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2133     test -d "$ac_dir" ||
2134       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2135       continue
2136     ac_builddir=.
2137
2138 case "$ac_dir" in
2139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2140 *)
2141   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2142   # A ".." for each directory in $ac_dir_suffix.
2143   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2144   case $ac_top_builddir_sub in
2145   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2146   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2147   esac ;;
2148 esac
2149 ac_abs_top_builddir=$ac_pwd
2150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2151 # for backward compatibility:
2152 ac_top_builddir=$ac_top_build_prefix
2153
2154 case $srcdir in
2155   .)  # We are building in place.
2156     ac_srcdir=.
2157     ac_top_srcdir=$ac_top_builddir_sub
2158     ac_abs_top_srcdir=$ac_pwd ;;
2159   [\\/]* | ?:[\\/]* )  # Absolute name.
2160     ac_srcdir=$srcdir$ac_dir_suffix;
2161     ac_top_srcdir=$srcdir
2162     ac_abs_top_srcdir=$srcdir ;;
2163   *) # Relative name.
2164     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2165     ac_top_srcdir=$ac_top_build_prefix$srcdir
2166     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2167 esac
2168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2169
2170     cd "$ac_dir" || { ac_status=$?; continue; }
2171     # Check for guested configure.
2172     if test -f "$ac_srcdir/configure.gnu"; then
2173       echo &&
2174       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2175     elif test -f "$ac_srcdir/configure"; then
2176       echo &&
2177       $SHELL "$ac_srcdir/configure" --help=recursive
2178     else
2179       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2180     fi || ac_status=$?
2181     cd "$ac_pwd" || { ac_status=$?; break; }
2182   done
2183 fi
2184
2185 test -n "$ac_init_help" && exit $ac_status
2186 if $ac_init_version; then
2187   cat <<\_ACEOF
2188 libpipeline configure 1.2.4
2189 generated by GNU Autoconf 2.69
2190
2191 Copyright (C) 2012 Free Software Foundation, Inc.
2192 This configure script is free software; the Free Software Foundation
2193 gives unlimited permission to copy, distribute and modify it.
2194 _ACEOF
2195   exit
2196 fi
2197
2198 ## ------------------------ ##
2199 ## Autoconf initialization. ##
2200 ## ------------------------ ##
2201
2202 # ac_fn_c_try_compile LINENO
2203 # --------------------------
2204 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_c_try_compile ()
2206 {
2207   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208   rm -f conftest.$ac_objext
2209   if { { ac_try="$ac_compile"
2210 case "(($ac_try" in
2211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212   *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216   (eval "$ac_compile") 2>conftest.err
2217   ac_status=$?
2218   if test -s conftest.err; then
2219     grep -v '^ *+' conftest.err >conftest.er1
2220     cat conftest.er1 >&5
2221     mv -f conftest.er1 conftest.err
2222   fi
2223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224   test $ac_status = 0; } && {
2225          test -z "$ac_c_werror_flag" ||
2226          test ! -s conftest.err
2227        } && test -s conftest.$ac_objext; then :
2228   ac_retval=0
2229 else
2230   $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233         ac_retval=1
2234 fi
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236   as_fn_set_status $ac_retval
2237
2238 } # ac_fn_c_try_compile
2239
2240 # ac_fn_c_try_cpp LINENO
2241 # ----------------------
2242 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2243 ac_fn_c_try_cpp ()
2244 {
2245   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246   if { { ac_try="$ac_cpp conftest.$ac_ext"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2254   ac_status=$?
2255   if test -s conftest.err; then
2256     grep -v '^ *+' conftest.err >conftest.er1
2257     cat conftest.er1 >&5
2258     mv -f conftest.er1 conftest.err
2259   fi
2260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261   test $ac_status = 0; } > conftest.i && {
2262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2263          test ! -s conftest.err
2264        }; then :
2265   ac_retval=0
2266 else
2267   $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270     ac_retval=1
2271 fi
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273   as_fn_set_status $ac_retval
2274
2275 } # ac_fn_c_try_cpp
2276
2277 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2278 # -------------------------------------------------------
2279 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2280 # the include files in INCLUDES and setting the cache variable VAR
2281 # accordingly.
2282 ac_fn_c_check_header_mongrel ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   if eval \${$3+:} false; then :
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if eval \${$3+:} false; then :
2289   $as_echo_n "(cached) " >&6
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 else
2295   # Is the header compilable?
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2297 $as_echo_n "checking $2 usability... " >&6; }
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 $4
2301 #include <$2>
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   ac_header_compiler=yes
2305 else
2306   ac_header_compiler=no
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2310 $as_echo "$ac_header_compiler" >&6; }
2311
2312 # Is the header present?
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2314 $as_echo_n "checking $2 presence... " >&6; }
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h.  */
2317 #include <$2>
2318 _ACEOF
2319 if ac_fn_c_try_cpp "$LINENO"; then :
2320   ac_header_preproc=yes
2321 else
2322   ac_header_preproc=no
2323 fi
2324 rm -f conftest.err conftest.i conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2326 $as_echo "$ac_header_preproc" >&6; }
2327
2328 # So?  What about this header?
2329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2330   yes:no: )
2331     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2332 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2335     ;;
2336   no:yes:* )
2337     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2338 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2339     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2340 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2342 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2344 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2346 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347 ( $as_echo "## ---------------------------------- ##
2348 ## Report this to cjwatson@debian.org ##
2349 ## ---------------------------------- ##"
2350      ) | sed "s/^/$as_me: WARNING:     /" >&2
2351     ;;
2352 esac
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   eval "$3=\$ac_header_compiler"
2359 fi
2360 eval ac_res=\$$3
2361                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 fi
2364   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_check_header_mongrel
2367
2368 # ac_fn_c_try_run LINENO
2369 # ----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2371 # that executables *can* be run.
2372 ac_fn_c_try_run ()
2373 {
2374   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375   if { { ac_try="$ac_link"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382   (eval "$ac_link") 2>&5
2383   ac_status=$?
2384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2386   { { case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392   (eval "$ac_try") 2>&5
2393   ac_status=$?
2394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395   test $ac_status = 0; }; }; then :
2396   ac_retval=0
2397 else
2398   $as_echo "$as_me: program exited with status $ac_status" >&5
2399        $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402        ac_retval=$ac_status
2403 fi
2404   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2405   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406   as_fn_set_status $ac_retval
2407
2408 } # ac_fn_c_try_run
2409
2410 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2411 # -------------------------------------------------------
2412 # Tests whether HEADER exists and can be compiled using the include files in
2413 # INCLUDES, setting the cache variable VAR accordingly.
2414 ac_fn_c_check_header_compile ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420   $as_echo_n "(cached) " >&6
2421 else
2422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   eval "$3=yes"
2429 else
2430   eval "$3=no"
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 eval ac_res=\$$3
2435                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438
2439 } # ac_fn_c_check_header_compile
2440
2441 # ac_fn_c_try_link LINENO
2442 # -----------------------
2443 # Try to link conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_c_try_link ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   rm -f conftest.$ac_objext conftest$ac_exeext
2448   if { { ac_try="$ac_link"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455   (eval "$ac_link") 2>conftest.err
2456   ac_status=$?
2457   if test -s conftest.err; then
2458     grep -v '^ *+' conftest.err >conftest.er1
2459     cat conftest.er1 >&5
2460     mv -f conftest.er1 conftest.err
2461   fi
2462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463   test $ac_status = 0; } && {
2464          test -z "$ac_c_werror_flag" ||
2465          test ! -s conftest.err
2466        } && test -s conftest$ac_exeext && {
2467          test "$cross_compiling" = yes ||
2468          test -x conftest$ac_exeext
2469        }; then :
2470   ac_retval=0
2471 else
2472   $as_echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475         ac_retval=1
2476 fi
2477   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2478   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2479   # interfere with the next link command; also delete a directory that is
2480   # left behind by Apple's compiler.  We do this before executing the actions.
2481   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2482   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483   as_fn_set_status $ac_retval
2484
2485 } # ac_fn_c_try_link
2486
2487 # ac_fn_c_check_func LINENO FUNC VAR
2488 # ----------------------------------
2489 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2490 ac_fn_c_check_func ()
2491 {
2492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494 $as_echo_n "checking for $2... " >&6; }
2495 if eval \${$3+:} false; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2502 #define $2 innocuous_$2
2503
2504 /* System header to define __stub macros and hopefully few prototypes,
2505     which can conflict with char $2 (); below.
2506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507     <limits.h> exists even on freestanding compilers.  */
2508
2509 #ifdef __STDC__
2510 # include <limits.h>
2511 #else
2512 # include <assert.h>
2513 #endif
2514
2515 #undef $2
2516
2517 /* Override any GCC internal prototype to avoid an error.
2518    Use char because int might match the return type of a GCC
2519    builtin and then its argument prototype would still apply.  */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 char $2 ();
2524 /* The GNU C library defines this for functions which it implements
2525     to always fail with ENOSYS.  Some functions are actually named
2526     something starting with __ and the normal name is an alias.  */
2527 #if defined __stub_$2 || defined __stub___$2
2528 choke me
2529 #endif
2530
2531 int
2532 main ()
2533 {
2534 return $2 ();
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_link "$LINENO"; then :
2540   eval "$3=yes"
2541 else
2542   eval "$3=no"
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext \
2545     conftest$ac_exeext conftest.$ac_ext
2546 fi
2547 eval ac_res=\$$3
2548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551
2552 } # ac_fn_c_check_func
2553
2554 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555 # -------------------------------------------
2556 # Tests whether TYPE exists after having included INCLUDES, setting cache
2557 # variable VAR accordingly.
2558 ac_fn_c_check_type ()
2559 {
2560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if eval \${$3+:} false; then :
2564   $as_echo_n "(cached) " >&6
2565 else
2566   eval "$3=no"
2567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 $4
2570 int
2571 main ()
2572 {
2573 if (sizeof ($2))
2574          return 0;
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h.  */
2582 $4
2583 int
2584 main ()
2585 {
2586 if (sizeof (($2)))
2587             return 0;
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593
2594 else
2595   eval "$3=yes"
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605
2606 } # ac_fn_c_check_type
2607
2608 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2609 # --------------------------------------------
2610 # Tries to find the compile-time value of EXPR in a program that includes
2611 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2612 # computed
2613 ac_fn_c_compute_int ()
2614 {
2615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616   if test "$cross_compiling" = yes; then
2617     # Depending upon the size, compute the lo and hi bounds.
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h.  */
2620 $4
2621 int
2622 main ()
2623 {
2624 static int test_array [1 - 2 * !(($2) >= 0)];
2625 test_array [0] = 0;
2626 return test_array [0];
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633   ac_lo=0 ac_mid=0
2634   while :; do
2635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h.  */
2637 $4
2638 int
2639 main ()
2640 {
2641 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2642 test_array [0] = 0;
2643 return test_array [0];
2644
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650   ac_hi=$ac_mid; break
2651 else
2652   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2653                         if test $ac_lo -le $ac_mid; then
2654                           ac_lo= ac_hi=
2655                           break
2656                         fi
2657                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2658 fi
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660   done
2661 else
2662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h.  */
2664 $4
2665 int
2666 main ()
2667 {
2668 static int test_array [1 - 2 * !(($2) < 0)];
2669 test_array [0] = 0;
2670 return test_array [0];
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677   ac_hi=-1 ac_mid=-1
2678   while :; do
2679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h.  */
2681 $4
2682 int
2683 main ()
2684 {
2685 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2686 test_array [0] = 0;
2687 return test_array [0];
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694   ac_lo=$ac_mid; break
2695 else
2696   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2697                         if test $ac_mid -le $ac_hi; then
2698                           ac_lo= ac_hi=
2699                           break
2700                         fi
2701                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2702 fi
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704   done
2705 else
2706   ac_lo= ac_hi=
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 # Binary search between lo and hi bounds.
2712 while test "x$ac_lo" != "x$ac_hi"; do
2713   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h.  */
2716 $4
2717 int
2718 main ()
2719 {
2720 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2721 test_array [0] = 0;
2722 return test_array [0];
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 if ac_fn_c_try_compile "$LINENO"; then :
2729   ac_hi=$ac_mid
2730 else
2731   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 done
2735 case $ac_lo in #((
2736 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2737 '') ac_retval=1 ;;
2738 esac
2739   else
2740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h.  */
2742 $4
2743 static long int longval () { return $2; }
2744 static unsigned long int ulongval () { return $2; }
2745 #include <stdio.h>
2746 #include <stdlib.h>
2747 int
2748 main ()
2749 {
2750
2751   FILE *f = fopen ("conftest.val", "w");
2752   if (! f)
2753     return 1;
2754   if (($2) < 0)
2755     {
2756       long int i = longval ();
2757       if (i != ($2))
2758         return 1;
2759       fprintf (f, "%ld", i);
2760     }
2761   else
2762     {
2763       unsigned long int i = ulongval ();
2764       if (i != ($2))
2765         return 1;
2766       fprintf (f, "%lu", i);
2767     }
2768   /* Do not output a trailing newline, as this causes \r\n confusion
2769      on some platforms.  */
2770   return ferror (f) || fclose (f) != 0;
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_run "$LINENO"; then :
2777   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2778 else
2779   ac_retval=1
2780 fi
2781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2782   conftest.$ac_objext conftest.beam conftest.$ac_ext
2783 rm -f conftest.val
2784
2785   fi
2786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2787   as_fn_set_status $ac_retval
2788
2789 } # ac_fn_c_compute_int
2790
2791 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2792 # ---------------------------------------------
2793 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2794 # accordingly.
2795 ac_fn_c_check_decl ()
2796 {
2797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798   as_decl_name=`echo $2|sed 's/ *(.*//'`
2799   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2801 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 int
2809 main ()
2810 {
2811 #ifndef $as_decl_name
2812 #ifdef __cplusplus
2813   (void) $as_decl_use;
2814 #else
2815   (void) $as_decl_name;
2816 #endif
2817 #endif
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 if ac_fn_c_try_compile "$LINENO"; then :
2824   eval "$3=yes"
2825 else
2826   eval "$3=no"
2827 fi
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 fi
2830 eval ac_res=\$$3
2831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2832 $as_echo "$ac_res" >&6; }
2833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2834
2835 } # ac_fn_c_check_decl
2836
2837 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2838 # ----------------------------------------------------
2839 # Tries to find if the field MEMBER exists in type AGGR, after including
2840 # INCLUDES, setting cache variable VAR accordingly.
2841 ac_fn_c_check_member ()
2842 {
2843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2845 $as_echo_n "checking for $2.$3... " >&6; }
2846 if eval \${$4+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h.  */
2851 $5
2852 int
2853 main ()
2854 {
2855 static $2 ac_aggr;
2856 if (ac_aggr.$3)
2857 return 0;
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863   eval "$4=yes"
2864 else
2865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $5
2868 int
2869 main ()
2870 {
2871 static $2 ac_aggr;
2872 if (sizeof ac_aggr.$3)
2873 return 0;
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 if ac_fn_c_try_compile "$LINENO"; then :
2879   eval "$4=yes"
2880 else
2881   eval "$4=no"
2882 fi
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 fi
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 fi
2887 eval ac_res=\$$4
2888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2889 $as_echo "$ac_res" >&6; }
2890   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2891
2892 } # ac_fn_c_check_member
2893 cat >config.log <<_ACEOF
2894 This file contains any messages produced by compilers while
2895 running configure, to aid debugging if configure makes a mistake.
2896
2897 It was created by libpipeline $as_me 1.2.4, which was
2898 generated by GNU Autoconf 2.69.  Invocation command line was
2899
2900   $ $0 $@
2901
2902 _ACEOF
2903 exec 5>>config.log
2904 {
2905 cat <<_ASUNAME
2906 ## --------- ##
2907 ## Platform. ##
2908 ## --------- ##
2909
2910 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2911 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2912 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2913 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2914 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2915
2916 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2917 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2918
2919 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2920 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2921 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2922 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2923 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2924 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2925 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2926
2927 _ASUNAME
2928
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934     $as_echo "PATH: $as_dir"
2935   done
2936 IFS=$as_save_IFS
2937
2938 } >&5
2939
2940 cat >&5 <<_ACEOF
2941
2942
2943 ## ----------- ##
2944 ## Core tests. ##
2945 ## ----------- ##
2946
2947 _ACEOF
2948
2949
2950 # Keep a trace of the command line.
2951 # Strip out --no-create and --no-recursion so they do not pile up.
2952 # Strip out --silent because we don't want to record it for future runs.
2953 # Also quote any args containing shell meta-characters.
2954 # Make two passes to allow for proper duplicate-argument suppression.
2955 ac_configure_args=
2956 ac_configure_args0=
2957 ac_configure_args1=
2958 ac_must_keep_next=false
2959 for ac_pass in 1 2
2960 do
2961   for ac_arg
2962   do
2963     case $ac_arg in
2964     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2965     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2966     | -silent | --silent | --silen | --sile | --sil)
2967       continue ;;
2968     *\'*)
2969       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2970     esac
2971     case $ac_pass in
2972     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2973     2)
2974       as_fn_append ac_configure_args1 " '$ac_arg'"
2975       if test $ac_must_keep_next = true; then
2976         ac_must_keep_next=false # Got value, back to normal.
2977       else
2978         case $ac_arg in
2979           *=* | --config-cache | -C | -disable-* | --disable-* \
2980           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2981           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2982           | -with-* | --with-* | -without-* | --without-* | --x)
2983             case "$ac_configure_args0 " in
2984               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2985             esac
2986             ;;
2987           -* ) ac_must_keep_next=true ;;
2988         esac
2989       fi
2990       as_fn_append ac_configure_args " '$ac_arg'"
2991       ;;
2992     esac
2993   done
2994 done
2995 { ac_configure_args0=; unset ac_configure_args0;}
2996 { ac_configure_args1=; unset ac_configure_args1;}
2997
2998 # When interrupted or exit'd, cleanup temporary files, and complete
2999 # config.log.  We remove comments because anyway the quotes in there
3000 # would cause problems or look ugly.
3001 # WARNING: Use '\'' to represent an apostrophe within the trap.
3002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3003 trap 'exit_status=$?
3004   # Save into config.log some information that might help in debugging.
3005   {
3006     echo
3007
3008     $as_echo "## ---------------- ##
3009 ## Cache variables. ##
3010 ## ---------------- ##"
3011     echo
3012     # The following way of writing the cache mishandles newlines in values,
3013 (
3014   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3015     eval ac_val=\$$ac_var
3016     case $ac_val in #(
3017     *${as_nl}*)
3018       case $ac_var in #(
3019       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3021       esac
3022       case $ac_var in #(
3023       _ | IFS | as_nl) ;; #(
3024       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3025       *) { eval $ac_var=; unset $ac_var;} ;;
3026       esac ;;
3027     esac
3028   done
3029   (set) 2>&1 |
3030     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3031     *${as_nl}ac_space=\ *)
3032       sed -n \
3033         "s/'\''/'\''\\\\'\'''\''/g;
3034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3035       ;; #(
3036     *)
3037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3038       ;;
3039     esac |
3040     sort
3041 )
3042     echo
3043
3044     $as_echo "## ----------------- ##
3045 ## Output variables. ##
3046 ## ----------------- ##"
3047     echo
3048     for ac_var in $ac_subst_vars
3049     do
3050       eval ac_val=\$$ac_var
3051       case $ac_val in
3052       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3053       esac
3054       $as_echo "$ac_var='\''$ac_val'\''"
3055     done | sort
3056     echo
3057
3058     if test -n "$ac_subst_files"; then
3059       $as_echo "## ------------------- ##
3060 ## File substitutions. ##
3061 ## ------------------- ##"
3062       echo
3063       for ac_var in $ac_subst_files
3064       do
3065         eval ac_val=\$$ac_var
3066         case $ac_val in
3067         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3068         esac
3069         $as_echo "$ac_var='\''$ac_val'\''"
3070       done | sort
3071       echo
3072     fi
3073
3074     if test -s confdefs.h; then
3075       $as_echo "## ----------- ##
3076 ## confdefs.h. ##
3077 ## ----------- ##"
3078       echo
3079       cat confdefs.h
3080       echo
3081     fi
3082     test "$ac_signal" != 0 &&
3083       $as_echo "$as_me: caught signal $ac_signal"
3084     $as_echo "$as_me: exit $exit_status"
3085   } >&5
3086   rm -f core *.core core.conftest.* &&
3087     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3088     exit $exit_status
3089 ' 0
3090 for ac_signal in 1 2 13 15; do
3091   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3092 done
3093 ac_signal=0
3094
3095 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3096 rm -f -r conftest* confdefs.h
3097
3098 $as_echo "/* confdefs.h */" > confdefs.h
3099
3100 # Predefined preprocessor variables.
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_NAME "$PACKAGE_NAME"
3104 _ACEOF
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3108 _ACEOF
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3112 _ACEOF
3113
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_STRING "$PACKAGE_STRING"
3116 _ACEOF
3117
3118 cat >>confdefs.h <<_ACEOF
3119 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3120 _ACEOF
3121
3122 cat >>confdefs.h <<_ACEOF
3123 #define PACKAGE_URL "$PACKAGE_URL"
3124 _ACEOF
3125
3126
3127 # Let the site file select an alternate cache file if it wants to.
3128 # Prefer an explicitly selected file to automatically selected ones.
3129 ac_site_file1=NONE
3130 ac_site_file2=NONE
3131 if test -n "$CONFIG_SITE"; then
3132   # We do not want a PATH search for config.site.
3133   case $CONFIG_SITE in #((
3134     -*)  ac_site_file1=./$CONFIG_SITE;;
3135     */*) ac_site_file1=$CONFIG_SITE;;
3136     *)   ac_site_file1=./$CONFIG_SITE;;
3137   esac
3138 elif test "x$prefix" != xNONE; then
3139   ac_site_file1=$prefix/share/config.site
3140   ac_site_file2=$prefix/etc/config.site
3141 else
3142   ac_site_file1=$ac_default_prefix/share/config.site
3143   ac_site_file2=$ac_default_prefix/etc/config.site
3144 fi
3145 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3146 do
3147   test "x$ac_site_file" = xNONE && continue
3148   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3150 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3151     sed 's/^/| /' "$ac_site_file" >&5
3152     . "$ac_site_file" \
3153       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "failed to load site script $ac_site_file
3156 See \`config.log' for more details" "$LINENO" 5; }
3157   fi
3158 done
3159
3160 if test -r "$cache_file"; then
3161   # Some versions of bash will fail to source /dev/null (special files
3162   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3163   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3164     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3165 $as_echo "$as_me: loading cache $cache_file" >&6;}
3166     case $cache_file in
3167       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3168       *)                      . "./$cache_file";;
3169     esac
3170   fi
3171 else
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3173 $as_echo "$as_me: creating cache $cache_file" >&6;}
3174   >$cache_file
3175 fi
3176
3177 gl_header_list="$gl_header_list unistd.h"
3178 gl_header_list="$gl_header_list sys/mman.h"
3179 gl_func_list="$gl_func_list mprotect"
3180 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3181 gl_func_list="$gl_func_list setenv"
3182 gl_func_list="$gl_func_list sigaction"
3183 gl_func_list="$gl_func_list sigaltstack"
3184 gl_func_list="$gl_func_list siginterrupt"
3185 gl_func_list="$gl_func_list snprintf"
3186 gl_header_list="$gl_header_list wchar.h"
3187 gl_header_list="$gl_header_list stdint.h"
3188 gl_header_list="$gl_header_list sys/socket.h"
3189 gl_func_list="$gl_func_list strndup"
3190 gl_header_list="$gl_header_list sys/select.h"
3191 gl_header_list="$gl_header_list sys/stat.h"
3192 gl_header_list="$gl_header_list sys/time.h"
3193 gl_header_list="$gl_header_list sys/wait.h"
3194 gl_func_list="$gl_func_list vasnprintf"
3195 gl_header_list="$gl_header_list features.h"
3196 # Check that the precious variables saved in the cache have kept the same
3197 # value.
3198 ac_cache_corrupted=false
3199 for ac_var in $ac_precious_vars; do
3200   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201   eval ac_new_set=\$ac_env_${ac_var}_set
3202   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203   eval ac_new_val=\$ac_env_${ac_var}_value
3204   case $ac_old_set,$ac_new_set in
3205     set,)
3206       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208       ac_cache_corrupted=: ;;
3209     ,set)
3210       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212       ac_cache_corrupted=: ;;
3213     ,);;
3214     *)
3215       if test "x$ac_old_val" != "x$ac_new_val"; then
3216         # differences in whitespace do not lead to failure.
3217         ac_old_val_w=`echo x $ac_old_val`
3218         ac_new_val_w=`echo x $ac_new_val`
3219         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3220           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3221 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222           ac_cache_corrupted=:
3223         else
3224           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3225 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226           eval $ac_var=\$ac_old_val
3227         fi
3228         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3229 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3230         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3231 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3232       fi;;
3233   esac
3234   # Pass precious variables to config.status.
3235   if test "$ac_new_set" = set; then
3236     case $ac_new_val in
3237     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238     *) ac_arg=$ac_var=$ac_new_val ;;
3239     esac
3240     case " $ac_configure_args " in
3241       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3242       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3243     esac
3244   fi
3245 done
3246 if $ac_cache_corrupted; then
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3250 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3251   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3252 fi
3253 ## -------------------- ##
3254 ## Main body of script. ##
3255 ## -------------------- ##
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264 ac_aux_dir=
3265 for ac_dir in tools "$srcdir"/tools; do
3266   if test -f "$ac_dir/install-sh"; then
3267     ac_aux_dir=$ac_dir
3268     ac_install_sh="$ac_aux_dir/install-sh -c"
3269     break
3270   elif test -f "$ac_dir/install.sh"; then
3271     ac_aux_dir=$ac_dir
3272     ac_install_sh="$ac_aux_dir/install.sh -c"
3273     break
3274   elif test -f "$ac_dir/shtool"; then
3275     ac_aux_dir=$ac_dir
3276     ac_install_sh="$ac_aux_dir/shtool install -c"
3277     break
3278   fi
3279 done
3280 if test -z "$ac_aux_dir"; then
3281   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3282 fi
3283
3284 # These three variables are undocumented and unsupported,
3285 # and are intended to be withdrawn in a future Autoconf release.
3286 # They can cause serious problems if a builder's source tree is in a directory
3287 # whose full name contains unusual characters.
3288 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3289 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3290 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3291
3292
3293 am__api_version='1.13'
3294
3295 # Find a good install program.  We prefer a C program (faster),
3296 # so one script is as good as another.  But avoid the broken or
3297 # incompatible versions:
3298 # SysV /etc/install, /usr/sbin/install
3299 # SunOS /usr/etc/install
3300 # IRIX /sbin/install
3301 # AIX /bin/install
3302 # AmigaOS /C/install, which installs bootblocks on floppy discs
3303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3306 # OS/2's system install, which has a completely different semantic
3307 # ./install, which can be erroneously created by make from ./install.sh.
3308 # Reject install programs that cannot install multiple files.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3310 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3311 if test -z "$INSTALL"; then
3312 if ${ac_cv_path_install+:} false; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320     # Account for people who put trailing slashes in PATH elements.
3321 case $as_dir/ in #((
3322   ./ | .// | /[cC]/* | \
3323   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3324   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3325   /usr/ucb/* ) ;;
3326   *)
3327     # OSF1 and SCO ODT 3.0 have their own names for install.
3328     # Don't use installbsd from OSF since it installs stuff as root
3329     # by default.
3330     for ac_prog in ginstall scoinst install; do
3331       for ac_exec_ext in '' $ac_executable_extensions; do
3332         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3333           if test $ac_prog = install &&
3334             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335             # AIX install.  It has an incompatible calling convention.
3336             :
3337           elif test $ac_prog = install &&
3338             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3339             # program-specific install script used by HP pwplus--don't use.
3340             :
3341           else
3342             rm -rf conftest.one conftest.two conftest.dir
3343             echo one > conftest.one
3344             echo two > conftest.two
3345             mkdir conftest.dir
3346             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3347               test -s conftest.one && test -s conftest.two &&
3348               test -s conftest.dir/conftest.one &&
3349               test -s conftest.dir/conftest.two
3350             then
3351               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3352               break 3
3353             fi
3354           fi
3355         fi
3356       done
3357     done
3358     ;;
3359 esac
3360
3361   done
3362 IFS=$as_save_IFS
3363
3364 rm -rf conftest.one conftest.two conftest.dir
3365
3366 fi
3367   if test "${ac_cv_path_install+set}" = set; then
3368     INSTALL=$ac_cv_path_install
3369   else
3370     # As a last resort, use the slow shell script.  Don't cache a
3371     # value for INSTALL within a source directory, because that will
3372     # break other packages using the cache if that directory is
3373     # removed, or if the value is a relative name.
3374     INSTALL=$ac_install_sh
3375   fi
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3378 $as_echo "$INSTALL" >&6; }
3379
3380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3381 # It thinks the first close brace ends the variable substitution.
3382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3383
3384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3385
3386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3389 $as_echo_n "checking whether build environment is sane... " >&6; }
3390 # Reject unsafe characters in $srcdir or the absolute working directory
3391 # name.  Accept space and tab only in the latter.
3392 am_lf='
3393 '
3394 case `pwd` in
3395   *[\\\"\#\$\&\'\`$am_lf]*)
3396     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3397 esac
3398 case $srcdir in
3399   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3400     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3401 esac
3402
3403 # Do 'set' in a subshell so we don't clobber the current shell's
3404 # arguments.  Must try -L first in case configure is actually a
3405 # symlink; some systems play weird games with the mod time of symlinks
3406 # (eg FreeBSD returns the mod time of the symlink's containing
3407 # directory).
3408 if (
3409    am_has_slept=no
3410    for am_try in 1 2; do
3411      echo "timestamp, slept: $am_has_slept" > conftest.file
3412      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3413      if test "$*" = "X"; then
3414         # -L didn't work.
3415         set X `ls -t "$srcdir/configure" conftest.file`
3416      fi
3417      if test "$*" != "X $srcdir/configure conftest.file" \
3418         && test "$*" != "X conftest.file $srcdir/configure"; then
3419
3420         # If neither matched, then we have a broken ls.  This can happen
3421         # if, for instance, CONFIG_SHELL is bash and it inherits a
3422         # broken ls alias from the environment.  This has actually
3423         # happened.  Such a system could not be considered "sane".
3424         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3425   alias in your environment" "$LINENO" 5
3426      fi
3427      if test "$2" = conftest.file || test $am_try -eq 2; then
3428        break
3429      fi
3430      # Just in case.
3431      sleep 1
3432      am_has_slept=yes
3433    done
3434    test "$2" = conftest.file
3435    )
3436 then
3437    # Ok.
3438    :
3439 else
3440    as_fn_error $? "newly created file is older than distributed files!
3441 Check your system clock" "$LINENO" 5
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3444 $as_echo "yes" >&6; }
3445 # If we didn't sleep, we still need to ensure time stamps of config.status and
3446 # generated files are strictly newer.
3447 am_sleep_pid=
3448 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3449   ( sleep 1 ) &
3450   am_sleep_pid=$!
3451 fi
3452
3453 rm -f conftest.file
3454
3455 test "$program_prefix" != NONE &&
3456   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE &&
3459   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3464
3465 # expand $ac_aux_dir to an absolute path
3466 am_aux_dir=`cd $ac_aux_dir && pwd`
3467
3468 if test x"${MISSING+set}" != xset; then
3469   case $am_aux_dir in
3470   *\ * | *\     *)
3471     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3472   *)
3473     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3474   esac
3475 fi
3476 # Use eval to expand $SHELL
3477 if eval "$MISSING --is-lightweight"; then
3478   am_missing_run="$MISSING "
3479 else
3480   am_missing_run=
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3482 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3483 fi
3484
3485 if test x"${install_sh}" != xset; then
3486   case $am_aux_dir in
3487   *\ * | *\     *)
3488     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3489   *)
3490     install_sh="\${SHELL} $am_aux_dir/install-sh"
3491   esac
3492 fi
3493
3494 # Installed binaries are usually stripped using 'strip' when the user
3495 # run "make install-strip".  However 'strip' might not be the right
3496 # tool to use in cross-compilation environments, therefore Automake
3497 # will honor the 'STRIP' environment variable to overrule this program.
3498 if test "$cross_compiling" != no; then
3499   if test -n "$ac_tool_prefix"; then
3500   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501 set dummy ${ac_tool_prefix}strip; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_STRIP+:} false; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$STRIP"; then
3508   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522   done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 STRIP=$ac_cv_prog_STRIP
3528 if test -n "$STRIP"; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530 $as_echo "$STRIP" >&6; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 fi
3538 if test -z "$ac_cv_prog_STRIP"; then
3539   ac_ct_STRIP=$STRIP
3540   # Extract the first word of "strip", so it can be a program name with args.
3541 set dummy strip; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$ac_ct_STRIP"; then
3548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_prog_ac_ct_STRIP="strip"
3558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562   done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570 $as_echo "$ac_ct_STRIP" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576   if test "x$ac_ct_STRIP" = x; then
3577     STRIP=":"
3578   else
3579     case $cross_compiling:$ac_tool_warned in
3580 yes:)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585     STRIP=$ac_ct_STRIP
3586   fi
3587 else
3588   STRIP="$ac_cv_prog_STRIP"
3589 fi
3590
3591 fi
3592 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3593
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597   if ${ac_cv_path_mkdir+:} false; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605     for ac_prog in mkdir gmkdir; do
3606          for ac_exec_ext in '' $ac_executable_extensions; do
3607            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3608            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609              'mkdir (GNU coreutils) '* | \
3610              'mkdir (coreutils) '* | \
3611              'mkdir (fileutils) '4.1*)
3612                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3613                break 3;;
3614            esac
3615          done
3616        done
3617   done
3618 IFS=$as_save_IFS
3619
3620 fi
3621
3622   test -d ./--version && rmdir ./--version
3623   if test "${ac_cv_path_mkdir+set}" = set; then
3624     MKDIR_P="$ac_cv_path_mkdir -p"
3625   else
3626     # As a last resort, use the slow shell script.  Don't cache a
3627     # value for MKDIR_P within a source directory, because that will
3628     # break other packages using the cache if that directory is
3629     # removed, or if the value is a relative name.
3630     MKDIR_P="$ac_install_sh -d"
3631   fi
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634 $as_echo "$MKDIR_P" >&6; }
3635
3636 for ac_prog in gawk mawk nawk awk
3637 do
3638   # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_AWK+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -n "$AWK"; then
3646   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_exec_ext in '' $ac_executable_extensions; do
3654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655     ac_cv_prog_AWK="$ac_prog"
3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660   done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 AWK=$ac_cv_prog_AWK
3666 if test -n "$AWK"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3668 $as_echo "$AWK" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675   test -n "$AWK" && break
3676 done
3677
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3679 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3680 set x ${MAKE-make}
3681 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3682 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   cat >conftest.make <<\_ACEOF
3686 SHELL = /bin/sh
3687 all:
3688         @echo '@@@%%%=$(MAKE)=@@@%%%'
3689 _ACEOF
3690 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3691 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3692   *@@@%%%=?*=@@@%%%*)
3693     eval ac_cv_prog_make_${ac_make}_set=yes;;
3694   *)
3695     eval ac_cv_prog_make_${ac_make}_set=no;;
3696 esac
3697 rm -f conftest.make
3698 fi
3699 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3701 $as_echo "yes" >&6; }
3702   SET_MAKE=
3703 else
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706   SET_MAKE="MAKE=${MAKE-make}"
3707 fi
3708
3709 rm -rf .tst 2>/dev/null
3710 mkdir .tst 2>/dev/null
3711 if test -d .tst; then
3712   am__leading_dot=.
3713 else
3714   am__leading_dot=_
3715 fi
3716 rmdir .tst 2>/dev/null
3717
3718 # Check whether --enable-silent-rules was given.
3719 if test "${enable_silent_rules+set}" = set; then :
3720   enableval=$enable_silent_rules;
3721 fi
3722
3723 case $enable_silent_rules in # (((
3724   yes) AM_DEFAULT_VERBOSITY=0;;
3725    no) AM_DEFAULT_VERBOSITY=1;;
3726     *) AM_DEFAULT_VERBOSITY=1;;
3727 esac
3728 am_make=${MAKE-make}
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3730 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3731 if ${am_cv_make_support_nested_variables+:} false; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   if $as_echo 'TRUE=$(BAR$(V))
3735 BAR0=false
3736 BAR1=true
3737 V=1
3738 am__doit:
3739         @$(TRUE)
3740 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3741   am_cv_make_support_nested_variables=yes
3742 else
3743   am_cv_make_support_nested_variables=no
3744 fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3747 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3748 if test $am_cv_make_support_nested_variables = yes; then
3749     AM_V='$(V)'
3750   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3751 else
3752   AM_V=$AM_DEFAULT_VERBOSITY
3753   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3754 fi
3755 AM_BACKSLASH='\'
3756
3757 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3758   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3759   # is not polluted with repeated "-I."
3760   am__isrc=' -I$(srcdir)'
3761   # test to see if srcdir already configured
3762   if test -f $srcdir/config.status; then
3763     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3764   fi
3765 fi
3766
3767 # test whether we have cygpath
3768 if test -z "$CYGPATH_W"; then
3769   if (cygpath --version) >/dev/null 2>/dev/null; then
3770     CYGPATH_W='cygpath -w'
3771   else
3772     CYGPATH_W=echo
3773   fi
3774 fi
3775
3776
3777 # Define the identity of the package.
3778  PACKAGE='libpipeline'
3779  VERSION='1.2.4'
3780
3781
3782 cat >>confdefs.h <<_ACEOF
3783 #define PACKAGE "$PACKAGE"
3784 _ACEOF
3785
3786
3787 cat >>confdefs.h <<_ACEOF
3788 #define VERSION "$VERSION"
3789 _ACEOF
3790
3791 # Some tools Automake needs.
3792
3793 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3794
3795
3796 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3797
3798
3799 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3800
3801
3802 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3803
3804
3805 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3806
3807 # For better backward compatibility.  To be removed once Automake 1.9.x
3808 # dies out for good.  For more background, see:
3809 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3810 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3811 mkdir_p='$(MKDIR_P)'
3812
3813 # We need awk for the "check" target.  The system "awk" is bad on
3814 # some platforms.
3815 # Always define AMTAR for backward compatibility.  Yes, it's still used
3816 # in the wild :-(  We should find a proper way to deprecate it ...
3817 AMTAR='$${TAR-tar}'
3818
3819
3820 # We'll loop over all known methods to create a tar archive until one works.
3821 _am_tools='gnutar  pax cpio none'
3822
3823 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3824
3825
3826
3827
3828
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3832 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3833     # Check whether --enable-maintainer-mode was given.
3834 if test "${enable_maintainer_mode+set}" = set; then :
3835   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3836 else
3837   USE_MAINTAINER_MODE=no
3838 fi
3839
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3841 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3842    if test $USE_MAINTAINER_MODE = yes; then
3843   MAINTAINER_MODE_TRUE=
3844   MAINTAINER_MODE_FALSE='#'
3845 else
3846   MAINTAINER_MODE_TRUE='#'
3847   MAINTAINER_MODE_FALSE=
3848 fi
3849
3850   MAINT=$MAINTAINER_MODE_TRUE
3851
3852
3853 # Check whether --enable-silent-rules was given.
3854 if test "${enable_silent_rules+set}" = set; then :
3855   enableval=$enable_silent_rules;
3856 fi
3857
3858 case $enable_silent_rules in # (((
3859   yes) AM_DEFAULT_VERBOSITY=0;;
3860    no) AM_DEFAULT_VERBOSITY=1;;
3861     *) AM_DEFAULT_VERBOSITY=0;;
3862 esac
3863 am_make=${MAKE-make}
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3865 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3866 if ${am_cv_make_support_nested_variables+:} false; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   if $as_echo 'TRUE=$(BAR$(V))
3870 BAR0=false
3871 BAR1=true
3872 V=1
3873 am__doit:
3874         @$(TRUE)
3875 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3876   am_cv_make_support_nested_variables=yes
3877 else
3878   am_cv_make_support_nested_variables=no
3879 fi
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3882 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3883 if test $am_cv_make_support_nested_variables = yes; then
3884     AM_V='$(V)'
3885   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3886 else
3887   AM_V=$AM_DEFAULT_VERBOSITY
3888   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3889 fi
3890 AM_BACKSLASH='\'
3891
3892
3893
3894 DEPDIR="${am__leading_dot}deps"
3895
3896 ac_config_commands="$ac_config_commands depfiles"
3897
3898
3899 am_make=${MAKE-make}
3900 cat > confinc << 'END'
3901 am__doit:
3902         @echo this is the am__doit target
3903 .PHONY: am__doit
3904 END
3905 # If we don't find an include directive, just comment out the code.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3907 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3908 am__include="#"
3909 am__quote=
3910 _am_result=none
3911 # First try GNU make style include.
3912 echo "include confinc" > confmf
3913 # Ignore all kinds of additional output from 'make'.
3914 case `$am_make -s -f confmf 2> /dev/null` in #(
3915 *the\ am__doit\ target*)
3916   am__include=include
3917   am__quote=
3918   _am_result=GNU
3919   ;;
3920 esac
3921 # Now try BSD make style include.
3922 if test "$am__include" = "#"; then
3923    echo '.include "confinc"' > confmf
3924    case `$am_make -s -f confmf 2> /dev/null` in #(
3925    *the\ am__doit\ target*)
3926      am__include=.include
3927      am__quote="\""
3928      _am_result=BSD
3929      ;;
3930    esac
3931 fi
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3935 $as_echo "$_am_result" >&6; }
3936 rm -f confinc confmf
3937
3938 # Check whether --enable-dependency-tracking was given.
3939 if test "${enable_dependency_tracking+set}" = set; then :
3940   enableval=$enable_dependency_tracking;
3941 fi
3942
3943 if test "x$enable_dependency_tracking" != xno; then
3944   am_depcomp="$ac_aux_dir/depcomp"
3945   AMDEPBACKSLASH='\'
3946   am__nodep='_no'
3947 fi
3948  if test "x$enable_dependency_tracking" != xno; then
3949   AMDEP_TRUE=
3950   AMDEP_FALSE='#'
3951 else
3952   AMDEP_TRUE='#'
3953   AMDEP_FALSE=
3954 fi
3955
3956
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 if test -n "$ac_tool_prefix"; then
3963   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -n "$CC"; then
3971   ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978     for ac_exec_ext in '' $ac_executable_extensions; do
3979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985   done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$ac_cv_prog_CC"; then
4002   ac_ct_CC=$CC
4003   # Extract the first word of "gcc", so it can be a program name with args.
4004 set dummy gcc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   if test -n "$ac_ct_CC"; then
4011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018     for ac_exec_ext in '' $ac_executable_extensions; do
4019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_prog_ac_ct_CC="gcc"
4021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025   done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4034 else
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039   if test "x$ac_ct_CC" = x; then
4040     CC=""
4041   else
4042     case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048     CC=$ac_ct_CC
4049   fi
4050 else
4051   CC="$ac_cv_prog_CC"
4052 fi
4053
4054 if test -z "$CC"; then
4055           if test -n "$ac_tool_prefix"; then
4056     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}cc; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_CC+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   if test -n "$CC"; then
4064   ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071     for ac_exec_ext in '' $ac_executable_extensions; do
4072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_CC="${ac_tool_prefix}cc"
4074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078   done
4079 IFS=$as_save_IFS
4080
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4087 else
4088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093   fi
4094 fi
4095 if test -z "$CC"; then
4096   # Extract the first word of "cc", so it can be a program name with args.
4097 set dummy cc; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -n "$CC"; then
4104   ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106   ac_prog_rejected=no
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4115        ac_prog_rejected=yes
4116        continue
4117      fi
4118     ac_cv_prog_CC="cc"
4119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123   done
4124 IFS=$as_save_IFS
4125
4126 if test $ac_prog_rejected = yes; then
4127   # We found a bogon in the path, so make sure we never use it.
4128   set dummy $ac_cv_prog_CC
4129   shift
4130   if test $# != 0; then
4131     # We chose a different compiler from the bogus one.
4132     # However, it has the same basename, so the bogon will be chosen
4133     # first if we set CC to just the basename; use the full file name.
4134     shift
4135     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4136   fi
4137 fi
4138 fi
4139 fi
4140 CC=$ac_cv_prog_CC
4141 if test -n "$CC"; then
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4144 else
4145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$CC"; then
4152   if test -n "$ac_tool_prefix"; then
4153   for ac_prog in cl.exe
4154   do
4155     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_CC+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   if test -n "$CC"; then
4163   ac_cv_prog_CC="$CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170     for ac_exec_ext in '' $ac_executable_extensions; do
4171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177   done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 $as_echo "$CC" >&6; }
4186 else
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192     test -n "$CC" && break
4193   done
4194 fi
4195 if test -z "$CC"; then
4196   ac_ct_CC=$CC
4197   for ac_prog in cl.exe
4198 do
4199   # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4204   $as_echo_n "(cached) " >&6
4205 else
4206   if test -n "$ac_ct_CC"; then
4207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214     for ac_exec_ext in '' $ac_executable_extensions; do
4215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216     ac_cv_prog_ac_ct_CC="$ac_prog"
4217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221   done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4229 $as_echo "$ac_ct_CC" >&6; }
4230 else
4231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236   test -n "$ac_ct_CC" && break
4237 done
4238
4239   if test "x$ac_ct_CC" = x; then
4240     CC=""
4241   else
4242     case $cross_compiling:$ac_tool_warned in
4243 yes:)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4247 esac
4248     CC=$ac_ct_CC
4249   fi
4250 fi
4251
4252 fi
4253
4254
4255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details" "$LINENO" 5; }
4259
4260 # Provide some information about the compiler.
4261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4262 set X $ac_compile
4263 ac_compiler=$2
4264 for ac_option in --version -v -V -qversion; do
4265   { { ac_try="$ac_compiler $ac_option >&5"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4273   ac_status=$?
4274   if test -s conftest.err; then
4275     sed '10a\
4276 ... rest of stderr output deleted ...
4277          10q' conftest.err >conftest.er1
4278     cat conftest.er1 >&5
4279   fi
4280   rm -f conftest.er1 conftest.err
4281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282   test $ac_status = 0; }
4283 done
4284
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4300 # of exeext.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 $as_echo_n "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4304
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4307
4308 ac_rmfiles=
4309 for ac_file in $ac_files
4310 do
4311   case $ac_file in
4312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4314   esac
4315 done
4316 rm -f $ac_rmfiles
4317
4318 if { { ac_try="$ac_link_default"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_link_default") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; }; then :
4329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4332 # so that the user can short-circuit this test for compilers unknown to
4333 # Autoconf.
4334 for ac_file in $ac_files ''
4335 do
4336   test -f "$ac_file" || continue
4337   case $ac_file in
4338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4339         ;;
4340     [ab].out )
4341         # We found the default executable, but exeext='' is most
4342         # certainly right.
4343         break;;
4344     *.* )
4345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4346         then :; else
4347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4348         fi
4349         # We set ac_cv_exeext here because the later test for it is not
4350         # safe: cross compilers may not add the suffix if given an `-o'
4351         # argument, so we may need to know it at that point already.
4352         # Even if this section looks crufty: it has the advantage of
4353         # actually working.
4354         break;;
4355     * )
4356         break;;
4357   esac
4358 done
4359 test "$ac_cv_exeext" = no && ac_cv_exeext=
4360
4361 else
4362   ac_file=''
4363 fi
4364 if test -z "$ac_file"; then :
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error 77 "C compiler cannot create executables
4373 See \`config.log' for more details" "$LINENO" 5; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 $as_echo "yes" >&6; }
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4379 $as_echo_n "checking for C compiler default output file name... " >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4381 $as_echo "$ac_file" >&6; }
4382 ac_exeext=$ac_cv_exeext
4383
4384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4385 ac_clean_files=$ac_clean_files_save
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4387 $as_echo_n "checking for suffix of executables... " >&6; }
4388 if { { ac_try="$ac_link"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395   (eval "$ac_link") 2>&5
4396   ac_status=$?
4397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398   test $ac_status = 0; }; then :
4399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4401 # work properly (i.e., refer to `conftest.exe'), while it won't with
4402 # `rm'.
4403 for ac_file in conftest.exe conftest conftest.*; do
4404   test -f "$ac_file" || continue
4405   case $ac_file in
4406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408           break;;
4409     * ) break;;
4410   esac
4411 done
4412 else
4413   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 fi
4418 rm -f conftest conftest$ac_cv_exeext
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4420 $as_echo "$ac_cv_exeext" >&6; }
4421
4422 rm -f conftest.$ac_ext
4423 EXEEXT=$ac_cv_exeext
4424 ac_exeext=$EXEEXT
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427 #include <stdio.h>
4428 int
4429 main ()
4430 {
4431 FILE *f = fopen ("conftest.out", "w");
4432  return ferror (f) || fclose (f) != 0;
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 ac_clean_files="$ac_clean_files conftest.out"
4439 # Check that the compiler produces executables we can run.  If not, either
4440 # the compiler is broken, or we cross compile.
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4442 $as_echo_n "checking whether we are cross compiling... " >&6; }
4443 if test "$cross_compiling" != yes; then
4444   { { ac_try="$ac_link"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451   (eval "$ac_link") 2>&5
4452   ac_status=$?
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; }
4455   if { ac_try='./conftest$ac_cv_exeext'
4456   { { case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462   (eval "$ac_try") 2>&5
4463   ac_status=$?
4464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465   test $ac_status = 0; }; }; then
4466     cross_compiling=no
4467   else
4468     if test "$cross_compiling" = maybe; then
4469         cross_compiling=yes
4470     else
4471         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error $? "cannot run C compiled programs.
4474 If you meant to cross compile, use \`--host'.
4475 See \`config.log' for more details" "$LINENO" 5; }
4476     fi
4477   fi
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4480 $as_echo "$cross_compiling" >&6; }
4481
4482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4483 ac_clean_files=$ac_clean_files_save
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4485 $as_echo_n "checking for suffix of object files... " >&6; }
4486 if ${ac_cv_objext+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491
4492 int
4493 main ()
4494 {
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.o conftest.obj
4501 if { { ac_try="$ac_compile"
4502 case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508   (eval "$ac_compile") 2>&5
4509   ac_status=$?
4510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511   test $ac_status = 0; }; then :
4512   for ac_file in conftest.o conftest.obj conftest.*; do
4513   test -f "$ac_file" || continue;
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4517        break;;
4518   esac
4519 done
4520 else
4521   $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $? "cannot compute suffix of object files: cannot compile
4527 See \`config.log' for more details" "$LINENO" 5; }
4528 fi
4529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4532 $as_echo "$ac_cv_objext" >&6; }
4533 OBJEXT=$ac_cv_objext
4534 ac_objext=$OBJEXT
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4537 if ${ac_cv_c_compiler_gnu+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h.  */
4542
4543 int
4544 main ()
4545 {
4546 #ifndef __GNUC__
4547        choke me
4548 #endif
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555   ac_compiler_gnu=yes
4556 else
4557   ac_compiler_gnu=no
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4566   GCC=yes
4567 else
4568   GCC=
4569 fi
4570 ac_test_CFLAGS=${CFLAGS+set}
4571 ac_save_CFLAGS=$CFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4574 if ${ac_cv_prog_cc_g+:} false; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   ac_save_c_werror_flag=$ac_c_werror_flag
4578    ac_c_werror_flag=yes
4579    ac_cv_prog_cc_g=no
4580    CFLAGS="-g"
4581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593   ac_cv_prog_cc_g=yes
4594 else
4595   CFLAGS=""
4596       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608
4609 else
4610   ac_c_werror_flag=$ac_save_c_werror_flag
4611          CFLAGS="-g"
4612          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614
4615 int
4616 main ()
4617 {
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624   ac_cv_prog_cc_g=yes
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631    ac_c_werror_flag=$ac_save_c_werror_flag
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4634 $as_echo "$ac_cv_prog_cc_g" >&6; }
4635 if test "$ac_test_CFLAGS" = set; then
4636   CFLAGS=$ac_save_CFLAGS
4637 elif test $ac_cv_prog_cc_g = yes; then
4638   if test "$GCC" = yes; then
4639     CFLAGS="-g -O2"
4640   else
4641     CFLAGS="-g"
4642   fi
4643 else
4644   if test "$GCC" = yes; then
4645     CFLAGS="-O2"
4646   else
4647     CFLAGS=
4648   fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4652 if ${ac_cv_prog_cc_c89+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   ac_cv_prog_cc_c89=no
4656 ac_save_CC=$CC
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h.  */
4659 #include <stdarg.h>
4660 #include <stdio.h>
4661 struct stat;
4662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4663 struct buf { int x; };
4664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4665 static char *e (p, i)
4666      char **p;
4667      int i;
4668 {
4669   return p[i];
4670 }
4671 static char *f (char * (*g) (char **, int), char **p, ...)
4672 {
4673   char *s;
4674   va_list v;
4675   va_start (v,p);
4676   s = g (p, va_arg (v,int));
4677   va_end (v);
4678   return s;
4679 }
4680
4681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4682    function prototypes and stuff, but not '\xHH' hex character constants.
4683    These don't provoke an error unfortunately, instead are silently treated
4684    as 'x'.  The following induces an error, until -std is added to get
4685    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4686    array size at least.  It's necessary to write '\x00'==0 to get something
4687    that's true only with -std.  */
4688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4689
4690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4691    inside strings and character constants.  */
4692 #define FOO(x) 'x'
4693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4694
4695 int test (int i, double x);
4696 struct s1 {int (*f) (int a);};
4697 struct s2 {int (*f) (double a);};
4698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4699 int argc;
4700 char **argv;
4701 int
4702 main ()
4703 {
4704 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4710         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4711 do
4712   CC="$ac_save_CC $ac_arg"
4713   if ac_fn_c_try_compile "$LINENO"; then :
4714   ac_cv_prog_cc_c89=$ac_arg
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext
4717   test "x$ac_cv_prog_cc_c89" != "xno" && break
4718 done
4719 rm -f conftest.$ac_ext
4720 CC=$ac_save_CC
4721
4722 fi
4723 # AC_CACHE_VAL
4724 case "x$ac_cv_prog_cc_c89" in
4725   x)
4726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4727 $as_echo "none needed" >&6; } ;;
4728   xno)
4729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4730 $as_echo "unsupported" >&6; } ;;
4731   *)
4732     CC="$CC $ac_cv_prog_cc_c89"
4733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4735 esac
4736 if test "x$ac_cv_prog_cc_c89" != xno; then :
4737
4738 fi
4739
4740 ac_ext=c
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746 depcc="$CC"   am_compiler_list=
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749 $as_echo_n "checking dependency style of $depcc... " >&6; }
4750 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754   # We make a subdir and do the tests there.  Otherwise we can end up
4755   # making bogus files that we don't know about and never remove.  For
4756   # instance it was reported that on HP-UX the gcc test will end up
4757   # making a dummy file named 'D' -- because '-MD' means "put the output
4758   # in D".
4759   rm -rf conftest.dir
4760   mkdir conftest.dir
4761   # Copy depcomp to subdir because otherwise we won't find it if we're
4762   # using a relative directory.
4763   cp "$am_depcomp" conftest.dir
4764   cd conftest.dir
4765   # We will build objects and dependencies in a subdirectory because
4766   # it helps to detect inapplicable dependency modes.  For instance
4767   # both Tru64's cc and ICC support -MD to output dependencies as a
4768   # side effect of compilation, but ICC will put the dependencies in
4769   # the current directory while Tru64 will put them in the object
4770   # directory.
4771   mkdir sub
4772
4773   am_cv_CC_dependencies_compiler_type=none
4774   if test "$am_compiler_list" = ""; then
4775      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4776   fi
4777   am__universal=false
4778   case " $depcc " in #(
4779      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4780      esac
4781
4782   for depmode in $am_compiler_list; do
4783     # Setup a source with many dependencies, because some compilers
4784     # like to wrap large dependency lists on column 80 (with \), and
4785     # we should not choose a depcomp mode which is confused by this.
4786     #
4787     # We need to recreate these files for each test, as the compiler may
4788     # overwrite some of them when testing with obscure command lines.
4789     # This happens at least with the AIX C compiler.
4790     : > sub/conftest.c
4791     for i in 1 2 3 4 5 6; do
4792       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4793       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4794       # Solaris 10 /bin/sh.
4795       echo '/* dummy */' > sub/conftst$i.h
4796     done
4797     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4798
4799     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4800     # mode.  It turns out that the SunPro C++ compiler does not properly
4801     # handle '-M -o', and we need to detect this.  Also, some Intel
4802     # versions had trouble with output in subdirs.
4803     am__obj=sub/conftest.${OBJEXT-o}
4804     am__minus_obj="-o $am__obj"
4805     case $depmode in
4806     gcc)
4807       # This depmode causes a compiler race in universal mode.
4808       test "$am__universal" = false || continue
4809       ;;
4810     nosideeffect)
4811       # After this tag, mechanisms are not by side-effect, so they'll
4812       # only be used when explicitly requested.
4813       if test "x$enable_dependency_tracking" = xyes; then
4814         continue
4815       else
4816         break
4817       fi
4818       ;;
4819     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4820       # This compiler won't grok '-c -o', but also, the minuso test has
4821       # not run yet.  These depmodes are late enough in the game, and
4822       # so weak that their functioning should not be impacted.
4823       am__obj=conftest.${OBJEXT-o}
4824       am__minus_obj=
4825       ;;
4826     none) break ;;
4827     esac
4828     if depmode=$depmode \
4829        source=sub/conftest.c object=$am__obj \
4830        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4831        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4832          >/dev/null 2>conftest.err &&
4833        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4834        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4836        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837       # icc doesn't choke on unknown options, it will just issue warnings
4838       # or remarks (even with -Werror).  So we grep stderr for any message
4839       # that says an option was ignored or not supported.
4840       # When given -MP, icc 7.0 and 7.1 complain thusly:
4841       #   icc: Command line warning: ignoring option '-M'; no argument required
4842       # The diagnosis changed in icc 8.0:
4843       #   icc: Command line remark: option '-MP' not supported
4844       if (grep 'ignoring option' conftest.err ||
4845           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4846         am_cv_CC_dependencies_compiler_type=$depmode
4847         break
4848       fi
4849     fi
4850   done
4851
4852   cd ..
4853   rm -rf conftest.dir
4854 else
4855   am_cv_CC_dependencies_compiler_type=none
4856 fi
4857
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4860 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4861 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4862
4863  if
4864   test "x$enable_dependency_tracking" != xno \
4865   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4866   am__fastdepCC_TRUE=
4867   am__fastdepCC_FALSE='#'
4868 else
4869   am__fastdepCC_TRUE='#'
4870   am__fastdepCC_FALSE=
4871 fi
4872
4873
4874
4875 ac_ext=c
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4881 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4882 # On Suns, sometimes $CPP names a directory.
4883 if test -n "$CPP" && test -d "$CPP"; then
4884   CPP=
4885 fi
4886 if test -z "$CPP"; then
4887   if ${ac_cv_prog_CPP+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890       # Double quotes because CPP needs to be expanded
4891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4892     do
4893       ac_preproc_ok=false
4894 for ac_c_preproc_warn_flag in '' yes
4895 do
4896   # Use a header file that comes with gcc, so configuring glibc
4897   # with a fresh cross-compiler works.
4898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899   # <limits.h> exists even on freestanding compilers.
4900   # On the NeXT, cc -E runs the code through the compiler's parser,
4901   # not just through cpp. "Syntax error" is here to catch this case.
4902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h.  */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909                      Syntax error
4910 _ACEOF
4911 if ac_fn_c_try_cpp "$LINENO"; then :
4912
4913 else
4914   # Broken: fails on valid input.
4915 continue
4916 fi
4917 rm -f conftest.err conftest.i conftest.$ac_ext
4918
4919   # OK, works on sane cases.  Now check whether nonexistent headers
4920   # can be detected and how.
4921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h.  */
4923 #include <ac_nonexistent.h>
4924 _ACEOF
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4926   # Broken: success on invalid input.
4927 continue
4928 else
4929   # Passes both tests.
4930 ac_preproc_ok=:
4931 break
4932 fi
4933 rm -f conftest.err conftest.i conftest.$ac_ext
4934
4935 done
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.i conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then :
4939   break
4940 fi
4941
4942     done
4943     ac_cv_prog_CPP=$CPP
4944
4945 fi
4946   CPP=$ac_cv_prog_CPP
4947 else
4948   ac_cv_prog_CPP=$CPP
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4951 $as_echo "$CPP" >&6; }
4952 ac_preproc_ok=false
4953 for ac_c_preproc_warn_flag in '' yes
4954 do
4955   # Use a header file that comes with gcc, so configuring glibc
4956   # with a fresh cross-compiler works.
4957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958   # <limits.h> exists even on freestanding compilers.
4959   # On the NeXT, cc -E runs the code through the compiler's parser,
4960   # not just through cpp. "Syntax error" is here to catch this case.
4961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h.  */
4963 #ifdef __STDC__
4964 # include <limits.h>
4965 #else
4966 # include <assert.h>
4967 #endif
4968                      Syntax error
4969 _ACEOF
4970 if ac_fn_c_try_cpp "$LINENO"; then :
4971
4972 else
4973   # Broken: fails on valid input.
4974 continue
4975 fi
4976 rm -f conftest.err conftest.i conftest.$ac_ext
4977
4978   # OK, works on sane cases.  Now check whether nonexistent headers
4979   # can be detected and how.
4980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h.  */
4982 #include <ac_nonexistent.h>
4983 _ACEOF
4984 if ac_fn_c_try_cpp "$LINENO"; then :
4985   # Broken: success on invalid input.
4986 continue
4987 else
4988   # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4991 fi
4992 rm -f conftest.err conftest.i conftest.$ac_ext
4993
4994 done
4995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996 rm -f conftest.i conftest.err conftest.$ac_ext
4997 if $ac_preproc_ok; then :
4998
4999 else
5000   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5002 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5003 See \`config.log' for more details" "$LINENO" 5; }
5004 fi
5005
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5014 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5015 if ${ac_cv_path_GREP+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   if test -z "$GREP"; then
5019   ac_path_GREP_found=false
5020   # Loop through the user's path and test for each of PROGNAME-LIST
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026     for ac_prog in grep ggrep; do
5027     for ac_exec_ext in '' $ac_executable_extensions; do
5028       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5029       as_fn_executable_p "$ac_path_GREP" || continue
5030 # Check for GNU ac_path_GREP and select it if it is found.
5031   # Check for GNU $ac_path_GREP
5032 case `"$ac_path_GREP" --version 2>&1` in
5033 *GNU*)
5034   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5035 *)
5036   ac_count=0
5037   $as_echo_n 0123456789 >"conftest.in"
5038   while :
5039   do
5040     cat "conftest.in" "conftest.in" >"conftest.tmp"
5041     mv "conftest.tmp" "conftest.in"
5042     cp "conftest.in" "conftest.nl"
5043     $as_echo 'GREP' >> "conftest.nl"
5044     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5045     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5046     as_fn_arith $ac_count + 1 && ac_count=$as_val
5047     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5048       # Best one so far, save it but keep looking for a better one
5049       ac_cv_path_GREP="$ac_path_GREP"
5050       ac_path_GREP_max=$ac_count
5051     fi
5052     # 10*(2^10) chars as input seems more than enough
5053     test $ac_count -gt 10 && break
5054   done
5055   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5056 esac
5057
5058       $ac_path_GREP_found && break 3
5059     done
5060   done
5061   done
5062 IFS=$as_save_IFS
5063   if test -z "$ac_cv_path_GREP"; then
5064     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5065   fi
5066 else
5067   ac_cv_path_GREP=$GREP
5068 fi
5069
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5072 $as_echo "$ac_cv_path_GREP" >&6; }
5073  GREP="$ac_cv_path_GREP"
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5077 $as_echo_n "checking for egrep... " >&6; }
5078 if ${ac_cv_path_EGREP+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5082    then ac_cv_path_EGREP="$GREP -E"
5083    else
5084      if test -z "$EGREP"; then
5085   ac_path_EGREP_found=false
5086   # Loop through the user's path and test for each of PROGNAME-LIST
5087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092     for ac_prog in egrep; do
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5095       as_fn_executable_p "$ac_path_EGREP" || continue
5096 # Check for GNU ac_path_EGREP and select it if it is found.
5097   # Check for GNU $ac_path_EGREP
5098 case `"$ac_path_EGREP" --version 2>&1` in
5099 *GNU*)
5100   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5101 *)
5102   ac_count=0
5103   $as_echo_n 0123456789 >"conftest.in"
5104   while :
5105   do
5106     cat "conftest.in" "conftest.in" >"conftest.tmp"
5107     mv "conftest.tmp" "conftest.in"
5108     cp "conftest.in" "conftest.nl"
5109     $as_echo 'EGREP' >> "conftest.nl"
5110     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112     as_fn_arith $ac_count + 1 && ac_count=$as_val
5113     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5114       # Best one so far, save it but keep looking for a better one
5115       ac_cv_path_EGREP="$ac_path_EGREP"
5116       ac_path_EGREP_max=$ac_count
5117     fi
5118     # 10*(2^10) chars as input seems more than enough
5119     test $ac_count -gt 10 && break
5120   done
5121   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5123
5124       $ac_path_EGREP_found && break 3
5125     done
5126   done
5127   done
5128 IFS=$as_save_IFS
5129   if test -z "$ac_cv_path_EGREP"; then
5130     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131   fi
5132 else
5133   ac_cv_path_EGREP=$EGREP
5134 fi
5135
5136    fi
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5139 $as_echo "$ac_cv_path_EGREP" >&6; }
5140  EGREP="$ac_cv_path_EGREP"
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5144 $as_echo_n "checking for ANSI C header files... " >&6; }
5145 if ${ac_cv_header_stdc+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h.  */
5150 #include <stdlib.h>
5151 #include <stdarg.h>
5152 #include <string.h>
5153 #include <float.h>
5154
5155 int
5156 main ()
5157 {
5158
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164   ac_cv_header_stdc=yes
5165 else
5166   ac_cv_header_stdc=no
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169
5170 if test $ac_cv_header_stdc = yes; then
5171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h.  */
5174 #include <string.h>
5175
5176 _ACEOF
5177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5178   $EGREP "memchr" >/dev/null 2>&1; then :
5179
5180 else
5181   ac_cv_header_stdc=no
5182 fi
5183 rm -f conftest*
5184
5185 fi
5186
5187 if test $ac_cv_header_stdc = yes; then
5188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h.  */
5191 #include <stdlib.h>
5192
5193 _ACEOF
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195   $EGREP "free" >/dev/null 2>&1; then :
5196
5197 else
5198   ac_cv_header_stdc=no
5199 fi
5200 rm -f conftest*
5201
5202 fi
5203
5204 if test $ac_cv_header_stdc = yes; then
5205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5206   if test "$cross_compiling" = yes; then :
5207   :
5208 else
5209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h.  */
5211 #include <ctype.h>
5212 #include <stdlib.h>
5213 #if ((' ' & 0x0FF) == 0x020)
5214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5216 #else
5217 # define ISLOWER(c) \
5218                    (('a' <= (c) && (c) <= 'i') \
5219                      || ('j' <= (c) && (c) <= 'r') \
5220                      || ('s' <= (c) && (c) <= 'z'))
5221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5222 #endif
5223
5224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5225 int
5226 main ()
5227 {
5228   int i;
5229   for (i = 0; i < 256; i++)
5230     if (XOR (islower (i), ISLOWER (i))
5231         || toupper (i) != TOUPPER (i))
5232       return 2;
5233   return 0;
5234 }
5235 _ACEOF
5236 if ac_fn_c_try_run "$LINENO"; then :
5237
5238 else
5239   ac_cv_header_stdc=no
5240 fi
5241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5242   conftest.$ac_objext conftest.beam conftest.$ac_ext
5243 fi
5244
5245 fi
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5248 $as_echo "$ac_cv_header_stdc" >&6; }
5249 if test $ac_cv_header_stdc = yes; then
5250
5251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5252
5253 fi
5254
5255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5257                   inttypes.h stdint.h unistd.h
5258 do :
5259   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5261 "
5262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5263   cat >>confdefs.h <<_ACEOF
5264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271
5272
5273   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5275   MINIX=yes
5276 else
5277   MINIX=
5278 fi
5279
5280
5281   if test "$MINIX" = yes; then
5282
5283 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5284
5285
5286 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5287
5288
5289 $as_echo "#define _MINIX 1" >>confdefs.h
5290
5291
5292 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5293
5294   fi
5295
5296
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5298 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5299 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5300   $as_echo_n "(cached) " >&6
5301 else
5302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h.  */
5304
5305 #         define __EXTENSIONS__ 1
5306           $ac_includes_default
5307 int
5308 main ()
5309 {
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316   ac_cv_safe_to_define___extensions__=yes
5317 else
5318   ac_cv_safe_to_define___extensions__=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5323 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5324   test $ac_cv_safe_to_define___extensions__ = yes &&
5325     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5326
5327   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5328
5329   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5330
5331   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5332
5333   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5334
5335   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5336
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5338 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5339 if ${ac_cv_should_define__xopen_source+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   ac_cv_should_define__xopen_source=no
5343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h.  */
5345
5346           #include <wchar.h>
5347           mbstate_t x;
5348 int
5349 main ()
5350 {
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357
5358 else
5359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361
5362              #define _XOPEN_SOURCE 500
5363              #include <wchar.h>
5364              mbstate_t x;
5365 int
5366 main ()
5367 {
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374   ac_cv_should_define__xopen_source=yes
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5381 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5382   test $ac_cv_should_define__xopen_source = yes &&
5383     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5384
5385
5386
5387 if test -n "$ac_tool_prefix"; then
5388   for ac_prog in ar lib "link -lib"
5389   do
5390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_AR+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$AR"; then
5398   ac_cv_prog_AR="$AR" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 AR=$ac_cv_prog_AR
5418 if test -n "$AR"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427     test -n "$AR" && break
5428   done
5429 fi
5430 if test -z "$AR"; then
5431   ac_ct_AR=$AR
5432   for ac_prog in ar lib "link -lib"
5433 do
5434   # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$ac_ct_AR"; then
5442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451     ac_cv_prog_ac_ct_AR="$ac_prog"
5452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456   done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5462 if test -n "$ac_ct_AR"; then
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5464 $as_echo "$ac_ct_AR" >&6; }
5465 else
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471   test -n "$ac_ct_AR" && break
5472 done
5473
5474   if test "x$ac_ct_AR" = x; then
5475     AR="false"
5476   else
5477     case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5482 esac
5483     AR=$ac_ct_AR
5484   fi
5485 fi
5486
5487 : ${AR=ar}
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5490 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5491 if ${am_cv_ar_interface+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   am_cv_ar_interface=ar
5495    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h.  */
5497 int some_variable = 0;
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5501       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5502   (eval $am_ar_try) 2>&5
5503   ac_status=$?
5504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505   test $ac_status = 0; }
5506       if test "$ac_status" -eq 0; then
5507         am_cv_ar_interface=ar
5508       else
5509         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5510         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5511   (eval $am_ar_try) 2>&5
5512   ac_status=$?
5513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5514   test $ac_status = 0; }
5515         if test "$ac_status" -eq 0; then
5516           am_cv_ar_interface=lib
5517         else
5518           am_cv_ar_interface=unknown
5519         fi
5520       fi
5521       rm -f conftest.lib libconftest.a
5522
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5528 $as_echo "$am_cv_ar_interface" >&6; }
5529
5530 case $am_cv_ar_interface in
5531 ar)
5532   ;;
5533 lib)
5534   # Microsoft lib, so override with the ar-lib wrapper script.
5535   # FIXME: It is wrong to rewrite AR.
5536   # But if we don't then we get into trouble of one sort or another.
5537   # A longer-term fix would be to have automake use am__AR in this case,
5538   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5539   # similar.
5540   AR="$am_aux_dir/ar-lib $AR"
5541   ;;
5542 unknown)
5543   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5544   ;;
5545 esac
5546
5547 case `pwd` in
5548   *\ * | *\     *)
5549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5550 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5551 esac
5552
5553
5554
5555 macro_version='2.4.2'
5556 macro_revision='1.3337'
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 ltmain="$ac_aux_dir/ltmain.sh"
5571
5572 # Make sure we can run config.sub.
5573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5574   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5577 $as_echo_n "checking build system type... " >&6; }
5578 if ${ac_cv_build+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   ac_build_alias=$build_alias
5582 test "x$ac_build_alias" = x &&
5583   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5584 test "x$ac_build_alias" = x &&
5585   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5587   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5591 $as_echo "$ac_cv_build" >&6; }
5592 case $ac_cv_build in
5593 *-*-*) ;;
5594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5595 esac
5596 build=$ac_cv_build
5597 ac_save_IFS=$IFS; IFS='-'
5598 set x $ac_cv_build
5599 shift
5600 build_cpu=$1
5601 build_vendor=$2
5602 shift; shift
5603 # Remember, the first character of IFS is used to create $*,
5604 # except with old shells:
5605 build_os=$*
5606 IFS=$ac_save_IFS
5607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5608
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5611 $as_echo_n "checking host system type... " >&6; }
5612 if ${ac_cv_host+:} false; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   if test "x$host_alias" = x; then
5616   ac_cv_host=$ac_cv_build
5617 else
5618   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5619     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5620 fi
5621
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5624 $as_echo "$ac_cv_host" >&6; }
5625 case $ac_cv_host in
5626 *-*-*) ;;
5627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5628 esac
5629 host=$ac_cv_host
5630 ac_save_IFS=$IFS; IFS='-'
5631 set x $ac_cv_host
5632 shift
5633 host_cpu=$1
5634 host_vendor=$2
5635 shift; shift
5636 # Remember, the first character of IFS is used to create $*,
5637 # except with old shells:
5638 host_os=$*
5639 IFS=$ac_save_IFS
5640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5641
5642
5643 # Backslashify metacharacters that are still active within
5644 # double-quoted strings.
5645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5646
5647 # Same as above, but do not quote variable references.
5648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5649
5650 # Sed substitution to delay expansion of an escaped shell variable in a
5651 # double_quote_subst'ed string.
5652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5653
5654 # Sed substitution to delay expansion of an escaped single quote.
5655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5656
5657 # Sed substitution to avoid accidental globbing in evaled expressions
5658 no_glob_subst='s/\*/\\\*/g'
5659
5660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5665 $as_echo_n "checking how to print strings... " >&6; }
5666 # Test print first, because it will be a builtin if present.
5667 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5668    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5669   ECHO='print -r --'
5670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5671   ECHO='printf %s\n'
5672 else
5673   # Use this function as a fallback that always works.
5674   func_fallback_echo ()
5675   {
5676     eval 'cat <<_LTECHO_EOF
5677 $1
5678 _LTECHO_EOF'
5679   }
5680   ECHO='func_fallback_echo'
5681 fi
5682
5683 # func_echo_all arg...
5684 # Invoke $ECHO with all args, space-separated.
5685 func_echo_all ()
5686 {
5687     $ECHO ""
5688 }
5689
5690 case "$ECHO" in
5691   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5692 $as_echo "printf" >&6; } ;;
5693   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5694 $as_echo "print -r" >&6; } ;;
5695   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5696 $as_echo "cat" >&6; } ;;
5697 esac
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5714 if ${ac_cv_path_SED+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5718      for ac_i in 1 2 3 4 5 6 7; do
5719        ac_script="$ac_script$as_nl$ac_script"
5720      done
5721      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5722      { ac_script=; unset ac_script;}
5723      if test -z "$SED"; then
5724   ac_path_SED_found=false
5725   # Loop through the user's path and test for each of PROGNAME-LIST
5726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_prog in sed gsed; do
5732     for ac_exec_ext in '' $ac_executable_extensions; do
5733       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5734       as_fn_executable_p "$ac_path_SED" || continue
5735 # Check for GNU ac_path_SED and select it if it is found.
5736   # Check for GNU $ac_path_SED
5737 case `"$ac_path_SED" --version 2>&1` in
5738 *GNU*)
5739   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5740 *)
5741   ac_count=0
5742   $as_echo_n 0123456789 >"conftest.in"
5743   while :
5744   do
5745     cat "conftest.in" "conftest.in" >"conftest.tmp"
5746     mv "conftest.tmp" "conftest.in"
5747     cp "conftest.in" "conftest.nl"
5748     $as_echo '' >> "conftest.nl"
5749     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5750     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5751     as_fn_arith $ac_count + 1 && ac_count=$as_val
5752     if test $ac_count -gt ${ac_path_SED_max-0}; then
5753       # Best one so far, save it but keep looking for a better one
5754       ac_cv_path_SED="$ac_path_SED"
5755       ac_path_SED_max=$ac_count
5756     fi
5757     # 10*(2^10) chars as input seems more than enough
5758     test $ac_count -gt 10 && break
5759   done
5760   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5761 esac
5762
5763       $ac_path_SED_found && break 3
5764     done
5765   done
5766   done
5767 IFS=$as_save_IFS
5768   if test -z "$ac_cv_path_SED"; then
5769     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5770   fi
5771 else
5772   ac_cv_path_SED=$SED
5773 fi
5774
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5777 $as_echo "$ac_cv_path_SED" >&6; }
5778  SED="$ac_cv_path_SED"
5779   rm -f conftest.sed
5780
5781 test -z "$SED" && SED=sed
5782 Xsed="$SED -e 1s/^X//"
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5795 $as_echo_n "checking for fgrep... " >&6; }
5796 if ${ac_cv_path_FGREP+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5800    then ac_cv_path_FGREP="$GREP -F"
5801    else
5802      if test -z "$FGREP"; then
5803   ac_path_FGREP_found=false
5804   # Loop through the user's path and test for each of PROGNAME-LIST
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_prog in fgrep; do
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5813       as_fn_executable_p "$ac_path_FGREP" || continue
5814 # Check for GNU ac_path_FGREP and select it if it is found.
5815   # Check for GNU $ac_path_FGREP
5816 case `"$ac_path_FGREP" --version 2>&1` in
5817 *GNU*)
5818   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5819 *)
5820   ac_count=0
5821   $as_echo_n 0123456789 >"conftest.in"
5822   while :
5823   do
5824     cat "conftest.in" "conftest.in" >"conftest.tmp"
5825     mv "conftest.tmp" "conftest.in"
5826     cp "conftest.in" "conftest.nl"
5827     $as_echo 'FGREP' >> "conftest.nl"
5828     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830     as_fn_arith $ac_count + 1 && ac_count=$as_val
5831     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5832       # Best one so far, save it but keep looking for a better one
5833       ac_cv_path_FGREP="$ac_path_FGREP"
5834       ac_path_FGREP_max=$ac_count
5835     fi
5836     # 10*(2^10) chars as input seems more than enough
5837     test $ac_count -gt 10 && break
5838   done
5839   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840 esac
5841
5842       $ac_path_FGREP_found && break 3
5843     done
5844   done
5845   done
5846 IFS=$as_save_IFS
5847   if test -z "$ac_cv_path_FGREP"; then
5848     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5849   fi
5850 else
5851   ac_cv_path_FGREP=$FGREP
5852 fi
5853
5854    fi
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5857 $as_echo "$ac_cv_path_FGREP" >&6; }
5858  FGREP="$ac_cv_path_FGREP"
5859
5860
5861 test -z "$GREP" && GREP=grep
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 # Check whether --with-gnu-ld was given.
5882 if test "${with_gnu_ld+set}" = set; then :
5883   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5884 else
5885   with_gnu_ld=no
5886 fi
5887
5888 ac_prog=ld
5889 if test "$GCC" = yes; then
5890   # Check if gcc -print-prog-name=ld gives a path.
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5892 $as_echo_n "checking for ld used by $CC... " >&6; }
5893   case $host in
5894   *-*-mingw*)
5895     # gcc leaves a trailing carriage return which upsets mingw
5896     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5897   *)
5898     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5899   esac
5900   case $ac_prog in
5901     # Accept absolute paths.
5902     [\\/]* | ?:[\\/]*)
5903       re_direlt='/[^/][^/]*/\.\./'
5904       # Canonicalize the pathname of ld
5905       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5906       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5907         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5908       done
5909       test -z "$LD" && LD="$ac_prog"
5910       ;;
5911   "")
5912     # If it fails, then pretend we aren't using GCC.
5913     ac_prog=ld
5914     ;;
5915   *)
5916     # If it is relative, then search for the first ld in PATH.
5917     with_gnu_ld=unknown
5918     ;;
5919   esac
5920 elif test "$with_gnu_ld" = yes; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5922 $as_echo_n "checking for GNU ld... " >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5925 $as_echo_n "checking for non-GNU ld... " >&6; }
5926 fi
5927 if ${lt_cv_path_LD+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -z "$LD"; then
5931   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5932   for ac_dir in $PATH; do
5933     IFS="$lt_save_ifs"
5934     test -z "$ac_dir" && ac_dir=.
5935     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5936       lt_cv_path_LD="$ac_dir/$ac_prog"
5937       # Check to see if the program is GNU ld.  I'd rather use --version,
5938       # but apparently some variants of GNU ld only accept -v.
5939       # Break only if it was the GNU/non-GNU ld that we prefer.
5940       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5941       *GNU* | *'with BFD'*)
5942         test "$with_gnu_ld" != no && break
5943         ;;
5944       *)
5945         test "$with_gnu_ld" != yes && break
5946         ;;
5947       esac
5948     fi
5949   done
5950   IFS="$lt_save_ifs"
5951 else
5952   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5953 fi
5954 fi
5955
5956 LD="$lt_cv_path_LD"
5957 if test -n "$LD"; then
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5959 $as_echo "$LD" >&6; }
5960 else
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5966 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5967 if ${lt_cv_prog_gnu_ld+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5971 case `$LD -v 2>&1 </dev/null` in
5972 *GNU* | *'with BFD'*)
5973   lt_cv_prog_gnu_ld=yes
5974   ;;
5975 *)
5976   lt_cv_prog_gnu_ld=no
5977   ;;
5978 esac
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5981 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5982 with_gnu_ld=$lt_cv_prog_gnu_ld
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5993 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5994 if ${lt_cv_path_NM+:} false; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if test -n "$NM"; then
5998   # Let the user override the test.
5999   lt_cv_path_NM="$NM"
6000 else
6001   lt_nm_to_check="${ac_tool_prefix}nm"
6002   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6003     lt_nm_to_check="$lt_nm_to_check nm"
6004   fi
6005   for lt_tmp_nm in $lt_nm_to_check; do
6006     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6008       IFS="$lt_save_ifs"
6009       test -z "$ac_dir" && ac_dir=.
6010       tmp_nm="$ac_dir/$lt_tmp_nm"
6011       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6012         # Check to see if the nm accepts a BSD-compat flag.
6013         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6014         #   nm: unknown option "B" ignored
6015         # Tru64's nm complains that /dev/null is an invalid object file
6016         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6017         */dev/null* | *'Invalid file or object type'*)
6018           lt_cv_path_NM="$tmp_nm -B"
6019           break
6020           ;;
6021         *)
6022           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6023           */dev/null*)
6024             lt_cv_path_NM="$tmp_nm -p"
6025             break
6026             ;;
6027           *)
6028             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6029             continue # so that we can try to find one that supports BSD flags
6030             ;;
6031           esac
6032           ;;
6033         esac
6034       fi
6035     done
6036     IFS="$lt_save_ifs"
6037   done
6038   : ${lt_cv_path_NM=no}
6039 fi
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6042 $as_echo "$lt_cv_path_NM" >&6; }
6043 if test "$lt_cv_path_NM" != "no"; then
6044   NM="$lt_cv_path_NM"
6045 else
6046   # Didn't find any BSD compatible name lister, look for dumpbin.
6047   if test -n "$DUMPBIN"; then :
6048     # Let the user override the test.
6049   else
6050     if test -n "$ac_tool_prefix"; then
6051   for ac_prog in dumpbin "link -dump"
6052   do
6053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_DUMPBIN+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   if test -n "$DUMPBIN"; then
6061   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068     for ac_exec_ext in '' $ac_executable_extensions; do
6069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075   done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 DUMPBIN=$ac_cv_prog_DUMPBIN
6081 if test -n "$DUMPBIN"; then
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6083 $as_echo "$DUMPBIN" >&6; }
6084 else
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090     test -n "$DUMPBIN" && break
6091   done
6092 fi
6093 if test -z "$DUMPBIN"; then
6094   ac_ct_DUMPBIN=$DUMPBIN
6095   for ac_prog in dumpbin "link -dump"
6096 do
6097   # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$ac_ct_DUMPBIN"; then
6105   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6125 if test -n "$ac_ct_DUMPBIN"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6127 $as_echo "$ac_ct_DUMPBIN" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134   test -n "$ac_ct_DUMPBIN" && break
6135 done
6136
6137   if test "x$ac_ct_DUMPBIN" = x; then
6138     DUMPBIN=":"
6139   else
6140     case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146     DUMPBIN=$ac_ct_DUMPBIN
6147   fi
6148 fi
6149
6150     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6151     *COFF*)
6152       DUMPBIN="$DUMPBIN -symbols"
6153       ;;
6154     *)
6155       DUMPBIN=:
6156       ;;
6157     esac
6158   fi
6159
6160   if test "$DUMPBIN" != ":"; then
6161     NM="$DUMPBIN"
6162   fi
6163 fi
6164 test -z "$NM" && NM=nm
6165
6166
6167
6168
6169
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6172 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6173 if ${lt_cv_nm_interface+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   lt_cv_nm_interface="BSD nm"
6177   echo "int some_variable = 0;" > conftest.$ac_ext
6178   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6179   (eval "$ac_compile" 2>conftest.err)
6180   cat conftest.err >&5
6181   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6182   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6183   cat conftest.err >&5
6184   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6185   cat conftest.out >&5
6186   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6187     lt_cv_nm_interface="MS dumpbin"
6188   fi
6189   rm -f conftest*
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6192 $as_echo "$lt_cv_nm_interface" >&6; }
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6195 $as_echo_n "checking whether ln -s works... " >&6; }
6196 LN_S=$as_ln_s
6197 if test "$LN_S" = "ln -s"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199 $as_echo "yes" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6202 $as_echo "no, using $LN_S" >&6; }
6203 fi
6204
6205 # find the maximum length of command line arguments
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6207 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6208 if ${lt_cv_sys_max_cmd_len+:} false; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211     i=0
6212   teststring="ABCD"
6213
6214   case $build_os in
6215   msdosdjgpp*)
6216     # On DJGPP, this test can blow up pretty badly due to problems in libc
6217     # (any single argument exceeding 2000 bytes causes a buffer overrun
6218     # during glob expansion).  Even if it were fixed, the result of this
6219     # check would be larger than it should be.
6220     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6221     ;;
6222
6223   gnu*)
6224     # Under GNU Hurd, this test is not required because there is
6225     # no limit to the length of command line arguments.
6226     # Libtool will interpret -1 as no limit whatsoever
6227     lt_cv_sys_max_cmd_len=-1;
6228     ;;
6229
6230   cygwin* | mingw* | cegcc*)
6231     # On Win9x/ME, this test blows up -- it succeeds, but takes
6232     # about 5 minutes as the teststring grows exponentially.
6233     # Worse, since 9x/ME are not pre-emptively multitasking,
6234     # you end up with a "frozen" computer, even though with patience
6235     # the test eventually succeeds (with a max line length of 256k).
6236     # Instead, let's just punt: use the minimum linelength reported by
6237     # all of the supported platforms: 8192 (on NT/2K/XP).
6238     lt_cv_sys_max_cmd_len=8192;
6239     ;;
6240
6241   mint*)
6242     # On MiNT this can take a long time and run out of memory.
6243     lt_cv_sys_max_cmd_len=8192;
6244     ;;
6245
6246   amigaos*)
6247     # On AmigaOS with pdksh, this test takes hours, literally.
6248     # So we just punt and use a minimum line length of 8192.
6249     lt_cv_sys_max_cmd_len=8192;
6250     ;;
6251
6252   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6253     # This has been around since 386BSD, at least.  Likely further.
6254     if test -x /sbin/sysctl; then
6255       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6256     elif test -x /usr/sbin/sysctl; then
6257       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6258     else
6259       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6260     fi
6261     # And add a safety zone
6262     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6263     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6264     ;;
6265
6266   interix*)
6267     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6268     lt_cv_sys_max_cmd_len=196608
6269     ;;
6270
6271   os2*)
6272     # The test takes a long time on OS/2.
6273     lt_cv_sys_max_cmd_len=8192
6274     ;;
6275
6276   osf*)
6277     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6278     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6279     # nice to cause kernel panics so lets avoid the loop below.
6280     # First set a reasonable default.
6281     lt_cv_sys_max_cmd_len=16384
6282     #
6283     if test -x /sbin/sysconfig; then
6284       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6285         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6286       esac
6287     fi
6288     ;;
6289   sco3.2v5*)
6290     lt_cv_sys_max_cmd_len=102400
6291     ;;
6292   sysv5* | sco5v6* | sysv4.2uw2*)
6293     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6294     if test -n "$kargmax"; then
6295       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6296     else
6297       lt_cv_sys_max_cmd_len=32768
6298     fi
6299     ;;
6300   *)
6301     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6302     if test -n "$lt_cv_sys_max_cmd_len" && \
6303         test undefined != "$lt_cv_sys_max_cmd_len"; then
6304       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6305       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6306     else
6307       # Make teststring a little bigger before we do anything with it.
6308       # a 1K string should be a reasonable start.
6309       for i in 1 2 3 4 5 6 7 8 ; do
6310         teststring=$teststring$teststring
6311       done
6312       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6313       # If test is not a shell built-in, we'll probably end up computing a
6314       # maximum length that is only half of the actual maximum length, but
6315       # we can't tell.
6316       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6317                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6318               test $i != 17 # 1/2 MB should be enough
6319       do
6320         i=`expr $i + 1`
6321         teststring=$teststring$teststring
6322       done
6323       # Only check the string length outside the loop.
6324       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6325       teststring=
6326       # Add a significant safety factor because C++ compilers can tack on
6327       # massive amounts of additional arguments before passing them to the
6328       # linker.  It appears as though 1/2 is a usable value.
6329       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6330     fi
6331     ;;
6332   esac
6333
6334 fi
6335
6336 if test -n $lt_cv_sys_max_cmd_len ; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6338 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6341 $as_echo "none" >&6; }
6342 fi
6343 max_cmd_len=$lt_cv_sys_max_cmd_len
6344
6345
6346
6347
6348
6349
6350 : ${CP="cp -f"}
6351 : ${MV="mv -f"}
6352 : ${RM="rm -f"}
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6355 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6356 # Try some XSI features
6357 xsi_shell=no
6358 ( _lt_dummy="a/b/c"
6359   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6360       = c,a/b,b/c, \
6361     && eval 'test $(( 1 + 1 )) -eq 2 \
6362     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6363   && xsi_shell=yes
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6365 $as_echo "$xsi_shell" >&6; }
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6369 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6370 lt_shell_append=no
6371 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6372     >/dev/null 2>&1 \
6373   && lt_shell_append=yes
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6375 $as_echo "$lt_shell_append" >&6; }
6376
6377
6378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6379   lt_unset=unset
6380 else
6381   lt_unset=false
6382 fi
6383
6384
6385
6386
6387
6388 # test EBCDIC or ASCII
6389 case `echo X|tr X '\101'` in
6390  A) # ASCII based system
6391     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6392   lt_SP2NL='tr \040 \012'
6393   lt_NL2SP='tr \015\012 \040\040'
6394   ;;
6395  *) # EBCDIC based system
6396   lt_SP2NL='tr \100 \n'
6397   lt_NL2SP='tr \r\n \100\100'
6398   ;;
6399 esac
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6410 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6411 if ${lt_cv_to_host_file_cmd+:} false; then :
6412   $as_echo_n "(cached) " >&6
6413 else
6414   case $host in
6415   *-*-mingw* )
6416     case $build in
6417       *-*-mingw* ) # actually msys
6418         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6419         ;;
6420       *-*-cygwin* )
6421         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6422         ;;
6423       * ) # otherwise, assume *nix
6424         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6425         ;;
6426     esac
6427     ;;
6428   *-*-cygwin* )
6429     case $build in
6430       *-*-mingw* ) # actually msys
6431         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6432         ;;
6433       *-*-cygwin* )
6434         lt_cv_to_host_file_cmd=func_convert_file_noop
6435         ;;
6436       * ) # otherwise, assume *nix
6437         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6438         ;;
6439     esac
6440     ;;
6441   * ) # unhandled hosts (and "normal" native builds)
6442     lt_cv_to_host_file_cmd=func_convert_file_noop
6443     ;;
6444 esac
6445
6446 fi
6447
6448 to_host_file_cmd=$lt_cv_to_host_file_cmd
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6450 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6451
6452
6453
6454
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6457 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6458 if ${lt_cv_to_tool_file_cmd+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   #assume ordinary cross tools, or native build.
6462 lt_cv_to_tool_file_cmd=func_convert_file_noop
6463 case $host in
6464   *-*-mingw* )
6465     case $build in
6466       *-*-mingw* ) # actually msys
6467         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6468         ;;
6469     esac
6470     ;;
6471 esac
6472
6473 fi
6474
6475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6477 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6478
6479
6480
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6484 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6485 if ${lt_cv_ld_reload_flag+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   lt_cv_ld_reload_flag='-r'
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6492 reload_flag=$lt_cv_ld_reload_flag
6493 case $reload_flag in
6494 "" | " "*) ;;
6495 *) reload_flag=" $reload_flag" ;;
6496 esac
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6498 case $host_os in
6499   cygwin* | mingw* | pw32* | cegcc*)
6500     if test "$GCC" != yes; then
6501       reload_cmds=false
6502     fi
6503     ;;
6504   darwin*)
6505     if test "$GCC" = yes; then
6506       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6507     else
6508       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6509     fi
6510     ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_OBJDUMP+:} false; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -n "$OBJDUMP"; then
6530   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 OBJDUMP=$ac_cv_prog_OBJDUMP
6550 if test -n "$OBJDUMP"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6552 $as_echo "$OBJDUMP" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_OBJDUMP"; then
6561   ac_ct_OBJDUMP=$OBJDUMP
6562   # Extract the first word of "objdump", so it can be a program name with args.
6563 set dummy objdump; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   if test -n "$ac_ct_OBJDUMP"; then
6570   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584   done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6590 if test -n "$ac_ct_OBJDUMP"; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6592 $as_echo "$ac_ct_OBJDUMP" >&6; }
6593 else
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598   if test "x$ac_ct_OBJDUMP" = x; then
6599     OBJDUMP="false"
6600   else
6601     case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607     OBJDUMP=$ac_ct_OBJDUMP
6608   fi
6609 else
6610   OBJDUMP="$ac_cv_prog_OBJDUMP"
6611 fi
6612
6613 test -z "$OBJDUMP" && OBJDUMP=objdump
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6624 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6625 if ${lt_cv_deplibs_check_method+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   lt_cv_file_magic_cmd='$MAGIC_CMD'
6629 lt_cv_file_magic_test_file=
6630 lt_cv_deplibs_check_method='unknown'
6631 # Need to set the preceding variable on all platforms that support
6632 # interlibrary dependencies.
6633 # 'none' -- dependencies not supported.
6634 # `unknown' -- same as none, but documents that we really don't know.
6635 # 'pass_all' -- all dependencies passed with no checks.
6636 # 'test_compile' -- check by making test program.
6637 # 'file_magic [[regex]]' -- check by looking for files in library path
6638 # which responds to the $file_magic_cmd with a given extended regex.
6639 # If you have `file' or equivalent on your system and you're not sure
6640 # whether `pass_all' will *always* work, you probably want this one.
6641
6642 case $host_os in
6643 aix[4-9]*)
6644   lt_cv_deplibs_check_method=pass_all
6645   ;;
6646
6647 beos*)
6648   lt_cv_deplibs_check_method=pass_all
6649   ;;
6650
6651 bsdi[45]*)
6652   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6653   lt_cv_file_magic_cmd='/usr/bin/file -L'
6654   lt_cv_file_magic_test_file=/shlib/libc.so
6655   ;;
6656
6657 cygwin*)
6658   # func_win32_libid is a shell function defined in ltmain.sh
6659   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6660   lt_cv_file_magic_cmd='func_win32_libid'
6661   ;;
6662
6663 mingw* | pw32*)
6664   # Base MSYS/MinGW do not provide the 'file' command needed by
6665   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6666   # unless we find 'file', for example because we are cross-compiling.
6667   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6668   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6669     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6670     lt_cv_file_magic_cmd='func_win32_libid'
6671   else
6672     # Keep this pattern in sync with the one in func_win32_libid.
6673     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6674     lt_cv_file_magic_cmd='$OBJDUMP -f'
6675   fi
6676   ;;
6677
6678 cegcc*)
6679   # use the weaker test based on 'objdump'. See mingw*.
6680   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6681   lt_cv_file_magic_cmd='$OBJDUMP -f'
6682   ;;
6683
6684 darwin* | rhapsody*)
6685   lt_cv_deplibs_check_method=pass_all
6686   ;;
6687
6688 freebsd* | dragonfly*)
6689   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6690     case $host_cpu in
6691     i*86 )
6692       # Not sure whether the presence of OpenBSD here was a mistake.
6693       # Let's accept both of them until this is cleared up.
6694       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6695       lt_cv_file_magic_cmd=/usr/bin/file
6696       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6697       ;;
6698     esac
6699   else
6700     lt_cv_deplibs_check_method=pass_all
6701   fi
6702   ;;
6703
6704 haiku*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707
6708 hpux10.20* | hpux11*)
6709   lt_cv_file_magic_cmd=/usr/bin/file
6710   case $host_cpu in
6711   ia64*)
6712     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6713     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6714     ;;
6715   hppa*64*)
6716     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]'
6717     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6718     ;;
6719   *)
6720     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6721     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6722     ;;
6723   esac
6724   ;;
6725
6726 interix[3-9]*)
6727   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6728   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6729   ;;
6730
6731 irix5* | irix6* | nonstopux*)
6732   case $LD in
6733   *-32|*"-32 ") libmagic=32-bit;;
6734   *-n32|*"-n32 ") libmagic=N32;;
6735   *-64|*"-64 ") libmagic=64-bit;;
6736   *) libmagic=never-match;;
6737   esac
6738   lt_cv_deplibs_check_method=pass_all
6739   ;;
6740
6741 # This must be glibc/ELF.
6742 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6743   lt_cv_deplibs_check_method=pass_all
6744   ;;
6745
6746 netbsd* | netbsdelf*-gnu)
6747   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6748     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6749   else
6750     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6751   fi
6752   ;;
6753
6754 newos6*)
6755   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6756   lt_cv_file_magic_cmd=/usr/bin/file
6757   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6758   ;;
6759
6760 *nto* | *qnx*)
6761   lt_cv_deplibs_check_method=pass_all
6762   ;;
6763
6764 openbsd*)
6765   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6766     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6767   else
6768     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6769   fi
6770   ;;
6771
6772 osf3* | osf4* | osf5*)
6773   lt_cv_deplibs_check_method=pass_all
6774   ;;
6775
6776 rdos*)
6777   lt_cv_deplibs_check_method=pass_all
6778   ;;
6779
6780 solaris*)
6781   lt_cv_deplibs_check_method=pass_all
6782   ;;
6783
6784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6785   lt_cv_deplibs_check_method=pass_all
6786   ;;
6787
6788 sysv4 | sysv4.3*)
6789   case $host_vendor in
6790   motorola)
6791     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]'
6792     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6793     ;;
6794   ncr)
6795     lt_cv_deplibs_check_method=pass_all
6796     ;;
6797   sequent)
6798     lt_cv_file_magic_cmd='/bin/file'
6799     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6800     ;;
6801   sni)
6802     lt_cv_file_magic_cmd='/bin/file'
6803     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6804     lt_cv_file_magic_test_file=/lib/libc.so
6805     ;;
6806   siemens)
6807     lt_cv_deplibs_check_method=pass_all
6808     ;;
6809   pc)
6810     lt_cv_deplibs_check_method=pass_all
6811     ;;
6812   esac
6813   ;;
6814
6815 tpf*)
6816   lt_cv_deplibs_check_method=pass_all
6817   ;;
6818 esac
6819
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6822 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6823
6824 file_magic_glob=
6825 want_nocaseglob=no
6826 if test "$build" = "$host"; then
6827   case $host_os in
6828   mingw* | pw32*)
6829     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6830       want_nocaseglob=yes
6831     else
6832       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6833     fi
6834     ;;
6835   esac
6836 fi
6837
6838 file_magic_cmd=$lt_cv_file_magic_cmd
6839 deplibs_check_method=$lt_cv_deplibs_check_method
6840 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 if test -n "$ac_tool_prefix"; then
6864   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_DLLTOOL+:} false; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   if test -n "$DLLTOOL"; then
6872   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879     for ac_exec_ext in '' $ac_executable_extensions; do
6880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886   done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 DLLTOOL=$ac_cv_prog_DLLTOOL
6892 if test -n "$DLLTOOL"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6894 $as_echo "$DLLTOOL" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_DLLTOOL"; then
6903   ac_ct_DLLTOOL=$DLLTOOL
6904   # Extract the first word of "dlltool", so it can be a program name with args.
6905 set dummy dlltool; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$ac_ct_DLLTOOL"; then
6912   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6932 if test -n "$ac_ct_DLLTOOL"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6934 $as_echo "$ac_ct_DLLTOOL" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940   if test "x$ac_ct_DLLTOOL" = x; then
6941     DLLTOOL="false"
6942   else
6943     case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949     DLLTOOL=$ac_ct_DLLTOOL
6950   fi
6951 else
6952   DLLTOOL="$ac_cv_prog_DLLTOOL"
6953 fi
6954
6955 test -z "$DLLTOOL" && DLLTOOL=dlltool
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6967 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6968 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   lt_cv_sharedlib_from_linklib_cmd='unknown'
6972
6973 case $host_os in
6974 cygwin* | mingw* | pw32* | cegcc*)
6975   # two different shell functions defined in ltmain.sh
6976   # decide which to use based on capabilities of $DLLTOOL
6977   case `$DLLTOOL --help 2>&1` in
6978   *--identify-strict*)
6979     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6980     ;;
6981   *)
6982     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6983     ;;
6984   esac
6985   ;;
6986 *)
6987   # fallback: assume linklib IS sharedlib
6988   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6989   ;;
6990 esac
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6994 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6995 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6996 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6997
6998
6999
7000
7001
7002
7003
7004 if test -n "$ac_tool_prefix"; then
7005   for ac_prog in ar
7006   do
7007     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_AR+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$AR"; then
7015   ac_cv_prog_AR="$AR" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 AR=$ac_cv_prog_AR
7035 if test -n "$AR"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7037 $as_echo "$AR" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044     test -n "$AR" && break
7045   done
7046 fi
7047 if test -z "$AR"; then
7048   ac_ct_AR=$AR
7049   for ac_prog in ar
7050 do
7051   # Extract the first word of "$ac_prog", so it can be a program name with args.
7052 set dummy $ac_prog; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   if test -n "$ac_ct_AR"; then
7059   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066     for ac_exec_ext in '' $ac_executable_extensions; do
7067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068     ac_cv_prog_ac_ct_AR="$ac_prog"
7069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073   done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7079 if test -n "$ac_ct_AR"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7081 $as_echo "$ac_ct_AR" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087
7088   test -n "$ac_ct_AR" && break
7089 done
7090
7091   if test "x$ac_ct_AR" = x; then
7092     AR="false"
7093   else
7094     case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100     AR=$ac_ct_AR
7101   fi
7102 fi
7103
7104 : ${AR=ar}
7105 : ${AR_FLAGS=cru}
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7118 $as_echo_n "checking for archiver @FILE support... " >&6; }
7119 if ${lt_cv_ar_at_file+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   lt_cv_ar_at_file=no
7123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125
7126 int
7127 main ()
7128 {
7129
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_compile "$LINENO"; then :
7135   echo conftest.$ac_objext > conftest.lst
7136       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7137       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7138   (eval $lt_ar_try) 2>&5
7139   ac_status=$?
7140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141   test $ac_status = 0; }
7142       if test "$ac_status" -eq 0; then
7143         # Ensure the archiver fails upon bogus file names.
7144         rm -f conftest.$ac_objext libconftest.a
7145         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146   (eval $lt_ar_try) 2>&5
7147   ac_status=$?
7148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149   test $ac_status = 0; }
7150         if test "$ac_status" -ne 0; then
7151           lt_cv_ar_at_file=@
7152         fi
7153       fi
7154       rm -f conftest.* libconftest.a
7155
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7161 $as_echo "$lt_cv_ar_at_file" >&6; }
7162
7163 if test "x$lt_cv_ar_at_file" = xno; then
7164   archiver_list_spec=
7165 else
7166   archiver_list_spec=$lt_cv_ar_at_file
7167 fi
7168
7169
7170
7171
7172
7173
7174
7175 if test -n "$ac_tool_prefix"; then
7176   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}strip; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_STRIP+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   if test -n "$STRIP"; then
7184   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189   IFS=$as_save_IFS
7190   test -z "$as_dir" && as_dir=.
7191     for ac_exec_ext in '' $ac_executable_extensions; do
7192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195     break 2
7196   fi
7197 done
7198   done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 STRIP=$ac_cv_prog_STRIP
7204 if test -n "$STRIP"; then
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7206 $as_echo "$STRIP" >&6; }
7207 else
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_prog_STRIP"; then
7215   ac_ct_STRIP=$STRIP
7216   # Extract the first word of "strip", so it can be a program name with args.
7217 set dummy strip; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   if test -n "$ac_ct_STRIP"; then
7224   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231     for ac_exec_ext in '' $ac_executable_extensions; do
7232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233     ac_cv_prog_ac_ct_STRIP="strip"
7234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238   done
7239 IFS=$as_save_IFS
7240
7241 fi
7242 fi
7243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244 if test -n "$ac_ct_STRIP"; then
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7246 $as_echo "$ac_ct_STRIP" >&6; }
7247 else
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252   if test "x$ac_ct_STRIP" = x; then
7253     STRIP=":"
7254   else
7255     case $cross_compiling:$ac_tool_warned in
7256 yes:)
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261     STRIP=$ac_ct_STRIP
7262   fi
7263 else
7264   STRIP="$ac_cv_prog_STRIP"
7265 fi
7266
7267 test -z "$STRIP" && STRIP=:
7268
7269
7270
7271
7272
7273
7274 if test -n "$ac_tool_prefix"; then
7275   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_RANLIB+:} false; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282   if test -n "$RANLIB"; then
7283   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 RANLIB=$ac_cv_prog_RANLIB
7303 if test -n "$RANLIB"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7305 $as_echo "$RANLIB" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_RANLIB"; then
7314   ac_ct_RANLIB=$RANLIB
7315   # Extract the first word of "ranlib", so it can be a program name with args.
7316 set dummy ranlib; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$ac_ct_RANLIB"; then
7323   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_RANLIB="ranlib"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7343 if test -n "$ac_ct_RANLIB"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7345 $as_echo "$ac_ct_RANLIB" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351   if test "x$ac_ct_RANLIB" = x; then
7352     RANLIB=":"
7353   else
7354     case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7359 esac
7360     RANLIB=$ac_ct_RANLIB
7361   fi
7362 else
7363   RANLIB="$ac_cv_prog_RANLIB"
7364 fi
7365
7366 test -z "$RANLIB" && RANLIB=:
7367
7368
7369
7370
7371
7372
7373 # Determine commands to create old-style static archives.
7374 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7375 old_postinstall_cmds='chmod 644 $oldlib'
7376 old_postuninstall_cmds=
7377
7378 if test -n "$RANLIB"; then
7379   case $host_os in
7380   openbsd*)
7381     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7382     ;;
7383   *)
7384     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7385     ;;
7386   esac
7387   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7388 fi
7389
7390 case $host_os in
7391   darwin*)
7392     lock_old_archive_extraction=yes ;;
7393   *)
7394     lock_old_archive_extraction=no ;;
7395 esac
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 # If no C compiler was specified, use CC.
7436 LTCC=${LTCC-"$CC"}
7437
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7440
7441 # Allow CC to be a program name with arguments.
7442 compiler=$CC
7443
7444
7445 # Check for command to grab the raw symbol name followed by C symbol from nm.
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7447 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7448 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451
7452 # These are sane defaults that work on at least a few old systems.
7453 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7454
7455 # Character class describing NM global symbol codes.
7456 symcode='[BCDEGRST]'
7457
7458 # Regexp to match symbols that can be accessed directly from C.
7459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7460
7461 # Define system-specific variables.
7462 case $host_os in
7463 aix*)
7464   symcode='[BCDT]'
7465   ;;
7466 cygwin* | mingw* | pw32* | cegcc*)
7467   symcode='[ABCDGISTW]'
7468   ;;
7469 hpux*)
7470   if test "$host_cpu" = ia64; then
7471     symcode='[ABCDEGRST]'
7472   fi
7473   ;;
7474 irix* | nonstopux*)
7475   symcode='[BCDEGRST]'
7476   ;;
7477 osf*)
7478   symcode='[BCDEGQRST]'
7479   ;;
7480 solaris*)
7481   symcode='[BDRT]'
7482   ;;
7483 sco3.2v5*)
7484   symcode='[DT]'
7485   ;;
7486 sysv4.2uw2*)
7487   symcode='[DT]'
7488   ;;
7489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7490   symcode='[ABDT]'
7491   ;;
7492 sysv4)
7493   symcode='[DFNSTU]'
7494   ;;
7495 esac
7496
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500   symcode='[ABCDGIRSTW]' ;;
7501 esac
7502
7503 # Transform an extracted symbol line into a proper C declaration.
7504 # Some systems (esp. on ia64) link data and code symbols differently,
7505 # so use this general approach.
7506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7507
7508 # Transform an extracted symbol line into symbol name and symbol address
7509 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7510 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'"
7511
7512 # Handle CRLF in mingw tool chain
7513 opt_cr=
7514 case $build_os in
7515 mingw*)
7516   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7517   ;;
7518 esac
7519
7520 # Try without a prefix underscore, then with it.
7521 for ac_symprfx in "" "_"; do
7522
7523   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7524   symxfrm="\\1 $ac_symprfx\\2 \\2"
7525
7526   # Write the raw and C identifiers.
7527   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7528     # Fake it for dumpbin and say T for any non-static function
7529     # and D for any global variable.
7530     # Also find C++ and __fastcall symbols from MSVC++,
7531     # which start with @ or ?.
7532     lt_cv_sys_global_symbol_pipe="$AWK '"\
7533 "     {last_section=section; section=\$ 3};"\
7534 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7535 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7536 "     \$ 0!~/External *\|/{next};"\
7537 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7538 "     {if(hide[section]) next};"\
7539 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7540 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7541 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7542 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7543 "     ' prfx=^$ac_symprfx"
7544   else
7545     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7546   fi
7547   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7548
7549   # Check to see that the pipe works correctly.
7550   pipe_works=no
7551
7552   rm -f conftest*
7553   cat > conftest.$ac_ext <<_LT_EOF
7554 #ifdef __cplusplus
7555 extern "C" {
7556 #endif
7557 char nm_test_var;
7558 void nm_test_func(void);
7559 void nm_test_func(void){}
7560 #ifdef __cplusplus
7561 }
7562 #endif
7563 int main(){nm_test_var='a';nm_test_func();return(0);}
7564 _LT_EOF
7565
7566   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567   (eval $ac_compile) 2>&5
7568   ac_status=$?
7569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570   test $ac_status = 0; }; then
7571     # Now try to grab the symbols.
7572     nlist=conftest.nm
7573     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7574   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7575   ac_status=$?
7576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577   test $ac_status = 0; } && test -s "$nlist"; then
7578       # Try sorting and uniquifying the output.
7579       if sort "$nlist" | uniq > "$nlist"T; then
7580         mv -f "$nlist"T "$nlist"
7581       else
7582         rm -f "$nlist"T
7583       fi
7584
7585       # Make sure that we snagged all the symbols we need.
7586       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7587         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7588           cat <<_LT_EOF > conftest.$ac_ext
7589 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7590 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7591 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7592    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7593 # define LT_DLSYM_CONST
7594 #elif defined(__osf__)
7595 /* This system does not cope well with relocations in const data.  */
7596 # define LT_DLSYM_CONST
7597 #else
7598 # define LT_DLSYM_CONST const
7599 #endif
7600
7601 #ifdef __cplusplus
7602 extern "C" {
7603 #endif
7604
7605 _LT_EOF
7606           # Now generate the symbol file.
7607           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7608
7609           cat <<_LT_EOF >> conftest.$ac_ext
7610
7611 /* The mapping between symbol names and symbols.  */
7612 LT_DLSYM_CONST struct {
7613   const char *name;
7614   void       *address;
7615 }
7616 lt__PROGRAM__LTX_preloaded_symbols[] =
7617 {
7618   { "@PROGRAM@", (void *) 0 },
7619 _LT_EOF
7620           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7621           cat <<\_LT_EOF >> conftest.$ac_ext
7622   {0, (void *) 0}
7623 };
7624
7625 /* This works around a problem in FreeBSD linker */
7626 #ifdef FREEBSD_WORKAROUND
7627 static const void *lt_preloaded_setup() {
7628   return lt__PROGRAM__LTX_preloaded_symbols;
7629 }
7630 #endif
7631
7632 #ifdef __cplusplus
7633 }
7634 #endif
7635 _LT_EOF
7636           # Now try linking the two files.
7637           mv conftest.$ac_objext conftstm.$ac_objext
7638           lt_globsym_save_LIBS=$LIBS
7639           lt_globsym_save_CFLAGS=$CFLAGS
7640           LIBS="conftstm.$ac_objext"
7641           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7642           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7643   (eval $ac_link) 2>&5
7644   ac_status=$?
7645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7647             pipe_works=yes
7648           fi
7649           LIBS=$lt_globsym_save_LIBS
7650           CFLAGS=$lt_globsym_save_CFLAGS
7651         else
7652           echo "cannot find nm_test_func in $nlist" >&5
7653         fi
7654       else
7655         echo "cannot find nm_test_var in $nlist" >&5
7656       fi
7657     else
7658       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7659     fi
7660   else
7661     echo "$progname: failed program was:" >&5
7662     cat conftest.$ac_ext >&5
7663   fi
7664   rm -rf conftest* conftst*
7665
7666   # Do not use the global_symbol_pipe unless it works.
7667   if test "$pipe_works" = yes; then
7668     break
7669   else
7670     lt_cv_sys_global_symbol_pipe=
7671   fi
7672 done
7673
7674 fi
7675
7676 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7677   lt_cv_sys_global_symbol_to_cdecl=
7678 fi
7679 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7681 $as_echo "failed" >&6; }
7682 else
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7684 $as_echo "ok" >&6; }
7685 fi
7686
7687 # Response file support.
7688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7689   nm_file_list_spec='@'
7690 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7691   nm_file_list_spec='@'
7692 fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7721 $as_echo_n "checking for sysroot... " >&6; }
7722
7723 # Check whether --with-sysroot was given.
7724 if test "${with_sysroot+set}" = set; then :
7725   withval=$with_sysroot;
7726 else
7727   with_sysroot=no
7728 fi
7729
7730
7731 lt_sysroot=
7732 case ${with_sysroot} in #(
7733  yes)
7734    if test "$GCC" = yes; then
7735      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7736    fi
7737    ;; #(
7738  /*)
7739    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7740    ;; #(
7741  no|'')
7742    ;; #(
7743  *)
7744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7745 $as_echo "${with_sysroot}" >&6; }
7746    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7747    ;;
7748 esac
7749
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7751 $as_echo "${lt_sysroot:-no}" >&6; }
7752
7753
7754
7755
7756
7757 # Check whether --enable-libtool-lock was given.
7758 if test "${enable_libtool_lock+set}" = set; then :
7759   enableval=$enable_libtool_lock;
7760 fi
7761
7762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7763
7764 # Some flags need to be propagated to the compiler or linker for good
7765 # libtool support.
7766 case $host in
7767 ia64-*-hpux*)
7768   # Find out which ABI we are using.
7769   echo 'int i;' > conftest.$ac_ext
7770   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7771   (eval $ac_compile) 2>&5
7772   ac_status=$?
7773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774   test $ac_status = 0; }; then
7775     case `/usr/bin/file conftest.$ac_objext` in
7776       *ELF-32*)
7777         HPUX_IA64_MODE="32"
7778         ;;
7779       *ELF-64*)
7780         HPUX_IA64_MODE="64"
7781         ;;
7782     esac
7783   fi
7784   rm -rf conftest*
7785   ;;
7786 *-*-irix6*)
7787   # Find out which ABI we are using.
7788   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7789   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7790   (eval $ac_compile) 2>&5
7791   ac_status=$?
7792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793   test $ac_status = 0; }; then
7794     if test "$lt_cv_prog_gnu_ld" = yes; then
7795       case `/usr/bin/file conftest.$ac_objext` in
7796         *32-bit*)
7797           LD="${LD-ld} -melf32bsmip"
7798           ;;
7799         *N32*)
7800           LD="${LD-ld} -melf32bmipn32"
7801           ;;
7802         *64-bit*)
7803           LD="${LD-ld} -melf64bmip"
7804         ;;
7805       esac
7806     else
7807       case `/usr/bin/file conftest.$ac_objext` in
7808         *32-bit*)
7809           LD="${LD-ld} -32"
7810           ;;
7811         *N32*)
7812           LD="${LD-ld} -n32"
7813           ;;
7814         *64-bit*)
7815           LD="${LD-ld} -64"
7816           ;;
7817       esac
7818     fi
7819   fi
7820   rm -rf conftest*
7821   ;;
7822
7823 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7824 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7825   # Find out which ABI we are using.
7826   echo 'int i;' > conftest.$ac_ext
7827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828   (eval $ac_compile) 2>&5
7829   ac_status=$?
7830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831   test $ac_status = 0; }; then
7832     case `/usr/bin/file conftest.o` in
7833       *32-bit*)
7834         case $host in
7835           x86_64-*kfreebsd*-gnu)
7836             LD="${LD-ld} -m elf_i386_fbsd"
7837             ;;
7838           x86_64-*linux*)
7839             case `/usr/bin/file conftest.o` in
7840               *x86-64*)
7841                 LD="${LD-ld} -m elf32_x86_64"
7842                 ;;
7843               *)
7844                 LD="${LD-ld} -m elf_i386"
7845                 ;;
7846             esac
7847             ;;
7848           ppc64-*linux*|powerpc64-*linux*)
7849             LD="${LD-ld} -m elf32ppclinux"
7850             ;;
7851           s390x-*linux*)
7852             LD="${LD-ld} -m elf_s390"
7853             ;;
7854           sparc64-*linux*)
7855             LD="${LD-ld} -m elf32_sparc"
7856             ;;
7857         esac
7858         ;;
7859       *64-bit*)
7860         case $host in
7861           x86_64-*kfreebsd*-gnu)
7862             LD="${LD-ld} -m elf_x86_64_fbsd"
7863             ;;
7864           x86_64-*linux*)
7865             LD="${LD-ld} -m elf_x86_64"
7866             ;;
7867           ppc*-*linux*|powerpc*-*linux*)
7868             LD="${LD-ld} -m elf64ppc"
7869             ;;
7870           s390*-*linux*|s390*-*tpf*)
7871             LD="${LD-ld} -m elf64_s390"
7872             ;;
7873           sparc*-*linux*)
7874             LD="${LD-ld} -m elf64_sparc"
7875             ;;
7876         esac
7877         ;;
7878     esac
7879   fi
7880   rm -rf conftest*
7881   ;;
7882
7883 *-*-sco3.2v5*)
7884   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7885   SAVE_CFLAGS="$CFLAGS"
7886   CFLAGS="$CFLAGS -belf"
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7889 if ${lt_cv_cc_needs_belf+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   ac_ext=c
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7897
7898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910   lt_cv_cc_needs_belf=yes
7911 else
7912   lt_cv_cc_needs_belf=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915     conftest$ac_exeext conftest.$ac_ext
7916      ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7924 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7925   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7926     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7927     CFLAGS="$SAVE_CFLAGS"
7928   fi
7929   ;;
7930 *-*solaris*)
7931   # Find out which ABI we are using.
7932   echo 'int i;' > conftest.$ac_ext
7933   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7934   (eval $ac_compile) 2>&5
7935   ac_status=$?
7936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937   test $ac_status = 0; }; then
7938     case `/usr/bin/file conftest.o` in
7939     *64-bit*)
7940       case $lt_cv_prog_gnu_ld in
7941       yes*)
7942         case $host in
7943         i?86-*-solaris*)
7944           LD="${LD-ld} -m elf_x86_64"
7945           ;;
7946         sparc*-*-solaris*)
7947           LD="${LD-ld} -m elf64_sparc"
7948           ;;
7949         esac
7950         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7951         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7952           LD="${LD-ld}_sol2"
7953         fi
7954         ;;
7955       *)
7956         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7957           LD="${LD-ld} -64"
7958         fi
7959         ;;
7960       esac
7961       ;;
7962     esac
7963   fi
7964   rm -rf conftest*
7965   ;;
7966 esac
7967
7968 need_locks="$enable_libtool_lock"
7969
7970 if test -n "$ac_tool_prefix"; then
7971   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}mt; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if test -n "$MANIFEST_TOOL"; then
7979   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7999 if test -n "$MANIFEST_TOOL"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8001 $as_echo "$MANIFEST_TOOL" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8010   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8011   # Extract the first word of "mt", so it can be a program name with args.
8012 set dummy mt; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   if test -n "$ac_ct_MANIFEST_TOOL"; then
8019   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024   IFS=$as_save_IFS
8025   test -z "$as_dir" && as_dir=.
8026     for ac_exec_ext in '' $ac_executable_extensions; do
8027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030     break 2
8031   fi
8032 done
8033   done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8039 if test -n "$ac_ct_MANIFEST_TOOL"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8041 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8048     MANIFEST_TOOL=":"
8049   else
8050     case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8057   fi
8058 else
8059   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8060 fi
8061
8062 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8064 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8065 if ${lt_cv_path_mainfest_tool+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   lt_cv_path_mainfest_tool=no
8069   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8070   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8071   cat conftest.err >&5
8072   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8073     lt_cv_path_mainfest_tool=yes
8074   fi
8075   rm -f conftest*
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8078 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8079 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8080   MANIFEST_TOOL=:
8081 fi
8082
8083
8084
8085
8086
8087
8088   case $host_os in
8089     rhapsody* | darwin*)
8090     if test -n "$ac_tool_prefix"; then
8091   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   if test -n "$DSYMUTIL"; then
8099   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104   IFS=$as_save_IFS
8105   test -z "$as_dir" && as_dir=.
8106     for ac_exec_ext in '' $ac_executable_extensions; do
8107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110     break 2
8111   fi
8112 done
8113   done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8119 if test -n "$DSYMUTIL"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8121 $as_echo "$DSYMUTIL" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_prog_DSYMUTIL"; then
8130   ac_ct_DSYMUTIL=$DSYMUTIL
8131   # Extract the first word of "dsymutil", so it can be a program name with args.
8132 set dummy dsymutil; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   if test -n "$ac_ct_DSYMUTIL"; then
8139   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146     for ac_exec_ext in '' $ac_executable_extensions; do
8147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153   done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8159 if test -n "$ac_ct_DSYMUTIL"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8161 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167   if test "x$ac_ct_DSYMUTIL" = x; then
8168     DSYMUTIL=":"
8169   else
8170     case $cross_compiling:$ac_tool_warned in
8171 yes:)
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned=yes ;;
8175 esac
8176     DSYMUTIL=$ac_ct_DSYMUTIL
8177   fi
8178 else
8179   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8180 fi
8181
8182     if test -n "$ac_tool_prefix"; then
8183   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8184 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_NMEDIT+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$NMEDIT"; then
8191   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 NMEDIT=$ac_cv_prog_NMEDIT
8211 if test -n "$NMEDIT"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8213 $as_echo "$NMEDIT" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220 fi
8221 if test -z "$ac_cv_prog_NMEDIT"; then
8222   ac_ct_NMEDIT=$NMEDIT
8223   # Extract the first word of "nmedit", so it can be a program name with args.
8224 set dummy nmedit; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   if test -n "$ac_ct_NMEDIT"; then
8231   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238     for ac_exec_ext in '' $ac_executable_extensions; do
8239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245   done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8251 if test -n "$ac_ct_NMEDIT"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8253 $as_echo "$ac_ct_NMEDIT" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259   if test "x$ac_ct_NMEDIT" = x; then
8260     NMEDIT=":"
8261   else
8262     case $cross_compiling:$ac_tool_warned in
8263 yes:)
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8266 ac_tool_warned=yes ;;
8267 esac
8268     NMEDIT=$ac_ct_NMEDIT
8269   fi
8270 else
8271   NMEDIT="$ac_cv_prog_NMEDIT"
8272 fi
8273
8274     if test -n "$ac_tool_prefix"; then
8275   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_LIPO+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   if test -n "$LIPO"; then
8283   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288   IFS=$as_save_IFS
8289   test -z "$as_dir" && as_dir=.
8290     for ac_exec_ext in '' $ac_executable_extensions; do
8291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294     break 2
8295   fi
8296 done
8297   done
8298 IFS=$as_save_IFS
8299
8300 fi
8301 fi
8302 LIPO=$ac_cv_prog_LIPO
8303 if test -n "$LIPO"; then
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8305 $as_echo "$LIPO" >&6; }
8306 else
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311
8312 fi
8313 if test -z "$ac_cv_prog_LIPO"; then
8314   ac_ct_LIPO=$LIPO
8315   # Extract the first word of "lipo", so it can be a program name with args.
8316 set dummy lipo; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   if test -n "$ac_ct_LIPO"; then
8323   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328   IFS=$as_save_IFS
8329   test -z "$as_dir" && as_dir=.
8330     for ac_exec_ext in '' $ac_executable_extensions; do
8331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332     ac_cv_prog_ac_ct_LIPO="lipo"
8333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334     break 2
8335   fi
8336 done
8337   done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8343 if test -n "$ac_ct_LIPO"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8345 $as_echo "$ac_ct_LIPO" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351   if test "x$ac_ct_LIPO" = x; then
8352     LIPO=":"
8353   else
8354     case $cross_compiling:$ac_tool_warned in
8355 yes:)
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358 ac_tool_warned=yes ;;
8359 esac
8360     LIPO=$ac_ct_LIPO
8361   fi
8362 else
8363   LIPO="$ac_cv_prog_LIPO"
8364 fi
8365
8366     if test -n "$ac_tool_prefix"; then
8367   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8368 set dummy ${ac_tool_prefix}otool; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_OTOOL+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   if test -n "$OTOOL"; then
8375   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 OTOOL=$ac_cv_prog_OTOOL
8395 if test -n "$OTOOL"; then
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8397 $as_echo "$OTOOL" >&6; }
8398 else
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403
8404 fi
8405 if test -z "$ac_cv_prog_OTOOL"; then
8406   ac_ct_OTOOL=$OTOOL
8407   # Extract the first word of "otool", so it can be a program name with args.
8408 set dummy otool; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   if test -n "$ac_ct_OTOOL"; then
8415   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420   IFS=$as_save_IFS
8421   test -z "$as_dir" && as_dir=.
8422     for ac_exec_ext in '' $ac_executable_extensions; do
8423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424     ac_cv_prog_ac_ct_OTOOL="otool"
8425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426     break 2
8427   fi
8428 done
8429   done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8435 if test -n "$ac_ct_OTOOL"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8437 $as_echo "$ac_ct_OTOOL" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443   if test "x$ac_ct_OTOOL" = x; then
8444     OTOOL=":"
8445   else
8446     case $cross_compiling:$ac_tool_warned in
8447 yes:)
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8450 ac_tool_warned=yes ;;
8451 esac
8452     OTOOL=$ac_ct_OTOOL
8453   fi
8454 else
8455   OTOOL="$ac_cv_prog_OTOOL"
8456 fi
8457
8458     if test -n "$ac_tool_prefix"; then
8459   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8460 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_OTOOL64+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   if test -n "$OTOOL64"; then
8467   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472   IFS=$as_save_IFS
8473   test -z "$as_dir" && as_dir=.
8474     for ac_exec_ext in '' $ac_executable_extensions; do
8475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478     break 2
8479   fi
8480 done
8481   done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 OTOOL64=$ac_cv_prog_OTOOL64
8487 if test -n "$OTOOL64"; then
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8489 $as_echo "$OTOOL64" >&6; }
8490 else
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 fi
8497 if test -z "$ac_cv_prog_OTOOL64"; then
8498   ac_ct_OTOOL64=$OTOOL64
8499   # Extract the first word of "otool64", so it can be a program name with args.
8500 set dummy otool64; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   if test -n "$ac_ct_OTOOL64"; then
8507   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514     for ac_exec_ext in '' $ac_executable_extensions; do
8515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516     ac_cv_prog_ac_ct_OTOOL64="otool64"
8517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521   done
8522 IFS=$as_save_IFS
8523
8524 fi
8525 fi
8526 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8527 if test -n "$ac_ct_OTOOL64"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8529 $as_echo "$ac_ct_OTOOL64" >&6; }
8530 else
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535   if test "x$ac_ct_OTOOL64" = x; then
8536     OTOOL64=":"
8537   else
8538     case $cross_compiling:$ac_tool_warned in
8539 yes:)
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8543 esac
8544     OTOOL64=$ac_ct_OTOOL64
8545   fi
8546 else
8547   OTOOL64="$ac_cv_prog_OTOOL64"
8548 fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8577 $as_echo_n "checking for -single_module linker flag... " >&6; }
8578 if ${lt_cv_apple_cc_single_mod+:} false; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   lt_cv_apple_cc_single_mod=no
8582       if test -z "${LT_MULTI_MODULE}"; then
8583         # By default we will add the -single_module flag. You can override
8584         # by either setting the environment variable LT_MULTI_MODULE
8585         # non-empty at configure time, or by adding -multi_module to the
8586         # link flags.
8587         rm -rf libconftest.dylib*
8588         echo "int foo(void){return 1;}" > conftest.c
8589         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8590 -dynamiclib -Wl,-single_module conftest.c" >&5
8591         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8592           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8593         _lt_result=$?
8594         # If there is a non-empty error log, and "single_module"
8595         # appears in it, assume the flag caused a linker warning
8596         if test -s conftest.err && $GREP single_module conftest.err; then
8597           cat conftest.err >&5
8598         # Otherwise, if the output was created with a 0 exit code from
8599         # the compiler, it worked.
8600         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8601           lt_cv_apple_cc_single_mod=yes
8602         else
8603           cat conftest.err >&5
8604         fi
8605         rm -rf libconftest.dylib*
8606         rm -f conftest.*
8607       fi
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8610 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8611
8612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8613 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8614 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   lt_cv_ld_exported_symbols_list=no
8618       save_LDFLAGS=$LDFLAGS
8619       echo "_main" > conftest.sym
8620       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623
8624 int
8625 main ()
8626 {
8627
8628   ;
8629   return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633   lt_cv_ld_exported_symbols_list=yes
8634 else
8635   lt_cv_ld_exported_symbols_list=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638     conftest$ac_exeext conftest.$ac_ext
8639         LDFLAGS="$save_LDFLAGS"
8640
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8643 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8644
8645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8646 $as_echo_n "checking for -force_load linker flag... " >&6; }
8647 if ${lt_cv_ld_force_load+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   lt_cv_ld_force_load=no
8651       cat > conftest.c << _LT_EOF
8652 int forced_loaded() { return 2;}
8653 _LT_EOF
8654       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8655       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8656       echo "$AR cru libconftest.a conftest.o" >&5
8657       $AR cru libconftest.a conftest.o 2>&5
8658       echo "$RANLIB libconftest.a" >&5
8659       $RANLIB libconftest.a 2>&5
8660       cat > conftest.c << _LT_EOF
8661 int main() { return 0;}
8662 _LT_EOF
8663       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8664       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8665       _lt_result=$?
8666       if test -s conftest.err && $GREP force_load conftest.err; then
8667         cat conftest.err >&5
8668       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8669         lt_cv_ld_force_load=yes
8670       else
8671         cat conftest.err >&5
8672       fi
8673         rm -f conftest.err libconftest.a conftest conftest.c
8674         rm -rf conftest.dSYM
8675
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8678 $as_echo "$lt_cv_ld_force_load" >&6; }
8679     case $host_os in
8680     rhapsody* | darwin1.[012])
8681       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8682     darwin1.*)
8683       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8684     darwin*) # darwin 5.x on
8685       # if running on 10.5 or later, the deployment target defaults
8686       # to the OS version, if on x86, and 10.4, the deployment
8687       # target defaults to 10.4. Don't you love it?
8688       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8689         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8690           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8691         10.[012]*)
8692           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8693         10.*)
8694           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8695       esac
8696     ;;
8697   esac
8698     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8699       _lt_dar_single_mod='$single_module'
8700     fi
8701     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8702       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8703     else
8704       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8705     fi
8706     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8707       _lt_dsymutil='~$DSYMUTIL $lib || :'
8708     else
8709       _lt_dsymutil=
8710     fi
8711     ;;
8712   esac
8713
8714 for ac_header in dlfcn.h
8715 do :
8716   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8717 "
8718 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8719   cat >>confdefs.h <<_ACEOF
8720 #define HAVE_DLFCN_H 1
8721 _ACEOF
8722
8723 fi
8724
8725 done
8726
8727
8728
8729
8730
8731 # Set options
8732 # Check whether --enable-static was given.
8733 if test "${enable_static+set}" = set; then :
8734   enableval=$enable_static; p=${PACKAGE-default}
8735     case $enableval in
8736     yes) enable_static=yes ;;
8737     no) enable_static=no ;;
8738     *)
8739      enable_static=no
8740       # Look at the argument we got.  We use all the common list separators.
8741       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742       for pkg in $enableval; do
8743         IFS="$lt_save_ifs"
8744         if test "X$pkg" = "X$p"; then
8745           enable_static=yes
8746         fi
8747       done
8748       IFS="$lt_save_ifs"
8749       ;;
8750     esac
8751 else
8752   enable_static=no
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764         enable_dlopen=no
8765
8766
8767   enable_win32_dll=no
8768
8769
8770             # Check whether --enable-shared was given.
8771 if test "${enable_shared+set}" = set; then :
8772   enableval=$enable_shared; p=${PACKAGE-default}
8773     case $enableval in
8774     yes) enable_shared=yes ;;
8775     no) enable_shared=no ;;
8776     *)
8777       enable_shared=no
8778       # Look at the argument we got.  We use all the common list separators.
8779       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8780       for pkg in $enableval; do
8781         IFS="$lt_save_ifs"
8782         if test "X$pkg" = "X$p"; then
8783           enable_shared=yes
8784         fi
8785       done
8786       IFS="$lt_save_ifs"
8787       ;;
8788     esac
8789 else
8790   enable_shared=yes
8791 fi
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 # Check whether --with-pic was given.
8804 if test "${with_pic+set}" = set; then :
8805   withval=$with_pic; lt_p=${PACKAGE-default}
8806     case $withval in
8807     yes|no) pic_mode=$withval ;;
8808     *)
8809       pic_mode=default
8810       # Look at the argument we got.  We use all the common list separators.
8811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8812       for lt_pkg in $withval; do
8813         IFS="$lt_save_ifs"
8814         if test "X$lt_pkg" = "X$lt_p"; then
8815           pic_mode=yes
8816         fi
8817       done
8818       IFS="$lt_save_ifs"
8819       ;;
8820     esac
8821 else
8822   pic_mode=default
8823 fi
8824
8825
8826 test -z "$pic_mode" && pic_mode=default
8827
8828
8829
8830
8831
8832
8833
8834   # Check whether --enable-fast-install was given.
8835 if test "${enable_fast_install+set}" = set; then :
8836   enableval=$enable_fast_install; p=${PACKAGE-default}
8837     case $enableval in
8838     yes) enable_fast_install=yes ;;
8839     no) enable_fast_install=no ;;
8840     *)
8841       enable_fast_install=no
8842       # Look at the argument we got.  We use all the common list separators.
8843       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844       for pkg in $enableval; do
8845         IFS="$lt_save_ifs"
8846         if test "X$pkg" = "X$p"; then
8847           enable_fast_install=yes
8848         fi
8849       done
8850       IFS="$lt_save_ifs"
8851       ;;
8852     esac
8853 else
8854   enable_fast_install=yes
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 # This can be used to rebuild libtool when needed
8868 LIBTOOL_DEPS="$ltmain"
8869
8870 # Always use our own libtool.
8871 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902 test -z "$LN_S" && LN_S="ln -s"
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 if test -n "${ZSH_VERSION+set}" ; then
8918    setopt NO_GLOB_SUBST
8919 fi
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8922 $as_echo_n "checking for objdir... " >&6; }
8923 if ${lt_cv_objdir+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   rm -f .libs 2>/dev/null
8927 mkdir .libs 2>/dev/null
8928 if test -d .libs; then
8929   lt_cv_objdir=.libs
8930 else
8931   # MS-DOS does not allow filenames that begin with a dot.
8932   lt_cv_objdir=_libs
8933 fi
8934 rmdir .libs 2>/dev/null
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8937 $as_echo "$lt_cv_objdir" >&6; }
8938 objdir=$lt_cv_objdir
8939
8940
8941
8942
8943
8944 cat >>confdefs.h <<_ACEOF
8945 #define LT_OBJDIR "$lt_cv_objdir/"
8946 _ACEOF
8947
8948
8949
8950
8951 case $host_os in
8952 aix3*)
8953   # AIX sometimes has problems with the GCC collect2 program.  For some
8954   # reason, if we set the COLLECT_NAMES environment variable, the problems
8955   # vanish in a puff of smoke.
8956   if test "X${COLLECT_NAMES+set}" != Xset; then
8957     COLLECT_NAMES=
8958     export COLLECT_NAMES
8959   fi
8960   ;;
8961 esac
8962
8963 # Global variables:
8964 ofile=libtool
8965 can_build_shared=yes
8966
8967 # All known linkers require a `.a' archive for static linking (except MSVC,
8968 # which needs '.lib').
8969 libext=a
8970
8971 with_gnu_ld="$lt_cv_prog_gnu_ld"
8972
8973 old_CC="$CC"
8974 old_CFLAGS="$CFLAGS"
8975
8976 # Set sane defaults for various variables
8977 test -z "$CC" && CC=cc
8978 test -z "$LTCC" && LTCC=$CC
8979 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8980 test -z "$LD" && LD=ld
8981 test -z "$ac_objext" && ac_objext=o
8982
8983 for cc_temp in $compiler""; do
8984   case $cc_temp in
8985     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8986     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8987     \-*) ;;
8988     *) break;;
8989   esac
8990 done
8991 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8992
8993
8994 # Only perform the check for file, if the check method requires it
8995 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8996 case $deplibs_check_method in
8997 file_magic*)
8998   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9000 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9001 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9002   $as_echo_n "(cached) " >&6
9003 else
9004   case $MAGIC_CMD in
9005 [\\/*] |  ?:[\\/]*)
9006   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9007   ;;
9008 *)
9009   lt_save_MAGIC_CMD="$MAGIC_CMD"
9010   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9011   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012   for ac_dir in $ac_dummy; do
9013     IFS="$lt_save_ifs"
9014     test -z "$ac_dir" && ac_dir=.
9015     if test -f $ac_dir/${ac_tool_prefix}file; then
9016       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9017       if test -n "$file_magic_test_file"; then
9018         case $deplibs_check_method in
9019         "file_magic "*)
9020           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023             $EGREP "$file_magic_regex" > /dev/null; then
9024             :
9025           else
9026             cat <<_LT_EOF 1>&2
9027
9028 *** Warning: the command libtool uses to detect shared libraries,
9029 *** $file_magic_cmd, produces output that libtool cannot recognize.
9030 *** The result is that libtool may fail to recognize shared libraries
9031 *** as such.  This will affect the creation of libtool libraries that
9032 *** depend on shared libraries, but programs linked with such libtool
9033 *** libraries will work regardless of this problem.  Nevertheless, you
9034 *** may want to report the problem to your system manager and/or to
9035 *** bug-libtool@gnu.org
9036
9037 _LT_EOF
9038           fi ;;
9039         esac
9040       fi
9041       break
9042     fi
9043   done
9044   IFS="$lt_save_ifs"
9045   MAGIC_CMD="$lt_save_MAGIC_CMD"
9046   ;;
9047 esac
9048 fi
9049
9050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9051 if test -n "$MAGIC_CMD"; then
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9053 $as_echo "$MAGIC_CMD" >&6; }
9054 else
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9057 fi
9058
9059
9060
9061
9062
9063 if test -z "$lt_cv_path_MAGIC_CMD"; then
9064   if test -n "$ac_tool_prefix"; then
9065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9066 $as_echo_n "checking for file... " >&6; }
9067 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070   case $MAGIC_CMD in
9071 [\\/*] |  ?:[\\/]*)
9072   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9073   ;;
9074 *)
9075   lt_save_MAGIC_CMD="$MAGIC_CMD"
9076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9077   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9078   for ac_dir in $ac_dummy; do
9079     IFS="$lt_save_ifs"
9080     test -z "$ac_dir" && ac_dir=.
9081     if test -f $ac_dir/file; then
9082       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9083       if test -n "$file_magic_test_file"; then
9084         case $deplibs_check_method in
9085         "file_magic "*)
9086           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9087           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9089             $EGREP "$file_magic_regex" > /dev/null; then
9090             :
9091           else
9092             cat <<_LT_EOF 1>&2
9093
9094 *** Warning: the command libtool uses to detect shared libraries,
9095 *** $file_magic_cmd, produces output that libtool cannot recognize.
9096 *** The result is that libtool may fail to recognize shared libraries
9097 *** as such.  This will affect the creation of libtool libraries that
9098 *** depend on shared libraries, but programs linked with such libtool
9099 *** libraries will work regardless of this problem.  Nevertheless, you
9100 *** may want to report the problem to your system manager and/or to
9101 *** bug-libtool@gnu.org
9102
9103 _LT_EOF
9104           fi ;;
9105         esac
9106       fi
9107       break
9108     fi
9109   done
9110   IFS="$lt_save_ifs"
9111   MAGIC_CMD="$lt_save_MAGIC_CMD"
9112   ;;
9113 esac
9114 fi
9115
9116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9117 if test -n "$MAGIC_CMD"; then
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9119 $as_echo "$MAGIC_CMD" >&6; }
9120 else
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 fi
9124
9125
9126   else
9127     MAGIC_CMD=:
9128   fi
9129 fi
9130
9131   fi
9132   ;;
9133 esac
9134
9135 # Use C for the default configuration in the libtool script
9136
9137 lt_save_CC="$CC"
9138 ac_ext=c
9139 ac_cpp='$CPP $CPPFLAGS'
9140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9143
9144
9145 # Source file extension for C test sources.
9146 ac_ext=c
9147
9148 # Object file extension for compiled C test sources.
9149 objext=o
9150 objext=$objext
9151
9152 # Code to be used in simple compile tests
9153 lt_simple_compile_test_code="int some_variable = 0;"
9154
9155 # Code to be used in simple link tests
9156 lt_simple_link_test_code='int main(){return(0);}'
9157
9158
9159
9160
9161
9162
9163
9164 # If no C compiler was specified, use CC.
9165 LTCC=${LTCC-"$CC"}
9166
9167 # If no C compiler flags were specified, use CFLAGS.
9168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9169
9170 # Allow CC to be a program name with arguments.
9171 compiler=$CC
9172
9173 # Save the default compiler, since it gets overwritten when the other
9174 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9175 compiler_DEFAULT=$CC
9176
9177 # save warnings/boilerplate of simple test code
9178 ac_outfile=conftest.$ac_objext
9179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9181 _lt_compiler_boilerplate=`cat conftest.err`
9182 $RM conftest*
9183
9184 ac_outfile=conftest.$ac_objext
9185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9187 _lt_linker_boilerplate=`cat conftest.err`
9188 $RM -r conftest*
9189
9190
9191 ## CAVEAT EMPTOR:
9192 ## There is no encapsulation within the following macros, do not change
9193 ## the running order or otherwise move them around unless you know exactly
9194 ## what you are doing...
9195 if test -n "$compiler"; then
9196
9197 lt_prog_compiler_no_builtin_flag=
9198
9199 if test "$GCC" = yes; then
9200   case $cc_basename in
9201   nvcc*)
9202     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9203   *)
9204     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9205   esac
9206
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9208 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9209 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   lt_cv_prog_compiler_rtti_exceptions=no
9213    ac_outfile=conftest.$ac_objext
9214    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215    lt_compiler_flag="-fno-rtti -fno-exceptions"
9216    # Insert the option either (1) after the last *FLAGS variable, or
9217    # (2) before a word containing "conftest.", or (3) at the end.
9218    # Note that $ac_compile itself does not contain backslashes and begins
9219    # with a dollar sign (not a hyphen), so the echo should work correctly.
9220    # The option is referenced via a variable to avoid confusing sed.
9221    lt_compile=`echo "$ac_compile" | $SED \
9222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9224    -e 's:$: $lt_compiler_flag:'`
9225    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9226    (eval "$lt_compile" 2>conftest.err)
9227    ac_status=$?
9228    cat conftest.err >&5
9229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230    if (exit $ac_status) && test -s "$ac_outfile"; then
9231      # The compiler can only warn and ignore the option if not recognized
9232      # So say no if there are warnings other than the usual output.
9233      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9234      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9236        lt_cv_prog_compiler_rtti_exceptions=yes
9237      fi
9238    fi
9239    $RM conftest*
9240
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9243 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9244
9245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9246     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9247 else
9248     :
9249 fi
9250
9251 fi
9252
9253
9254
9255
9256
9257
9258   lt_prog_compiler_wl=
9259 lt_prog_compiler_pic=
9260 lt_prog_compiler_static=
9261
9262
9263   if test "$GCC" = yes; then
9264     lt_prog_compiler_wl='-Wl,'
9265     lt_prog_compiler_static='-static'
9266
9267     case $host_os in
9268       aix*)
9269       # All AIX code is PIC.
9270       if test "$host_cpu" = ia64; then
9271         # AIX 5 now supports IA64 processor
9272         lt_prog_compiler_static='-Bstatic'
9273       fi
9274       ;;
9275
9276     amigaos*)
9277       case $host_cpu in
9278       powerpc)
9279             # see comment about AmigaOS4 .so support
9280             lt_prog_compiler_pic='-fPIC'
9281         ;;
9282       m68k)
9283             # FIXME: we need at least 68020 code to build shared libraries, but
9284             # adding the `-m68020' flag to GCC prevents building anything better,
9285             # like `-m68040'.
9286             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9287         ;;
9288       esac
9289       ;;
9290
9291     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9292       # PIC is the default for these OSes.
9293       ;;
9294
9295     mingw* | cygwin* | pw32* | os2* | cegcc*)
9296       # This hack is so that the source file can tell whether it is being
9297       # built for inclusion in a dll (and should export symbols for example).
9298       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9299       # (--disable-auto-import) libraries
9300       lt_prog_compiler_pic='-DDLL_EXPORT'
9301       ;;
9302
9303     darwin* | rhapsody*)
9304       # PIC is the default on this platform
9305       # Common symbols not allowed in MH_DYLIB files
9306       lt_prog_compiler_pic='-fno-common'
9307       ;;
9308
9309     haiku*)
9310       # PIC is the default for Haiku.
9311       # The "-static" flag exists, but is broken.
9312       lt_prog_compiler_static=
9313       ;;
9314
9315     hpux*)
9316       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9317       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9318       # sets the default TLS model and affects inlining.
9319       case $host_cpu in
9320       hppa*64*)
9321         # +Z the default
9322         ;;
9323       *)
9324         lt_prog_compiler_pic='-fPIC'
9325         ;;
9326       esac
9327       ;;
9328
9329     interix[3-9]*)
9330       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9331       # Instead, we relocate shared libraries at runtime.
9332       ;;
9333
9334     msdosdjgpp*)
9335       # Just because we use GCC doesn't mean we suddenly get shared libraries
9336       # on systems that don't support them.
9337       lt_prog_compiler_can_build_shared=no
9338       enable_shared=no
9339       ;;
9340
9341     *nto* | *qnx*)
9342       # QNX uses GNU C++, but need to define -shared option too, otherwise
9343       # it will coredump.
9344       lt_prog_compiler_pic='-fPIC -shared'
9345       ;;
9346
9347     sysv4*MP*)
9348       if test -d /usr/nec; then
9349         lt_prog_compiler_pic=-Kconform_pic
9350       fi
9351       ;;
9352
9353     *)
9354       lt_prog_compiler_pic='-fPIC'
9355       ;;
9356     esac
9357
9358     case $cc_basename in
9359     nvcc*) # Cuda Compiler Driver 2.2
9360       lt_prog_compiler_wl='-Xlinker '
9361       if test -n "$lt_prog_compiler_pic"; then
9362         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9363       fi
9364       ;;
9365     esac
9366   else
9367     # PORTME Check for flag to pass linker flags through the system compiler.
9368     case $host_os in
9369     aix*)
9370       lt_prog_compiler_wl='-Wl,'
9371       if test "$host_cpu" = ia64; then
9372         # AIX 5 now supports IA64 processor
9373         lt_prog_compiler_static='-Bstatic'
9374       else
9375         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9376       fi
9377       ;;
9378
9379     mingw* | cygwin* | pw32* | os2* | cegcc*)
9380       # This hack is so that the source file can tell whether it is being
9381       # built for inclusion in a dll (and should export symbols for example).
9382       lt_prog_compiler_pic='-DDLL_EXPORT'
9383       ;;
9384
9385     hpux9* | hpux10* | hpux11*)
9386       lt_prog_compiler_wl='-Wl,'
9387       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9388       # not for PA HP-UX.
9389       case $host_cpu in
9390       hppa*64*|ia64*)
9391         # +Z the default
9392         ;;
9393       *)
9394         lt_prog_compiler_pic='+Z'
9395         ;;
9396       esac
9397       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9398       lt_prog_compiler_static='${wl}-a ${wl}archive'
9399       ;;
9400
9401     irix5* | irix6* | nonstopux*)
9402       lt_prog_compiler_wl='-Wl,'
9403       # PIC (with -KPIC) is the default.
9404       lt_prog_compiler_static='-non_shared'
9405       ;;
9406
9407     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9408       case $cc_basename in
9409       # old Intel for x86_64 which still supported -KPIC.
9410       ecc*)
9411         lt_prog_compiler_wl='-Wl,'
9412         lt_prog_compiler_pic='-KPIC'
9413         lt_prog_compiler_static='-static'
9414         ;;
9415       # icc used to be incompatible with GCC.
9416       # ICC 10 doesn't accept -KPIC any more.
9417       icc* | ifort*)
9418         lt_prog_compiler_wl='-Wl,'
9419         lt_prog_compiler_pic='-fPIC'
9420         lt_prog_compiler_static='-static'
9421         ;;
9422       # Lahey Fortran 8.1.
9423       lf95*)
9424         lt_prog_compiler_wl='-Wl,'
9425         lt_prog_compiler_pic='--shared'
9426         lt_prog_compiler_static='--static'
9427         ;;
9428       nagfor*)
9429         # NAG Fortran compiler
9430         lt_prog_compiler_wl='-Wl,-Wl,,'
9431         lt_prog_compiler_pic='-PIC'
9432         lt_prog_compiler_static='-Bstatic'
9433         ;;
9434       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9435         # Portland Group compilers (*not* the Pentium gcc compiler,
9436         # which looks to be a dead project)
9437         lt_prog_compiler_wl='-Wl,'
9438         lt_prog_compiler_pic='-fpic'
9439         lt_prog_compiler_static='-Bstatic'
9440         ;;
9441       ccc*)
9442         lt_prog_compiler_wl='-Wl,'
9443         # All Alpha code is PIC.
9444         lt_prog_compiler_static='-non_shared'
9445         ;;
9446       xl* | bgxl* | bgf* | mpixl*)
9447         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9448         lt_prog_compiler_wl='-Wl,'
9449         lt_prog_compiler_pic='-qpic'
9450         lt_prog_compiler_static='-qstaticlink'
9451         ;;
9452       *)
9453         case `$CC -V 2>&1 | sed 5q` in
9454         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9455           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9456           lt_prog_compiler_pic='-KPIC'
9457           lt_prog_compiler_static='-Bstatic'
9458           lt_prog_compiler_wl=''
9459           ;;
9460         *Sun\ F* | *Sun*Fortran*)
9461           lt_prog_compiler_pic='-KPIC'
9462           lt_prog_compiler_static='-Bstatic'
9463           lt_prog_compiler_wl='-Qoption ld '
9464           ;;
9465         *Sun\ C*)
9466           # Sun C 5.9
9467           lt_prog_compiler_pic='-KPIC'
9468           lt_prog_compiler_static='-Bstatic'
9469           lt_prog_compiler_wl='-Wl,'
9470           ;;
9471         *Intel*\ [CF]*Compiler*)
9472           lt_prog_compiler_wl='-Wl,'
9473           lt_prog_compiler_pic='-fPIC'
9474           lt_prog_compiler_static='-static'
9475           ;;
9476         *Portland\ Group*)
9477           lt_prog_compiler_wl='-Wl,'
9478           lt_prog_compiler_pic='-fpic'
9479           lt_prog_compiler_static='-Bstatic'
9480           ;;
9481         esac
9482         ;;
9483       esac
9484       ;;
9485
9486     newsos6)
9487       lt_prog_compiler_pic='-KPIC'
9488       lt_prog_compiler_static='-Bstatic'
9489       ;;
9490
9491     *nto* | *qnx*)
9492       # QNX uses GNU C++, but need to define -shared option too, otherwise
9493       # it will coredump.
9494       lt_prog_compiler_pic='-fPIC -shared'
9495       ;;
9496
9497     osf3* | osf4* | osf5*)
9498       lt_prog_compiler_wl='-Wl,'
9499       # All OSF/1 code is PIC.
9500       lt_prog_compiler_static='-non_shared'
9501       ;;
9502
9503     rdos*)
9504       lt_prog_compiler_static='-non_shared'
9505       ;;
9506
9507     solaris*)
9508       lt_prog_compiler_pic='-KPIC'
9509       lt_prog_compiler_static='-Bstatic'
9510       case $cc_basename in
9511       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9512         lt_prog_compiler_wl='-Qoption ld ';;
9513       *)
9514         lt_prog_compiler_wl='-Wl,';;
9515       esac
9516       ;;
9517
9518     sunos4*)
9519       lt_prog_compiler_wl='-Qoption ld '
9520       lt_prog_compiler_pic='-PIC'
9521       lt_prog_compiler_static='-Bstatic'
9522       ;;
9523
9524     sysv4 | sysv4.2uw2* | sysv4.3*)
9525       lt_prog_compiler_wl='-Wl,'
9526       lt_prog_compiler_pic='-KPIC'
9527       lt_prog_compiler_static='-Bstatic'
9528       ;;
9529
9530     sysv4*MP*)
9531       if test -d /usr/nec ;then
9532         lt_prog_compiler_pic='-Kconform_pic'
9533         lt_prog_compiler_static='-Bstatic'
9534       fi
9535       ;;
9536
9537     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9538       lt_prog_compiler_wl='-Wl,'
9539       lt_prog_compiler_pic='-KPIC'
9540       lt_prog_compiler_static='-Bstatic'
9541       ;;
9542
9543     unicos*)
9544       lt_prog_compiler_wl='-Wl,'
9545       lt_prog_compiler_can_build_shared=no
9546       ;;
9547
9548     uts4*)
9549       lt_prog_compiler_pic='-pic'
9550       lt_prog_compiler_static='-Bstatic'
9551       ;;
9552
9553     *)
9554       lt_prog_compiler_can_build_shared=no
9555       ;;
9556     esac
9557   fi
9558
9559 case $host_os in
9560   # For platforms which do not support PIC, -DPIC is meaningless:
9561   *djgpp*)
9562     lt_prog_compiler_pic=
9563     ;;
9564   *)
9565     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9566     ;;
9567 esac
9568
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9570 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9571 if ${lt_cv_prog_compiler_pic+:} false; then :
9572   $as_echo_n "(cached) " >&6
9573 else
9574   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9577 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9578 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9579
9580 #
9581 # Check to make sure the PIC flag actually works.
9582 #
9583 if test -n "$lt_prog_compiler_pic"; then
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9586 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   lt_cv_prog_compiler_pic_works=no
9590    ac_outfile=conftest.$ac_objext
9591    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9593    # Insert the option either (1) after the last *FLAGS variable, or
9594    # (2) before a word containing "conftest.", or (3) at the end.
9595    # Note that $ac_compile itself does not contain backslashes and begins
9596    # with a dollar sign (not a hyphen), so the echo should work correctly.
9597    # The option is referenced via a variable to avoid confusing sed.
9598    lt_compile=`echo "$ac_compile" | $SED \
9599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601    -e 's:$: $lt_compiler_flag:'`
9602    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9603    (eval "$lt_compile" 2>conftest.err)
9604    ac_status=$?
9605    cat conftest.err >&5
9606    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607    if (exit $ac_status) && test -s "$ac_outfile"; then
9608      # The compiler can only warn and ignore the option if not recognized
9609      # So say no if there are warnings other than the usual output.
9610      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9611      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9612      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9613        lt_cv_prog_compiler_pic_works=yes
9614      fi
9615    fi
9616    $RM conftest*
9617
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9620 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9621
9622 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9623     case $lt_prog_compiler_pic in
9624      "" | " "*) ;;
9625      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9626      esac
9627 else
9628     lt_prog_compiler_pic=
9629      lt_prog_compiler_can_build_shared=no
9630 fi
9631
9632 fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 #
9645 # Check to make sure the static flag actually works.
9646 #
9647 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9649 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9650 if ${lt_cv_prog_compiler_static_works+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   lt_cv_prog_compiler_static_works=no
9654    save_LDFLAGS="$LDFLAGS"
9655    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9656    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9657    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9658      # The linker can only warn and ignore the option if not recognized
9659      # So say no if there are warnings
9660      if test -s conftest.err; then
9661        # Append any errors to the config.log.
9662        cat conftest.err 1>&5
9663        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9664        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9665        if diff conftest.exp conftest.er2 >/dev/null; then
9666          lt_cv_prog_compiler_static_works=yes
9667        fi
9668      else
9669        lt_cv_prog_compiler_static_works=yes
9670      fi
9671    fi
9672    $RM -r conftest*
9673    LDFLAGS="$save_LDFLAGS"
9674
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9677 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9678
9679 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9680     :
9681 else
9682     lt_prog_compiler_static=
9683 fi
9684
9685
9686
9687
9688
9689
9690
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9693 if ${lt_cv_prog_compiler_c_o+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   lt_cv_prog_compiler_c_o=no
9697    $RM -r conftest 2>/dev/null
9698    mkdir conftest
9699    cd conftest
9700    mkdir out
9701    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9702
9703    lt_compiler_flag="-o out/conftest2.$ac_objext"
9704    # Insert the option either (1) after the last *FLAGS variable, or
9705    # (2) before a word containing "conftest.", or (3) at the end.
9706    # Note that $ac_compile itself does not contain backslashes and begins
9707    # with a dollar sign (not a hyphen), so the echo should work correctly.
9708    lt_compile=`echo "$ac_compile" | $SED \
9709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9711    -e 's:$: $lt_compiler_flag:'`
9712    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9713    (eval "$lt_compile" 2>out/conftest.err)
9714    ac_status=$?
9715    cat out/conftest.err >&5
9716    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9718    then
9719      # The compiler can only warn and ignore the option if not recognized
9720      # So say no if there are warnings
9721      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9724        lt_cv_prog_compiler_c_o=yes
9725      fi
9726    fi
9727    chmod u+w . 2>&5
9728    $RM conftest*
9729    # SGI C++ compiler will create directory out/ii_files/ for
9730    # template instantiation
9731    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9732    $RM out/* && rmdir out
9733    cd ..
9734    $RM -r conftest
9735    $RM conftest*
9736
9737 fi
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9739 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9740
9741
9742
9743
9744
9745
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9748 if ${lt_cv_prog_compiler_c_o+:} false; then :
9749   $as_echo_n "(cached) " >&6
9750 else
9751   lt_cv_prog_compiler_c_o=no
9752    $RM -r conftest 2>/dev/null
9753    mkdir conftest
9754    cd conftest
9755    mkdir out
9756    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757
9758    lt_compiler_flag="-o out/conftest2.$ac_objext"
9759    # Insert the option either (1) after the last *FLAGS variable, or
9760    # (2) before a word containing "conftest.", or (3) at the end.
9761    # Note that $ac_compile itself does not contain backslashes and begins
9762    # with a dollar sign (not a hyphen), so the echo should work correctly.
9763    lt_compile=`echo "$ac_compile" | $SED \
9764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766    -e 's:$: $lt_compiler_flag:'`
9767    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9768    (eval "$lt_compile" 2>out/conftest.err)
9769    ac_status=$?
9770    cat out/conftest.err >&5
9771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9773    then
9774      # The compiler can only warn and ignore the option if not recognized
9775      # So say no if there are warnings
9776      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9777      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9778      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9779        lt_cv_prog_compiler_c_o=yes
9780      fi
9781    fi
9782    chmod u+w . 2>&5
9783    $RM conftest*
9784    # SGI C++ compiler will create directory out/ii_files/ for
9785    # template instantiation
9786    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9787    $RM out/* && rmdir out
9788    cd ..
9789    $RM -r conftest
9790    $RM conftest*
9791
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9795
9796
9797
9798
9799 hard_links="nottested"
9800 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9801   # do not overwrite the value of need_locks provided by the user
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9803 $as_echo_n "checking if we can lock with hard links... " >&6; }
9804   hard_links=yes
9805   $RM conftest*
9806   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807   touch conftest.a
9808   ln conftest.a conftest.b 2>&5 || hard_links=no
9809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9811 $as_echo "$hard_links" >&6; }
9812   if test "$hard_links" = no; then
9813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9815     need_locks=warn
9816   fi
9817 else
9818   need_locks=no
9819 fi
9820
9821
9822
9823
9824
9825
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9827 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9828
9829   runpath_var=
9830   allow_undefined_flag=
9831   always_export_symbols=no
9832   archive_cmds=
9833   archive_expsym_cmds=
9834   compiler_needs_object=no
9835   enable_shared_with_static_runtimes=no
9836   export_dynamic_flag_spec=
9837   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9838   hardcode_automatic=no
9839   hardcode_direct=no
9840   hardcode_direct_absolute=no
9841   hardcode_libdir_flag_spec=
9842   hardcode_libdir_separator=
9843   hardcode_minus_L=no
9844   hardcode_shlibpath_var=unsupported
9845   inherit_rpath=no
9846   link_all_deplibs=unknown
9847   module_cmds=
9848   module_expsym_cmds=
9849   old_archive_from_new_cmds=
9850   old_archive_from_expsyms_cmds=
9851   thread_safe_flag_spec=
9852   whole_archive_flag_spec=
9853   # include_expsyms should be a list of space-separated symbols to be *always*
9854   # included in the symbol list
9855   include_expsyms=
9856   # exclude_expsyms can be an extended regexp of symbols to exclude
9857   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9858   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9859   # as well as any symbol that contains `d'.
9860   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9861   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9862   # platforms (ab)use it in PIC code, but their linkers get confused if
9863   # the symbol is explicitly referenced.  Since portable code cannot
9864   # rely on this symbol name, it's probably fine to never include it in
9865   # preloaded symbol tables.
9866   # Exclude shared library initialization/finalization symbols.
9867   extract_expsyms_cmds=
9868
9869   case $host_os in
9870   cygwin* | mingw* | pw32* | cegcc*)
9871     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9872     # When not using gcc, we currently assume that we are using
9873     # Microsoft Visual C++.
9874     if test "$GCC" != yes; then
9875       with_gnu_ld=no
9876     fi
9877     ;;
9878   interix*)
9879     # we just hope/assume this is gcc and not c89 (= MSVC++)
9880     with_gnu_ld=yes
9881     ;;
9882   openbsd*)
9883     with_gnu_ld=no
9884     ;;
9885   linux* | k*bsd*-gnu | gnu*)
9886     link_all_deplibs=no
9887     ;;
9888   esac
9889
9890   ld_shlibs=yes
9891
9892   # On some targets, GNU ld is compatible enough with the native linker
9893   # that we're better off using the native interface for both.
9894   lt_use_gnu_ld_interface=no
9895   if test "$with_gnu_ld" = yes; then
9896     case $host_os in
9897       aix*)
9898         # The AIX port of GNU ld has always aspired to compatibility
9899         # with the native linker.  However, as the warning in the GNU ld
9900         # block says, versions before 2.19.5* couldn't really create working
9901         # shared libraries, regardless of the interface used.
9902         case `$LD -v 2>&1` in
9903           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9904           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9905           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9906           *)
9907             lt_use_gnu_ld_interface=yes
9908             ;;
9909         esac
9910         ;;
9911       *)
9912         lt_use_gnu_ld_interface=yes
9913         ;;
9914     esac
9915   fi
9916
9917   if test "$lt_use_gnu_ld_interface" = yes; then
9918     # If archive_cmds runs LD, not CC, wlarc should be empty
9919     wlarc='${wl}'
9920
9921     # Set some defaults for GNU ld with shared library support. These
9922     # are reset later if shared libraries are not supported. Putting them
9923     # here allows them to be overridden if necessary.
9924     runpath_var=LD_RUN_PATH
9925     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926     export_dynamic_flag_spec='${wl}--export-dynamic'
9927     # ancient GNU ld didn't support --whole-archive et. al.
9928     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9929       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9930     else
9931       whole_archive_flag_spec=
9932     fi
9933     supports_anon_versioning=no
9934     case `$LD -v 2>&1` in
9935       *GNU\ gold*) supports_anon_versioning=yes ;;
9936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9939       *\ 2.11.*) ;; # other 2.11 versions
9940       *) supports_anon_versioning=yes ;;
9941     esac
9942
9943     # See if GNU ld supports shared libraries.
9944     case $host_os in
9945     aix[3-9]*)
9946       # On AIX/PPC, the GNU linker is very broken
9947       if test "$host_cpu" != ia64; then
9948         ld_shlibs=no
9949         cat <<_LT_EOF 1>&2
9950
9951 *** Warning: the GNU linker, at least up to release 2.19, is reported
9952 *** to be unable to reliably create shared libraries on AIX.
9953 *** Therefore, libtool is disabling shared libraries support.  If you
9954 *** really care for shared libraries, you may want to install binutils
9955 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9956 *** You will then need to restart the configuration process.
9957
9958 _LT_EOF
9959       fi
9960       ;;
9961
9962     amigaos*)
9963       case $host_cpu in
9964       powerpc)
9965             # see comment about AmigaOS4 .so support
9966             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9967             archive_expsym_cmds=''
9968         ;;
9969       m68k)
9970             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)'
9971             hardcode_libdir_flag_spec='-L$libdir'
9972             hardcode_minus_L=yes
9973         ;;
9974       esac
9975       ;;
9976
9977     beos*)
9978       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979         allow_undefined_flag=unsupported
9980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9981         # support --undefined.  This deserves some investigation.  FIXME
9982         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983       else
9984         ld_shlibs=no
9985       fi
9986       ;;
9987
9988     cygwin* | mingw* | pw32* | cegcc*)
9989       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9990       # as there is no search path for DLLs.
9991       hardcode_libdir_flag_spec='-L$libdir'
9992       export_dynamic_flag_spec='${wl}--export-all-symbols'
9993       allow_undefined_flag=unsupported
9994       always_export_symbols=no
9995       enable_shared_with_static_runtimes=yes
9996       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'
9997       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9998
9999       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10000         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10001         # If the export-symbols file already is a .def file (1st line
10002         # is EXPORTS), use it as is; otherwise, prepend...
10003         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10004           cp $export_symbols $output_objdir/$soname.def;
10005         else
10006           echo EXPORTS > $output_objdir/$soname.def;
10007           cat $export_symbols >> $output_objdir/$soname.def;
10008         fi~
10009         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10010       else
10011         ld_shlibs=no
10012       fi
10013       ;;
10014
10015     haiku*)
10016       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017       link_all_deplibs=yes
10018       ;;
10019
10020     interix[3-9]*)
10021       hardcode_direct=no
10022       hardcode_shlibpath_var=no
10023       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024       export_dynamic_flag_spec='${wl}-E'
10025       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10026       # Instead, shared libraries are loaded at an image base (0x10000000 by
10027       # default) and relocated if they conflict, which is a slow very memory
10028       # consuming and fragmenting process.  To avoid this, we pick a random,
10029       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10030       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10031       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10032       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'
10033       ;;
10034
10035     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10036       tmp_diet=no
10037       if test "$host_os" = linux-dietlibc; then
10038         case $cc_basename in
10039           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10040         esac
10041       fi
10042       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10043          && test "$tmp_diet" = no
10044       then
10045         tmp_addflag=' $pic_flag'
10046         tmp_sharedflag='-shared'
10047         case $cc_basename,$host_cpu in
10048         pgcc*)                          # Portland Group C compiler
10049           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'
10050           tmp_addflag=' $pic_flag'
10051           ;;
10052         pgf77* | pgf90* | pgf95* | pgfortran*)
10053                                         # Portland Group f77 and f90 compilers
10054           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'
10055           tmp_addflag=' $pic_flag -Mnomain' ;;
10056         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10057           tmp_addflag=' -i_dynamic' ;;
10058         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10059           tmp_addflag=' -i_dynamic -nofor_main' ;;
10060         ifc* | ifort*)                  # Intel Fortran compiler
10061           tmp_addflag=' -nofor_main' ;;
10062         lf95*)                          # Lahey Fortran 8.1
10063           whole_archive_flag_spec=
10064           tmp_sharedflag='--shared' ;;
10065         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10066           tmp_sharedflag='-qmkshrobj'
10067           tmp_addflag= ;;
10068         nvcc*)  # Cuda Compiler Driver 2.2
10069           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'
10070           compiler_needs_object=yes
10071           ;;
10072         esac
10073         case `$CC -V 2>&1 | sed 5q` in
10074         *Sun\ C*)                       # Sun C 5.9
10075           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'
10076           compiler_needs_object=yes
10077           tmp_sharedflag='-G' ;;
10078         *Sun\ F*)                       # Sun Fortran 8.3
10079           tmp_sharedflag='-G' ;;
10080         esac
10081         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082
10083         if test "x$supports_anon_versioning" = xyes; then
10084           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10085             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10086             echo "local: *; };" >> $output_objdir/$libname.ver~
10087             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10088         fi
10089
10090         case $cc_basename in
10091         xlf* | bgf* | bgxlf* | mpixlf*)
10092           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10093           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10094           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10096           if test "x$supports_anon_versioning" = xyes; then
10097             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10098               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10099               echo "local: *; };" >> $output_objdir/$libname.ver~
10100               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10101           fi
10102           ;;
10103         esac
10104       else
10105         ld_shlibs=no
10106       fi
10107       ;;
10108
10109     netbsd* | netbsdelf*-gnu)
10110       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10111         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10112         wlarc=
10113       else
10114         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10116       fi
10117       ;;
10118
10119     solaris*)
10120       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10121         ld_shlibs=no
10122         cat <<_LT_EOF 1>&2
10123
10124 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10125 *** create shared libraries on Solaris systems.  Therefore, libtool
10126 *** is disabling shared libraries support.  We urge you to upgrade GNU
10127 *** binutils to release 2.9.1 or newer.  Another option is to modify
10128 *** your PATH or compiler configuration so that the native linker is
10129 *** used, and then restart.
10130
10131 _LT_EOF
10132       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10133         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10135       else
10136         ld_shlibs=no
10137       fi
10138       ;;
10139
10140     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10141       case `$LD -v 2>&1` in
10142         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10143         ld_shlibs=no
10144         cat <<_LT_EOF 1>&2
10145
10146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10147 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10148 *** is disabling shared libraries support.  We urge you to upgrade GNU
10149 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10150 *** your PATH or compiler configuration so that the native linker is
10151 *** used, and then restart.
10152
10153 _LT_EOF
10154         ;;
10155         *)
10156           # For security reasons, it is highly recommended that you always
10157           # use absolute paths for naming shared libraries, and exclude the
10158           # DT_RUNPATH tag from executables and libraries.  But doing so
10159           # requires that you compile everything twice, which is a pain.
10160           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10161             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10164           else
10165             ld_shlibs=no
10166           fi
10167         ;;
10168       esac
10169       ;;
10170
10171     sunos4*)
10172       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10173       wlarc=
10174       hardcode_direct=yes
10175       hardcode_shlibpath_var=no
10176       ;;
10177
10178     *)
10179       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10180         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10182       else
10183         ld_shlibs=no
10184       fi
10185       ;;
10186     esac
10187
10188     if test "$ld_shlibs" = no; then
10189       runpath_var=
10190       hardcode_libdir_flag_spec=
10191       export_dynamic_flag_spec=
10192       whole_archive_flag_spec=
10193     fi
10194   else
10195     # PORTME fill in a description of your system's linker (not GNU ld)
10196     case $host_os in
10197     aix3*)
10198       allow_undefined_flag=unsupported
10199       always_export_symbols=yes
10200       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'
10201       # Note: this linker hardcodes the directories in LIBPATH if there
10202       # are no directories specified by -L.
10203       hardcode_minus_L=yes
10204       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10205         # Neither direct hardcoding nor static linking is supported with a
10206         # broken collect2.
10207         hardcode_direct=unsupported
10208       fi
10209       ;;
10210
10211     aix[4-9]*)
10212       if test "$host_cpu" = ia64; then
10213         # On IA64, the linker does run time linking by default, so we don't
10214         # have to do anything special.
10215         aix_use_runtimelinking=no
10216         exp_sym_flag='-Bexport'
10217         no_entry_flag=""
10218       else
10219         # If we're using GNU nm, then we don't want the "-C" option.
10220         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10221         # Also, AIX nm treats weak defined symbols like other global
10222         # defined symbols, whereas GNU nm marks them as "W".
10223         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10224           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'
10225         else
10226           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'
10227         fi
10228         aix_use_runtimelinking=no
10229
10230         # Test if we are trying to use run time linking or normal
10231         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10232         # need to do runtime linking.
10233         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10234           for ld_flag in $LDFLAGS; do
10235           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10236             aix_use_runtimelinking=yes
10237             break
10238           fi
10239           done
10240           ;;
10241         esac
10242
10243         exp_sym_flag='-bexport'
10244         no_entry_flag='-bnoentry'
10245       fi
10246
10247       # When large executables or shared objects are built, AIX ld can
10248       # have problems creating the table of contents.  If linking a library
10249       # or program results in "error TOC overflow" add -mminimal-toc to
10250       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10251       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10252
10253       archive_cmds=''
10254       hardcode_direct=yes
10255       hardcode_direct_absolute=yes
10256       hardcode_libdir_separator=':'
10257       link_all_deplibs=yes
10258       file_list_spec='${wl}-f,'
10259
10260       if test "$GCC" = yes; then
10261         case $host_os in aix4.[012]|aix4.[012].*)
10262         # We only want to do this on AIX 4.2 and lower, the check
10263         # below for broken collect2 doesn't work under 4.3+
10264           collect2name=`${CC} -print-prog-name=collect2`
10265           if test -f "$collect2name" &&
10266            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10267           then
10268           # We have reworked collect2
10269           :
10270           else
10271           # We have old collect2
10272           hardcode_direct=unsupported
10273           # It fails to find uninstalled libraries when the uninstalled
10274           # path is not listed in the libpath.  Setting hardcode_minus_L
10275           # to unsupported forces relinking
10276           hardcode_minus_L=yes
10277           hardcode_libdir_flag_spec='-L$libdir'
10278           hardcode_libdir_separator=
10279           fi
10280           ;;
10281         esac
10282         shared_flag='-shared'
10283         if test "$aix_use_runtimelinking" = yes; then
10284           shared_flag="$shared_flag "'${wl}-G'
10285         fi
10286         link_all_deplibs=no
10287       else
10288         # not using gcc
10289         if test "$host_cpu" = ia64; then
10290         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10291         # chokes on -Wl,-G. The following line is correct:
10292           shared_flag='-G'
10293         else
10294           if test "$aix_use_runtimelinking" = yes; then
10295             shared_flag='${wl}-G'
10296           else
10297             shared_flag='${wl}-bM:SRE'
10298           fi
10299         fi
10300       fi
10301
10302       export_dynamic_flag_spec='${wl}-bexpall'
10303       # It seems that -bexpall does not export symbols beginning with
10304       # underscore (_), so it is better to generate a list of symbols to export.
10305       always_export_symbols=yes
10306       if test "$aix_use_runtimelinking" = yes; then
10307         # Warning - without using the other runtime loading flags (-brtl),
10308         # -berok will link without error, but may produce a broken library.
10309         allow_undefined_flag='-berok'
10310         # Determine the default libpath from the value encoded in an
10311         # empty executable.
10312         if test "${lt_cv_aix_libpath+set}" = set; then
10313   aix_libpath=$lt_cv_aix_libpath
10314 else
10315   if ${lt_cv_aix_libpath_+:} false; then :
10316   $as_echo_n "(cached) " >&6
10317 else
10318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h.  */
10320
10321 int
10322 main ()
10323 {
10324
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330
10331   lt_aix_libpath_sed='
10332       /Import File Strings/,/^$/ {
10333           /^0/ {
10334               s/^0  *\([^ ]*\) *$/\1/
10335               p
10336           }
10337       }'
10338   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10339   # Check for a 64-bit object if we didn't find anything.
10340   if test -z "$lt_cv_aix_libpath_"; then
10341     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10342   fi
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext \
10345     conftest$ac_exeext conftest.$ac_ext
10346   if test -z "$lt_cv_aix_libpath_"; then
10347     lt_cv_aix_libpath_="/usr/lib:/lib"
10348   fi
10349
10350 fi
10351
10352   aix_libpath=$lt_cv_aix_libpath_
10353 fi
10354
10355         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10356         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"
10357       else
10358         if test "$host_cpu" = ia64; then
10359           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10360           allow_undefined_flag="-z nodefs"
10361           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"
10362         else
10363          # Determine the default libpath from the value encoded in an
10364          # empty executable.
10365          if test "${lt_cv_aix_libpath+set}" = set; then
10366   aix_libpath=$lt_cv_aix_libpath
10367 else
10368   if ${lt_cv_aix_libpath_+:} false; then :
10369   $as_echo_n "(cached) " >&6
10370 else
10371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h.  */
10373
10374 int
10375 main ()
10376 {
10377
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383
10384   lt_aix_libpath_sed='
10385       /Import File Strings/,/^$/ {
10386           /^0/ {
10387               s/^0  *\([^ ]*\) *$/\1/
10388               p
10389           }
10390       }'
10391   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10392   # Check for a 64-bit object if we didn't find anything.
10393   if test -z "$lt_cv_aix_libpath_"; then
10394     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10395   fi
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext \
10398     conftest$ac_exeext conftest.$ac_ext
10399   if test -z "$lt_cv_aix_libpath_"; then
10400     lt_cv_aix_libpath_="/usr/lib:/lib"
10401   fi
10402
10403 fi
10404
10405   aix_libpath=$lt_cv_aix_libpath_
10406 fi
10407
10408          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10409           # Warning - without using the other run time loading flags,
10410           # -berok will link without error, but may produce a broken library.
10411           no_undefined_flag=' ${wl}-bernotok'
10412           allow_undefined_flag=' ${wl}-berok'
10413           if test "$with_gnu_ld" = yes; then
10414             # We only use this code for GNU lds that support --whole-archive.
10415             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10416           else
10417             # Exported symbols can be pulled into shared objects from archives
10418             whole_archive_flag_spec='$convenience'
10419           fi
10420           archive_cmds_need_lc=yes
10421           # This is similar to how AIX traditionally builds its shared libraries.
10422           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'
10423         fi
10424       fi
10425       ;;
10426
10427     amigaos*)
10428       case $host_cpu in
10429       powerpc)
10430             # see comment about AmigaOS4 .so support
10431             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432             archive_expsym_cmds=''
10433         ;;
10434       m68k)
10435             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)'
10436             hardcode_libdir_flag_spec='-L$libdir'
10437             hardcode_minus_L=yes
10438         ;;
10439       esac
10440       ;;
10441
10442     bsdi[45]*)
10443       export_dynamic_flag_spec=-rdynamic
10444       ;;
10445
10446     cygwin* | mingw* | pw32* | cegcc*)
10447       # When not using gcc, we currently assume that we are using
10448       # Microsoft Visual C++.
10449       # hardcode_libdir_flag_spec is actually meaningless, as there is
10450       # no search path for DLLs.
10451       case $cc_basename in
10452       cl*)
10453         # Native MSVC
10454         hardcode_libdir_flag_spec=' '
10455         allow_undefined_flag=unsupported
10456         always_export_symbols=yes
10457         file_list_spec='@'
10458         # Tell ltmain to make .lib files, not .a files.
10459         libext=lib
10460         # Tell ltmain to make .dll files, not .so files.
10461         shrext_cmds=".dll"
10462         # FIXME: Setting linknames here is a bad hack.
10463         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10464         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10465             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10466           else
10467             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10468           fi~
10469           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10470           linknames='
10471         # The linker will not automatically build a static lib if we build a DLL.
10472         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10473         enable_shared_with_static_runtimes=yes
10474         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10475         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10476         # Don't use ranlib
10477         old_postinstall_cmds='chmod 644 $oldlib'
10478         postlink_cmds='lt_outputfile="@OUTPUT@"~
10479           lt_tool_outputfile="@TOOL_OUTPUT@"~
10480           case $lt_outputfile in
10481             *.exe|*.EXE) ;;
10482             *)
10483               lt_outputfile="$lt_outputfile.exe"
10484               lt_tool_outputfile="$lt_tool_outputfile.exe"
10485               ;;
10486           esac~
10487           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10488             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10489             $RM "$lt_outputfile.manifest";
10490           fi'
10491         ;;
10492       *)
10493         # Assume MSVC wrapper
10494         hardcode_libdir_flag_spec=' '
10495         allow_undefined_flag=unsupported
10496         # Tell ltmain to make .lib files, not .a files.
10497         libext=lib
10498         # Tell ltmain to make .dll files, not .so files.
10499         shrext_cmds=".dll"
10500         # FIXME: Setting linknames here is a bad hack.
10501         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10502         # The linker will automatically build a .lib file if we build a DLL.
10503         old_archive_from_new_cmds='true'
10504         # FIXME: Should let the user specify the lib program.
10505         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10506         enable_shared_with_static_runtimes=yes
10507         ;;
10508       esac
10509       ;;
10510
10511     darwin* | rhapsody*)
10512
10513
10514   archive_cmds_need_lc=no
10515   hardcode_direct=no
10516   hardcode_automatic=yes
10517   hardcode_shlibpath_var=unsupported
10518   if test "$lt_cv_ld_force_load" = "yes"; then
10519     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\"`'
10520
10521   else
10522     whole_archive_flag_spec=''
10523   fi
10524   link_all_deplibs=yes
10525   allow_undefined_flag="$_lt_dar_allow_undefined"
10526   case $cc_basename in
10527      ifort*) _lt_dar_can_shared=yes ;;
10528      *) _lt_dar_can_shared=$GCC ;;
10529   esac
10530   if test "$_lt_dar_can_shared" = "yes"; then
10531     output_verbose_link_cmd=func_echo_all
10532     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10533     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10534     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}"
10535     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}"
10536
10537   else
10538   ld_shlibs=no
10539   fi
10540
10541       ;;
10542
10543     dgux*)
10544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545       hardcode_libdir_flag_spec='-L$libdir'
10546       hardcode_shlibpath_var=no
10547       ;;
10548
10549     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10550     # support.  Future versions do this automatically, but an explicit c++rt0.o
10551     # does not break anything, and helps significantly (at the cost of a little
10552     # extra space).
10553     freebsd2.2*)
10554       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10555       hardcode_libdir_flag_spec='-R$libdir'
10556       hardcode_direct=yes
10557       hardcode_shlibpath_var=no
10558       ;;
10559
10560     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10561     freebsd2.*)
10562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10563       hardcode_direct=yes
10564       hardcode_minus_L=yes
10565       hardcode_shlibpath_var=no
10566       ;;
10567
10568     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10569     freebsd* | dragonfly*)
10570       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10571       hardcode_libdir_flag_spec='-R$libdir'
10572       hardcode_direct=yes
10573       hardcode_shlibpath_var=no
10574       ;;
10575
10576     hpux9*)
10577       if test "$GCC" = yes; then
10578         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'
10579       else
10580         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'
10581       fi
10582       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10583       hardcode_libdir_separator=:
10584       hardcode_direct=yes
10585
10586       # hardcode_minus_L: Not really in the search PATH,
10587       # but as the default location of the library.
10588       hardcode_minus_L=yes
10589       export_dynamic_flag_spec='${wl}-E'
10590       ;;
10591
10592     hpux10*)
10593       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10594         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10595       else
10596         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10597       fi
10598       if test "$with_gnu_ld" = no; then
10599         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600         hardcode_libdir_separator=:
10601         hardcode_direct=yes
10602         hardcode_direct_absolute=yes
10603         export_dynamic_flag_spec='${wl}-E'
10604         # hardcode_minus_L: Not really in the search PATH,
10605         # but as the default location of the library.
10606         hardcode_minus_L=yes
10607       fi
10608       ;;
10609
10610     hpux11*)
10611       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10612         case $host_cpu in
10613         hppa*64*)
10614           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615           ;;
10616         ia64*)
10617           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10618           ;;
10619         *)
10620           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10621           ;;
10622         esac
10623       else
10624         case $host_cpu in
10625         hppa*64*)
10626           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10627           ;;
10628         ia64*)
10629           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10630           ;;
10631         *)
10632
10633           # Older versions of the 11.00 compiler do not understand -b yet
10634           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10635           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10636 $as_echo_n "checking if $CC understands -b... " >&6; }
10637 if ${lt_cv_prog_compiler__b+:} false; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   lt_cv_prog_compiler__b=no
10641    save_LDFLAGS="$LDFLAGS"
10642    LDFLAGS="$LDFLAGS -b"
10643    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10644    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10645      # The linker can only warn and ignore the option if not recognized
10646      # So say no if there are warnings
10647      if test -s conftest.err; then
10648        # Append any errors to the config.log.
10649        cat conftest.err 1>&5
10650        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10651        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10652        if diff conftest.exp conftest.er2 >/dev/null; then
10653          lt_cv_prog_compiler__b=yes
10654        fi
10655      else
10656        lt_cv_prog_compiler__b=yes
10657      fi
10658    fi
10659    $RM -r conftest*
10660    LDFLAGS="$save_LDFLAGS"
10661
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10664 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10665
10666 if test x"$lt_cv_prog_compiler__b" = xyes; then
10667     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 else
10669     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10670 fi
10671
10672           ;;
10673         esac
10674       fi
10675       if test "$with_gnu_ld" = no; then
10676         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677         hardcode_libdir_separator=:
10678
10679         case $host_cpu in
10680         hppa*64*|ia64*)
10681           hardcode_direct=no
10682           hardcode_shlibpath_var=no
10683           ;;
10684         *)
10685           hardcode_direct=yes
10686           hardcode_direct_absolute=yes
10687           export_dynamic_flag_spec='${wl}-E'
10688
10689           # hardcode_minus_L: Not really in the search PATH,
10690           # but as the default location of the library.
10691           hardcode_minus_L=yes
10692           ;;
10693         esac
10694       fi
10695       ;;
10696
10697     irix5* | irix6* | nonstopux*)
10698       if test "$GCC" = yes; then
10699         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'
10700         # Try to use the -exported_symbol ld option, if it does not
10701         # work, assume that -exports_file does not work either and
10702         # implicitly export all symbols.
10703         # This should be the same for all languages, so no per-tag cache variable.
10704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10705 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10706 if ${lt_cv_irix_exported_symbol+:} false; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   save_LDFLAGS="$LDFLAGS"
10710            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713 int foo (void) { return 0; }
10714 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
10716   lt_cv_irix_exported_symbol=yes
10717 else
10718   lt_cv_irix_exported_symbol=no
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext \
10721     conftest$ac_exeext conftest.$ac_ext
10722            LDFLAGS="$save_LDFLAGS"
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10725 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10726         if test "$lt_cv_irix_exported_symbol" = yes; then
10727           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'
10728         fi
10729       else
10730         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'
10731         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'
10732       fi
10733       archive_cmds_need_lc='no'
10734       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10735       hardcode_libdir_separator=:
10736       inherit_rpath=yes
10737       link_all_deplibs=yes
10738       ;;
10739
10740     netbsd* | netbsdelf*-gnu)
10741       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10742         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10743       else
10744         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10745       fi
10746       hardcode_libdir_flag_spec='-R$libdir'
10747       hardcode_direct=yes
10748       hardcode_shlibpath_var=no
10749       ;;
10750
10751     newsos6)
10752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10753       hardcode_direct=yes
10754       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755       hardcode_libdir_separator=:
10756       hardcode_shlibpath_var=no
10757       ;;
10758
10759     *nto* | *qnx*)
10760       ;;
10761
10762     openbsd*)
10763       if test -f /usr/libexec/ld.so; then
10764         hardcode_direct=yes
10765         hardcode_shlibpath_var=no
10766         hardcode_direct_absolute=yes
10767         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10768           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10769           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10770           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10771           export_dynamic_flag_spec='${wl}-E'
10772         else
10773           case $host_os in
10774            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10775              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10776              hardcode_libdir_flag_spec='-R$libdir'
10777              ;;
10778            *)
10779              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10781              ;;
10782           esac
10783         fi
10784       else
10785         ld_shlibs=no
10786       fi
10787       ;;
10788
10789     os2*)
10790       hardcode_libdir_flag_spec='-L$libdir'
10791       hardcode_minus_L=yes
10792       allow_undefined_flag=unsupported
10793       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'
10794       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10795       ;;
10796
10797     osf3*)
10798       if test "$GCC" = yes; then
10799         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10800         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'
10801       else
10802         allow_undefined_flag=' -expect_unresolved \*'
10803         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'
10804       fi
10805       archive_cmds_need_lc='no'
10806       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807       hardcode_libdir_separator=:
10808       ;;
10809
10810     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10811       if test "$GCC" = yes; then
10812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813         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'
10814         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10815       else
10816         allow_undefined_flag=' -expect_unresolved \*'
10817         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'
10818         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~
10819         $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'
10820
10821         # Both c and cxx compiler support -rpath directly
10822         hardcode_libdir_flag_spec='-rpath $libdir'
10823       fi
10824       archive_cmds_need_lc='no'
10825       hardcode_libdir_separator=:
10826       ;;
10827
10828     solaris*)
10829       no_undefined_flag=' -z defs'
10830       if test "$GCC" = yes; then
10831         wlarc='${wl}'
10832         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834           $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'
10835       else
10836         case `$CC -V 2>&1` in
10837         *"Compilers 5.0"*)
10838           wlarc=''
10839           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10842           ;;
10843         *)
10844           wlarc='${wl}'
10845           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10846           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10848           ;;
10849         esac
10850       fi
10851       hardcode_libdir_flag_spec='-R$libdir'
10852       hardcode_shlibpath_var=no
10853       case $host_os in
10854       solaris2.[0-5] | solaris2.[0-5].*) ;;
10855       *)
10856         # The compiler driver will combine and reorder linker options,
10857         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10858         # but is careful enough not to reorder.
10859         # Supported since Solaris 2.6 (maybe 2.5.1?)
10860         if test "$GCC" = yes; then
10861           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10862         else
10863           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10864         fi
10865         ;;
10866       esac
10867       link_all_deplibs=yes
10868       ;;
10869
10870     sunos4*)
10871       if test "x$host_vendor" = xsequent; then
10872         # Use $CC to link under sequent, because it throws in some extra .o
10873         # files that make .init and .fini sections work.
10874         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10875       else
10876         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10877       fi
10878       hardcode_libdir_flag_spec='-L$libdir'
10879       hardcode_direct=yes
10880       hardcode_minus_L=yes
10881       hardcode_shlibpath_var=no
10882       ;;
10883
10884     sysv4)
10885       case $host_vendor in
10886         sni)
10887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888           hardcode_direct=yes # is this really true???
10889         ;;
10890         siemens)
10891           ## LD is ld it makes a PLAMLIB
10892           ## CC just makes a GrossModule.
10893           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10894           reload_cmds='$CC -r -o $output$reload_objs'
10895           hardcode_direct=no
10896         ;;
10897         motorola)
10898           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10900         ;;
10901       esac
10902       runpath_var='LD_RUN_PATH'
10903       hardcode_shlibpath_var=no
10904       ;;
10905
10906     sysv4.3*)
10907       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908       hardcode_shlibpath_var=no
10909       export_dynamic_flag_spec='-Bexport'
10910       ;;
10911
10912     sysv4*MP*)
10913       if test -d /usr/nec; then
10914         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915         hardcode_shlibpath_var=no
10916         runpath_var=LD_RUN_PATH
10917         hardcode_runpath_var=yes
10918         ld_shlibs=yes
10919       fi
10920       ;;
10921
10922     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10923       no_undefined_flag='${wl}-z,text'
10924       archive_cmds_need_lc=no
10925       hardcode_shlibpath_var=no
10926       runpath_var='LD_RUN_PATH'
10927
10928       if test "$GCC" = yes; then
10929         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931       else
10932         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934       fi
10935       ;;
10936
10937     sysv5* | sco3.2v5* | sco5v6*)
10938       # Note: We can NOT use -z defs as we might desire, because we do not
10939       # link with -lc, and that would cause any symbols used from libc to
10940       # always be unresolved, which means just about no library would
10941       # ever link correctly.  If we're not using GNU ld we use -z text
10942       # though, which does catch some bad symbols but isn't as heavy-handed
10943       # as -z defs.
10944       no_undefined_flag='${wl}-z,text'
10945       allow_undefined_flag='${wl}-z,nodefs'
10946       archive_cmds_need_lc=no
10947       hardcode_shlibpath_var=no
10948       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10949       hardcode_libdir_separator=':'
10950       link_all_deplibs=yes
10951       export_dynamic_flag_spec='${wl}-Bexport'
10952       runpath_var='LD_RUN_PATH'
10953
10954       if test "$GCC" = yes; then
10955         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957       else
10958         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960       fi
10961       ;;
10962
10963     uts4*)
10964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965       hardcode_libdir_flag_spec='-L$libdir'
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     *)
10970       ld_shlibs=no
10971       ;;
10972     esac
10973
10974     if test x$host_vendor = xsni; then
10975       case $host in
10976       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10977         export_dynamic_flag_spec='${wl}-Blargedynsym'
10978         ;;
10979       esac
10980     fi
10981   fi
10982
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10984 $as_echo "$ld_shlibs" >&6; }
10985 test "$ld_shlibs" = no && can_build_shared=no
10986
10987 with_gnu_ld=$with_gnu_ld
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 #
11004 # Do we need to explicitly link libc?
11005 #
11006 case "x$archive_cmds_need_lc" in
11007 x|xyes)
11008   # Assume -lc should be added
11009   archive_cmds_need_lc=yes
11010
11011   if test "$enable_shared" = yes && test "$GCC" = yes; then
11012     case $archive_cmds in
11013     *'~'*)
11014       # FIXME: we may have to deal with multi-command sequences.
11015       ;;
11016     '$CC '*)
11017       # Test whether the compiler implicitly links with -lc since on some
11018       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11019       # to ld, don't add -lc before -lgcc.
11020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11022 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11023   $as_echo_n "(cached) " >&6
11024 else
11025   $RM conftest*
11026         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11027
11028         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11029   (eval $ac_compile) 2>&5
11030   ac_status=$?
11031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11032   test $ac_status = 0; } 2>conftest.err; then
11033           soname=conftest
11034           lib=conftest
11035           libobjs=conftest.$ac_objext
11036           deplibs=
11037           wl=$lt_prog_compiler_wl
11038           pic_flag=$lt_prog_compiler_pic
11039           compiler_flags=-v
11040           linker_flags=-v
11041           verstring=
11042           output_objdir=.
11043           libname=conftest
11044           lt_save_allow_undefined_flag=$allow_undefined_flag
11045           allow_undefined_flag=
11046           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11047   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11048   ac_status=$?
11049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050   test $ac_status = 0; }
11051           then
11052             lt_cv_archive_cmds_need_lc=no
11053           else
11054             lt_cv_archive_cmds_need_lc=yes
11055           fi
11056           allow_undefined_flag=$lt_save_allow_undefined_flag
11057         else
11058           cat conftest.err 1>&5
11059         fi
11060         $RM conftest*
11061
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11064 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11065       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11066       ;;
11067     esac
11068   fi
11069   ;;
11070 esac
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11224 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11225
11226 if test "$GCC" = yes; then
11227   case $host_os in
11228     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11229     *) lt_awk_arg="/^libraries:/" ;;
11230   esac
11231   case $host_os in
11232     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11233     *) lt_sed_strip_eq="s,=/,/,g" ;;
11234   esac
11235   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11236   case $lt_search_path_spec in
11237   *\;*)
11238     # if the path contains ";" then we assume it to be the separator
11239     # otherwise default to the standard path separator (i.e. ":") - it is
11240     # assumed that no part of a normal pathname contains ";" but that should
11241     # okay in the real world where ";" in dirpaths is itself problematic.
11242     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11243     ;;
11244   *)
11245     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11246     ;;
11247   esac
11248   # Ok, now we have the path, separated by spaces, we can step through it
11249   # and add multilib dir if necessary.
11250   lt_tmp_lt_search_path_spec=
11251   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11252   for lt_sys_path in $lt_search_path_spec; do
11253     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11254       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11255     else
11256       test -d "$lt_sys_path" && \
11257         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11258     fi
11259   done
11260   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11261 BEGIN {RS=" "; FS="/|\n";} {
11262   lt_foo="";
11263   lt_count=0;
11264   for (lt_i = NF; lt_i > 0; lt_i--) {
11265     if ($lt_i != "" && $lt_i != ".") {
11266       if ($lt_i == "..") {
11267         lt_count++;
11268       } else {
11269         if (lt_count == 0) {
11270           lt_foo="/" $lt_i lt_foo;
11271         } else {
11272           lt_count--;
11273         }
11274       }
11275     }
11276   }
11277   if (lt_foo != "") { lt_freq[lt_foo]++; }
11278   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11279 }'`
11280   # AWK program above erroneously prepends '/' to C:/dos/paths
11281   # for these hosts.
11282   case $host_os in
11283     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11284       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11285   esac
11286   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11287 else
11288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 fi
11290 library_names_spec=
11291 libname_spec='lib$name'
11292 soname_spec=
11293 shrext_cmds=".so"
11294 postinstall_cmds=
11295 postuninstall_cmds=
11296 finish_cmds=
11297 finish_eval=
11298 shlibpath_var=
11299 shlibpath_overrides_runpath=unknown
11300 version_type=none
11301 dynamic_linker="$host_os ld.so"
11302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11303 need_lib_prefix=unknown
11304 hardcode_into_libs=no
11305
11306 # when you set need_version to no, make sure it does not cause -set_version
11307 # flags to be left without arguments
11308 need_version=unknown
11309
11310 case $host_os in
11311 aix3*)
11312   version_type=linux # correct to gnu/linux during the next big refactor
11313   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11314   shlibpath_var=LIBPATH
11315
11316   # AIX 3 has no versioning support, so we append a major version to the name.
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   ;;
11319
11320 aix[4-9]*)
11321   version_type=linux # correct to gnu/linux during the next big refactor
11322   need_lib_prefix=no
11323   need_version=no
11324   hardcode_into_libs=yes
11325   if test "$host_cpu" = ia64; then
11326     # AIX 5 supports IA64
11327     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11328     shlibpath_var=LD_LIBRARY_PATH
11329   else
11330     # With GCC up to 2.95.x, collect2 would create an import file
11331     # for dependence libraries.  The import file would start with
11332     # the line `#! .'.  This would cause the generated library to
11333     # depend on `.', always an invalid library.  This was fixed in
11334     # development snapshots of GCC prior to 3.0.
11335     case $host_os in
11336       aix4 | aix4.[01] | aix4.[01].*)
11337       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338            echo ' yes '
11339            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11340         :
11341       else
11342         can_build_shared=no
11343       fi
11344       ;;
11345     esac
11346     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11347     # soname into executable. Probably we can add versioning support to
11348     # collect2, so additional links can be useful in future.
11349     if test "$aix_use_runtimelinking" = yes; then
11350       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11351       # instead of lib<name>.a to let people know that these are not
11352       # typical AIX shared libraries.
11353       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354     else
11355       # We preserve .a as extension for shared libraries through AIX4.2
11356       # and later when we are not doing run time linking.
11357       library_names_spec='${libname}${release}.a $libname.a'
11358       soname_spec='${libname}${release}${shared_ext}$major'
11359     fi
11360     shlibpath_var=LIBPATH
11361   fi
11362   ;;
11363
11364 amigaos*)
11365   case $host_cpu in
11366   powerpc)
11367     # Since July 2007 AmigaOS4 officially supports .so libraries.
11368     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370     ;;
11371   m68k)
11372     library_names_spec='$libname.ixlibrary $libname.a'
11373     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11374     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'
11375     ;;
11376   esac
11377   ;;
11378
11379 beos*)
11380   library_names_spec='${libname}${shared_ext}'
11381   dynamic_linker="$host_os ld.so"
11382   shlibpath_var=LIBRARY_PATH
11383   ;;
11384
11385 bsdi[45]*)
11386   version_type=linux # correct to gnu/linux during the next big refactor
11387   need_version=no
11388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389   soname_spec='${libname}${release}${shared_ext}$major'
11390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11391   shlibpath_var=LD_LIBRARY_PATH
11392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11394   # the default ld.so.conf also contains /usr/contrib/lib and
11395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11396   # libtool to hard-code these into programs
11397   ;;
11398
11399 cygwin* | mingw* | pw32* | cegcc*)
11400   version_type=windows
11401   shrext_cmds=".dll"
11402   need_version=no
11403   need_lib_prefix=no
11404
11405   case $GCC,$cc_basename in
11406   yes,*)
11407     # gcc
11408     library_names_spec='$libname.dll.a'
11409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410     postinstall_cmds='base_file=`basename \${file}`~
11411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412       dldir=$destdir/`dirname \$dlpath`~
11413       test -d \$dldir || mkdir -p \$dldir~
11414       $install_prog $dir/$dlname \$dldir/$dlname~
11415       chmod a+x \$dldir/$dlname~
11416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11418       fi'
11419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420       dlpath=$dir/\$dldll~
11421        $RM \$dlpath'
11422     shlibpath_overrides_runpath=yes
11423
11424     case $host_os in
11425     cygwin*)
11426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11428
11429       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11430       ;;
11431     mingw* | cegcc*)
11432       # MinGW DLLs use traditional 'lib' prefix
11433       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11434       ;;
11435     pw32*)
11436       # pw32 DLLs use 'pw' prefix rather than 'lib'
11437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11438       ;;
11439     esac
11440     dynamic_linker='Win32 ld.exe'
11441     ;;
11442
11443   *,cl*)
11444     # Native MSVC
11445     libname_spec='$name'
11446     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447     library_names_spec='${libname}.dll.lib'
11448
11449     case $build_os in
11450     mingw*)
11451       sys_lib_search_path_spec=
11452       lt_save_ifs=$IFS
11453       IFS=';'
11454       for lt_path in $LIB
11455       do
11456         IFS=$lt_save_ifs
11457         # Let DOS variable expansion print the short 8.3 style file name.
11458         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11459         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11460       done
11461       IFS=$lt_save_ifs
11462       # Convert to MSYS style.
11463       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11464       ;;
11465     cygwin*)
11466       # Convert to unix form, then to dos form, then back to unix form
11467       # but this time dos style (no spaces!) so that the unix form looks
11468       # like /cygdrive/c/PROGRA~1:/cygdr...
11469       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11470       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11471       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11472       ;;
11473     *)
11474       sys_lib_search_path_spec="$LIB"
11475       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11476         # It is most probably a Windows format PATH.
11477         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11478       else
11479         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11480       fi
11481       # FIXME: find the short name or the path components, as spaces are
11482       # common. (e.g. "Program Files" -> "PROGRA~1")
11483       ;;
11484     esac
11485
11486     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11487     postinstall_cmds='base_file=`basename \${file}`~
11488       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11489       dldir=$destdir/`dirname \$dlpath`~
11490       test -d \$dldir || mkdir -p \$dldir~
11491       $install_prog $dir/$dlname \$dldir/$dlname'
11492     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11493       dlpath=$dir/\$dldll~
11494        $RM \$dlpath'
11495     shlibpath_overrides_runpath=yes
11496     dynamic_linker='Win32 link.exe'
11497     ;;
11498
11499   *)
11500     # Assume MSVC wrapper
11501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11502     dynamic_linker='Win32 ld.exe'
11503     ;;
11504   esac
11505   # FIXME: first we should search . and the directory the executable is in
11506   shlibpath_var=PATH
11507   ;;
11508
11509 darwin* | rhapsody*)
11510   dynamic_linker="$host_os dyld"
11511   version_type=darwin
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515   soname_spec='${libname}${release}${major}$shared_ext'
11516   shlibpath_overrides_runpath=yes
11517   shlibpath_var=DYLD_LIBRARY_PATH
11518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11519
11520   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11522   ;;
11523
11524 dgux*)
11525   version_type=linux # correct to gnu/linux during the next big refactor
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   ;;
11532
11533 freebsd* | dragonfly*)
11534   # DragonFly does not have aout.  When/if they implement a new
11535   # versioning mechanism, adjust this.
11536   if test -x /usr/bin/objformat; then
11537     objformat=`/usr/bin/objformat`
11538   else
11539     case $host_os in
11540     freebsd[23].*) objformat=aout ;;
11541     *) objformat=elf ;;
11542     esac
11543   fi
11544   version_type=freebsd-$objformat
11545   case $version_type in
11546     freebsd-elf*)
11547       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11548       need_version=no
11549       need_lib_prefix=no
11550       ;;
11551     freebsd-*)
11552       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11553       need_version=yes
11554       ;;
11555   esac
11556   shlibpath_var=LD_LIBRARY_PATH
11557   case $host_os in
11558   freebsd2.*)
11559     shlibpath_overrides_runpath=yes
11560     ;;
11561   freebsd3.[01]* | freebsdelf3.[01]*)
11562     shlibpath_overrides_runpath=yes
11563     hardcode_into_libs=yes
11564     ;;
11565   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11566   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11567     shlibpath_overrides_runpath=no
11568     hardcode_into_libs=yes
11569     ;;
11570   *) # from 4.6 on, and DragonFly
11571     shlibpath_overrides_runpath=yes
11572     hardcode_into_libs=yes
11573     ;;
11574   esac
11575   ;;
11576
11577 haiku*)
11578   version_type=linux # correct to gnu/linux during the next big refactor
11579   need_lib_prefix=no
11580   need_version=no
11581   dynamic_linker="$host_os runtime_loader"
11582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11583   soname_spec='${libname}${release}${shared_ext}$major'
11584   shlibpath_var=LIBRARY_PATH
11585   shlibpath_overrides_runpath=yes
11586   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11587   hardcode_into_libs=yes
11588   ;;
11589
11590 hpux9* | hpux10* | hpux11*)
11591   # Give a soname corresponding to the major version so that dld.sl refuses to
11592   # link against other versions.
11593   version_type=sunos
11594   need_lib_prefix=no
11595   need_version=no
11596   case $host_cpu in
11597   ia64*)
11598     shrext_cmds='.so'
11599     hardcode_into_libs=yes
11600     dynamic_linker="$host_os dld.so"
11601     shlibpath_var=LD_LIBRARY_PATH
11602     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604     soname_spec='${libname}${release}${shared_ext}$major'
11605     if test "X$HPUX_IA64_MODE" = X32; then
11606       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11607     else
11608       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11609     fi
11610     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611     ;;
11612   hppa*64*)
11613     shrext_cmds='.sl'
11614     hardcode_into_libs=yes
11615     dynamic_linker="$host_os dld.sl"
11616     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619     soname_spec='${libname}${release}${shared_ext}$major'
11620     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11622     ;;
11623   *)
11624     shrext_cmds='.sl'
11625     dynamic_linker="$host_os dld.sl"
11626     shlibpath_var=SHLIB_PATH
11627     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629     soname_spec='${libname}${release}${shared_ext}$major'
11630     ;;
11631   esac
11632   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11633   postinstall_cmds='chmod 555 $lib'
11634   # or fails outright, so override atomically:
11635   install_override_mode=555
11636   ;;
11637
11638 interix[3-9]*)
11639   version_type=linux # correct to gnu/linux during the next big refactor
11640   need_lib_prefix=no
11641   need_version=no
11642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11643   soname_spec='${libname}${release}${shared_ext}$major'
11644   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   shlibpath_overrides_runpath=no
11647   hardcode_into_libs=yes
11648   ;;
11649
11650 irix5* | irix6* | nonstopux*)
11651   case $host_os in
11652     nonstopux*) version_type=nonstopux ;;
11653     *)
11654         if test "$lt_cv_prog_gnu_ld" = yes; then
11655                 version_type=linux # correct to gnu/linux during the next big refactor
11656         else
11657                 version_type=irix
11658         fi ;;
11659   esac
11660   need_lib_prefix=no
11661   need_version=no
11662   soname_spec='${libname}${release}${shared_ext}$major'
11663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11664   case $host_os in
11665   irix5* | nonstopux*)
11666     libsuff= shlibsuff=
11667     ;;
11668   *)
11669     case $LD in # libtool.m4 will add one of these switches to LD
11670     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11671       libsuff= shlibsuff= libmagic=32-bit;;
11672     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11673       libsuff=32 shlibsuff=N32 libmagic=N32;;
11674     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11675       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11676     *) libsuff= shlibsuff= libmagic=never-match;;
11677     esac
11678     ;;
11679   esac
11680   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11681   shlibpath_overrides_runpath=no
11682   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11683   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11684   hardcode_into_libs=yes
11685   ;;
11686
11687 # No shared lib support for Linux oldld, aout, or coff.
11688 linux*oldld* | linux*aout* | linux*coff*)
11689   dynamic_linker=no
11690   ;;
11691
11692 # This must be glibc/ELF.
11693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11694   version_type=linux # correct to gnu/linux during the next big refactor
11695   need_lib_prefix=no
11696   need_version=no
11697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698   soname_spec='${libname}${release}${shared_ext}$major'
11699   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11700   shlibpath_var=LD_LIBRARY_PATH
11701   shlibpath_overrides_runpath=no
11702
11703   # Some binutils ld are patched to set DT_RUNPATH
11704   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   lt_cv_shlibpath_overrides_runpath=no
11708     save_LDFLAGS=$LDFLAGS
11709     save_libdir=$libdir
11710     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11711          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h.  */
11714
11715 int
11716 main ()
11717 {
11718
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 if ac_fn_c_try_link "$LINENO"; then :
11724   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11725   lt_cv_shlibpath_overrides_runpath=yes
11726 fi
11727 fi
11728 rm -f core conftest.err conftest.$ac_objext \
11729     conftest$ac_exeext conftest.$ac_ext
11730     LDFLAGS=$save_LDFLAGS
11731     libdir=$save_libdir
11732
11733 fi
11734
11735   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11736
11737   # This implies no fast_install, which is unacceptable.
11738   # Some rework will be needed to allow for fast_install
11739   # before this can be enabled.
11740   hardcode_into_libs=yes
11741
11742   # Append ld.so.conf contents to the search path
11743   if test -f /etc/ld.so.conf; then
11744     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' ' '`
11745     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11746   fi
11747
11748   # We used to test for /lib/ld.so.1 and disable shared libraries on
11749   # powerpc, because MkLinux only supported shared libraries with the
11750   # GNU dynamic linker.  Since this was broken with cross compilers,
11751   # most powerpc-linux boxes support dynamic linking these days and
11752   # people can always --disable-shared, the test was removed, and we
11753   # assume the GNU/Linux dynamic linker is in use.
11754   dynamic_linker='GNU/Linux ld.so'
11755   ;;
11756
11757 netbsdelf*-gnu)
11758   version_type=linux
11759   need_lib_prefix=no
11760   need_version=no
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   shlibpath_overrides_runpath=no
11765   hardcode_into_libs=yes
11766   dynamic_linker='NetBSD ld.elf_so'
11767   ;;
11768
11769 netbsd*)
11770   version_type=sunos
11771   need_lib_prefix=no
11772   need_version=no
11773   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776     dynamic_linker='NetBSD (a.out) ld.so'
11777   else
11778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779     soname_spec='${libname}${release}${shared_ext}$major'
11780     dynamic_linker='NetBSD ld.elf_so'
11781   fi
11782   shlibpath_var=LD_LIBRARY_PATH
11783   shlibpath_overrides_runpath=yes
11784   hardcode_into_libs=yes
11785   ;;
11786
11787 newsos6)
11788   version_type=linux # correct to gnu/linux during the next big refactor
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790   shlibpath_var=LD_LIBRARY_PATH
11791   shlibpath_overrides_runpath=yes
11792   ;;
11793
11794 *nto* | *qnx*)
11795   version_type=qnx
11796   need_lib_prefix=no
11797   need_version=no
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799   soname_spec='${libname}${release}${shared_ext}$major'
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=no
11802   hardcode_into_libs=yes
11803   dynamic_linker='ldqnx.so'
11804   ;;
11805
11806 openbsd*)
11807   version_type=sunos
11808   sys_lib_dlsearch_path_spec="/usr/lib"
11809   need_lib_prefix=no
11810   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11811   case $host_os in
11812     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11813     *)                          need_version=no  ;;
11814   esac
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11816   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11819     case $host_os in
11820       openbsd2.[89] | openbsd2.[89].*)
11821         shlibpath_overrides_runpath=no
11822         ;;
11823       *)
11824         shlibpath_overrides_runpath=yes
11825         ;;
11826       esac
11827   else
11828     shlibpath_overrides_runpath=yes
11829   fi
11830   ;;
11831
11832 os2*)
11833   libname_spec='$name'
11834   shrext_cmds=".dll"
11835   need_lib_prefix=no
11836   library_names_spec='$libname${shared_ext} $libname.a'
11837   dynamic_linker='OS/2 ld.exe'
11838   shlibpath_var=LIBPATH
11839   ;;
11840
11841 osf3* | osf4* | osf5*)
11842   version_type=osf
11843   need_lib_prefix=no
11844   need_version=no
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847   shlibpath_var=LD_LIBRARY_PATH
11848   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11849   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11850   ;;
11851
11852 rdos*)
11853   dynamic_linker=no
11854   ;;
11855
11856 solaris*)
11857   version_type=linux # correct to gnu/linux during the next big refactor
11858   need_lib_prefix=no
11859   need_version=no
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   soname_spec='${libname}${release}${shared_ext}$major'
11862   shlibpath_var=LD_LIBRARY_PATH
11863   shlibpath_overrides_runpath=yes
11864   hardcode_into_libs=yes
11865   # ldd complains unless libraries are executable
11866   postinstall_cmds='chmod +x $lib'
11867   ;;
11868
11869 sunos4*)
11870   version_type=sunos
11871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11872   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11873   shlibpath_var=LD_LIBRARY_PATH
11874   shlibpath_overrides_runpath=yes
11875   if test "$with_gnu_ld" = yes; then
11876     need_lib_prefix=no
11877   fi
11878   need_version=yes
11879   ;;
11880
11881 sysv4 | sysv4.3*)
11882   version_type=linux # correct to gnu/linux during the next big refactor
11883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884   soname_spec='${libname}${release}${shared_ext}$major'
11885   shlibpath_var=LD_LIBRARY_PATH
11886   case $host_vendor in
11887     sni)
11888       shlibpath_overrides_runpath=no
11889       need_lib_prefix=no
11890       runpath_var=LD_RUN_PATH
11891       ;;
11892     siemens)
11893       need_lib_prefix=no
11894       ;;
11895     motorola)
11896       need_lib_prefix=no
11897       need_version=no
11898       shlibpath_overrides_runpath=no
11899       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11900       ;;
11901   esac
11902   ;;
11903
11904 sysv4*MP*)
11905   if test -d /usr/nec ;then
11906     version_type=linux # correct to gnu/linux during the next big refactor
11907     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11908     soname_spec='$libname${shared_ext}.$major'
11909     shlibpath_var=LD_LIBRARY_PATH
11910   fi
11911   ;;
11912
11913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11914   version_type=freebsd-elf
11915   need_lib_prefix=no
11916   need_version=no
11917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11918   soname_spec='${libname}${release}${shared_ext}$major'
11919   shlibpath_var=LD_LIBRARY_PATH
11920   shlibpath_overrides_runpath=yes
11921   hardcode_into_libs=yes
11922   if test "$with_gnu_ld" = yes; then
11923     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11924   else
11925     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11926     case $host_os in
11927       sco3.2v5*)
11928         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11929         ;;
11930     esac
11931   fi
11932   sys_lib_dlsearch_path_spec='/usr/lib'
11933   ;;
11934
11935 tpf*)
11936   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11937   version_type=linux # correct to gnu/linux during the next big refactor
11938   need_lib_prefix=no
11939   need_version=no
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   shlibpath_overrides_runpath=no
11943   hardcode_into_libs=yes
11944   ;;
11945
11946 uts4*)
11947   version_type=linux # correct to gnu/linux during the next big refactor
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   ;;
11952
11953 *)
11954   dynamic_linker=no
11955   ;;
11956 esac
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11958 $as_echo "$dynamic_linker" >&6; }
11959 test "$dynamic_linker" = no && can_build_shared=no
11960
11961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11962 if test "$GCC" = yes; then
11963   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11964 fi
11965
11966 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11967   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11968 fi
11969 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11970   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11971 fi
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12065 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12066 hardcode_action=
12067 if test -n "$hardcode_libdir_flag_spec" ||
12068    test -n "$runpath_var" ||
12069    test "X$hardcode_automatic" = "Xyes" ; then
12070
12071   # We can hardcode non-existent directories.
12072   if test "$hardcode_direct" != no &&
12073      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12074      # have to relink, otherwise we might link with an installed library
12075      # when we should be linking with a yet-to-be-installed one
12076      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12077      test "$hardcode_minus_L" != no; then
12078     # Linking always hardcodes the temporary library directory.
12079     hardcode_action=relink
12080   else
12081     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12082     hardcode_action=immediate
12083   fi
12084 else
12085   # We cannot hardcode anything, or else we can only hardcode existing
12086   # directories.
12087   hardcode_action=unsupported
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12090 $as_echo "$hardcode_action" >&6; }
12091
12092 if test "$hardcode_action" = relink ||
12093    test "$inherit_rpath" = yes; then
12094   # Fast installation is not supported
12095   enable_fast_install=no
12096 elif test "$shlibpath_overrides_runpath" = yes ||
12097      test "$enable_shared" = no; then
12098   # Fast installation is not necessary
12099   enable_fast_install=needless
12100 fi
12101
12102
12103
12104
12105
12106
12107   if test "x$enable_dlopen" != xyes; then
12108   enable_dlopen=unknown
12109   enable_dlopen_self=unknown
12110   enable_dlopen_self_static=unknown
12111 else
12112   lt_cv_dlopen=no
12113   lt_cv_dlopen_libs=
12114
12115   case $host_os in
12116   beos*)
12117     lt_cv_dlopen="load_add_on"
12118     lt_cv_dlopen_libs=
12119     lt_cv_dlopen_self=yes
12120     ;;
12121
12122   mingw* | pw32* | cegcc*)
12123     lt_cv_dlopen="LoadLibrary"
12124     lt_cv_dlopen_libs=
12125     ;;
12126
12127   cygwin*)
12128     lt_cv_dlopen="dlopen"
12129     lt_cv_dlopen_libs=
12130     ;;
12131
12132   darwin*)
12133   # if libdl is installed we need to link against it
12134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12135 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12136 if ${ac_cv_lib_dl_dlopen+:} false; then :
12137   $as_echo_n "(cached) " >&6
12138 else
12139   ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-ldl  $LIBS"
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h.  */
12143
12144 /* Override any GCC internal prototype to avoid an error.
12145    Use char because int might match the return type of a GCC
12146    builtin and then its argument prototype would still apply.  */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char dlopen ();
12151 int
12152 main ()
12153 {
12154 return dlopen ();
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160   ac_cv_lib_dl_dlopen=yes
12161 else
12162   ac_cv_lib_dl_dlopen=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165     conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12169 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12170 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12172 else
12173
12174     lt_cv_dlopen="dyld"
12175     lt_cv_dlopen_libs=
12176     lt_cv_dlopen_self=yes
12177
12178 fi
12179
12180     ;;
12181
12182   *)
12183     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12184 if test "x$ac_cv_func_shl_load" = xyes; then :
12185   lt_cv_dlopen="shl_load"
12186 else
12187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12188 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12189 if ${ac_cv_lib_dld_shl_load+:} false; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-ldld  $LIBS"
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h.  */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198    Use char because int might match the return type of a GCC
12199    builtin and then its argument prototype would still apply.  */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char shl_load ();
12204 int
12205 main ()
12206 {
12207 return shl_load ();
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_link "$LINENO"; then :
12213   ac_cv_lib_dld_shl_load=yes
12214 else
12215   ac_cv_lib_dld_shl_load=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext \
12218     conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12222 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12223 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12224   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12225 else
12226   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12227 if test "x$ac_cv_func_dlopen" = xyes; then :
12228   lt_cv_dlopen="dlopen"
12229 else
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12232 if ${ac_cv_lib_dl_dlopen+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ldl  $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h.  */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241    Use char because int might match the return type of a GCC
12242    builtin and then its argument prototype would still apply.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char dlopen ();
12247 int
12248 main ()
12249 {
12250 return dlopen ();
12251   ;
12252   return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256   ac_cv_lib_dl_dlopen=yes
12257 else
12258   ac_cv_lib_dl_dlopen=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261     conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12268 else
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12270 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12271 if ${ac_cv_lib_svld_dlopen+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lsvld  $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278
12279 /* Override any GCC internal prototype to avoid an error.
12280    Use char because int might match the return type of a GCC
12281    builtin and then its argument prototype would still apply.  */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char dlopen ();
12286 int
12287 main ()
12288 {
12289 return dlopen ();
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295   ac_cv_lib_svld_dlopen=yes
12296 else
12297   ac_cv_lib_svld_dlopen=no
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext \
12300     conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12304 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12305 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12306   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12307 else
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12309 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12310 if ${ac_cv_lib_dld_dld_link+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-ldld  $LIBS"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h.  */
12317
12318 /* Override any GCC internal prototype to avoid an error.
12319    Use char because int might match the return type of a GCC
12320    builtin and then its argument prototype would still apply.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char dld_link ();
12325 int
12326 main ()
12327 {
12328 return dld_link ();
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334   ac_cv_lib_dld_dld_link=yes
12335 else
12336   ac_cv_lib_dld_dld_link=no
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext \
12339     conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12343 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12344 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12345   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12346 fi
12347
12348
12349 fi
12350
12351
12352 fi
12353
12354
12355 fi
12356
12357
12358 fi
12359
12360
12361 fi
12362
12363     ;;
12364   esac
12365
12366   if test "x$lt_cv_dlopen" != xno; then
12367     enable_dlopen=yes
12368   else
12369     enable_dlopen=no
12370   fi
12371
12372   case $lt_cv_dlopen in
12373   dlopen)
12374     save_CPPFLAGS="$CPPFLAGS"
12375     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12376
12377     save_LDFLAGS="$LDFLAGS"
12378     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12379
12380     save_LIBS="$LIBS"
12381     LIBS="$lt_cv_dlopen_libs $LIBS"
12382
12383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12384 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12385 if ${lt_cv_dlopen_self+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388           if test "$cross_compiling" = yes; then :
12389   lt_cv_dlopen_self=cross
12390 else
12391   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392   lt_status=$lt_dlunknown
12393   cat > conftest.$ac_ext <<_LT_EOF
12394 #line $LINENO "configure"
12395 #include "confdefs.h"
12396
12397 #if HAVE_DLFCN_H
12398 #include <dlfcn.h>
12399 #endif
12400
12401 #include <stdio.h>
12402
12403 #ifdef RTLD_GLOBAL
12404 #  define LT_DLGLOBAL           RTLD_GLOBAL
12405 #else
12406 #  ifdef DL_GLOBAL
12407 #    define LT_DLGLOBAL         DL_GLOBAL
12408 #  else
12409 #    define LT_DLGLOBAL         0
12410 #  endif
12411 #endif
12412
12413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414    find out it does not work in some platform. */
12415 #ifndef LT_DLLAZY_OR_NOW
12416 #  ifdef RTLD_LAZY
12417 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12418 #  else
12419 #    ifdef DL_LAZY
12420 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12421 #    else
12422 #      ifdef RTLD_NOW
12423 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12424 #      else
12425 #        ifdef DL_NOW
12426 #          define LT_DLLAZY_OR_NOW      DL_NOW
12427 #        else
12428 #          define LT_DLLAZY_OR_NOW      0
12429 #        endif
12430 #      endif
12431 #    endif
12432 #  endif
12433 #endif
12434
12435 /* When -fvisbility=hidden is used, assume the code has been annotated
12436    correspondingly for the symbols needed.  */
12437 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12438 int fnord () __attribute__((visibility("default")));
12439 #endif
12440
12441 int fnord () { return 42; }
12442 int main ()
12443 {
12444   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445   int status = $lt_dlunknown;
12446
12447   if (self)
12448     {
12449       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12450       else
12451         {
12452           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12453           else puts (dlerror ());
12454         }
12455       /* dlclose (self); */
12456     }
12457   else
12458     puts (dlerror ());
12459
12460   return status;
12461 }
12462 _LT_EOF
12463   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12464   (eval $ac_link) 2>&5
12465   ac_status=$?
12466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12468     (./conftest; exit; ) >&5 2>/dev/null
12469     lt_status=$?
12470     case x$lt_status in
12471       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12472       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12473       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12474     esac
12475   else :
12476     # compilation failed
12477     lt_cv_dlopen_self=no
12478   fi
12479 fi
12480 rm -fr conftest*
12481
12482
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12485 $as_echo "$lt_cv_dlopen_self" >&6; }
12486
12487     if test "x$lt_cv_dlopen_self" = xyes; then
12488       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12489       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12490 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12491 if ${lt_cv_dlopen_self_static+:} false; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494           if test "$cross_compiling" = yes; then :
12495   lt_cv_dlopen_self_static=cross
12496 else
12497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498   lt_status=$lt_dlunknown
12499   cat > conftest.$ac_ext <<_LT_EOF
12500 #line $LINENO "configure"
12501 #include "confdefs.h"
12502
12503 #if HAVE_DLFCN_H
12504 #include <dlfcn.h>
12505 #endif
12506
12507 #include <stdio.h>
12508
12509 #ifdef RTLD_GLOBAL
12510 #  define LT_DLGLOBAL           RTLD_GLOBAL
12511 #else
12512 #  ifdef DL_GLOBAL
12513 #    define LT_DLGLOBAL         DL_GLOBAL
12514 #  else
12515 #    define LT_DLGLOBAL         0
12516 #  endif
12517 #endif
12518
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520    find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12522 #  ifdef RTLD_LAZY
12523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12524 #  else
12525 #    ifdef DL_LAZY
12526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12527 #    else
12528 #      ifdef RTLD_NOW
12529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12530 #      else
12531 #        ifdef DL_NOW
12532 #          define LT_DLLAZY_OR_NOW      DL_NOW
12533 #        else
12534 #          define LT_DLLAZY_OR_NOW      0
12535 #        endif
12536 #      endif
12537 #    endif
12538 #  endif
12539 #endif
12540
12541 /* When -fvisbility=hidden is used, assume the code has been annotated
12542    correspondingly for the symbols needed.  */
12543 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12544 int fnord () __attribute__((visibility("default")));
12545 #endif
12546
12547 int fnord () { return 42; }
12548 int main ()
12549 {
12550   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12551   int status = $lt_dlunknown;
12552
12553   if (self)
12554     {
12555       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12556       else
12557         {
12558           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12559           else puts (dlerror ());
12560         }
12561       /* dlclose (self); */
12562     }
12563   else
12564     puts (dlerror ());
12565
12566   return status;
12567 }
12568 _LT_EOF
12569   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12570   (eval $ac_link) 2>&5
12571   ac_status=$?
12572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12574     (./conftest; exit; ) >&5 2>/dev/null
12575     lt_status=$?
12576     case x$lt_status in
12577       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12578       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12579       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12580     esac
12581   else :
12582     # compilation failed
12583     lt_cv_dlopen_self_static=no
12584   fi
12585 fi
12586 rm -fr conftest*
12587
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12591 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12592     fi
12593
12594     CPPFLAGS="$save_CPPFLAGS"
12595     LDFLAGS="$save_LDFLAGS"
12596     LIBS="$save_LIBS"
12597     ;;
12598   esac
12599
12600   case $lt_cv_dlopen_self in
12601   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12602   *) enable_dlopen_self=unknown ;;
12603   esac
12604
12605   case $lt_cv_dlopen_self_static in
12606   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12607   *) enable_dlopen_self_static=unknown ;;
12608   esac
12609 fi
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627 striplib=
12628 old_striplib=
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12630 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12631 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12632   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12633   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12636 else
12637 # FIXME - insert some real tests, host_os isn't really good enough
12638   case $host_os in
12639   darwin*)
12640     if test -n "$STRIP" ; then
12641       striplib="$STRIP -x"
12642       old_striplib="$STRIP -S"
12643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644 $as_echo "yes" >&6; }
12645     else
12646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648     fi
12649     ;;
12650   *)
12651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653     ;;
12654   esac
12655 fi
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668   # Report which library types will actually be built
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12670 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12672 $as_echo "$can_build_shared" >&6; }
12673
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12675 $as_echo_n "checking whether to build shared libraries... " >&6; }
12676   test "$can_build_shared" = "no" && enable_shared=no
12677
12678   # On AIX, shared libraries and static libraries use the same namespace, and
12679   # are all built from PIC.
12680   case $host_os in
12681   aix3*)
12682     test "$enable_shared" = yes && enable_static=no
12683     if test -n "$RANLIB"; then
12684       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12685       postinstall_cmds='$RANLIB $lib'
12686     fi
12687     ;;
12688
12689   aix[4-9]*)
12690     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12691       test "$enable_shared" = yes && enable_static=no
12692     fi
12693     ;;
12694   esac
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12696 $as_echo "$enable_shared" >&6; }
12697
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12699 $as_echo_n "checking whether to build static libraries... " >&6; }
12700   # Make sure either enable_shared or enable_static is yes.
12701   test "$enable_shared" = yes || enable_static=yes
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12703 $as_echo "$enable_static" >&6; }
12704
12705
12706
12707
12708 fi
12709 ac_ext=c
12710 ac_cpp='$CPP $CPPFLAGS'
12711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714
12715 CC="$lt_save_CC"
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731         ac_config_commands="$ac_config_commands libtool"
12732
12733
12734
12735
12736 # Only expand once:
12737
12738
12739
12740 ac_config_headers="$ac_config_headers config.h"
12741
12742
12743
12744 # Check $PATH for the following programs and append suitable options.
12745 ac_ext=c
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750 if test -n "$ac_tool_prefix"; then
12751   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_prog_CC+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   if test -n "$CC"; then
12759   ac_cv_prog_CC="$CC" # Let the user override the test.
12760 else
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764   IFS=$as_save_IFS
12765   test -z "$as_dir" && as_dir=.
12766     for ac_exec_ext in '' $ac_executable_extensions; do
12767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12768     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770     break 2
12771   fi
12772 done
12773   done
12774 IFS=$as_save_IFS
12775
12776 fi
12777 fi
12778 CC=$ac_cv_prog_CC
12779 if test -n "$CC"; then
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12781 $as_echo "$CC" >&6; }
12782 else
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 fi
12786
12787
12788 fi
12789 if test -z "$ac_cv_prog_CC"; then
12790   ac_ct_CC=$CC
12791   # Extract the first word of "gcc", so it can be a program name with args.
12792 set dummy gcc; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12796   $as_echo_n "(cached) " >&6
12797 else
12798   if test -n "$ac_ct_CC"; then
12799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12800 else
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806     for ac_exec_ext in '' $ac_executable_extensions; do
12807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808     ac_cv_prog_ac_ct_CC="gcc"
12809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813   done
12814 IFS=$as_save_IFS
12815
12816 fi
12817 fi
12818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12819 if test -n "$ac_ct_CC"; then
12820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12821 $as_echo "$ac_ct_CC" >&6; }
12822 else
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12825 fi
12826
12827   if test "x$ac_ct_CC" = x; then
12828     CC=""
12829   else
12830     case $cross_compiling:$ac_tool_warned in
12831 yes:)
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12834 ac_tool_warned=yes ;;
12835 esac
12836     CC=$ac_ct_CC
12837   fi
12838 else
12839   CC="$ac_cv_prog_CC"
12840 fi
12841
12842 if test -z "$CC"; then
12843           if test -n "$ac_tool_prefix"; then
12844     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}cc; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_prog_CC+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   if test -n "$CC"; then
12852   ac_cv_prog_CC="$CC" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857   IFS=$as_save_IFS
12858   test -z "$as_dir" && as_dir=.
12859     for ac_exec_ext in '' $ac_executable_extensions; do
12860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861     ac_cv_prog_CC="${ac_tool_prefix}cc"
12862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863     break 2
12864   fi
12865 done
12866   done
12867 IFS=$as_save_IFS
12868
12869 fi
12870 fi
12871 CC=$ac_cv_prog_CC
12872 if test -n "$CC"; then
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12874 $as_echo "$CC" >&6; }
12875 else
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881   fi
12882 fi
12883 if test -z "$CC"; then
12884   # Extract the first word of "cc", so it can be a program name with args.
12885 set dummy cc; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_prog_CC+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891   if test -n "$CC"; then
12892   ac_cv_prog_CC="$CC" # Let the user override the test.
12893 else
12894   ac_prog_rejected=no
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898   IFS=$as_save_IFS
12899   test -z "$as_dir" && as_dir=.
12900     for ac_exec_ext in '' $ac_executable_extensions; do
12901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12903        ac_prog_rejected=yes
12904        continue
12905      fi
12906     ac_cv_prog_CC="cc"
12907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908     break 2
12909   fi
12910 done
12911   done
12912 IFS=$as_save_IFS
12913
12914 if test $ac_prog_rejected = yes; then
12915   # We found a bogon in the path, so make sure we never use it.
12916   set dummy $ac_cv_prog_CC
12917   shift
12918   if test $# != 0; then
12919     # We chose a different compiler from the bogus one.
12920     # However, it has the same basename, so the bogon will be chosen
12921     # first if we set CC to just the basename; use the full file name.
12922     shift
12923     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12924   fi
12925 fi
12926 fi
12927 fi
12928 CC=$ac_cv_prog_CC
12929 if test -n "$CC"; then
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12931 $as_echo "$CC" >&6; }
12932 else
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938 fi
12939 if test -z "$CC"; then
12940   if test -n "$ac_tool_prefix"; then
12941   for ac_prog in cl.exe
12942   do
12943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_prog_CC+:} false; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   if test -n "$CC"; then
12951   ac_cv_prog_CC="$CC" # Let the user override the test.
12952 else
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12955 do
12956   IFS=$as_save_IFS
12957   test -z "$as_dir" && as_dir=.
12958     for ac_exec_ext in '' $ac_executable_extensions; do
12959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12960     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962     break 2
12963   fi
12964 done
12965   done
12966 IFS=$as_save_IFS
12967
12968 fi
12969 fi
12970 CC=$ac_cv_prog_CC
12971 if test -n "$CC"; then
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12973 $as_echo "$CC" >&6; }
12974 else
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977 fi
12978
12979
12980     test -n "$CC" && break
12981   done
12982 fi
12983 if test -z "$CC"; then
12984   ac_ct_CC=$CC
12985   for ac_prog in cl.exe
12986 do
12987   # Extract the first word of "$ac_prog", so it can be a program name with args.
12988 set dummy $ac_prog; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994   if test -n "$ac_ct_CC"; then
12995   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002     for ac_exec_ext in '' $ac_executable_extensions; do
13003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004     ac_cv_prog_ac_ct_CC="$ac_prog"
13005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006     break 2
13007   fi
13008 done
13009   done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13015 if test -n "$ac_ct_CC"; then
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13017 $as_echo "$ac_ct_CC" >&6; }
13018 else
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022
13023
13024   test -n "$ac_ct_CC" && break
13025 done
13026
13027   if test "x$ac_ct_CC" = x; then
13028     CC=""
13029   else
13030     case $cross_compiling:$ac_tool_warned in
13031 yes:)
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13034 ac_tool_warned=yes ;;
13035 esac
13036     CC=$ac_ct_CC
13037   fi
13038 fi
13039
13040 fi
13041
13042
13043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13045 as_fn_error $? "no acceptable C compiler found in \$PATH
13046 See \`config.log' for more details" "$LINENO" 5; }
13047
13048 # Provide some information about the compiler.
13049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13050 set X $ac_compile
13051 ac_compiler=$2
13052 for ac_option in --version -v -V -qversion; do
13053   { { ac_try="$ac_compiler $ac_option >&5"
13054 case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13059 $as_echo "$ac_try_echo"; } >&5
13060   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13061   ac_status=$?
13062   if test -s conftest.err; then
13063     sed '10a\
13064 ... rest of stderr output deleted ...
13065          10q' conftest.err >conftest.er1
13066     cat conftest.er1 >&5
13067   fi
13068   rm -f conftest.er1 conftest.err
13069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070   test $ac_status = 0; }
13071 done
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13074 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13075 if ${ac_cv_c_compiler_gnu+:} false; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h.  */
13080
13081 int
13082 main ()
13083 {
13084 #ifndef __GNUC__
13085        choke me
13086 #endif
13087
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093   ac_compiler_gnu=yes
13094 else
13095   ac_compiler_gnu=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13099
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13102 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13103 if test $ac_compiler_gnu = yes; then
13104   GCC=yes
13105 else
13106   GCC=
13107 fi
13108 ac_test_CFLAGS=${CFLAGS+set}
13109 ac_save_CFLAGS=$CFLAGS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13111 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13112 if ${ac_cv_prog_cc_g+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   ac_save_c_werror_flag=$ac_c_werror_flag
13116    ac_c_werror_flag=yes
13117    ac_cv_prog_cc_g=no
13118    CFLAGS="-g"
13119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h.  */
13121
13122 int
13123 main ()
13124 {
13125
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131   ac_cv_prog_cc_g=yes
13132 else
13133   CFLAGS=""
13134       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h.  */
13136
13137 int
13138 main ()
13139 {
13140
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146
13147 else
13148   ac_c_werror_flag=$ac_save_c_werror_flag
13149          CFLAGS="-g"
13150          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h.  */
13152
13153 int
13154 main ()
13155 {
13156
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_compile "$LINENO"; then :
13162   ac_cv_prog_cc_g=yes
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169    ac_c_werror_flag=$ac_save_c_werror_flag
13170 fi
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13172 $as_echo "$ac_cv_prog_cc_g" >&6; }
13173 if test "$ac_test_CFLAGS" = set; then
13174   CFLAGS=$ac_save_CFLAGS
13175 elif test $ac_cv_prog_cc_g = yes; then
13176   if test "$GCC" = yes; then
13177     CFLAGS="-g -O2"
13178   else
13179     CFLAGS="-g"
13180   fi
13181 else
13182   if test "$GCC" = yes; then
13183     CFLAGS="-O2"
13184   else
13185     CFLAGS=
13186   fi
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13189 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13190 if ${ac_cv_prog_cc_c89+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193   ac_cv_prog_cc_c89=no
13194 ac_save_CC=$CC
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197 #include <stdarg.h>
13198 #include <stdio.h>
13199 struct stat;
13200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13201 struct buf { int x; };
13202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13203 static char *e (p, i)
13204      char **p;
13205      int i;
13206 {
13207   return p[i];
13208 }
13209 static char *f (char * (*g) (char **, int), char **p, ...)
13210 {
13211   char *s;
13212   va_list v;
13213   va_start (v,p);
13214   s = g (p, va_arg (v,int));
13215   va_end (v);
13216   return s;
13217 }
13218
13219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13220    function prototypes and stuff, but not '\xHH' hex character constants.
13221    These don't provoke an error unfortunately, instead are silently treated
13222    as 'x'.  The following induces an error, until -std is added to get
13223    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13224    array size at least.  It's necessary to write '\x00'==0 to get something
13225    that's true only with -std.  */
13226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13227
13228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13229    inside strings and character constants.  */
13230 #define FOO(x) 'x'
13231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13232
13233 int test (int i, double x);
13234 struct s1 {int (*f) (int a);};
13235 struct s2 {int (*f) (double a);};
13236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13237 int argc;
13238 char **argv;
13239 int
13240 main ()
13241 {
13242 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13248         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13249 do
13250   CC="$ac_save_CC $ac_arg"
13251   if ac_fn_c_try_compile "$LINENO"; then :
13252   ac_cv_prog_cc_c89=$ac_arg
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext
13255   test "x$ac_cv_prog_cc_c89" != "xno" && break
13256 done
13257 rm -f conftest.$ac_ext
13258 CC=$ac_save_CC
13259
13260 fi
13261 # AC_CACHE_VAL
13262 case "x$ac_cv_prog_cc_c89" in
13263   x)
13264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13265 $as_echo "none needed" >&6; } ;;
13266   xno)
13267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13268 $as_echo "unsupported" >&6; } ;;
13269   *)
13270     CC="$CC $ac_cv_prog_cc_c89"
13271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13272 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13273 esac
13274 if test "x$ac_cv_prog_cc_c89" != xno; then :
13275
13276 fi
13277
13278 ac_ext=c
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13283
13284 depcc="$CC"   am_compiler_list=
13285
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13287 $as_echo_n "checking dependency style of $depcc... " >&6; }
13288 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13289   $as_echo_n "(cached) " >&6
13290 else
13291   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13292   # We make a subdir and do the tests there.  Otherwise we can end up
13293   # making bogus files that we don't know about and never remove.  For
13294   # instance it was reported that on HP-UX the gcc test will end up
13295   # making a dummy file named 'D' -- because '-MD' means "put the output
13296   # in D".
13297   rm -rf conftest.dir
13298   mkdir conftest.dir
13299   # Copy depcomp to subdir because otherwise we won't find it if we're
13300   # using a relative directory.
13301   cp "$am_depcomp" conftest.dir
13302   cd conftest.dir
13303   # We will build objects and dependencies in a subdirectory because
13304   # it helps to detect inapplicable dependency modes.  For instance
13305   # both Tru64's cc and ICC support -MD to output dependencies as a
13306   # side effect of compilation, but ICC will put the dependencies in
13307   # the current directory while Tru64 will put them in the object
13308   # directory.
13309   mkdir sub
13310
13311   am_cv_CC_dependencies_compiler_type=none
13312   if test "$am_compiler_list" = ""; then
13313      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13314   fi
13315   am__universal=false
13316   case " $depcc " in #(
13317      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13318      esac
13319
13320   for depmode in $am_compiler_list; do
13321     # Setup a source with many dependencies, because some compilers
13322     # like to wrap large dependency lists on column 80 (with \), and
13323     # we should not choose a depcomp mode which is confused by this.
13324     #
13325     # We need to recreate these files for each test, as the compiler may
13326     # overwrite some of them when testing with obscure command lines.
13327     # This happens at least with the AIX C compiler.
13328     : > sub/conftest.c
13329     for i in 1 2 3 4 5 6; do
13330       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13331       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13332       # Solaris 10 /bin/sh.
13333       echo '/* dummy */' > sub/conftst$i.h
13334     done
13335     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13336
13337     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13338     # mode.  It turns out that the SunPro C++ compiler does not properly
13339     # handle '-M -o', and we need to detect this.  Also, some Intel
13340     # versions had trouble with output in subdirs.
13341     am__obj=sub/conftest.${OBJEXT-o}
13342     am__minus_obj="-o $am__obj"
13343     case $depmode in
13344     gcc)
13345       # This depmode causes a compiler race in universal mode.
13346       test "$am__universal" = false || continue
13347       ;;
13348     nosideeffect)
13349       # After this tag, mechanisms are not by side-effect, so they'll
13350       # only be used when explicitly requested.
13351       if test "x$enable_dependency_tracking" = xyes; then
13352         continue
13353       else
13354         break
13355       fi
13356       ;;
13357     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13358       # This compiler won't grok '-c -o', but also, the minuso test has
13359       # not run yet.  These depmodes are late enough in the game, and
13360       # so weak that their functioning should not be impacted.
13361       am__obj=conftest.${OBJEXT-o}
13362       am__minus_obj=
13363       ;;
13364     none) break ;;
13365     esac
13366     if depmode=$depmode \
13367        source=sub/conftest.c object=$am__obj \
13368        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13369        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13370          >/dev/null 2>conftest.err &&
13371        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13372        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13373        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13374        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13375       # icc doesn't choke on unknown options, it will just issue warnings
13376       # or remarks (even with -Werror).  So we grep stderr for any message
13377       # that says an option was ignored or not supported.
13378       # When given -MP, icc 7.0 and 7.1 complain thusly:
13379       #   icc: Command line warning: ignoring option '-M'; no argument required
13380       # The diagnosis changed in icc 8.0:
13381       #   icc: Command line remark: option '-MP' not supported
13382       if (grep 'ignoring option' conftest.err ||
13383           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13384         am_cv_CC_dependencies_compiler_type=$depmode
13385         break
13386       fi
13387     fi
13388   done
13389
13390   cd ..
13391   rm -rf conftest.dir
13392 else
13393   am_cv_CC_dependencies_compiler_type=none
13394 fi
13395
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13400
13401  if
13402   test "x$enable_dependency_tracking" != xno \
13403   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13404   am__fastdepCC_TRUE=
13405   am__fastdepCC_FALSE='#'
13406 else
13407   am__fastdepCC_TRUE='#'
13408   am__fastdepCC_FALSE=
13409 fi
13410
13411
13412
13413
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13415 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13416 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13417   $as_echo_n "(cached) " >&6
13418 else
13419
13420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h.  */
13422
13423 #ifdef __ACK__
13424 Amsterdam
13425 #endif
13426
13427 _ACEOF
13428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13429   $EGREP "Amsterdam" >/dev/null 2>&1; then :
13430   gl_cv_c_amsterdam_compiler=yes
13431 else
13432   gl_cv_c_amsterdam_compiler=no
13433 fi
13434 rm -f conftest*
13435
13436
13437 fi
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13439 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13440   if test -z "$AR"; then
13441     if test $gl_cv_c_amsterdam_compiler = yes; then
13442       AR='cc -c.a'
13443       if test -z "$ARFLAGS"; then
13444         ARFLAGS='-o'
13445       fi
13446     else
13447                   if test -n "$ac_tool_prefix"; then
13448   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13449 set dummy ${ac_tool_prefix}ar; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if ${ac_cv_prog_AR+:} false; then :
13453   $as_echo_n "(cached) " >&6
13454 else
13455   if test -n "$AR"; then
13456   ac_cv_prog_AR="$AR" # Let the user override the test.
13457 else
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13460 do
13461   IFS=$as_save_IFS
13462   test -z "$as_dir" && as_dir=.
13463     for ac_exec_ext in '' $ac_executable_extensions; do
13464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465     ac_cv_prog_AR="${ac_tool_prefix}ar"
13466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467     break 2
13468   fi
13469 done
13470   done
13471 IFS=$as_save_IFS
13472
13473 fi
13474 fi
13475 AR=$ac_cv_prog_AR
13476 if test -n "$AR"; then
13477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13478 $as_echo "$AR" >&6; }
13479 else
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482 fi
13483
13484
13485 fi
13486 if test -z "$ac_cv_prog_AR"; then
13487   ac_ct_AR=$AR
13488   # Extract the first word of "ar", so it can be a program name with args.
13489 set dummy ar; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495   if test -n "$ac_ct_AR"; then
13496   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13500 do
13501   IFS=$as_save_IFS
13502   test -z "$as_dir" && as_dir=.
13503     for ac_exec_ext in '' $ac_executable_extensions; do
13504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505     ac_cv_prog_ac_ct_AR="ar"
13506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507     break 2
13508   fi
13509 done
13510   done
13511 IFS=$as_save_IFS
13512
13513 fi
13514 fi
13515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13516 if test -n "$ac_ct_AR"; then
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13518 $as_echo "$ac_ct_AR" >&6; }
13519 else
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523
13524   if test "x$ac_ct_AR" = x; then
13525     AR="ar"
13526   else
13527     case $cross_compiling:$ac_tool_warned in
13528 yes:)
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531 ac_tool_warned=yes ;;
13532 esac
13533     AR=$ac_ct_AR
13534   fi
13535 else
13536   AR="$ac_cv_prog_AR"
13537 fi
13538
13539       if test -z "$ARFLAGS"; then
13540         ARFLAGS='cru'
13541       fi
13542     fi
13543   else
13544     if test -z "$ARFLAGS"; then
13545       ARFLAGS='cru'
13546     fi
13547   fi
13548
13549
13550   if test -z "$RANLIB"; then
13551     if test $gl_cv_c_amsterdam_compiler = yes; then
13552       RANLIB=':'
13553     else
13554             if test -n "$ac_tool_prefix"; then
13555   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_prog_RANLIB+:} false; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562   if test -n "$RANLIB"; then
13563   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568   IFS=$as_save_IFS
13569   test -z "$as_dir" && as_dir=.
13570     for ac_exec_ext in '' $ac_executable_extensions; do
13571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574     break 2
13575   fi
13576 done
13577   done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 RANLIB=$ac_cv_prog_RANLIB
13583 if test -n "$RANLIB"; then
13584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13585 $as_echo "$RANLIB" >&6; }
13586 else
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591
13592 fi
13593 if test -z "$ac_cv_prog_RANLIB"; then
13594   ac_ct_RANLIB=$RANLIB
13595   # Extract the first word of "ranlib", so it can be a program name with args.
13596 set dummy ranlib; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602   if test -n "$ac_ct_RANLIB"; then
13603   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13604 else
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13607 do
13608   IFS=$as_save_IFS
13609   test -z "$as_dir" && as_dir=.
13610     for ac_exec_ext in '' $ac_executable_extensions; do
13611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13612     ac_cv_prog_ac_ct_RANLIB="ranlib"
13613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614     break 2
13615   fi
13616 done
13617   done
13618 IFS=$as_save_IFS
13619
13620 fi
13621 fi
13622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13623 if test -n "$ac_ct_RANLIB"; then
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13625 $as_echo "$ac_ct_RANLIB" >&6; }
13626 else
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13629 fi
13630
13631   if test "x$ac_ct_RANLIB" = x; then
13632     RANLIB=":"
13633   else
13634     case $cross_compiling:$ac_tool_warned in
13635 yes:)
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13638 ac_tool_warned=yes ;;
13639 esac
13640     RANLIB=$ac_ct_RANLIB
13641   fi
13642 else
13643   RANLIB="$ac_cv_prog_RANLIB"
13644 fi
13645
13646     fi
13647   fi
13648
13649
13650 if test "x$CC" != xcc; then
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13652 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13653 else
13654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13655 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13656 fi
13657 set dummy $CC; ac_cc=`$as_echo "$2" |
13658                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13659 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13660   $as_echo_n "(cached) " >&6
13661 else
13662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h.  */
13664
13665 int
13666 main ()
13667 {
13668
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 # Make sure it works both with $CC and with simple cc.
13674 # We do the test twice because some compilers refuse to overwrite an
13675 # existing .o file with -o, though they will create one.
13676 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13677 rm -f conftest2.*
13678 if { { case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13683 $as_echo "$ac_try_echo"; } >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687   test $ac_status = 0; } &&
13688    test -f conftest2.$ac_objext && { { case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13693 $as_echo "$ac_try_echo"; } >&5
13694   (eval "$ac_try") 2>&5
13695   ac_status=$?
13696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697   test $ac_status = 0; };
13698 then
13699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13700   if test "x$CC" != xcc; then
13701     # Test first that cc exists at all.
13702     if { ac_try='cc -c conftest.$ac_ext >&5'
13703   { { case "(($ac_try" in
13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705   *) ac_try_echo=$ac_try;;
13706 esac
13707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13708 $as_echo "$ac_try_echo"; } >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712   test $ac_status = 0; }; }; then
13713       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13714       rm -f conftest2.*
13715       if { { case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13720 $as_echo "$ac_try_echo"; } >&5
13721   (eval "$ac_try") 2>&5
13722   ac_status=$?
13723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13724   test $ac_status = 0; } &&
13725          test -f conftest2.$ac_objext && { { case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13730 $as_echo "$ac_try_echo"; } >&5
13731   (eval "$ac_try") 2>&5
13732   ac_status=$?
13733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734   test $ac_status = 0; };
13735       then
13736         # cc works too.
13737         :
13738       else
13739         # cc exists but doesn't like -o.
13740         eval ac_cv_prog_cc_${ac_cc}_c_o=no
13741       fi
13742     fi
13743   fi
13744 else
13745   eval ac_cv_prog_cc_${ac_cc}_c_o=no
13746 fi
13747 rm -f core conftest*
13748
13749 fi
13750 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 else
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756
13757 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13758
13759 fi
13760
13761 # FIXME: we rely on the cache variable name because
13762 # there is no other way.
13763 set dummy $CC
13764 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13765 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13766 if test "$am_t" != yes; then
13767    # Losing compiler, so override with the script.
13768    # FIXME: It is wrong to rewrite CC.
13769    # But if we don't then we get into trouble of one sort or another.
13770    # A longer-term fix would be to have automake use am__CC in this case,
13771    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13772    CC="$am_aux_dir/compile $CC"
13773 fi
13774
13775
13776
13777
13778
13779
13780
13781    case $ac_cv_prog_cc_stdc in #(
13782   no) :
13783     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
13784   *) :
13785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13786 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13787 if ${ac_cv_prog_cc_c99+:} false; then :
13788   $as_echo_n "(cached) " >&6
13789 else
13790   ac_cv_prog_cc_c99=no
13791 ac_save_CC=$CC
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h.  */
13794 #include <stdarg.h>
13795 #include <stdbool.h>
13796 #include <stdlib.h>
13797 #include <wchar.h>
13798 #include <stdio.h>
13799
13800 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
13801 #define debug(...) fprintf (stderr, __VA_ARGS__)
13802 #define showlist(...) puts (#__VA_ARGS__)
13803 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13804 static void
13805 test_varargs_macros (void)
13806 {
13807   int x = 1234;
13808   int y = 5678;
13809   debug ("Flag");
13810   debug ("X = %d\n", x);
13811   showlist (The first, second, and third items.);
13812   report (x>y, "x is %d but y is %d", x, y);
13813 }
13814
13815 // Check long long types.
13816 #define BIG64 18446744073709551615ull
13817 #define BIG32 4294967295ul
13818 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13819 #if !BIG_OK
13820   your preprocessor is broken;
13821 #endif
13822 #if BIG_OK
13823 #else
13824   your preprocessor is broken;
13825 #endif
13826 static long long int bignum = -9223372036854775807LL;
13827 static unsigned long long int ubignum = BIG64;
13828
13829 struct incomplete_array
13830 {
13831   int datasize;
13832   double data[];
13833 };
13834
13835 struct named_init {
13836   int number;
13837   const wchar_t *name;
13838   double average;
13839 };
13840
13841 typedef const char *ccp;
13842
13843 static inline int
13844 test_restrict (ccp restrict text)
13845 {
13846   // See if C++-style comments work.
13847   // Iterate through items via the restricted pointer.
13848   // Also check for declarations in for loops.
13849   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13850     continue;
13851   return 0;
13852 }
13853
13854 // Check varargs and va_copy.
13855 static void
13856 test_varargs (const char *format, ...)
13857 {
13858   va_list args;
13859   va_start (args, format);
13860   va_list args_copy;
13861   va_copy (args_copy, args);
13862
13863   const char *str;
13864   int number;
13865   float fnumber;
13866
13867   while (*format)
13868     {
13869       switch (*format++)
13870         {
13871         case 's': // string
13872           str = va_arg (args_copy, const char *);
13873           break;
13874         case 'd': // int
13875           number = va_arg (args_copy, int);
13876           break;
13877         case 'f': // float
13878           fnumber = va_arg (args_copy, double);
13879           break;
13880         default:
13881           break;
13882         }
13883     }
13884   va_end (args_copy);
13885   va_end (args);
13886 }
13887
13888 int
13889 main ()
13890 {
13891
13892   // Check bool.
13893   _Bool success = false;
13894
13895   // Check restrict.
13896   if (test_restrict ("String literal") == 0)
13897     success = true;
13898   char *restrict newvar = "Another string";
13899
13900   // Check varargs.
13901   test_varargs ("s, d' f .", "string", 65, 34.234);
13902   test_varargs_macros ();
13903
13904   // Check flexible array members.
13905   struct incomplete_array *ia =
13906     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13907   ia->datasize = 10;
13908   for (int i = 0; i < ia->datasize; ++i)
13909     ia->data[i] = i * 1.234;
13910
13911   // Check named initializers.
13912   struct named_init ni = {
13913     .number = 34,
13914     .name = L"Test wide string",
13915     .average = 543.34343,
13916   };
13917
13918   ni.number = 58;
13919
13920   int dynamic_array[ni.number];
13921   dynamic_array[ni.number - 1] = 543;
13922
13923   // work around unused variable warnings
13924   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13925           || dynamic_array[ni.number - 1] != 543);
13926
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13932 do
13933   CC="$ac_save_CC $ac_arg"
13934   if ac_fn_c_try_compile "$LINENO"; then :
13935   ac_cv_prog_cc_c99=$ac_arg
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext
13938   test "x$ac_cv_prog_cc_c99" != "xno" && break
13939 done
13940 rm -f conftest.$ac_ext
13941 CC=$ac_save_CC
13942
13943 fi
13944 # AC_CACHE_VAL
13945 case "x$ac_cv_prog_cc_c99" in
13946   x)
13947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13948 $as_echo "none needed" >&6; } ;;
13949   xno)
13950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13951 $as_echo "unsupported" >&6; } ;;
13952   *)
13953     CC="$CC $ac_cv_prog_cc_c99"
13954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13955 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13956 esac
13957 if test "x$ac_cv_prog_cc_c99" != xno; then :
13958   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13959 else
13960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13962 if ${ac_cv_prog_cc_c89+:} false; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   ac_cv_prog_cc_c89=no
13966 ac_save_CC=$CC
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h.  */
13969 #include <stdarg.h>
13970 #include <stdio.h>
13971 struct stat;
13972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13973 struct buf { int x; };
13974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13975 static char *e (p, i)
13976      char **p;
13977      int i;
13978 {
13979   return p[i];
13980 }
13981 static char *f (char * (*g) (char **, int), char **p, ...)
13982 {
13983   char *s;
13984   va_list v;
13985   va_start (v,p);
13986   s = g (p, va_arg (v,int));
13987   va_end (v);
13988   return s;
13989 }
13990
13991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13992    function prototypes and stuff, but not '\xHH' hex character constants.
13993    These don't provoke an error unfortunately, instead are silently treated
13994    as 'x'.  The following induces an error, until -std is added to get
13995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13996    array size at least.  It's necessary to write '\x00'==0 to get something
13997    that's true only with -std.  */
13998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13999
14000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14001    inside strings and character constants.  */
14002 #define FOO(x) 'x'
14003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14004
14005 int test (int i, double x);
14006 struct s1 {int (*f) (int a);};
14007 struct s2 {int (*f) (double a);};
14008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14009 int argc;
14010 char **argv;
14011 int
14012 main ()
14013 {
14014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14021 do
14022   CC="$ac_save_CC $ac_arg"
14023   if ac_fn_c_try_compile "$LINENO"; then :
14024   ac_cv_prog_cc_c89=$ac_arg
14025 fi
14026 rm -f core conftest.err conftest.$ac_objext
14027   test "x$ac_cv_prog_cc_c89" != "xno" && break
14028 done
14029 rm -f conftest.$ac_ext
14030 CC=$ac_save_CC
14031
14032 fi
14033 # AC_CACHE_VAL
14034 case "x$ac_cv_prog_cc_c89" in
14035   x)
14036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14037 $as_echo "none needed" >&6; } ;;
14038   xno)
14039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14040 $as_echo "unsupported" >&6; } ;;
14041   *)
14042     CC="$CC $ac_cv_prog_cc_c89"
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14045 esac
14046 if test "x$ac_cv_prog_cc_c89" != xno; then :
14047   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14048 else
14049   ac_cv_prog_cc_stdc=no
14050 fi
14051
14052 fi
14053  ;;
14054 esac
14055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14056 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14057   if ${ac_cv_prog_cc_stdc+:} false; then :
14058   $as_echo_n "(cached) " >&6
14059 fi
14060
14061   case $ac_cv_prog_cc_stdc in #(
14062   no) :
14063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14064 $as_echo "unsupported" >&6; } ;; #(
14065   '') :
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14067 $as_echo "none needed" >&6; } ;; #(
14068   *) :
14069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14070 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14071 esac
14072
14073
14074
14075
14076
14077
14078   # Check whether --enable-threads was given.
14079 if test "${enable_threads+set}" = set; then :
14080   enableval=$enable_threads; gl_use_threads=$enableval
14081 else
14082   if test -n "$gl_use_threads_default"; then
14083        gl_use_threads="$gl_use_threads_default"
14084      else
14085        case "$host_os" in
14086                                                                osf*) gl_use_threads=no ;;
14087          cygwin*)
14088                case `uname -r` in
14089                  1.[0-5].*) gl_use_threads=no ;;
14090                  *)         gl_use_threads=yes ;;
14091                esac
14092                ;;
14093          *)    gl_use_threads=yes ;;
14094        esac
14095      fi
14096
14097 fi
14098
14099   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14100     # For using <pthread.h>:
14101     case "$host_os" in
14102       osf*)
14103         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14104         # groks <pthread.h>. cc also understands the flag -pthread, but
14105         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14106         # 2. putting a flag into CPPFLAGS that has an effect on the linker
14107         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14108         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14109         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14110         ;;
14111     esac
14112     # Some systems optimize for single-threaded programs by default, and
14113     # need special flags to disable these optimizations. For example, the
14114     # definition of 'errno' in <errno.h>.
14115     case "$host_os" in
14116       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14117       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14118     esac
14119   fi
14120
14121
14122
14123
14124   # Code from module alloca-opt:
14125   # Code from module dirname:
14126   # Code from module dirname-lgpl:
14127   # Code from module dosname:
14128   # Code from module double-slash-root:
14129   # Code from module environ:
14130   # Code from module errno:
14131   # Code from module error:
14132   # Code from module exitfail:
14133   # Code from module extensions:
14134
14135   # Code from module extern-inline:
14136   # Code from module float:
14137   # Code from module full-write:
14138   # Code from module gettext-h:
14139   # Code from module havelib:
14140   # Code from module include_next:
14141   # Code from module intprops:
14142   # Code from module lib-ignore:
14143   # Code from module lock:
14144   # Code from module malloc-posix:
14145   # Code from module malloca:
14146   # Code from module memchr:
14147   # Code from module msvc-inval:
14148   # Code from module msvc-nothrow:
14149   # Code from module multiarch:
14150   # Code from module raise:
14151   # Code from module read:
14152   # Code from module safe-read:
14153   # Code from module safe-write:
14154   # Code from module setenv:
14155   # Code from module sigaction:
14156   # Code from module signal:
14157   # Code from module signal-h:
14158   # Code from module sigprocmask:
14159   # Code from module size_max:
14160   # Code from module snippet/_Noreturn:
14161   # Code from module snippet/arg-nonnull:
14162   # Code from module snippet/c++defs:
14163   # Code from module snippet/warn-on-use:
14164   # Code from module snprintf:
14165   # Code from module ssize_t:
14166   # Code from module stdarg:
14167
14168
14169
14170   # Code from module stdbool:
14171   # Code from module stddef:
14172   # Code from module stdint:
14173   # Code from module stdio:
14174   # Code from module stdlib:
14175   # Code from module strerror:
14176   # Code from module strerror-override:
14177   # Code from module string:
14178   # Code from module strndup:
14179   # Code from module strnlen:
14180   # Code from module strsignal:
14181   # Code from module sys_select:
14182   # Code from module sys_stat:
14183   # Code from module sys_time:
14184   # Code from module sys_types:
14185   # Code from module sys_wait:
14186   # Code from module threadlib:
14187
14188
14189
14190   # Code from module time:
14191   # Code from module tls:
14192   # Code from module unistd:
14193   # Code from module unsetenv:
14194   # Code from module vasnprintf:
14195   # Code from module vasprintf:
14196   # Code from module verify:
14197   # Code from module waitpid:
14198   # Code from module warnings:
14199   # Code from module wchar:
14200   # Code from module write:
14201   # Code from module xalloc:
14202   # Code from module xalloc-die:
14203   # Code from module xalloc-oversized:
14204   # Code from module xsize:
14205   # Code from module xstrndup:
14206   # Code from module xvasprintf:
14207
14208 ac_ext=c
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14215 # On Suns, sometimes $CPP names a directory.
14216 if test -n "$CPP" && test -d "$CPP"; then
14217   CPP=
14218 fi
14219 if test -z "$CPP"; then
14220   if ${ac_cv_prog_CPP+:} false; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223       # Double quotes because CPP needs to be expanded
14224     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14225     do
14226       ac_preproc_ok=false
14227 for ac_c_preproc_warn_flag in '' yes
14228 do
14229   # Use a header file that comes with gcc, so configuring glibc
14230   # with a fresh cross-compiler works.
14231   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232   # <limits.h> exists even on freestanding compilers.
14233   # On the NeXT, cc -E runs the code through the compiler's parser,
14234   # not just through cpp. "Syntax error" is here to catch this case.
14235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h.  */
14237 #ifdef __STDC__
14238 # include <limits.h>
14239 #else
14240 # include <assert.h>
14241 #endif
14242                      Syntax error
14243 _ACEOF
14244 if ac_fn_c_try_cpp "$LINENO"; then :
14245
14246 else
14247   # Broken: fails on valid input.
14248 continue
14249 fi
14250 rm -f conftest.err conftest.i conftest.$ac_ext
14251
14252   # OK, works on sane cases.  Now check whether nonexistent headers
14253   # can be detected and how.
14254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h.  */
14256 #include <ac_nonexistent.h>
14257 _ACEOF
14258 if ac_fn_c_try_cpp "$LINENO"; then :
14259   # Broken: success on invalid input.
14260 continue
14261 else
14262   # Passes both tests.
14263 ac_preproc_ok=:
14264 break
14265 fi
14266 rm -f conftest.err conftest.i conftest.$ac_ext
14267
14268 done
14269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14270 rm -f conftest.i conftest.err conftest.$ac_ext
14271 if $ac_preproc_ok; then :
14272   break
14273 fi
14274
14275     done
14276     ac_cv_prog_CPP=$CPP
14277
14278 fi
14279   CPP=$ac_cv_prog_CPP
14280 else
14281   ac_cv_prog_CPP=$CPP
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14284 $as_echo "$CPP" >&6; }
14285 ac_preproc_ok=false
14286 for ac_c_preproc_warn_flag in '' yes
14287 do
14288   # Use a header file that comes with gcc, so configuring glibc
14289   # with a fresh cross-compiler works.
14290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14291   # <limits.h> exists even on freestanding compilers.
14292   # On the NeXT, cc -E runs the code through the compiler's parser,
14293   # not just through cpp. "Syntax error" is here to catch this case.
14294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h.  */
14296 #ifdef __STDC__
14297 # include <limits.h>
14298 #else
14299 # include <assert.h>
14300 #endif
14301                      Syntax error
14302 _ACEOF
14303 if ac_fn_c_try_cpp "$LINENO"; then :
14304
14305 else
14306   # Broken: fails on valid input.
14307 continue
14308 fi
14309 rm -f conftest.err conftest.i conftest.$ac_ext
14310
14311   # OK, works on sane cases.  Now check whether nonexistent headers
14312   # can be detected and how.
14313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h.  */
14315 #include <ac_nonexistent.h>
14316 _ACEOF
14317 if ac_fn_c_try_cpp "$LINENO"; then :
14318   # Broken: success on invalid input.
14319 continue
14320 else
14321   # Passes both tests.
14322 ac_preproc_ok=:
14323 break
14324 fi
14325 rm -f conftest.err conftest.i conftest.$ac_ext
14326
14327 done
14328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14329 rm -f conftest.i conftest.err conftest.$ac_ext
14330 if $ac_preproc_ok; then :
14331
14332 else
14333   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14336 See \`config.log' for more details" "$LINENO" 5; }
14337 fi
14338
14339 ac_ext=c
14340 ac_cpp='$CPP $CPPFLAGS'
14341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14344
14345 CFLAGS="$CFLAGS -Wall"
14346 if test "$GCC" = yes
14347 then
14348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14349 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14350 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353
14354   gl_save_compiler_FLAGS="$CFLAGS"
14355   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h.  */
14358
14359 int
14360 main ()
14361 {
14362
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14369 else
14370   gl_cv_warn_c__Werror__Wunknown_warning_option=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373   CFLAGS="$gl_save_compiler_FLAGS"
14374
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14377 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14378 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14379   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14380 else
14381   gl_unknown_warnings_are_errors=
14382 fi
14383
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14386 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14387 if ${gl_cv_warn_c__W+:} false; then :
14388   $as_echo_n "(cached) " >&6
14389 else
14390
14391   gl_save_compiler_FLAGS="$CFLAGS"
14392   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h.  */
14395
14396 int
14397 main ()
14398 {
14399
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405   gl_cv_warn_c__W=yes
14406 else
14407   gl_cv_warn_c__W=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410   CFLAGS="$gl_save_compiler_FLAGS"
14411
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14414 $as_echo "$gl_cv_warn_c__W" >&6; }
14415 if test "x$gl_cv_warn_c__W" = xyes; then :
14416   as_fn_append WARN_CFLAGS " -W"
14417 fi
14418
14419
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14422 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14423 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14424   $as_echo_n "(cached) " >&6
14425 else
14426
14427   gl_save_compiler_FLAGS="$CFLAGS"
14428   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431
14432 int
14433 main ()
14434 {
14435
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441   gl_cv_warn_c__Wpointer_arith=yes
14442 else
14443   gl_cv_warn_c__Wpointer_arith=no
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446   CFLAGS="$gl_save_compiler_FLAGS"
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14450 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14451 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14452   as_fn_append WARN_CFLAGS " -Wpointer-arith"
14453 fi
14454
14455
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14458 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14459 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462
14463   gl_save_compiler_FLAGS="$CFLAGS"
14464   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467
14468 int
14469 main ()
14470 {
14471
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_compile "$LINENO"; then :
14477   gl_cv_warn_c__Wwrite_strings=yes
14478 else
14479   gl_cv_warn_c__Wwrite_strings=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482   CFLAGS="$gl_save_compiler_FLAGS"
14483
14484 fi
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14486 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14487 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14488   as_fn_append WARN_CFLAGS " -Wwrite-strings"
14489 fi
14490
14491
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14494 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14495 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498
14499   gl_save_compiler_FLAGS="$CFLAGS"
14500   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503
14504 int
14505 main ()
14506 {
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513   gl_cv_warn_c__Wstrict_prototypes=yes
14514 else
14515   gl_cv_warn_c__Wstrict_prototypes=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518   CFLAGS="$gl_save_compiler_FLAGS"
14519
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14522 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14523 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14524   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14525 fi
14526
14527
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14530 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14531 if ${gl_cv_warn_c__Wshadow+:} false; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534
14535   gl_save_compiler_FLAGS="$CFLAGS"
14536   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539
14540 int
14541 main ()
14542 {
14543
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549   gl_cv_warn_c__Wshadow=yes
14550 else
14551   gl_cv_warn_c__Wshadow=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554   CFLAGS="$gl_save_compiler_FLAGS"
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14558 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14559 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14560   as_fn_append WARN_CFLAGS " -Wshadow"
14561 fi
14562
14563
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14566 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14567 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14568   $as_echo_n "(cached) " >&6
14569 else
14570
14571   gl_save_compiler_FLAGS="$CFLAGS"
14572   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h.  */
14575
14576 int
14577 main ()
14578 {
14579
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585   gl_cv_warn_c__Wformat_security=yes
14586 else
14587   gl_cv_warn_c__Wformat_security=no
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590   CFLAGS="$gl_save_compiler_FLAGS"
14591
14592 fi
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14594 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14595 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14596   as_fn_append WARN_CFLAGS " -Wformat-security"
14597 fi
14598
14599
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14602 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14603 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14604   $as_echo_n "(cached) " >&6
14605 else
14606
14607   gl_save_compiler_FLAGS="$CFLAGS"
14608   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h.  */
14611
14612 int
14613 main ()
14614 {
14615
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621   gl_cv_warn_c__Wredundant_decls=yes
14622 else
14623   gl_cv_warn_c__Wredundant_decls=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626   CFLAGS="$gl_save_compiler_FLAGS"
14627
14628 fi
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14630 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14631 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14632   as_fn_append WARN_CFLAGS " -Wredundant-decls"
14633 fi
14634
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14638 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14639 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642
14643   gl_save_compiler_FLAGS="$CFLAGS"
14644   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
14645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h.  */
14647
14648 int
14649 main ()
14650 {
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657   gl_cv_warn_c__Wno_missing_field_initializers=yes
14658 else
14659   gl_cv_warn_c__Wno_missing_field_initializers=no
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662   CFLAGS="$gl_save_compiler_FLAGS"
14663
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14666 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14667 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14668   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14669 fi
14670
14671
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14674 $as_echo_n "checking whether ln -s works... " >&6; }
14675 LN_S=$as_ln_s
14676 if test "$LN_S" = "ln -s"; then
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14678 $as_echo "yes" >&6; }
14679 else
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14681 $as_echo "no, using $LN_S" >&6; }
14682 fi
14683
14684
14685
14686
14687
14688
14689
14690
14691 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14692         if test -n "$ac_tool_prefix"; then
14693   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14694 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   case $PKG_CONFIG in
14701   [\\/]* | ?:[\\/]*)
14702   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14703   ;;
14704   *)
14705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14707 do
14708   IFS=$as_save_IFS
14709   test -z "$as_dir" && as_dir=.
14710     for ac_exec_ext in '' $ac_executable_extensions; do
14711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714     break 2
14715   fi
14716 done
14717   done
14718 IFS=$as_save_IFS
14719
14720   ;;
14721 esac
14722 fi
14723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14724 if test -n "$PKG_CONFIG"; then
14725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14726 $as_echo "$PKG_CONFIG" >&6; }
14727 else
14728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14730 fi
14731
14732
14733 fi
14734 if test -z "$ac_cv_path_PKG_CONFIG"; then
14735   ac_pt_PKG_CONFIG=$PKG_CONFIG
14736   # Extract the first word of "pkg-config", so it can be a program name with args.
14737 set dummy pkg-config; ac_word=$2
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14739 $as_echo_n "checking for $ac_word... " >&6; }
14740 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14741   $as_echo_n "(cached) " >&6
14742 else
14743   case $ac_pt_PKG_CONFIG in
14744   [\\/]* | ?:[\\/]*)
14745   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14746   ;;
14747   *)
14748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14750 do
14751   IFS=$as_save_IFS
14752   test -z "$as_dir" && as_dir=.
14753     for ac_exec_ext in '' $ac_executable_extensions; do
14754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14757     break 2
14758   fi
14759 done
14760   done
14761 IFS=$as_save_IFS
14762
14763   ;;
14764 esac
14765 fi
14766 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14767 if test -n "$ac_pt_PKG_CONFIG"; then
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14769 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14770 else
14771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 fi
14774
14775   if test "x$ac_pt_PKG_CONFIG" = x; then
14776     PKG_CONFIG=""
14777   else
14778     case $cross_compiling:$ac_tool_warned in
14779 yes:)
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14782 ac_tool_warned=yes ;;
14783 esac
14784     PKG_CONFIG=$ac_pt_PKG_CONFIG
14785   fi
14786 else
14787   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14788 fi
14789
14790 fi
14791 if test -n "$PKG_CONFIG"; then
14792         _pkg_min_version=0.9.0
14793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14794 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14795         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14796                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14798         else
14799                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14801                 PKG_CONFIG=""
14802         fi
14803 fi
14804
14805 pkg_failed=no
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
14807 $as_echo_n "checking for CHECK... " >&6; }
14808
14809 if test -n "$CHECK_CFLAGS"; then
14810     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14811  elif test -n "$PKG_CONFIG"; then
14812     if test -n "$PKG_CONFIG" && \
14813     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14814   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14815   ac_status=$?
14816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817   test $ac_status = 0; }; then
14818   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
14819                       test "x$?" != "x0" && pkg_failed=yes
14820 else
14821   pkg_failed=yes
14822 fi
14823  else
14824     pkg_failed=untried
14825 fi
14826 if test -n "$CHECK_LIBS"; then
14827     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14828  elif test -n "$PKG_CONFIG"; then
14829     if test -n "$PKG_CONFIG" && \
14830     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14831   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14832   ac_status=$?
14833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834   test $ac_status = 0; }; then
14835   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
14836                       test "x$?" != "x0" && pkg_failed=yes
14837 else
14838   pkg_failed=yes
14839 fi
14840  else
14841     pkg_failed=untried
14842 fi
14843
14844
14845
14846 if test $pkg_failed = yes; then
14847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14849
14850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14851         _pkg_short_errors_supported=yes
14852 else
14853         _pkg_short_errors_supported=no
14854 fi
14855         if test $_pkg_short_errors_supported = yes; then
14856                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14857         else
14858                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14859         fi
14860         # Put the nasty error message in config.log where it belongs
14861         echo "$CHECK_PKG_ERRORS" >&5
14862
14863         run_tests=no
14864 elif test $pkg_failed = untried; then
14865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867         run_tests=no
14868 else
14869         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14870         CHECK_LIBS=$pkg_cv_CHECK_LIBS
14871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14872 $as_echo "yes" >&6; }
14873         run_tests=yes
14874 fi
14875  if test "x$run_tests" = xyes; then
14876   RUN_TESTS_TRUE=
14877   RUN_TESTS_FALSE='#'
14878 else
14879   RUN_TESTS_TRUE='#'
14880   RUN_TESTS_FALSE=
14881 fi
14882
14883
14884 # Check for various header files and associated libraries.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14886 $as_echo_n "checking for library containing strerror... " >&6; }
14887 if ${ac_cv_search_strerror+:} false; then :
14888   $as_echo_n "(cached) " >&6
14889 else
14890   ac_func_search_save_LIBS=$LIBS
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h.  */
14893
14894 /* Override any GCC internal prototype to avoid an error.
14895    Use char because int might match the return type of a GCC
14896    builtin and then its argument prototype would still apply.  */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char strerror ();
14901 int
14902 main ()
14903 {
14904 return strerror ();
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 for ac_lib in '' cposix; do
14910   if test -z "$ac_lib"; then
14911     ac_res="none required"
14912   else
14913     ac_res=-l$ac_lib
14914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14915   fi
14916   if ac_fn_c_try_link "$LINENO"; then :
14917   ac_cv_search_strerror=$ac_res
14918 fi
14919 rm -f core conftest.err conftest.$ac_objext \
14920     conftest$ac_exeext
14921   if ${ac_cv_search_strerror+:} false; then :
14922   break
14923 fi
14924 done
14925 if ${ac_cv_search_strerror+:} false; then :
14926
14927 else
14928   ac_cv_search_strerror=no
14929 fi
14930 rm conftest.$ac_ext
14931 LIBS=$ac_func_search_save_LIBS
14932 fi
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14934 $as_echo "$ac_cv_search_strerror" >&6; }
14935 ac_res=$ac_cv_search_strerror
14936 if test "$ac_res" != no; then :
14937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14938
14939 fi
14940
14941
14942
14943
14944
14945
14946           LIBC_FATAL_STDERR_=1
14947   export LIBC_FATAL_STDERR_
14948
14949 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14950 if test "x$ac_cv_type_size_t" = xyes; then :
14951
14952 else
14953
14954 cat >>confdefs.h <<_ACEOF
14955 #define size_t unsigned int
14956 _ACEOF
14957
14958 fi
14959
14960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14961 # for constant arguments.  Useless!
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14963 $as_echo_n "checking for working alloca.h... " >&6; }
14964 if ${ac_cv_working_alloca_h+:} false; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h.  */
14969 #include <alloca.h>
14970 int
14971 main ()
14972 {
14973 char *p = (char *) alloca (2 * sizeof (int));
14974                           if (p) return 0;
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980   ac_cv_working_alloca_h=yes
14981 else
14982   ac_cv_working_alloca_h=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext \
14985     conftest$ac_exeext conftest.$ac_ext
14986 fi
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14988 $as_echo "$ac_cv_working_alloca_h" >&6; }
14989 if test $ac_cv_working_alloca_h = yes; then
14990
14991 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14992
14993 fi
14994
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14996 $as_echo_n "checking for alloca... " >&6; }
14997 if ${ac_cv_func_alloca_works+:} false; then :
14998   $as_echo_n "(cached) " >&6
14999 else
15000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h.  */
15002 #ifdef __GNUC__
15003 # define alloca __builtin_alloca
15004 #else
15005 # ifdef _MSC_VER
15006 #  include <malloc.h>
15007 #  define alloca _alloca
15008 # else
15009 #  ifdef HAVE_ALLOCA_H
15010 #   include <alloca.h>
15011 #  else
15012 #   ifdef _AIX
15013  #pragma alloca
15014 #   else
15015 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15016 void *alloca (size_t);
15017 #    endif
15018 #   endif
15019 #  endif
15020 # endif
15021 #endif
15022
15023 int
15024 main ()
15025 {
15026 char *p = (char *) alloca (1);
15027                                     if (p) return 0;
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"; then :
15033   ac_cv_func_alloca_works=yes
15034 else
15035   ac_cv_func_alloca_works=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext \
15038     conftest$ac_exeext conftest.$ac_ext
15039 fi
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15041 $as_echo "$ac_cv_func_alloca_works" >&6; }
15042
15043 if test $ac_cv_func_alloca_works = yes; then
15044
15045 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15046
15047 else
15048   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15049 # that cause trouble.  Some versions do not even contain alloca or
15050 # contain a buggy version.  If you still want to use their alloca,
15051 # use ar to extract alloca.o from them instead of compiling alloca.c.
15052
15053
15054
15055
15056
15057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15058
15059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15060
15061
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15064 if ${ac_cv_os_cray+:} false; then :
15065   $as_echo_n "(cached) " >&6
15066 else
15067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h.  */
15069 #if defined CRAY && ! defined CRAY2
15070 webecray
15071 #else
15072 wenotbecray
15073 #endif
15074
15075 _ACEOF
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077   $EGREP "webecray" >/dev/null 2>&1; then :
15078   ac_cv_os_cray=yes
15079 else
15080   ac_cv_os_cray=no
15081 fi
15082 rm -f conftest*
15083
15084 fi
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15086 $as_echo "$ac_cv_os_cray" >&6; }
15087 if test $ac_cv_os_cray = yes; then
15088   for ac_func in _getb67 GETB67 getb67; do
15089     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15092
15093 cat >>confdefs.h <<_ACEOF
15094 #define CRAY_STACKSEG_END $ac_func
15095 _ACEOF
15096
15097     break
15098 fi
15099
15100   done
15101 fi
15102
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15104 $as_echo_n "checking stack direction for C alloca... " >&6; }
15105 if ${ac_cv_c_stack_direction+:} false; then :
15106   $as_echo_n "(cached) " >&6
15107 else
15108   if test "$cross_compiling" = yes; then :
15109   ac_cv_c_stack_direction=0
15110 else
15111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h.  */
15113 $ac_includes_default
15114 int
15115 find_stack_direction (int *addr, int depth)
15116 {
15117   int dir, dummy = 0;
15118   if (! addr)
15119     addr = &dummy;
15120   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15121   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15122   return dir + dummy;
15123 }
15124
15125 int
15126 main (int argc, char **argv)
15127 {
15128   return find_stack_direction (0, argc + !argv + 20) < 0;
15129 }
15130 _ACEOF
15131 if ac_fn_c_try_run "$LINENO"; then :
15132   ac_cv_c_stack_direction=1
15133 else
15134   ac_cv_c_stack_direction=-1
15135 fi
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15137   conftest.$ac_objext conftest.beam conftest.$ac_ext
15138 fi
15139
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15142 $as_echo "$ac_cv_c_stack_direction" >&6; }
15143 cat >>confdefs.h <<_ACEOF
15144 #define STACK_DIRECTION $ac_cv_c_stack_direction
15145 _ACEOF
15146
15147
15148 fi
15149
15150
15151
15152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15153 $as_echo_n "checking whether // is distinct from /... " >&6; }
15154 if ${gl_cv_double_slash_root+:} false; then :
15155   $as_echo_n "(cached) " >&6
15156 else
15157    if test x"$cross_compiling" = xyes ; then
15158         # When cross-compiling, there is no way to tell whether // is special
15159         # short of a list of hosts.  However, the only known hosts to date
15160         # that have a distinct // are Apollo DomainOS (too old to port to),
15161         # Cygwin, and z/OS.  If anyone knows of another system for which // has
15162         # special semantics and is distinct from /, please report it to
15163         # <bug-gnulib@gnu.org>.
15164         case $host in
15165           *-cygwin | i370-ibm-openedition)
15166             gl_cv_double_slash_root=yes ;;
15167           *)
15168             # Be optimistic and assume that / and // are the same when we
15169             # don't know.
15170             gl_cv_double_slash_root='unknown, assuming no' ;;
15171         esac
15172       else
15173         set x `ls -di / // 2>/dev/null`
15174         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15175           gl_cv_double_slash_root=no
15176         else
15177           gl_cv_double_slash_root=yes
15178         fi
15179       fi
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15182 $as_echo "$gl_cv_double_slash_root" >&6; }
15183   if test "$gl_cv_double_slash_root" = yes; then
15184
15185 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15186
15187   fi
15188
15189
15190
15191
15192
15193
15194   GNULIB_CHDIR=0;
15195   GNULIB_CHOWN=0;
15196   GNULIB_CLOSE=0;
15197   GNULIB_DUP=0;
15198   GNULIB_DUP2=0;
15199   GNULIB_DUP3=0;
15200   GNULIB_ENVIRON=0;
15201   GNULIB_EUIDACCESS=0;
15202   GNULIB_FACCESSAT=0;
15203   GNULIB_FCHDIR=0;
15204   GNULIB_FCHOWNAT=0;
15205   GNULIB_FDATASYNC=0;
15206   GNULIB_FSYNC=0;
15207   GNULIB_FTRUNCATE=0;
15208   GNULIB_GETCWD=0;
15209   GNULIB_GETDOMAINNAME=0;
15210   GNULIB_GETDTABLESIZE=0;
15211   GNULIB_GETGROUPS=0;
15212   GNULIB_GETHOSTNAME=0;
15213   GNULIB_GETLOGIN=0;
15214   GNULIB_GETLOGIN_R=0;
15215   GNULIB_GETPAGESIZE=0;
15216   GNULIB_GETUSERSHELL=0;
15217   GNULIB_GROUP_MEMBER=0;
15218   GNULIB_ISATTY=0;
15219   GNULIB_LCHOWN=0;
15220   GNULIB_LINK=0;
15221   GNULIB_LINKAT=0;
15222   GNULIB_LSEEK=0;
15223   GNULIB_PIPE=0;
15224   GNULIB_PIPE2=0;
15225   GNULIB_PREAD=0;
15226   GNULIB_PWRITE=0;
15227   GNULIB_READ=0;
15228   GNULIB_READLINK=0;
15229   GNULIB_READLINKAT=0;
15230   GNULIB_RMDIR=0;
15231   GNULIB_SETHOSTNAME=0;
15232   GNULIB_SLEEP=0;
15233   GNULIB_SYMLINK=0;
15234   GNULIB_SYMLINKAT=0;
15235   GNULIB_TTYNAME_R=0;
15236   GNULIB_UNISTD_H_NONBLOCKING=0;
15237   GNULIB_UNISTD_H_SIGPIPE=0;
15238   GNULIB_UNLINK=0;
15239   GNULIB_UNLINKAT=0;
15240   GNULIB_USLEEP=0;
15241   GNULIB_WRITE=0;
15242     HAVE_CHOWN=1;
15243   HAVE_DUP2=1;
15244   HAVE_DUP3=1;
15245   HAVE_EUIDACCESS=1;
15246   HAVE_FACCESSAT=1;
15247   HAVE_FCHDIR=1;
15248   HAVE_FCHOWNAT=1;
15249   HAVE_FDATASYNC=1;
15250   HAVE_FSYNC=1;
15251   HAVE_FTRUNCATE=1;
15252   HAVE_GETDTABLESIZE=1;
15253   HAVE_GETGROUPS=1;
15254   HAVE_GETHOSTNAME=1;
15255   HAVE_GETLOGIN=1;
15256   HAVE_GETPAGESIZE=1;
15257   HAVE_GROUP_MEMBER=1;
15258   HAVE_LCHOWN=1;
15259   HAVE_LINK=1;
15260   HAVE_LINKAT=1;
15261   HAVE_PIPE=1;
15262   HAVE_PIPE2=1;
15263   HAVE_PREAD=1;
15264   HAVE_PWRITE=1;
15265   HAVE_READLINK=1;
15266   HAVE_READLINKAT=1;
15267   HAVE_SETHOSTNAME=1;
15268   HAVE_SLEEP=1;
15269   HAVE_SYMLINK=1;
15270   HAVE_SYMLINKAT=1;
15271   HAVE_UNLINKAT=1;
15272   HAVE_USLEEP=1;
15273   HAVE_DECL_ENVIRON=1;
15274   HAVE_DECL_FCHDIR=1;
15275   HAVE_DECL_FDATASYNC=1;
15276   HAVE_DECL_GETDOMAINNAME=1;
15277   HAVE_DECL_GETLOGIN_R=1;
15278   HAVE_DECL_GETPAGESIZE=1;
15279   HAVE_DECL_GETUSERSHELL=1;
15280   HAVE_DECL_SETHOSTNAME=1;
15281   HAVE_DECL_TTYNAME_R=1;
15282   HAVE_OS_H=0;
15283   HAVE_SYS_PARAM_H=0;
15284   REPLACE_CHOWN=0;
15285   REPLACE_CLOSE=0;
15286   REPLACE_DUP=0;
15287   REPLACE_DUP2=0;
15288   REPLACE_FCHOWNAT=0;
15289   REPLACE_FTRUNCATE=0;
15290   REPLACE_GETCWD=0;
15291   REPLACE_GETDOMAINNAME=0;
15292   REPLACE_GETLOGIN_R=0;
15293   REPLACE_GETGROUPS=0;
15294   REPLACE_GETPAGESIZE=0;
15295   REPLACE_ISATTY=0;
15296   REPLACE_LCHOWN=0;
15297   REPLACE_LINK=0;
15298   REPLACE_LINKAT=0;
15299   REPLACE_LSEEK=0;
15300   REPLACE_PREAD=0;
15301   REPLACE_PWRITE=0;
15302   REPLACE_READ=0;
15303   REPLACE_READLINK=0;
15304   REPLACE_RMDIR=0;
15305   REPLACE_SLEEP=0;
15306   REPLACE_SYMLINK=0;
15307   REPLACE_TTYNAME_R=0;
15308   REPLACE_UNLINK=0;
15309   REPLACE_UNLINKAT=0;
15310   REPLACE_USLEEP=0;
15311   REPLACE_WRITE=0;
15312   UNISTD_H_HAVE_WINSOCK2_H=0;
15313   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15314
15315
15316
15317
15318
15319
15320   for ac_header in $gl_header_list
15321 do :
15322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15325   cat >>confdefs.h <<_ACEOF
15326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15327 _ACEOF
15328
15329 fi
15330
15331 done
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342   :
15343
15344
15345
15346
15347
15348
15349
15350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15351 $as_echo_n "checking if environ is properly declared... " >&6; }
15352   if ${gt_cv_var_environ_declaration+:} false; then :
15353   $as_echo_n "(cached) " >&6
15354 else
15355
15356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h.  */
15358 #if HAVE_UNISTD_H
15359      #include <unistd.h>
15360      #endif
15361      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
15362      #include <stdlib.h>
15363
15364            extern struct { int foo; } environ;
15365 int
15366 main ()
15367 {
15368 environ.foo = 1;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374   gt_cv_var_environ_declaration=no
15375 else
15376   gt_cv_var_environ_declaration=yes
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380
15381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15382 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15383   if test $gt_cv_var_environ_declaration = yes; then
15384
15385 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15386
15387   fi
15388
15389
15390   if test $gt_cv_var_environ_declaration != yes; then
15391     HAVE_DECL_ENVIRON=0
15392   fi
15393
15394
15395
15396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15397 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15398 if ${gl_cv_have_include_next+:} false; then :
15399   $as_echo_n "(cached) " >&6
15400 else
15401   rm -rf conftestd1a conftestd1b conftestd2
15402      mkdir conftestd1a conftestd1b conftestd2
15403                                                   cat <<EOF > conftestd1a/conftest.h
15404 #define DEFINED_IN_CONFTESTD1
15405 #include_next <conftest.h>
15406 #ifdef DEFINED_IN_CONFTESTD2
15407 int foo;
15408 #else
15409 #error "include_next doesn't work"
15410 #endif
15411 EOF
15412      cat <<EOF > conftestd1b/conftest.h
15413 #define DEFINED_IN_CONFTESTD1
15414 #include <stdio.h>
15415 #include_next <conftest.h>
15416 #ifdef DEFINED_IN_CONFTESTD2
15417 int foo;
15418 #else
15419 #error "include_next doesn't work"
15420 #endif
15421 EOF
15422      cat <<EOF > conftestd2/conftest.h
15423 #ifndef DEFINED_IN_CONFTESTD1
15424 #error "include_next test doesn't work"
15425 #endif
15426 #define DEFINED_IN_CONFTESTD2
15427 EOF
15428      gl_save_CPPFLAGS="$CPPFLAGS"
15429      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15430      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h.  */
15432 #include <conftest.h>
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435   gl_cv_have_include_next=yes
15436 else
15437   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15438         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440 #include <conftest.h>
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443   gl_cv_have_include_next=buggy
15444 else
15445   gl_cv_have_include_next=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448
15449 fi
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451      CPPFLAGS="$gl_save_CPPFLAGS"
15452      rm -rf conftestd1a conftestd1b conftestd2
15453
15454 fi
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15456 $as_echo "$gl_cv_have_include_next" >&6; }
15457   PRAGMA_SYSTEM_HEADER=
15458   if test $gl_cv_have_include_next = yes; then
15459     INCLUDE_NEXT=include_next
15460     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15461     if test -n "$GCC"; then
15462       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15463     fi
15464   else
15465     if test $gl_cv_have_include_next = buggy; then
15466       INCLUDE_NEXT=include
15467       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15468     else
15469       INCLUDE_NEXT=include
15470       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15471     fi
15472   fi
15473
15474
15475
15476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15477 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15478 if ${gl_cv_pragma_columns+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h.  */
15483
15484 #ifdef __TANDEM
15485 choke me
15486 #endif
15487
15488 _ACEOF
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490   $EGREP "choke me" >/dev/null 2>&1; then :
15491   gl_cv_pragma_columns=yes
15492 else
15493   gl_cv_pragma_columns=no
15494 fi
15495 rm -f conftest*
15496
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15500 $as_echo "$gl_cv_pragma_columns" >&6; }
15501   if test $gl_cv_pragma_columns = yes; then
15502     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15503   else
15504     PRAGMA_COLUMNS=
15505   fi
15506
15507
15508
15509
15510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15511 $as_echo_n "checking for complete errno.h... " >&6; }
15512 if ${gl_cv_header_errno_h_complete+:} false; then :
15513   $as_echo_n "(cached) " >&6
15514 else
15515
15516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h.  */
15518
15519 #include <errno.h>
15520 #if !defined ETXTBSY
15521 booboo
15522 #endif
15523 #if !defined ENOMSG
15524 booboo
15525 #endif
15526 #if !defined EIDRM
15527 booboo
15528 #endif
15529 #if !defined ENOLINK
15530 booboo
15531 #endif
15532 #if !defined EPROTO
15533 booboo
15534 #endif
15535 #if !defined EMULTIHOP
15536 booboo
15537 #endif
15538 #if !defined EBADMSG
15539 booboo
15540 #endif
15541 #if !defined EOVERFLOW
15542 booboo
15543 #endif
15544 #if !defined ENOTSUP
15545 booboo
15546 #endif
15547 #if !defined ENETRESET
15548 booboo
15549 #endif
15550 #if !defined ECONNABORTED
15551 booboo
15552 #endif
15553 #if !defined ESTALE
15554 booboo
15555 #endif
15556 #if !defined EDQUOT
15557 booboo
15558 #endif
15559 #if !defined ECANCELED
15560 booboo
15561 #endif
15562 #if !defined EOWNERDEAD
15563 booboo
15564 #endif
15565 #if !defined ENOTRECOVERABLE
15566 booboo
15567 #endif
15568 #if !defined EILSEQ
15569 booboo
15570 #endif
15571
15572 _ACEOF
15573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15574   $EGREP "booboo" >/dev/null 2>&1; then :
15575   gl_cv_header_errno_h_complete=no
15576 else
15577   gl_cv_header_errno_h_complete=yes
15578 fi
15579 rm -f conftest*
15580
15581
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15584 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15585   if test $gl_cv_header_errno_h_complete = yes; then
15586     ERRNO_H=''
15587   else
15588
15589
15590
15591
15592
15593
15594
15595
15596      if test $gl_cv_have_include_next = yes; then
15597        gl_cv_next_errno_h='<'errno.h'>'
15598      else
15599        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15600 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15601 if ${gl_cv_next_errno_h+:} false; then :
15602   $as_echo_n "(cached) " >&6
15603 else
15604
15605                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h.  */
15607 #include <errno.h>
15608
15609 _ACEOF
15610                                                                                                                         case "$host_os" in
15611                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
15612                  *)    gl_absname_cpp="$ac_cpp" ;;
15613                esac
15614
15615                case "$host_os" in
15616                  mingw*)
15617                                                                                                                                      gl_dirsep_regex='[/\\]'
15618                    ;;
15619                  *)
15620                    gl_dirsep_regex='\/'
15621                    ;;
15622                esac
15623                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15624
15625                gl_header_literal_regex=`echo 'errno.h' \
15626                                         | sed -e "$gl_make_literal_regex_sed"`
15627                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15628                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15629                    s|^/[^/]|//&|
15630                    p
15631                    q
15632                  }'
15633                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15634                       sed -n "$gl_absolute_header_sed"`'"'
15635
15636
15637 fi
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15639 $as_echo "$gl_cv_next_errno_h" >&6; }
15640      fi
15641      NEXT_ERRNO_H=$gl_cv_next_errno_h
15642
15643      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15644        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15645        gl_next_as_first_directive='<'errno.h'>'
15646      else
15647        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15648        gl_next_as_first_directive=$gl_cv_next_errno_h
15649      fi
15650      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15651
15652
15653
15654
15655     ERRNO_H='errno.h'
15656   fi
15657
15658    if test -n "$ERRNO_H"; then
15659   GL_GENERATE_ERRNO_H_TRUE=
15660   GL_GENERATE_ERRNO_H_FALSE='#'
15661 else
15662   GL_GENERATE_ERRNO_H_TRUE='#'
15663   GL_GENERATE_ERRNO_H_FALSE=
15664 fi
15665
15666
15667   if test -n "$ERRNO_H"; then
15668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15669 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15670 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15671   $as_echo_n "(cached) " >&6
15672 else
15673
15674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h.  */
15676
15677 #include <errno.h>
15678 #ifdef EMULTIHOP
15679 yes
15680 #endif
15681
15682 _ACEOF
15683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15684   $EGREP "yes" >/dev/null 2>&1; then :
15685   gl_cv_header_errno_h_EMULTIHOP=yes
15686 else
15687   gl_cv_header_errno_h_EMULTIHOP=no
15688 fi
15689 rm -f conftest*
15690
15691       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h.  */
15694
15695 #define _XOPEN_SOURCE_EXTENDED 1
15696 #include <errno.h>
15697 #ifdef EMULTIHOP
15698 yes
15699 #endif
15700
15701 _ACEOF
15702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15703   $EGREP "yes" >/dev/null 2>&1; then :
15704   gl_cv_header_errno_h_EMULTIHOP=hidden
15705 fi
15706 rm -f conftest*
15707
15708         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15709                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
15710 #define _XOPEN_SOURCE_EXTENDED 1
15711 #include <errno.h>
15712 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15713 #include <stdio.h>
15714 #include <stdlib.h>
15715 "; then :
15716
15717 fi
15718
15719         fi
15720       fi
15721
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15724 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15725     case $gl_cv_header_errno_h_EMULTIHOP in
15726       yes | no)
15727         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15728         ;;
15729       *)
15730         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15731         ;;
15732     esac
15733
15734
15735   fi
15736
15737
15738   if test -n "$ERRNO_H"; then
15739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15740 $as_echo_n "checking for ENOLINK value... " >&6; }
15741 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15742   $as_echo_n "(cached) " >&6
15743 else
15744
15745       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h.  */
15747
15748 #include <errno.h>
15749 #ifdef ENOLINK
15750 yes
15751 #endif
15752
15753 _ACEOF
15754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15755   $EGREP "yes" >/dev/null 2>&1; then :
15756   gl_cv_header_errno_h_ENOLINK=yes
15757 else
15758   gl_cv_header_errno_h_ENOLINK=no
15759 fi
15760 rm -f conftest*
15761
15762       if test $gl_cv_header_errno_h_ENOLINK = no; then
15763         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h.  */
15765
15766 #define _XOPEN_SOURCE_EXTENDED 1
15767 #include <errno.h>
15768 #ifdef ENOLINK
15769 yes
15770 #endif
15771
15772 _ACEOF
15773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15774   $EGREP "yes" >/dev/null 2>&1; then :
15775   gl_cv_header_errno_h_ENOLINK=hidden
15776 fi
15777 rm -f conftest*
15778
15779         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15780                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
15781 #define _XOPEN_SOURCE_EXTENDED 1
15782 #include <errno.h>
15783 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15784 #include <stdio.h>
15785 #include <stdlib.h>
15786 "; then :
15787
15788 fi
15789
15790         fi
15791       fi
15792
15793 fi
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15795 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15796     case $gl_cv_header_errno_h_ENOLINK in
15797       yes | no)
15798         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15799         ;;
15800       *)
15801         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15802         ;;
15803     esac
15804
15805
15806   fi
15807
15808
15809   if test -n "$ERRNO_H"; then
15810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15811 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15812 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15813   $as_echo_n "(cached) " >&6
15814 else
15815
15816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h.  */
15818
15819 #include <errno.h>
15820 #ifdef EOVERFLOW
15821 yes
15822 #endif
15823
15824 _ACEOF
15825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15826   $EGREP "yes" >/dev/null 2>&1; then :
15827   gl_cv_header_errno_h_EOVERFLOW=yes
15828 else
15829   gl_cv_header_errno_h_EOVERFLOW=no
15830 fi
15831 rm -f conftest*
15832
15833       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15834         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h.  */
15836
15837 #define _XOPEN_SOURCE_EXTENDED 1
15838 #include <errno.h>
15839 #ifdef EOVERFLOW
15840 yes
15841 #endif
15842
15843 _ACEOF
15844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15845   $EGREP "yes" >/dev/null 2>&1; then :
15846   gl_cv_header_errno_h_EOVERFLOW=hidden
15847 fi
15848 rm -f conftest*
15849
15850         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15851                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
15852 #define _XOPEN_SOURCE_EXTENDED 1
15853 #include <errno.h>
15854 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15855 #include <stdio.h>
15856 #include <stdlib.h>
15857 "; then :
15858
15859 fi
15860
15861         fi
15862       fi
15863
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15866 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15867     case $gl_cv_header_errno_h_EOVERFLOW in
15868       yes | no)
15869         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15870         ;;
15871       *)
15872         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15873         ;;
15874     esac
15875
15876
15877   fi
15878
15879
15880 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15881 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15882   ac_have_decl=1
15883 else
15884   ac_have_decl=0
15885 fi
15886
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_DECL_STRERROR_R $ac_have_decl
15889 _ACEOF
15890
15891 for ac_func in strerror_r
15892 do :
15893   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15894 if test "x$ac_cv_func_strerror_r" = xyes; then :
15895   cat >>confdefs.h <<_ACEOF
15896 #define HAVE_STRERROR_R 1
15897 _ACEOF
15898
15899 fi
15900 done
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15903 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15904 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15905   $as_echo_n "(cached) " >&6
15906 else
15907
15908     ac_cv_func_strerror_r_char_p=no
15909     if test $ac_cv_have_decl_strerror_r = yes; then
15910       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h.  */
15912 $ac_includes_default
15913 int
15914 main ()
15915 {
15916
15917           char buf[100];
15918           char x = *strerror_r (0, buf, sizeof buf);
15919           char *p = strerror_r (0, buf, sizeof buf);
15920           return !p || x;
15921
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927   ac_cv_func_strerror_r_char_p=yes
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930     else
15931       # strerror_r is not declared.  Choose between
15932       # systems that have relatively inaccessible declarations for the
15933       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15934       # former has a strerror_r that returns char*, while the latter
15935       # has a strerror_r that returns `int'.
15936       # This test should segfault on the DEC system.
15937       if test "$cross_compiling" = yes; then :
15938   :
15939 else
15940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h.  */
15942 $ac_includes_default
15943         extern char *strerror_r ();
15944 int
15945 main ()
15946 {
15947 char buf[100];
15948           char x = *strerror_r (0, buf, sizeof buf);
15949           return ! isalpha (x);
15950   ;
15951   return 0;
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_run "$LINENO"; then :
15955   ac_cv_func_strerror_r_char_p=yes
15956 fi
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15958   conftest.$ac_objext conftest.beam conftest.$ac_ext
15959 fi
15960
15961     fi
15962
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15965 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15966 if test $ac_cv_func_strerror_r_char_p = yes; then
15967
15968 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15969
15970 fi
15971
15972
15973   XGETTEXT_EXTRA_OPTIONS=
15974
15975
15976
15977
15978
15979       if test "X$prefix" = "XNONE"; then
15980     acl_final_prefix="$ac_default_prefix"
15981   else
15982     acl_final_prefix="$prefix"
15983   fi
15984   if test "X$exec_prefix" = "XNONE"; then
15985     acl_final_exec_prefix='${prefix}'
15986   else
15987     acl_final_exec_prefix="$exec_prefix"
15988   fi
15989   acl_save_prefix="$prefix"
15990   prefix="$acl_final_prefix"
15991   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15992   prefix="$acl_save_prefix"
15993
15994
15995
15996 # Check whether --with-gnu-ld was given.
15997 if test "${with_gnu_ld+set}" = set; then :
15998   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15999 else
16000   with_gnu_ld=no
16001 fi
16002
16003 # Prepare PATH_SEPARATOR.
16004 # The user is always right.
16005 if test "${PATH_SEPARATOR+set}" != set; then
16006   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16007   # contains only /bin. Note that ksh looks also at the FPATH variable,
16008   # so we have to set that as well for the test.
16009   PATH_SEPARATOR=:
16010   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16011     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16012            || PATH_SEPARATOR=';'
16013        }
16014 fi
16015
16016 ac_prog=ld
16017 if test "$GCC" = yes; then
16018   # Check if gcc -print-prog-name=ld gives a path.
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16020 $as_echo_n "checking for ld used by $CC... " >&6; }
16021   case $host in
16022   *-*-mingw*)
16023     # gcc leaves a trailing carriage return which upsets mingw
16024     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16025   *)
16026     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16027   esac
16028   case $ac_prog in
16029     # Accept absolute paths.
16030     [\\/]* | ?:[\\/]*)
16031       re_direlt='/[^/][^/]*/\.\./'
16032       # Canonicalize the pathname of ld
16033       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16034       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16035         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16036       done
16037       test -z "$LD" && LD="$ac_prog"
16038       ;;
16039   "")
16040     # If it fails, then pretend we aren't using GCC.
16041     ac_prog=ld
16042     ;;
16043   *)
16044     # If it is relative, then search for the first ld in PATH.
16045     with_gnu_ld=unknown
16046     ;;
16047   esac
16048 elif test "$with_gnu_ld" = yes; then
16049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16050 $as_echo_n "checking for GNU ld... " >&6; }
16051 else
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16053 $as_echo_n "checking for non-GNU ld... " >&6; }
16054 fi
16055 if ${acl_cv_path_LD+:} false; then :
16056   $as_echo_n "(cached) " >&6
16057 else
16058   if test -z "$LD"; then
16059   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16060   for ac_dir in $PATH; do
16061     IFS="$acl_save_ifs"
16062     test -z "$ac_dir" && ac_dir=.
16063     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16064       acl_cv_path_LD="$ac_dir/$ac_prog"
16065       # Check to see if the program is GNU ld.  I'd rather use --version,
16066       # but apparently some variants of GNU ld only accept -v.
16067       # Break only if it was the GNU/non-GNU ld that we prefer.
16068       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16069       *GNU* | *'with BFD'*)
16070         test "$with_gnu_ld" != no && break
16071         ;;
16072       *)
16073         test "$with_gnu_ld" != yes && break
16074         ;;
16075       esac
16076     fi
16077   done
16078   IFS="$acl_save_ifs"
16079 else
16080   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16081 fi
16082 fi
16083
16084 LD="$acl_cv_path_LD"
16085 if test -n "$LD"; then
16086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16087 $as_echo "$LD" >&6; }
16088 else
16089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16091 fi
16092 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16094 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16095 if ${acl_cv_prog_gnu_ld+:} false; then :
16096   $as_echo_n "(cached) " >&6
16097 else
16098   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16099 case `$LD -v 2>&1 </dev/null` in
16100 *GNU* | *'with BFD'*)
16101   acl_cv_prog_gnu_ld=yes
16102   ;;
16103 *)
16104   acl_cv_prog_gnu_ld=no
16105   ;;
16106 esac
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16109 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16110 with_gnu_ld=$acl_cv_prog_gnu_ld
16111
16112
16113
16114
16115                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16116 $as_echo_n "checking for shared library run path origin... " >&6; }
16117 if ${acl_cv_rpath+:} false; then :
16118   $as_echo_n "(cached) " >&6
16119 else
16120
16121     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16122     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16123     . ./conftest.sh
16124     rm -f ./conftest.sh
16125     acl_cv_rpath=done
16126
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16129 $as_echo "$acl_cv_rpath" >&6; }
16130   wl="$acl_cv_wl"
16131   acl_libext="$acl_cv_libext"
16132   acl_shlibext="$acl_cv_shlibext"
16133   acl_libname_spec="$acl_cv_libname_spec"
16134   acl_library_names_spec="$acl_cv_library_names_spec"
16135   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16136   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16137   acl_hardcode_direct="$acl_cv_hardcode_direct"
16138   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16139     # Check whether --enable-rpath was given.
16140 if test "${enable_rpath+set}" = set; then :
16141   enableval=$enable_rpath; :
16142 else
16143   enable_rpath=yes
16144 fi
16145
16146
16147
16148
16149   acl_libdirstem=lib
16150   acl_libdirstem2=
16151   case "$host_os" in
16152     solaris*)
16153                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16154 $as_echo_n "checking for 64-bit host... " >&6; }
16155 if ${gl_cv_solaris_64bit+:} false; then :
16156   $as_echo_n "(cached) " >&6
16157 else
16158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h.  */
16160
16161 #ifdef _LP64
16162 sixtyfour bits
16163 #endif
16164
16165 _ACEOF
16166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16167   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16168   gl_cv_solaris_64bit=yes
16169 else
16170   gl_cv_solaris_64bit=no
16171 fi
16172 rm -f conftest*
16173
16174
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16177 $as_echo "$gl_cv_solaris_64bit" >&6; }
16178       if test $gl_cv_solaris_64bit = yes; then
16179         acl_libdirstem=lib/64
16180         case "$host_cpu" in
16181           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16182           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16183         esac
16184       fi
16185       ;;
16186     *)
16187       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16188       if test -n "$searchpath"; then
16189         acl_save_IFS="${IFS=    }"; IFS=":"
16190         for searchdir in $searchpath; do
16191           if test -d "$searchdir"; then
16192             case "$searchdir" in
16193               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16194               */../ | */.. )
16195                 # Better ignore directories of this form. They are misleading.
16196                 ;;
16197               *) searchdir=`cd "$searchdir" && pwd`
16198                  case "$searchdir" in
16199                    */lib64 ) acl_libdirstem=lib64 ;;
16200                  esac ;;
16201             esac
16202           fi
16203         done
16204         IFS="$acl_save_IFS"
16205       fi
16206       ;;
16207   esac
16208   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16209
16210
16211
16212   gl_threads_api=none
16213   LIBTHREAD=
16214   LTLIBTHREAD=
16215   LIBMULTITHREAD=
16216   LTLIBMULTITHREAD=
16217   if test "$gl_use_threads" != no; then
16218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16219 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16220 if ${gl_cv_have_weak+:} false; then :
16221   $as_echo_n "(cached) " >&6
16222 else
16223   gl_cv_have_weak=no
16224               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h.  */
16226 extern void xyzzy ();
16227 #pragma weak xyzzy
16228 int
16229 main ()
16230 {
16231 xyzzy();
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 if ac_fn_c_try_link "$LINENO"; then :
16237   gl_cv_have_weak=maybe
16238 fi
16239 rm -f core conftest.err conftest.$ac_objext \
16240     conftest$ac_exeext conftest.$ac_ext
16241        if test $gl_cv_have_weak = maybe; then
16242                            if test "$cross_compiling" = yes; then :
16243                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245 #ifdef __ELF__
16246                Extensible Linking Format
16247                #endif
16248
16249 _ACEOF
16250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16251   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16252   gl_cv_have_weak="guessing yes"
16253 else
16254   gl_cv_have_weak="guessing no"
16255 fi
16256 rm -f conftest*
16257
16258
16259 else
16260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h.  */
16262
16263 #include <stdio.h>
16264 #pragma weak fputs
16265 int main ()
16266 {
16267   return (fputs == NULL);
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_run "$LINENO"; then :
16271   gl_cv_have_weak=yes
16272 else
16273   gl_cv_have_weak=no
16274 fi
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276   conftest.$ac_objext conftest.beam conftest.$ac_ext
16277 fi
16278
16279        fi
16280
16281 fi
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16283 $as_echo "$gl_cv_have_weak" >&6; }
16284     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16285       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16286       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16287       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16288 if test "x$ac_cv_header_pthread_h" = xyes; then :
16289   gl_have_pthread_h=yes
16290 else
16291   gl_have_pthread_h=no
16292 fi
16293
16294
16295       if test "$gl_have_pthread_h" = yes; then
16296         # Other possible tests:
16297         #   -lpthreads (FSU threads, PCthreads)
16298         #   -lgthreads
16299         gl_have_pthread=
16300         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16301         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16302         # the second one only in libpthread, and lock.c needs it.
16303         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h.  */
16305 #include <pthread.h>
16306 int
16307 main ()
16308 {
16309 pthread_mutex_lock((pthread_mutex_t*)0);
16310                pthread_mutexattr_init((pthread_mutexattr_t*)0);
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 if ac_fn_c_try_link "$LINENO"; then :
16316   gl_have_pthread=yes
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319     conftest$ac_exeext conftest.$ac_ext
16320         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16321         # since it is defined as a macro on OSF/1.)
16322         if test -n "$gl_have_pthread"; then
16323           # The program links fine without libpthread. But it may actually
16324           # need to link with libpthread in order to create multiple threads.
16325           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16326 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16327 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16328   $as_echo_n "(cached) " >&6
16329 else
16330   ac_check_lib_save_LIBS=$LIBS
16331 LIBS="-lpthread  $LIBS"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h.  */
16334
16335 /* Override any GCC internal prototype to avoid an error.
16336    Use char because int might match the return type of a GCC
16337    builtin and then its argument prototype would still apply.  */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char pthread_kill ();
16342 int
16343 main ()
16344 {
16345 return pthread_kill ();
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 if ac_fn_c_try_link "$LINENO"; then :
16351   ac_cv_lib_pthread_pthread_kill=yes
16352 else
16353   ac_cv_lib_pthread_pthread_kill=no
16354 fi
16355 rm -f core conftest.err conftest.$ac_objext \
16356     conftest$ac_exeext conftest.$ac_ext
16357 LIBS=$ac_check_lib_save_LIBS
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16360 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16361 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16362   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16363              # On Solaris and HP-UX, most pthread functions exist also in libc.
16364              # Therefore pthread_in_use() needs to actually try to create a
16365              # thread: pthread_create from libc will fail, whereas
16366              # pthread_create will actually create a thread.
16367              case "$host_os" in
16368                solaris* | hpux*)
16369
16370 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16371
16372              esac
16373
16374 fi
16375
16376         else
16377           # Some library is needed. Try libpthread and libc_r.
16378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16379 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16380 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16381   $as_echo_n "(cached) " >&6
16382 else
16383   ac_check_lib_save_LIBS=$LIBS
16384 LIBS="-lpthread  $LIBS"
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h.  */
16387
16388 /* Override any GCC internal prototype to avoid an error.
16389    Use char because int might match the return type of a GCC
16390    builtin and then its argument prototype would still apply.  */
16391 #ifdef __cplusplus
16392 extern "C"
16393 #endif
16394 char pthread_kill ();
16395 int
16396 main ()
16397 {
16398 return pthread_kill ();
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 if ac_fn_c_try_link "$LINENO"; then :
16404   ac_cv_lib_pthread_pthread_kill=yes
16405 else
16406   ac_cv_lib_pthread_pthread_kill=no
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext \
16409     conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16413 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16414 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16415   gl_have_pthread=yes
16416              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16417              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16418 fi
16419
16420           if test -z "$gl_have_pthread"; then
16421             # For FreeBSD 4.
16422             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16423 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16424 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16425   $as_echo_n "(cached) " >&6
16426 else
16427   ac_check_lib_save_LIBS=$LIBS
16428 LIBS="-lc_r  $LIBS"
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h.  */
16431
16432 /* Override any GCC internal prototype to avoid an error.
16433    Use char because int might match the return type of a GCC
16434    builtin and then its argument prototype would still apply.  */
16435 #ifdef __cplusplus
16436 extern "C"
16437 #endif
16438 char pthread_kill ();
16439 int
16440 main ()
16441 {
16442 return pthread_kill ();
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 if ac_fn_c_try_link "$LINENO"; then :
16448   ac_cv_lib_c_r_pthread_kill=yes
16449 else
16450   ac_cv_lib_c_r_pthread_kill=no
16451 fi
16452 rm -f core conftest.err conftest.$ac_objext \
16453     conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16455 fi
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16457 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16458 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16459   gl_have_pthread=yes
16460                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16461                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16462 fi
16463
16464           fi
16465         fi
16466         if test -n "$gl_have_pthread"; then
16467           gl_threads_api=posix
16468
16469 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16470
16471           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16472             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16473
16474 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16475
16476               LIBTHREAD=
16477               LTLIBTHREAD=
16478             fi
16479           fi
16480         fi
16481       fi
16482     fi
16483     if test -z "$gl_have_pthread"; then
16484       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16485         gl_have_solaristhread=
16486         gl_save_LIBS="$LIBS"
16487         LIBS="$LIBS -lthread"
16488         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h.  */
16490
16491 #include <thread.h>
16492 #include <synch.h>
16493
16494 int
16495 main ()
16496 {
16497 thr_self();
16498   ;
16499   return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"; then :
16503   gl_have_solaristhread=yes
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext \
16506     conftest$ac_exeext conftest.$ac_ext
16507         LIBS="$gl_save_LIBS"
16508         if test -n "$gl_have_solaristhread"; then
16509           gl_threads_api=solaris
16510           LIBTHREAD=-lthread
16511           LTLIBTHREAD=-lthread
16512           LIBMULTITHREAD="$LIBTHREAD"
16513           LTLIBMULTITHREAD="$LTLIBTHREAD"
16514
16515 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16516
16517           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16518
16519 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16520
16521             LIBTHREAD=
16522             LTLIBTHREAD=
16523           fi
16524         fi
16525       fi
16526     fi
16527     if test "$gl_use_threads" = pth; then
16528       gl_save_CPPFLAGS="$CPPFLAGS"
16529
16530
16531
16532
16533
16534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16535 $as_echo_n "checking how to link with libpth... " >&6; }
16536 if ${ac_cv_libpth_libs+:} false; then :
16537   $as_echo_n "(cached) " >&6
16538 else
16539
16540
16541
16542
16543
16544
16545
16546
16547     use_additional=yes
16548
16549   acl_save_prefix="$prefix"
16550   prefix="$acl_final_prefix"
16551   acl_save_exec_prefix="$exec_prefix"
16552   exec_prefix="$acl_final_exec_prefix"
16553
16554     eval additional_includedir=\"$includedir\"
16555     eval additional_libdir=\"$libdir\"
16556
16557   exec_prefix="$acl_save_exec_prefix"
16558   prefix="$acl_save_prefix"
16559
16560
16561 # Check whether --with-libpth-prefix was given.
16562 if test "${with_libpth_prefix+set}" = set; then :
16563   withval=$with_libpth_prefix;
16564     if test "X$withval" = "Xno"; then
16565       use_additional=no
16566     else
16567       if test "X$withval" = "X"; then
16568
16569   acl_save_prefix="$prefix"
16570   prefix="$acl_final_prefix"
16571   acl_save_exec_prefix="$exec_prefix"
16572   exec_prefix="$acl_final_exec_prefix"
16573
16574           eval additional_includedir=\"$includedir\"
16575           eval additional_libdir=\"$libdir\"
16576
16577   exec_prefix="$acl_save_exec_prefix"
16578   prefix="$acl_save_prefix"
16579
16580       else
16581         additional_includedir="$withval/include"
16582         additional_libdir="$withval/$acl_libdirstem"
16583         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16584            && ! test -d "$withval/$acl_libdirstem"; then
16585           additional_libdir="$withval/$acl_libdirstem2"
16586         fi
16587       fi
16588     fi
16589
16590 fi
16591
16592       LIBPTH=
16593   LTLIBPTH=
16594   INCPTH=
16595   LIBPTH_PREFIX=
16596       HAVE_LIBPTH=
16597   rpathdirs=
16598   ltrpathdirs=
16599   names_already_handled=
16600   names_next_round='pth '
16601   while test -n "$names_next_round"; do
16602     names_this_round="$names_next_round"
16603     names_next_round=
16604     for name in $names_this_round; do
16605       already_handled=
16606       for n in $names_already_handled; do
16607         if test "$n" = "$name"; then
16608           already_handled=yes
16609           break
16610         fi
16611       done
16612       if test -z "$already_handled"; then
16613         names_already_handled="$names_already_handled $name"
16614                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16615         eval value=\"\$HAVE_LIB$uppername\"
16616         if test -n "$value"; then
16617           if test "$value" = yes; then
16618             eval value=\"\$LIB$uppername\"
16619             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16620             eval value=\"\$LTLIB$uppername\"
16621             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16622           else
16623                                     :
16624           fi
16625         else
16626                               found_dir=
16627           found_la=
16628           found_so=
16629           found_a=
16630           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16631           if test -n "$acl_shlibext"; then
16632             shrext=".$acl_shlibext"             # typically: shrext=.so
16633           else
16634             shrext=
16635           fi
16636           if test $use_additional = yes; then
16637             dir="$additional_libdir"
16638                                     if test -n "$acl_shlibext"; then
16639               if test -f "$dir/$libname$shrext"; then
16640                 found_dir="$dir"
16641                 found_so="$dir/$libname$shrext"
16642               else
16643                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16644                   ver=`(cd "$dir" && \
16645                         for f in "$libname$shrext".*; do echo "$f"; done \
16646                         | sed -e "s,^$libname$shrext\\\\.,," \
16647                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16648                         | sed 1q ) 2>/dev/null`
16649                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16650                     found_dir="$dir"
16651                     found_so="$dir/$libname$shrext.$ver"
16652                   fi
16653                 else
16654                   eval library_names=\"$acl_library_names_spec\"
16655                   for f in $library_names; do
16656                     if test -f "$dir/$f"; then
16657                       found_dir="$dir"
16658                       found_so="$dir/$f"
16659                       break
16660                     fi
16661                   done
16662                 fi
16663               fi
16664             fi
16665                         if test "X$found_dir" = "X"; then
16666               if test -f "$dir/$libname.$acl_libext"; then
16667                 found_dir="$dir"
16668                 found_a="$dir/$libname.$acl_libext"
16669               fi
16670             fi
16671             if test "X$found_dir" != "X"; then
16672               if test -f "$dir/$libname.la"; then
16673                 found_la="$dir/$libname.la"
16674               fi
16675             fi
16676           fi
16677           if test "X$found_dir" = "X"; then
16678             for x in $LDFLAGS $LTLIBPTH; do
16679
16680   acl_save_prefix="$prefix"
16681   prefix="$acl_final_prefix"
16682   acl_save_exec_prefix="$exec_prefix"
16683   exec_prefix="$acl_final_exec_prefix"
16684   eval x=\"$x\"
16685   exec_prefix="$acl_save_exec_prefix"
16686   prefix="$acl_save_prefix"
16687
16688               case "$x" in
16689                 -L*)
16690                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16691                                     if test -n "$acl_shlibext"; then
16692                     if test -f "$dir/$libname$shrext"; then
16693                       found_dir="$dir"
16694                       found_so="$dir/$libname$shrext"
16695                     else
16696                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16697                         ver=`(cd "$dir" && \
16698                               for f in "$libname$shrext".*; do echo "$f"; done \
16699                               | sed -e "s,^$libname$shrext\\\\.,," \
16700                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16701                               | sed 1q ) 2>/dev/null`
16702                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16703                           found_dir="$dir"
16704                           found_so="$dir/$libname$shrext.$ver"
16705                         fi
16706                       else
16707                         eval library_names=\"$acl_library_names_spec\"
16708                         for f in $library_names; do
16709                           if test -f "$dir/$f"; then
16710                             found_dir="$dir"
16711                             found_so="$dir/$f"
16712                             break
16713                           fi
16714                         done
16715                       fi
16716                     fi
16717                   fi
16718                                     if test "X$found_dir" = "X"; then
16719                     if test -f "$dir/$libname.$acl_libext"; then
16720                       found_dir="$dir"
16721                       found_a="$dir/$libname.$acl_libext"
16722                     fi
16723                   fi
16724                   if test "X$found_dir" != "X"; then
16725                     if test -f "$dir/$libname.la"; then
16726                       found_la="$dir/$libname.la"
16727                     fi
16728                   fi
16729                   ;;
16730               esac
16731               if test "X$found_dir" != "X"; then
16732                 break
16733               fi
16734             done
16735           fi
16736           if test "X$found_dir" != "X"; then
16737                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16738             if test "X$found_so" != "X"; then
16739                                                         if test "$enable_rpath" = no \
16740                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16741                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16742                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16743               else
16744                                                                                 haveit=
16745                 for x in $ltrpathdirs; do
16746                   if test "X$x" = "X$found_dir"; then
16747                     haveit=yes
16748                     break
16749                   fi
16750                 done
16751                 if test -z "$haveit"; then
16752                   ltrpathdirs="$ltrpathdirs $found_dir"
16753                 fi
16754                                 if test "$acl_hardcode_direct" = yes; then
16755                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16756                 else
16757                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16758                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16759                                                             haveit=
16760                     for x in $rpathdirs; do
16761                       if test "X$x" = "X$found_dir"; then
16762                         haveit=yes
16763                         break
16764                       fi
16765                     done
16766                     if test -z "$haveit"; then
16767                       rpathdirs="$rpathdirs $found_dir"
16768                     fi
16769                   else
16770                                                                                 haveit=
16771                     for x in $LDFLAGS $LIBPTH; do
16772
16773   acl_save_prefix="$prefix"
16774   prefix="$acl_final_prefix"
16775   acl_save_exec_prefix="$exec_prefix"
16776   exec_prefix="$acl_final_exec_prefix"
16777   eval x=\"$x\"
16778   exec_prefix="$acl_save_exec_prefix"
16779   prefix="$acl_save_prefix"
16780
16781                       if test "X$x" = "X-L$found_dir"; then
16782                         haveit=yes
16783                         break
16784                       fi
16785                     done
16786                     if test -z "$haveit"; then
16787                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16788                     fi
16789                     if test "$acl_hardcode_minus_L" != no; then
16790                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16791                     else
16792                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16793                     fi
16794                   fi
16795                 fi
16796               fi
16797             else
16798               if test "X$found_a" != "X"; then
16799                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16800               else
16801                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16802               fi
16803             fi
16804                         additional_includedir=
16805             case "$found_dir" in
16806               */$acl_libdirstem | */$acl_libdirstem/)
16807                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16808                 if test "$name" = 'pth'; then
16809                   LIBPTH_PREFIX="$basedir"
16810                 fi
16811                 additional_includedir="$basedir/include"
16812                 ;;
16813               */$acl_libdirstem2 | */$acl_libdirstem2/)
16814                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16815                 if test "$name" = 'pth'; then
16816                   LIBPTH_PREFIX="$basedir"
16817                 fi
16818                 additional_includedir="$basedir/include"
16819                 ;;
16820             esac
16821             if test "X$additional_includedir" != "X"; then
16822                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16823                 haveit=
16824                 if test "X$additional_includedir" = "X/usr/local/include"; then
16825                   if test -n "$GCC"; then
16826                     case $host_os in
16827                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16828                     esac
16829                   fi
16830                 fi
16831                 if test -z "$haveit"; then
16832                   for x in $CPPFLAGS $INCPTH; do
16833
16834   acl_save_prefix="$prefix"
16835   prefix="$acl_final_prefix"
16836   acl_save_exec_prefix="$exec_prefix"
16837   exec_prefix="$acl_final_exec_prefix"
16838   eval x=\"$x\"
16839   exec_prefix="$acl_save_exec_prefix"
16840   prefix="$acl_save_prefix"
16841
16842                     if test "X$x" = "X-I$additional_includedir"; then
16843                       haveit=yes
16844                       break
16845                     fi
16846                   done
16847                   if test -z "$haveit"; then
16848                     if test -d "$additional_includedir"; then
16849                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16850                     fi
16851                   fi
16852                 fi
16853               fi
16854             fi
16855                         if test -n "$found_la"; then
16856                                                         save_libdir="$libdir"
16857               case "$found_la" in
16858                 */* | *\\*) . "$found_la" ;;
16859                 *) . "./$found_la" ;;
16860               esac
16861               libdir="$save_libdir"
16862                             for dep in $dependency_libs; do
16863                 case "$dep" in
16864                   -L*)
16865                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16866                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16867                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16868                       haveit=
16869                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16870                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16871                         if test -n "$GCC"; then
16872                           case $host_os in
16873                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16874                           esac
16875                         fi
16876                       fi
16877                       if test -z "$haveit"; then
16878                         haveit=
16879                         for x in $LDFLAGS $LIBPTH; do
16880
16881   acl_save_prefix="$prefix"
16882   prefix="$acl_final_prefix"
16883   acl_save_exec_prefix="$exec_prefix"
16884   exec_prefix="$acl_final_exec_prefix"
16885   eval x=\"$x\"
16886   exec_prefix="$acl_save_exec_prefix"
16887   prefix="$acl_save_prefix"
16888
16889                           if test "X$x" = "X-L$additional_libdir"; then
16890                             haveit=yes
16891                             break
16892                           fi
16893                         done
16894                         if test -z "$haveit"; then
16895                           if test -d "$additional_libdir"; then
16896                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16897                           fi
16898                         fi
16899                         haveit=
16900                         for x in $LDFLAGS $LTLIBPTH; do
16901
16902   acl_save_prefix="$prefix"
16903   prefix="$acl_final_prefix"
16904   acl_save_exec_prefix="$exec_prefix"
16905   exec_prefix="$acl_final_exec_prefix"
16906   eval x=\"$x\"
16907   exec_prefix="$acl_save_exec_prefix"
16908   prefix="$acl_save_prefix"
16909
16910                           if test "X$x" = "X-L$additional_libdir"; then
16911                             haveit=yes
16912                             break
16913                           fi
16914                         done
16915                         if test -z "$haveit"; then
16916                           if test -d "$additional_libdir"; then
16917                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16918                           fi
16919                         fi
16920                       fi
16921                     fi
16922                     ;;
16923                   -R*)
16924                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16925                     if test "$enable_rpath" != no; then
16926                                                                   haveit=
16927                       for x in $rpathdirs; do
16928                         if test "X$x" = "X$dir"; then
16929                           haveit=yes
16930                           break
16931                         fi
16932                       done
16933                       if test -z "$haveit"; then
16934                         rpathdirs="$rpathdirs $dir"
16935                       fi
16936                                                                   haveit=
16937                       for x in $ltrpathdirs; do
16938                         if test "X$x" = "X$dir"; then
16939                           haveit=yes
16940                           break
16941                         fi
16942                       done
16943                       if test -z "$haveit"; then
16944                         ltrpathdirs="$ltrpathdirs $dir"
16945                       fi
16946                     fi
16947                     ;;
16948                   -l*)
16949                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16950                     ;;
16951                   *.la)
16952                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16953                     ;;
16954                   *)
16955                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16956                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16957                     ;;
16958                 esac
16959               done
16960             fi
16961           else
16962                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16963             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16964           fi
16965         fi
16966       fi
16967     done
16968   done
16969   if test "X$rpathdirs" != "X"; then
16970     if test -n "$acl_hardcode_libdir_separator"; then
16971                         alldirs=
16972       for found_dir in $rpathdirs; do
16973         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16974       done
16975             acl_save_libdir="$libdir"
16976       libdir="$alldirs"
16977       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16978       libdir="$acl_save_libdir"
16979       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16980     else
16981             for found_dir in $rpathdirs; do
16982         acl_save_libdir="$libdir"
16983         libdir="$found_dir"
16984         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16985         libdir="$acl_save_libdir"
16986         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16987       done
16988     fi
16989   fi
16990   if test "X$ltrpathdirs" != "X"; then
16991             for found_dir in $ltrpathdirs; do
16992       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
16993     done
16994   fi
16995
16996
16997
16998
16999
17000
17001     ac_cv_libpth_libs="$LIBPTH"
17002     ac_cv_libpth_ltlibs="$LTLIBPTH"
17003     ac_cv_libpth_cppflags="$INCPTH"
17004     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17005
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17008 $as_echo "$ac_cv_libpth_libs" >&6; }
17009   LIBPTH="$ac_cv_libpth_libs"
17010   LTLIBPTH="$ac_cv_libpth_ltlibs"
17011   INCPTH="$ac_cv_libpth_cppflags"
17012   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17013
17014   for element in $INCPTH; do
17015     haveit=
17016     for x in $CPPFLAGS; do
17017
17018   acl_save_prefix="$prefix"
17019   prefix="$acl_final_prefix"
17020   acl_save_exec_prefix="$exec_prefix"
17021   exec_prefix="$acl_final_exec_prefix"
17022   eval x=\"$x\"
17023   exec_prefix="$acl_save_exec_prefix"
17024   prefix="$acl_save_prefix"
17025
17026       if test "X$x" = "X$element"; then
17027         haveit=yes
17028         break
17029       fi
17030     done
17031     if test -z "$haveit"; then
17032       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17033     fi
17034   done
17035
17036
17037
17038
17039       HAVE_LIBPTH=yes
17040
17041
17042
17043       gl_have_pth=
17044       gl_save_LIBS="$LIBS"
17045       LIBS="$LIBS $LIBPTH"
17046       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h.  */
17048 #include <pth.h>
17049 int
17050 main ()
17051 {
17052 pth_self();
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"; then :
17058   gl_have_pth=yes
17059 fi
17060 rm -f core conftest.err conftest.$ac_objext \
17061     conftest$ac_exeext conftest.$ac_ext
17062       LIBS="$gl_save_LIBS"
17063       if test -n "$gl_have_pth"; then
17064         gl_threads_api=pth
17065         LIBTHREAD="$LIBPTH"
17066         LTLIBTHREAD="$LTLIBPTH"
17067         LIBMULTITHREAD="$LIBTHREAD"
17068         LTLIBMULTITHREAD="$LTLIBTHREAD"
17069
17070 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17071
17072         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17073           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17074
17075 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17076
17077             LIBTHREAD=
17078             LTLIBTHREAD=
17079           fi
17080         fi
17081       else
17082         CPPFLAGS="$gl_save_CPPFLAGS"
17083       fi
17084     fi
17085     if test -z "$gl_have_pthread"; then
17086       case "$gl_use_threads" in
17087         yes | windows | win32) # The 'win32' is for backward compatibility.
17088           if { case "$host_os" in
17089                  mingw*) true;;
17090                  *) false;;
17091                esac
17092              }; then
17093             gl_threads_api=windows
17094
17095 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17096
17097           fi
17098           ;;
17099       esac
17100     fi
17101   fi
17102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17103 $as_echo_n "checking for multithread API to use... " >&6; }
17104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17105 $as_echo "$gl_threads_api" >&6; }
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116   GNULIB__EXIT=0;
17117   GNULIB_ATOLL=0;
17118   GNULIB_CALLOC_POSIX=0;
17119   GNULIB_CANONICALIZE_FILE_NAME=0;
17120   GNULIB_GETLOADAVG=0;
17121   GNULIB_GETSUBOPT=0;
17122   GNULIB_GRANTPT=0;
17123   GNULIB_MALLOC_POSIX=0;
17124   GNULIB_MBTOWC=0;
17125   GNULIB_MKDTEMP=0;
17126   GNULIB_MKOSTEMP=0;
17127   GNULIB_MKOSTEMPS=0;
17128   GNULIB_MKSTEMP=0;
17129   GNULIB_MKSTEMPS=0;
17130   GNULIB_POSIX_OPENPT=0;
17131   GNULIB_PTSNAME=0;
17132   GNULIB_PTSNAME_R=0;
17133   GNULIB_PUTENV=0;
17134   GNULIB_RANDOM=0;
17135   GNULIB_RANDOM_R=0;
17136   GNULIB_REALLOC_POSIX=0;
17137   GNULIB_REALPATH=0;
17138   GNULIB_RPMATCH=0;
17139   GNULIB_SECURE_GETENV=0;
17140   GNULIB_SETENV=0;
17141   GNULIB_STRTOD=0;
17142   GNULIB_STRTOLL=0;
17143   GNULIB_STRTOULL=0;
17144   GNULIB_SYSTEM_POSIX=0;
17145   GNULIB_UNLOCKPT=0;
17146   GNULIB_UNSETENV=0;
17147   GNULIB_WCTOMB=0;
17148     HAVE__EXIT=1;
17149   HAVE_ATOLL=1;
17150   HAVE_CANONICALIZE_FILE_NAME=1;
17151   HAVE_DECL_GETLOADAVG=1;
17152   HAVE_GETSUBOPT=1;
17153   HAVE_GRANTPT=1;
17154   HAVE_MKDTEMP=1;
17155   HAVE_MKOSTEMP=1;
17156   HAVE_MKOSTEMPS=1;
17157   HAVE_MKSTEMP=1;
17158   HAVE_MKSTEMPS=1;
17159   HAVE_POSIX_OPENPT=1;
17160   HAVE_PTSNAME=1;
17161   HAVE_PTSNAME_R=1;
17162   HAVE_RANDOM=1;
17163   HAVE_RANDOM_H=1;
17164   HAVE_RANDOM_R=1;
17165   HAVE_REALPATH=1;
17166   HAVE_RPMATCH=1;
17167   HAVE_SECURE_GETENV=1;
17168   HAVE_SETENV=1;
17169   HAVE_DECL_SETENV=1;
17170   HAVE_STRTOD=1;
17171   HAVE_STRTOLL=1;
17172   HAVE_STRTOULL=1;
17173   HAVE_STRUCT_RANDOM_DATA=1;
17174   HAVE_SYS_LOADAVG_H=0;
17175   HAVE_UNLOCKPT=1;
17176   HAVE_DECL_UNSETENV=1;
17177   REPLACE_CALLOC=0;
17178   REPLACE_CANONICALIZE_FILE_NAME=0;
17179   REPLACE_MALLOC=0;
17180   REPLACE_MBTOWC=0;
17181   REPLACE_MKSTEMP=0;
17182   REPLACE_PTSNAME=0;
17183   REPLACE_PTSNAME_R=0;
17184   REPLACE_PUTENV=0;
17185   REPLACE_RANDOM_R=0;
17186   REPLACE_REALLOC=0;
17187   REPLACE_REALPATH=0;
17188   REPLACE_SETENV=0;
17189   REPLACE_STRTOD=0;
17190   REPLACE_UNSETENV=0;
17191   REPLACE_WCTOMB=0;
17192
17193
17194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17195 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17196 if ${gl_cv_func_malloc_posix+:} false; then :
17197   $as_echo_n "(cached) " >&6
17198 else
17199
17200                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203 int
17204 main ()
17205 {
17206 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17207              choke me
17208              #endif
17209
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215   gl_cv_func_malloc_posix=yes
17216 else
17217   gl_cv_func_malloc_posix=no
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17223 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17224
17225
17226
17227       for ac_header in stdlib.h
17228 do :
17229   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17230 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17231   cat >>confdefs.h <<_ACEOF
17232 #define HAVE_STDLIB_H 1
17233 _ACEOF
17234
17235 fi
17236
17237 done
17238
17239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17240 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17241 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17242   $as_echo_n "(cached) " >&6
17243 else
17244   if test "$cross_compiling" = yes; then :
17245   case "$host_os" in
17246           # Guess yes on platforms where we know the result.
17247           *-gnu* | freebsd* | netbsd* | openbsd* \
17248           | hpux* | solaris* | cygwin* | mingw*)
17249             ac_cv_func_malloc_0_nonnull=yes ;;
17250           # If we don't know, assume the worst.
17251           *) ac_cv_func_malloc_0_nonnull=no ;;
17252         esac
17253
17254 else
17255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h.  */
17257 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17258             # include <stdlib.h>
17259             #else
17260             char *malloc ();
17261             #endif
17262
17263 int
17264 main ()
17265 {
17266 return ! malloc (0);
17267   ;
17268   return 0;
17269 }
17270
17271 _ACEOF
17272 if ac_fn_c_try_run "$LINENO"; then :
17273   ac_cv_func_malloc_0_nonnull=yes
17274 else
17275   ac_cv_func_malloc_0_nonnull=no
17276 fi
17277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17278   conftest.$ac_objext conftest.beam conftest.$ac_ext
17279 fi
17280
17281
17282 fi
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17284 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17285   if test $ac_cv_func_malloc_0_nonnull = yes; then :
17286   gl_cv_func_malloc_0_nonnull=1
17287 else
17288   gl_cv_func_malloc_0_nonnull=0
17289 fi
17290
17291
17292 cat >>confdefs.h <<_ACEOF
17293 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17294 _ACEOF
17295
17296
17297
17298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17299 $as_echo_n "checking for unsigned long long int... " >&6; }
17300 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17301   $as_echo_n "(cached) " >&6
17302 else
17303   ac_cv_type_unsigned_long_long_int=yes
17304      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17305        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h.  */
17307
17308   /* For now, do not test the preprocessor; as of 2007 there are too many
17309          implementations with broken preprocessors.  Perhaps this can
17310          be revisited in 2012.  In the meantime, code should not expect
17311          #if to work with literals wider than 32 bits.  */
17312       /* Test literals.  */
17313       long long int ll = 9223372036854775807ll;
17314       long long int nll = -9223372036854775807LL;
17315       unsigned long long int ull = 18446744073709551615ULL;
17316       /* Test constant expressions.   */
17317       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17318                      ? 1 : -1)];
17319       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17320                      ? 1 : -1)];
17321       int i = 63;
17322 int
17323 main ()
17324 {
17325 /* Test availability of runtime routines for shift and division.  */
17326       long long int llmax = 9223372036854775807ll;
17327       unsigned long long int ullmax = 18446744073709551615ull;
17328       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17329               | (llmax / ll) | (llmax % ll)
17330               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17331               | (ullmax / ull) | (ullmax % ull));
17332   ;
17333   return 0;
17334 }
17335
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338
17339 else
17340   ac_cv_type_unsigned_long_long_int=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343     conftest$ac_exeext conftest.$ac_ext
17344      fi
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17347 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17348   if test $ac_cv_type_unsigned_long_long_int = yes; then
17349
17350 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17351
17352   fi
17353
17354
17355
17356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17357 $as_echo_n "checking for long long int... " >&6; }
17358 if ${ac_cv_type_long_long_int+:} false; then :
17359   $as_echo_n "(cached) " >&6
17360 else
17361   ac_cv_type_long_long_int=yes
17362       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17363         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17364         if test $ac_cv_type_long_long_int = yes; then
17365                                         if test "$cross_compiling" = yes; then :
17366   :
17367 else
17368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h.  */
17370 #include <limits.h>
17371                  #ifndef LLONG_MAX
17372                  # define HALF \
17373                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17374                  # define LLONG_MAX (HALF - 1 + HALF)
17375                  #endif
17376 int
17377 main ()
17378 {
17379 long long int n = 1;
17380                  int i;
17381                  for (i = 0; ; i++)
17382                    {
17383                      long long int m = n << i;
17384                      if (m >> i != n)
17385                        return 1;
17386                      if (LLONG_MAX / 2 < m)
17387                        break;
17388                    }
17389                  return 0;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 if ac_fn_c_try_run "$LINENO"; then :
17395
17396 else
17397   ac_cv_type_long_long_int=no
17398 fi
17399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17400   conftest.$ac_objext conftest.beam conftest.$ac_ext
17401 fi
17402
17403         fi
17404       fi
17405 fi
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17407 $as_echo "$ac_cv_type_long_long_int" >&6; }
17408   if test $ac_cv_type_long_long_int = yes; then
17409
17410 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17411
17412   fi
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423   for ac_func in $gl_func_list
17424 do :
17425   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17428   cat >>confdefs.h <<_ACEOF
17429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17430 _ACEOF
17431
17432 fi
17433 done
17434
17435
17436
17437
17438
17439
17440   GNULIB_FFSL=0;
17441   GNULIB_FFSLL=0;
17442   GNULIB_MEMCHR=0;
17443   GNULIB_MEMMEM=0;
17444   GNULIB_MEMPCPY=0;
17445   GNULIB_MEMRCHR=0;
17446   GNULIB_RAWMEMCHR=0;
17447   GNULIB_STPCPY=0;
17448   GNULIB_STPNCPY=0;
17449   GNULIB_STRCHRNUL=0;
17450   GNULIB_STRDUP=0;
17451   GNULIB_STRNCAT=0;
17452   GNULIB_STRNDUP=0;
17453   GNULIB_STRNLEN=0;
17454   GNULIB_STRPBRK=0;
17455   GNULIB_STRSEP=0;
17456   GNULIB_STRSTR=0;
17457   GNULIB_STRCASESTR=0;
17458   GNULIB_STRTOK_R=0;
17459   GNULIB_MBSLEN=0;
17460   GNULIB_MBSNLEN=0;
17461   GNULIB_MBSCHR=0;
17462   GNULIB_MBSRCHR=0;
17463   GNULIB_MBSSTR=0;
17464   GNULIB_MBSCASECMP=0;
17465   GNULIB_MBSNCASECMP=0;
17466   GNULIB_MBSPCASECMP=0;
17467   GNULIB_MBSCASESTR=0;
17468   GNULIB_MBSCSPN=0;
17469   GNULIB_MBSPBRK=0;
17470   GNULIB_MBSSPN=0;
17471   GNULIB_MBSSEP=0;
17472   GNULIB_MBSTOK_R=0;
17473   GNULIB_STRERROR=0;
17474   GNULIB_STRERROR_R=0;
17475   GNULIB_STRSIGNAL=0;
17476   GNULIB_STRVERSCMP=0;
17477   HAVE_MBSLEN=0;
17478     HAVE_FFSL=1;
17479   HAVE_FFSLL=1;
17480   HAVE_MEMCHR=1;
17481   HAVE_DECL_MEMMEM=1;
17482   HAVE_MEMPCPY=1;
17483   HAVE_DECL_MEMRCHR=1;
17484   HAVE_RAWMEMCHR=1;
17485   HAVE_STPCPY=1;
17486   HAVE_STPNCPY=1;
17487   HAVE_STRCHRNUL=1;
17488   HAVE_DECL_STRDUP=1;
17489   HAVE_DECL_STRNDUP=1;
17490   HAVE_DECL_STRNLEN=1;
17491   HAVE_STRPBRK=1;
17492   HAVE_STRSEP=1;
17493   HAVE_STRCASESTR=1;
17494   HAVE_DECL_STRTOK_R=1;
17495   HAVE_DECL_STRERROR_R=1;
17496   HAVE_DECL_STRSIGNAL=1;
17497   HAVE_STRVERSCMP=1;
17498   REPLACE_MEMCHR=0;
17499   REPLACE_MEMMEM=0;
17500   REPLACE_STPNCPY=0;
17501   REPLACE_STRDUP=0;
17502   REPLACE_STRSTR=0;
17503   REPLACE_STRCASESTR=0;
17504   REPLACE_STRCHRNUL=0;
17505   REPLACE_STRERROR=0;
17506   REPLACE_STRERROR_R=0;
17507   REPLACE_STRNCAT=0;
17508   REPLACE_STRNDUP=0;
17509   REPLACE_STRNLEN=0;
17510   REPLACE_STRSIGNAL=0;
17511   REPLACE_STRTOK_R=0;
17512   UNDEFINE_STRTOK_R=0;
17513
17514
17515
17516
17517
17518   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17519   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17520   # irrelevant for anonymous mappings.
17521   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17522 if test "x$ac_cv_func_mmap" = xyes; then :
17523   gl_have_mmap=yes
17524 else
17525   gl_have_mmap=no
17526 fi
17527
17528
17529   # Try to allow MAP_ANONYMOUS.
17530   gl_have_mmap_anonymous=no
17531   if test $gl_have_mmap = yes; then
17532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17533 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536
17537 #include <sys/mman.h>
17538 #ifdef MAP_ANONYMOUS
17539     I cannot identify this map
17540 #endif
17541
17542 _ACEOF
17543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17544   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17545   gl_have_mmap_anonymous=yes
17546 fi
17547 rm -f conftest*
17548
17549     if test $gl_have_mmap_anonymous != yes; then
17550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h.  */
17552
17553 #include <sys/mman.h>
17554 #ifdef MAP_ANON
17555     I cannot identify this map
17556 #endif
17557
17558 _ACEOF
17559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17560   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17561
17562 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17563
17564          gl_have_mmap_anonymous=yes
17565 fi
17566 rm -f conftest*
17567
17568     fi
17569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17570 $as_echo "$gl_have_mmap_anonymous" >&6; }
17571     if test $gl_have_mmap_anonymous = yes; then
17572
17573 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17574
17575     fi
17576   fi
17577
17578
17579   :
17580
17581
17582
17583
17584
17585
17586   :
17587
17588
17589
17590
17591
17592
17593
17594
17595   if test $HAVE_MEMCHR = 1; then
17596     # Detect platform-specific bugs in some versions of glibc:
17597     # memchr should not dereference anything with length 0
17598     #   http://bugzilla.redhat.com/499689
17599     # memchr should not dereference overestimated length after a match
17600     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17601     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17602     # Assume that memchr works on platforms that lack mprotect.
17603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17604 $as_echo_n "checking whether memchr works... " >&6; }
17605 if ${gl_cv_func_memchr_works+:} false; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608   if test "$cross_compiling" = yes; then :
17609          gl_cv_func_memchr_works="guessing no"
17610 else
17611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h.  */
17613
17614 #include <string.h>
17615 #if HAVE_SYS_MMAN_H
17616 # include <fcntl.h>
17617 # include <unistd.h>
17618 # include <sys/types.h>
17619 # include <sys/mman.h>
17620 # ifndef MAP_FILE
17621 #  define MAP_FILE 0
17622 # endif
17623 #endif
17624
17625 int
17626 main ()
17627 {
17628
17629   int result = 0;
17630   char *fence = NULL;
17631 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17632 # if HAVE_MAP_ANONYMOUS
17633   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17634   const int fd = -1;
17635 # else /* !HAVE_MAP_ANONYMOUS */
17636   const int flags = MAP_FILE | MAP_PRIVATE;
17637   int fd = open ("/dev/zero", O_RDONLY, 0666);
17638   if (fd >= 0)
17639 # endif
17640     {
17641       int pagesize = getpagesize ();
17642       char *two_pages =
17643         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17644                        flags, fd, 0);
17645       if (two_pages != (char *)(-1)
17646           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17647         fence = two_pages + pagesize;
17648     }
17649 #endif
17650   if (fence)
17651     {
17652       if (memchr (fence, 0, 0))
17653         result |= 1;
17654       strcpy (fence - 9, "12345678");
17655       if (memchr (fence - 9, 0, 79) != fence - 1)
17656         result |= 2;
17657       if (memchr (fence - 1, 0, 3) != fence - 1)
17658         result |= 4;
17659     }
17660   return result;
17661
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 if ac_fn_c_try_run "$LINENO"; then :
17667   gl_cv_func_memchr_works=yes
17668 else
17669   gl_cv_func_memchr_works=no
17670 fi
17671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17672   conftest.$ac_objext conftest.beam conftest.$ac_ext
17673 fi
17674
17675 fi
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17677 $as_echo "$gl_cv_func_memchr_works" >&6; }
17678     if test "$gl_cv_func_memchr_works" != yes; then
17679       REPLACE_MEMCHR=1
17680     fi
17681   fi
17682
17683
17684
17685
17686
17687
17688
17689     gl_cv_c_multiarch=no
17690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h.  */
17692 #ifndef __APPLE_CC__
17693          not a universal capable compiler
17694         #endif
17695         typedef int dummy;
17696
17697 _ACEOF
17698 if ac_fn_c_try_compile "$LINENO"; then :
17699
17700                arch=
17701      prev=
17702      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17703        if test -n "$prev"; then
17704          case $word in
17705            i?86 | x86_64 | ppc | ppc64)
17706              if test -z "$arch" || test "$arch" = "$word"; then
17707                arch="$word"
17708              else
17709                gl_cv_c_multiarch=yes
17710              fi
17711              ;;
17712          esac
17713          prev=
17714        else
17715          if test "x$word" = "x-arch"; then
17716            prev=arch
17717          fi
17718        fi
17719      done
17720
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723   if test $gl_cv_c_multiarch = yes; then
17724     APPLE_UNIVERSAL_BUILD=1
17725   else
17726     APPLE_UNIVERSAL_BUILD=0
17727   fi
17728
17729
17730
17731   GNULIB_PTHREAD_SIGMASK=0;
17732   GNULIB_RAISE=0;
17733   GNULIB_SIGNAL_H_SIGPIPE=0;
17734   GNULIB_SIGPROCMASK=0;
17735   GNULIB_SIGACTION=0;
17736     HAVE_POSIX_SIGNALBLOCKING=1;
17737   HAVE_PTHREAD_SIGMASK=1;
17738   HAVE_RAISE=1;
17739   HAVE_SIGSET_T=1;
17740   HAVE_SIGINFO_T=1;
17741   HAVE_SIGACTION=1;
17742   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17743
17744   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17745
17746   HAVE_SIGHANDLER_T=1;
17747   REPLACE_PTHREAD_SIGMASK=0;
17748   REPLACE_RAISE=0;
17749
17750
17751   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17752       #include <signal.h>
17753       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
17754       #include <sys/types.h>
17755
17756 "
17757 if test "x$ac_cv_type_sigset_t" = xyes; then :
17758
17759 cat >>confdefs.h <<_ACEOF
17760 #define HAVE_SIGSET_T 1
17761 _ACEOF
17762
17763 gl_cv_type_sigset_t=yes
17764 else
17765   gl_cv_type_sigset_t=no
17766 fi
17767
17768   if test $gl_cv_type_sigset_t != yes; then
17769     HAVE_SIGSET_T=0
17770   fi
17771
17772
17773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17774 $as_echo_n "checking for ssize_t... " >&6; }
17775 if ${gt_cv_ssize_t+:} false; then :
17776   $as_echo_n "(cached) " >&6
17777 else
17778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h.  */
17780 #include <sys/types.h>
17781 int
17782 main ()
17783 {
17784 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17785             return !x;
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 if ac_fn_c_try_compile "$LINENO"; then :
17791   gt_cv_ssize_t=yes
17792 else
17793   gt_cv_ssize_t=no
17794 fi
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796 fi
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17798 $as_echo "$gt_cv_ssize_t" >&6; }
17799   if test $gt_cv_ssize_t = no; then
17800
17801 $as_echo "#define ssize_t int" >>confdefs.h
17802
17803   fi
17804
17805
17806       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17807 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17808   ac_have_decl=1
17809 else
17810   ac_have_decl=0
17811 fi
17812
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_DECL_SETENV $ac_have_decl
17815 _ACEOF
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826   :
17827
17828
17829
17830
17831
17832   if test $ac_cv_have_decl_setenv = no; then
17833     HAVE_DECL_SETENV=0
17834   fi
17835
17836   :
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846   :
17847
17848
17849
17850
17851
17852   for ac_header in search.h
17853 do :
17854   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
17855 if test "x$ac_cv_header_search_h" = xyes; then :
17856   cat >>confdefs.h <<_ACEOF
17857 #define HAVE_SEARCH_H 1
17858 _ACEOF
17859
17860 fi
17861
17862 done
17863
17864   for ac_func in tsearch
17865 do :
17866   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
17867 if test "x$ac_cv_func_tsearch" = xyes; then :
17868   cat >>confdefs.h <<_ACEOF
17869 #define HAVE_TSEARCH 1
17870 _ACEOF
17871
17872 fi
17873 done
17874
17875
17876
17877
17878
17879
17880
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17883 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17884 if ${ac_cv_c_restrict+:} false; then :
17885   $as_echo_n "(cached) " >&6
17886 else
17887   ac_cv_c_restrict=no
17888    # The order here caters to the fact that C++ does not require restrict.
17889    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17890      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h.  */
17892 typedef int * int_ptr;
17893         int foo (int_ptr $ac_kw ip) {
17894         return ip[0];
17895        }
17896 int
17897 main ()
17898 {
17899 int s[1];
17900         int * $ac_kw t = s;
17901         t[0] = 0;
17902         return foo(t)
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 if ac_fn_c_try_compile "$LINENO"; then :
17908   ac_cv_c_restrict=$ac_kw
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911      test "$ac_cv_c_restrict" != no && break
17912    done
17913
17914 fi
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17916 $as_echo "$ac_cv_c_restrict" >&6; }
17917
17918  case $ac_cv_c_restrict in
17919    restrict) ;;
17920    no) $as_echo "#define restrict /**/" >>confdefs.h
17921  ;;
17922    *)  cat >>confdefs.h <<_ACEOF
17923 #define restrict $ac_cv_c_restrict
17924 _ACEOF
17925  ;;
17926  esac
17927
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17929 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17930 if ${ac_cv_type_uid_t+:} false; then :
17931   $as_echo_n "(cached) " >&6
17932 else
17933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h.  */
17935 #include <sys/types.h>
17936
17937 _ACEOF
17938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17939   $EGREP "uid_t" >/dev/null 2>&1; then :
17940   ac_cv_type_uid_t=yes
17941 else
17942   ac_cv_type_uid_t=no
17943 fi
17944 rm -f conftest*
17945
17946 fi
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17948 $as_echo "$ac_cv_type_uid_t" >&6; }
17949 if test $ac_cv_type_uid_t = no; then
17950
17951 $as_echo "#define uid_t int" >>confdefs.h
17952
17953
17954 $as_echo "#define gid_t int" >>confdefs.h
17955
17956 fi
17957
17958 :
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17970 if test "x$ac_cv_type_pid_t" = xyes; then :
17971
17972 else
17973
17974 cat >>confdefs.h <<_ACEOF
17975 #define pid_t int
17976 _ACEOF
17977
17978 fi
17979
17980
17981   GNULIB_DPRINTF=0;
17982   GNULIB_FCLOSE=0;
17983   GNULIB_FDOPEN=0;
17984   GNULIB_FFLUSH=0;
17985   GNULIB_FGETC=0;
17986   GNULIB_FGETS=0;
17987   GNULIB_FOPEN=0;
17988   GNULIB_FPRINTF=0;
17989   GNULIB_FPRINTF_POSIX=0;
17990   GNULIB_FPURGE=0;
17991   GNULIB_FPUTC=0;
17992   GNULIB_FPUTS=0;
17993   GNULIB_FREAD=0;
17994   GNULIB_FREOPEN=0;
17995   GNULIB_FSCANF=0;
17996   GNULIB_FSEEK=0;
17997   GNULIB_FSEEKO=0;
17998   GNULIB_FTELL=0;
17999   GNULIB_FTELLO=0;
18000   GNULIB_FWRITE=0;
18001   GNULIB_GETC=0;
18002   GNULIB_GETCHAR=0;
18003   GNULIB_GETDELIM=0;
18004   GNULIB_GETLINE=0;
18005   GNULIB_OBSTACK_PRINTF=0;
18006   GNULIB_OBSTACK_PRINTF_POSIX=0;
18007   GNULIB_PCLOSE=0;
18008   GNULIB_PERROR=0;
18009   GNULIB_POPEN=0;
18010   GNULIB_PRINTF=0;
18011   GNULIB_PRINTF_POSIX=0;
18012   GNULIB_PUTC=0;
18013   GNULIB_PUTCHAR=0;
18014   GNULIB_PUTS=0;
18015   GNULIB_REMOVE=0;
18016   GNULIB_RENAME=0;
18017   GNULIB_RENAMEAT=0;
18018   GNULIB_SCANF=0;
18019   GNULIB_SNPRINTF=0;
18020   GNULIB_SPRINTF_POSIX=0;
18021   GNULIB_STDIO_H_NONBLOCKING=0;
18022   GNULIB_STDIO_H_SIGPIPE=0;
18023   GNULIB_TMPFILE=0;
18024   GNULIB_VASPRINTF=0;
18025   GNULIB_VFSCANF=0;
18026   GNULIB_VSCANF=0;
18027   GNULIB_VDPRINTF=0;
18028   GNULIB_VFPRINTF=0;
18029   GNULIB_VFPRINTF_POSIX=0;
18030   GNULIB_VPRINTF=0;
18031   GNULIB_VPRINTF_POSIX=0;
18032   GNULIB_VSNPRINTF=0;
18033   GNULIB_VSPRINTF_POSIX=0;
18034     HAVE_DECL_FPURGE=1;
18035   HAVE_DECL_FSEEKO=1;
18036   HAVE_DECL_FTELLO=1;
18037   HAVE_DECL_GETDELIM=1;
18038   HAVE_DECL_GETLINE=1;
18039   HAVE_DECL_OBSTACK_PRINTF=1;
18040   HAVE_DECL_SNPRINTF=1;
18041   HAVE_DECL_VSNPRINTF=1;
18042   HAVE_DPRINTF=1;
18043   HAVE_FSEEKO=1;
18044   HAVE_FTELLO=1;
18045   HAVE_PCLOSE=1;
18046   HAVE_POPEN=1;
18047   HAVE_RENAMEAT=1;
18048   HAVE_VASPRINTF=1;
18049   HAVE_VDPRINTF=1;
18050   REPLACE_DPRINTF=0;
18051   REPLACE_FCLOSE=0;
18052   REPLACE_FDOPEN=0;
18053   REPLACE_FFLUSH=0;
18054   REPLACE_FOPEN=0;
18055   REPLACE_FPRINTF=0;
18056   REPLACE_FPURGE=0;
18057   REPLACE_FREOPEN=0;
18058   REPLACE_FSEEK=0;
18059   REPLACE_FSEEKO=0;
18060   REPLACE_FTELL=0;
18061   REPLACE_FTELLO=0;
18062   REPLACE_GETDELIM=0;
18063   REPLACE_GETLINE=0;
18064   REPLACE_OBSTACK_PRINTF=0;
18065   REPLACE_PERROR=0;
18066   REPLACE_POPEN=0;
18067   REPLACE_PRINTF=0;
18068   REPLACE_REMOVE=0;
18069   REPLACE_RENAME=0;
18070   REPLACE_RENAMEAT=0;
18071   REPLACE_SNPRINTF=0;
18072   REPLACE_SPRINTF=0;
18073   REPLACE_STDIO_READ_FUNCS=0;
18074   REPLACE_STDIO_WRITE_FUNCS=0;
18075   REPLACE_TMPFILE=0;
18076   REPLACE_VASPRINTF=0;
18077   REPLACE_VDPRINTF=0;
18078   REPLACE_VFPRINTF=0;
18079   REPLACE_VPRINTF=0;
18080   REPLACE_VSNPRINTF=0;
18081   REPLACE_VSPRINTF=0;
18082
18083
18084
18085
18086
18087
18088
18089
18090   :
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18101 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18102 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18103   $as_echo_n "(cached) " >&6
18104 else
18105
18106       if test "$cross_compiling" = yes; then :
18107
18108          case "$host_os" in
18109                                  # Guess yes on glibc systems.
18110            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
18111                                  # Guess yes on FreeBSD >= 5.
18112            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18113            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18114                                  # Guess yes on Mac OS X >= 10.3.
18115            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18116            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18117                                  # Guess yes on OpenBSD >= 3.9.
18118            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18119                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18120            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
18121                                  # Guess yes on Solaris >= 2.10.
18122            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18123            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
18124                                  # Guess yes on AIX >= 4.
18125            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
18126            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
18127                                  # Guess yes on NetBSD >= 3.
18128            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18129                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18130            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18131                                  # Guess yes on BeOS.
18132            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
18133                                  # If we don't know, assume the worst.
18134            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
18135          esac
18136
18137 else
18138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h.  */
18140
18141 #include <stdio.h>
18142 #include <string.h>
18143 #if HAVE_SNPRINTF
18144 # define my_snprintf snprintf
18145 #else
18146 # include <stdarg.h>
18147 static int my_snprintf (char *buf, int size, const char *format, ...)
18148 {
18149   va_list args;
18150   int ret;
18151   va_start (args, format);
18152   ret = vsnprintf (buf, size, format, args);
18153   va_end (args);
18154   return ret;
18155 }
18156 #endif
18157 static char buf[100];
18158 int main ()
18159 {
18160   strcpy (buf, "ABCDEF");
18161   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18162     return 1;
18163   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18164     return 2;
18165   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18166     return 3;
18167   return 0;
18168 }
18169 _ACEOF
18170 if ac_fn_c_try_run "$LINENO"; then :
18171   gl_cv_func_snprintf_retval_c99=yes
18172 else
18173   gl_cv_func_snprintf_retval_c99=no
18174 fi
18175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18176   conftest.$ac_objext conftest.beam conftest.$ac_ext
18177 fi
18178
18179
18180 fi
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18182 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18183
18184
18185       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18186 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18187   ac_have_decl=1
18188 else
18189   ac_have_decl=0
18190 fi
18191
18192 cat >>confdefs.h <<_ACEOF
18193 #define HAVE_DECL_SNPRINTF $ac_have_decl
18194 _ACEOF
18195
18196
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18198 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18199 if ${ac_cv_header_stdbool_h+:} false; then :
18200   $as_echo_n "(cached) " >&6
18201 else
18202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h.  */
18204
18205              #include <stdbool.h>
18206              #ifndef bool
18207               "error: bool is not defined"
18208              #endif
18209              #ifndef false
18210               "error: false is not defined"
18211              #endif
18212              #if false
18213               "error: false is not 0"
18214              #endif
18215              #ifndef true
18216               "error: true is not defined"
18217              #endif
18218              #if true != 1
18219               "error: true is not 1"
18220              #endif
18221              #ifndef __bool_true_false_are_defined
18222               "error: __bool_true_false_are_defined is not defined"
18223              #endif
18224
18225              struct s { _Bool s: 1; _Bool t; } s;
18226
18227              char a[true == 1 ? 1 : -1];
18228              char b[false == 0 ? 1 : -1];
18229              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18230              char d[(bool) 0.5 == true ? 1 : -1];
18231              /* See body of main program for 'e'.  */
18232              char f[(_Bool) 0.0 == false ? 1 : -1];
18233              char g[true];
18234              char h[sizeof (_Bool)];
18235              char i[sizeof s.t];
18236              enum { j = false, k = true, l = false * true, m = true * 256 };
18237              /* The following fails for
18238                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18239              _Bool n[m];
18240              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18241              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18242              /* Catch a bug in an HP-UX C compiler.  See
18243                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18244                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18245               */
18246              _Bool q = true;
18247              _Bool *pq = &q;
18248
18249 int
18250 main ()
18251 {
18252
18253              bool e = &s;
18254              *pq |= q;
18255              *pq |= ! q;
18256              /* Refer to every declared value, to avoid compiler optimizations.  */
18257              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18258                      + !m + !n + !o + !p + !q + !pq);
18259
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265   ac_cv_header_stdbool_h=yes
18266 else
18267   ac_cv_header_stdbool_h=no
18268 fi
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18272 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18273    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18274 if test "x$ac_cv_type__Bool" = xyes; then :
18275
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE__BOOL 1
18278 _ACEOF
18279
18280
18281 fi
18282
18283
18284
18285     REPLACE_NULL=0;
18286   HAVE_WCHAR_T=1;
18287
18288
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18290 $as_echo_n "checking for wchar_t... " >&6; }
18291 if ${gt_cv_c_wchar_t+:} false; then :
18292   $as_echo_n "(cached) " >&6
18293 else
18294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296 #include <stddef.h>
18297             wchar_t foo = (wchar_t)'\0';
18298 int
18299 main ()
18300 {
18301
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307   gt_cv_c_wchar_t=yes
18308 else
18309   gt_cv_c_wchar_t=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18314 $as_echo "$gt_cv_c_wchar_t" >&6; }
18315   if test $gt_cv_c_wchar_t = yes; then
18316
18317 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18318
18319   fi
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334   if test $ac_cv_type_long_long_int = yes; then
18335     HAVE_LONG_LONG_INT=1
18336   else
18337     HAVE_LONG_LONG_INT=0
18338   fi
18339
18340
18341   if test $ac_cv_type_unsigned_long_long_int = yes; then
18342     HAVE_UNSIGNED_LONG_LONG_INT=1
18343   else
18344     HAVE_UNSIGNED_LONG_LONG_INT=0
18345   fi
18346
18347
18348
18349   :
18350
18351
18352
18353
18354
18355   if test $ac_cv_header_wchar_h = yes; then
18356     HAVE_WCHAR_H=1
18357   else
18358     HAVE_WCHAR_H=0
18359   fi
18360
18361
18362       if test $ac_cv_header_inttypes_h = yes; then
18363     HAVE_INTTYPES_H=1
18364   else
18365     HAVE_INTTYPES_H=0
18366   fi
18367
18368
18369       if test $ac_cv_header_sys_types_h = yes; then
18370     HAVE_SYS_TYPES_H=1
18371   else
18372     HAVE_SYS_TYPES_H=0
18373   fi
18374
18375
18376
18377
18378
18379
18380
18381
18382   :
18383
18384
18385
18386
18387
18388
18389
18390
18391      if test $gl_cv_have_include_next = yes; then
18392        gl_cv_next_stdint_h='<'stdint.h'>'
18393      else
18394        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18395 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18396 if ${gl_cv_next_stdint_h+:} false; then :
18397   $as_echo_n "(cached) " >&6
18398 else
18399
18400              if test $ac_cv_header_stdint_h = yes; then
18401
18402
18403                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h.  */
18405 #include <stdint.h>
18406
18407 _ACEOF
18408                                                                                                                         case "$host_os" in
18409                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
18410                  *)    gl_absname_cpp="$ac_cpp" ;;
18411                esac
18412
18413                case "$host_os" in
18414                  mingw*)
18415                                                                                                                                      gl_dirsep_regex='[/\\]'
18416                    ;;
18417                  *)
18418                    gl_dirsep_regex='\/'
18419                    ;;
18420                esac
18421                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18422
18423                gl_header_literal_regex=`echo 'stdint.h' \
18424                                         | sed -e "$gl_make_literal_regex_sed"`
18425                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18426                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18427                    s|^/[^/]|//&|
18428                    p
18429                    q
18430                  }'
18431                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18432                       sed -n "$gl_absolute_header_sed"`'"'
18433           else
18434                gl_cv_next_stdint_h='<'stdint.h'>'
18435              fi
18436
18437
18438 fi
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18440 $as_echo "$gl_cv_next_stdint_h" >&6; }
18441      fi
18442      NEXT_STDINT_H=$gl_cv_next_stdint_h
18443
18444      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18445        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18446        gl_next_as_first_directive='<'stdint.h'>'
18447      else
18448        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18449        gl_next_as_first_directive=$gl_cv_next_stdint_h
18450      fi
18451      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18452
18453
18454
18455
18456   if test $ac_cv_header_stdint_h = yes; then
18457     HAVE_STDINT_H=1
18458   else
18459     HAVE_STDINT_H=0
18460   fi
18461
18462
18463     if test $ac_cv_header_stdint_h = yes; then
18464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18465 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18466 if ${gl_cv_header_working_stdint_h+:} false; then :
18467   $as_echo_n "(cached) " >&6
18468 else
18469   gl_cv_header_working_stdint_h=no
18470        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h.  */
18472
18473
18474 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18475 #include <stdint.h>
18476 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
18477 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18478 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18479 #endif
18480
18481
18482   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18483      included before <wchar.h>.  */
18484   #include <stddef.h>
18485   #include <signal.h>
18486   #if HAVE_WCHAR_H
18487   # include <stdio.h>
18488   # include <time.h>
18489   # include <wchar.h>
18490   #endif
18491
18492
18493 #ifdef INT8_MAX
18494 int8_t a1 = INT8_MAX;
18495 int8_t a1min = INT8_MIN;
18496 #endif
18497 #ifdef INT16_MAX
18498 int16_t a2 = INT16_MAX;
18499 int16_t a2min = INT16_MIN;
18500 #endif
18501 #ifdef INT32_MAX
18502 int32_t a3 = INT32_MAX;
18503 int32_t a3min = INT32_MIN;
18504 #endif
18505 #ifdef INT64_MAX
18506 int64_t a4 = INT64_MAX;
18507 int64_t a4min = INT64_MIN;
18508 #endif
18509 #ifdef UINT8_MAX
18510 uint8_t b1 = UINT8_MAX;
18511 #else
18512 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18513 #endif
18514 #ifdef UINT16_MAX
18515 uint16_t b2 = UINT16_MAX;
18516 #endif
18517 #ifdef UINT32_MAX
18518 uint32_t b3 = UINT32_MAX;
18519 #endif
18520 #ifdef UINT64_MAX
18521 uint64_t b4 = UINT64_MAX;
18522 #endif
18523 int_least8_t c1 = INT8_C (0x7f);
18524 int_least8_t c1max = INT_LEAST8_MAX;
18525 int_least8_t c1min = INT_LEAST8_MIN;
18526 int_least16_t c2 = INT16_C (0x7fff);
18527 int_least16_t c2max = INT_LEAST16_MAX;
18528 int_least16_t c2min = INT_LEAST16_MIN;
18529 int_least32_t c3 = INT32_C (0x7fffffff);
18530 int_least32_t c3max = INT_LEAST32_MAX;
18531 int_least32_t c3min = INT_LEAST32_MIN;
18532 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18533 int_least64_t c4max = INT_LEAST64_MAX;
18534 int_least64_t c4min = INT_LEAST64_MIN;
18535 uint_least8_t d1 = UINT8_C (0xff);
18536 uint_least8_t d1max = UINT_LEAST8_MAX;
18537 uint_least16_t d2 = UINT16_C (0xffff);
18538 uint_least16_t d2max = UINT_LEAST16_MAX;
18539 uint_least32_t d3 = UINT32_C (0xffffffff);
18540 uint_least32_t d3max = UINT_LEAST32_MAX;
18541 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18542 uint_least64_t d4max = UINT_LEAST64_MAX;
18543 int_fast8_t e1 = INT_FAST8_MAX;
18544 int_fast8_t e1min = INT_FAST8_MIN;
18545 int_fast16_t e2 = INT_FAST16_MAX;
18546 int_fast16_t e2min = INT_FAST16_MIN;
18547 int_fast32_t e3 = INT_FAST32_MAX;
18548 int_fast32_t e3min = INT_FAST32_MIN;
18549 int_fast64_t e4 = INT_FAST64_MAX;
18550 int_fast64_t e4min = INT_FAST64_MIN;
18551 uint_fast8_t f1 = UINT_FAST8_MAX;
18552 uint_fast16_t f2 = UINT_FAST16_MAX;
18553 uint_fast32_t f3 = UINT_FAST32_MAX;
18554 uint_fast64_t f4 = UINT_FAST64_MAX;
18555 #ifdef INTPTR_MAX
18556 intptr_t g = INTPTR_MAX;
18557 intptr_t gmin = INTPTR_MIN;
18558 #endif
18559 #ifdef UINTPTR_MAX
18560 uintptr_t h = UINTPTR_MAX;
18561 #endif
18562 intmax_t i = INTMAX_MAX;
18563 uintmax_t j = UINTMAX_MAX;
18564
18565 #include <limits.h> /* for CHAR_BIT */
18566 #define TYPE_MINIMUM(t) \
18567   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18568 #define TYPE_MAXIMUM(t) \
18569   ((t) ((t) 0 < (t) -1 \
18570         ? (t) -1 \
18571         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18572 struct s {
18573   int check_PTRDIFF:
18574       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18575       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18576       ? 1 : -1;
18577   /* Detect bug in FreeBSD 6.0 / ia64.  */
18578   int check_SIG_ATOMIC:
18579       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18580       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18581       ? 1 : -1;
18582   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18583   int check_WCHAR:
18584       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18585       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18586       ? 1 : -1;
18587   /* Detect bug in mingw.  */
18588   int check_WINT:
18589       WINT_MIN == TYPE_MINIMUM (wint_t)
18590       && WINT_MAX == TYPE_MAXIMUM (wint_t)
18591       ? 1 : -1;
18592
18593   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
18594   int check_UINT8_C:
18595         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18596   int check_UINT16_C:
18597         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18598
18599   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
18600 #ifdef UINT8_MAX
18601   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18602 #endif
18603 #ifdef UINT16_MAX
18604   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18605 #endif
18606 #ifdef UINT32_MAX
18607   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18608 #endif
18609 #ifdef UINT64_MAX
18610   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18611 #endif
18612   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18613   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18614   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18615   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18616   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18617   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18618   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18619   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18620   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18621   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18622   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18623 };
18624
18625 int
18626 main ()
18627 {
18628
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 if ac_fn_c_try_compile "$LINENO"; then :
18634                                                     if test "$cross_compiling" = yes; then :
18635                  gl_cv_header_working_stdint_h=yes
18636
18637 else
18638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h.  */
18640
18641
18642 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18643 #include <stdint.h>
18644
18645
18646   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18647      included before <wchar.h>.  */
18648   #include <stddef.h>
18649   #include <signal.h>
18650   #if HAVE_WCHAR_H
18651   # include <stdio.h>
18652   # include <time.h>
18653   # include <wchar.h>
18654   #endif
18655
18656
18657 #include <stdio.h>
18658 #include <string.h>
18659 #define MVAL(macro) MVAL1(macro)
18660 #define MVAL1(expression) #expression
18661 static const char *macro_values[] =
18662   {
18663 #ifdef INT8_MAX
18664     MVAL (INT8_MAX),
18665 #endif
18666 #ifdef INT16_MAX
18667     MVAL (INT16_MAX),
18668 #endif
18669 #ifdef INT32_MAX
18670     MVAL (INT32_MAX),
18671 #endif
18672 #ifdef INT64_MAX
18673     MVAL (INT64_MAX),
18674 #endif
18675 #ifdef UINT8_MAX
18676     MVAL (UINT8_MAX),
18677 #endif
18678 #ifdef UINT16_MAX
18679     MVAL (UINT16_MAX),
18680 #endif
18681 #ifdef UINT32_MAX
18682     MVAL (UINT32_MAX),
18683 #endif
18684 #ifdef UINT64_MAX
18685     MVAL (UINT64_MAX),
18686 #endif
18687     NULL
18688   };
18689
18690 int
18691 main ()
18692 {
18693
18694   const char **mv;
18695   for (mv = macro_values; *mv != NULL; mv++)
18696     {
18697       const char *value = *mv;
18698       /* Test whether it looks like a cast expression.  */
18699       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18700           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18701           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18702           || strncmp (value, "((int)"/*)*/, 6) == 0
18703           || strncmp (value, "((signed short)"/*)*/, 15) == 0
18704           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18705         return mv - macro_values + 1;
18706     }
18707   return 0;
18708
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 if ac_fn_c_try_run "$LINENO"; then :
18714   gl_cv_header_working_stdint_h=yes
18715 fi
18716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18717   conftest.$ac_objext conftest.beam conftest.$ac_ext
18718 fi
18719
18720
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723
18724 fi
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18726 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18727   fi
18728   if test "$gl_cv_header_working_stdint_h" = yes; then
18729     STDINT_H=
18730   else
18731             for ac_header in sys/inttypes.h sys/bitypes.h
18732 do :
18733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18736   cat >>confdefs.h <<_ACEOF
18737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18738 _ACEOF
18739
18740 fi
18741
18742 done
18743
18744     if test $ac_cv_header_sys_inttypes_h = yes; then
18745       HAVE_SYS_INTTYPES_H=1
18746     else
18747       HAVE_SYS_INTTYPES_H=0
18748     fi
18749
18750     if test $ac_cv_header_sys_bitypes_h = yes; then
18751       HAVE_SYS_BITYPES_H=1
18752     else
18753       HAVE_SYS_BITYPES_H=0
18754     fi
18755
18756
18757
18758
18759   if test $APPLE_UNIVERSAL_BUILD = 0; then
18760
18761
18762   for gltype in ptrdiff_t size_t ; do
18763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18764 $as_echo_n "checking for bit size of $gltype... " >&6; }
18765 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18766   $as_echo_n "(cached) " >&6
18767 else
18768   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18769   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18770      included before <wchar.h>.  */
18771   #include <stddef.h>
18772   #include <signal.h>
18773   #if HAVE_WCHAR_H
18774   # include <stdio.h>
18775   # include <time.h>
18776   # include <wchar.h>
18777   #endif
18778
18779 #include <limits.h>"; then :
18780
18781 else
18782   result=unknown
18783 fi
18784
18785        eval gl_cv_bitsizeof_${gltype}=\$result
18786
18787 fi
18788 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18790 $as_echo "$ac_res" >&6; }
18791     eval result=\$gl_cv_bitsizeof_${gltype}
18792     if test $result = unknown; then
18793                                                 result=0
18794     fi
18795     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18796     cat >>confdefs.h <<_ACEOF
18797 #define BITSIZEOF_${GLTYPE} $result
18798 _ACEOF
18799
18800     eval BITSIZEOF_${GLTYPE}=\$result
18801   done
18802
18803
18804   fi
18805
18806
18807   for gltype in sig_atomic_t wchar_t wint_t ; do
18808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18809 $as_echo_n "checking for bit size of $gltype... " >&6; }
18810 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18811   $as_echo_n "(cached) " >&6
18812 else
18813   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18814   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18815      included before <wchar.h>.  */
18816   #include <stddef.h>
18817   #include <signal.h>
18818   #if HAVE_WCHAR_H
18819   # include <stdio.h>
18820   # include <time.h>
18821   # include <wchar.h>
18822   #endif
18823
18824 #include <limits.h>"; then :
18825
18826 else
18827   result=unknown
18828 fi
18829
18830        eval gl_cv_bitsizeof_${gltype}=\$result
18831
18832 fi
18833 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18835 $as_echo "$ac_res" >&6; }
18836     eval result=\$gl_cv_bitsizeof_${gltype}
18837     if test $result = unknown; then
18838                                                 result=0
18839     fi
18840     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18841     cat >>confdefs.h <<_ACEOF
18842 #define BITSIZEOF_${GLTYPE} $result
18843 _ACEOF
18844
18845     eval BITSIZEOF_${GLTYPE}=\$result
18846   done
18847
18848
18849
18850
18851   for gltype in sig_atomic_t wchar_t wint_t ; do
18852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18853 $as_echo_n "checking whether $gltype is signed... " >&6; }
18854 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18855   $as_echo_n "(cached) " >&6
18856 else
18857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h.  */
18859
18860   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18861      included before <wchar.h>.  */
18862   #include <stddef.h>
18863   #include <signal.h>
18864   #if HAVE_WCHAR_H
18865   # include <stdio.h>
18866   # include <time.h>
18867   # include <wchar.h>
18868   #endif
18869
18870             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18871 int
18872 main ()
18873 {
18874
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 if ac_fn_c_try_compile "$LINENO"; then :
18880   result=yes
18881 else
18882   result=no
18883 fi
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885        eval gl_cv_type_${gltype}_signed=\$result
18886
18887 fi
18888 eval ac_res=\$gl_cv_type_${gltype}_signed
18889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18890 $as_echo "$ac_res" >&6; }
18891     eval result=\$gl_cv_type_${gltype}_signed
18892     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18893     if test "$result" = yes; then
18894       cat >>confdefs.h <<_ACEOF
18895 #define HAVE_SIGNED_${GLTYPE} 1
18896 _ACEOF
18897
18898       eval HAVE_SIGNED_${GLTYPE}=1
18899     else
18900       eval HAVE_SIGNED_${GLTYPE}=0
18901     fi
18902   done
18903
18904
18905   gl_cv_type_ptrdiff_t_signed=yes
18906   gl_cv_type_size_t_signed=no
18907   if test $APPLE_UNIVERSAL_BUILD = 0; then
18908
18909
18910   for gltype in ptrdiff_t size_t ; do
18911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18912 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18913 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18914   $as_echo_n "(cached) " >&6
18915 else
18916   eval gl_cv_type_${gltype}_suffix=no
18917        eval result=\$gl_cv_type_${gltype}_signed
18918        if test "$result" = yes; then
18919          glsufu=
18920        else
18921          glsufu=u
18922        fi
18923        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18924          case $glsuf in
18925            '')  gltype1='int';;
18926            l)   gltype1='long int';;
18927            ll)  gltype1='long long int';;
18928            i64) gltype1='__int64';;
18929            u)   gltype1='unsigned int';;
18930            ul)  gltype1='unsigned long int';;
18931            ull) gltype1='unsigned long long int';;
18932            ui64)gltype1='unsigned __int64';;
18933          esac
18934          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h.  */
18936
18937   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18938      included before <wchar.h>.  */
18939   #include <stddef.h>
18940   #include <signal.h>
18941   #if HAVE_WCHAR_H
18942   # include <stdio.h>
18943   # include <time.h>
18944   # include <wchar.h>
18945   #endif
18946
18947               extern $gltype foo;
18948               extern $gltype1 foo;
18949 int
18950 main ()
18951 {
18952
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 if ac_fn_c_try_compile "$LINENO"; then :
18958   eval gl_cv_type_${gltype}_suffix=\$glsuf
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961          eval result=\$gl_cv_type_${gltype}_suffix
18962          test "$result" != no && break
18963        done
18964 fi
18965 eval ac_res=\$gl_cv_type_${gltype}_suffix
18966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18967 $as_echo "$ac_res" >&6; }
18968     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18969     eval result=\$gl_cv_type_${gltype}_suffix
18970     test "$result" = no && result=
18971     eval ${GLTYPE}_SUFFIX=\$result
18972     cat >>confdefs.h <<_ACEOF
18973 #define ${GLTYPE}_SUFFIX $result
18974 _ACEOF
18975
18976   done
18977
18978
18979   fi
18980
18981
18982   for gltype in sig_atomic_t wchar_t wint_t ; do
18983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18984 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18985 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18986   $as_echo_n "(cached) " >&6
18987 else
18988   eval gl_cv_type_${gltype}_suffix=no
18989        eval result=\$gl_cv_type_${gltype}_signed
18990        if test "$result" = yes; then
18991          glsufu=
18992        else
18993          glsufu=u
18994        fi
18995        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18996          case $glsuf in
18997            '')  gltype1='int';;
18998            l)   gltype1='long int';;
18999            ll)  gltype1='long long int';;
19000            i64) gltype1='__int64';;
19001            u)   gltype1='unsigned int';;
19002            ul)  gltype1='unsigned long int';;
19003            ull) gltype1='unsigned long long int';;
19004            ui64)gltype1='unsigned __int64';;
19005          esac
19006          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h.  */
19008
19009   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19010      included before <wchar.h>.  */
19011   #include <stddef.h>
19012   #include <signal.h>
19013   #if HAVE_WCHAR_H
19014   # include <stdio.h>
19015   # include <time.h>
19016   # include <wchar.h>
19017   #endif
19018
19019               extern $gltype foo;
19020               extern $gltype1 foo;
19021 int
19022 main ()
19023 {
19024
19025   ;
19026   return 0;
19027 }
19028 _ACEOF
19029 if ac_fn_c_try_compile "$LINENO"; then :
19030   eval gl_cv_type_${gltype}_suffix=\$glsuf
19031 fi
19032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033          eval result=\$gl_cv_type_${gltype}_suffix
19034          test "$result" != no && break
19035        done
19036 fi
19037 eval ac_res=\$gl_cv_type_${gltype}_suffix
19038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19039 $as_echo "$ac_res" >&6; }
19040     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19041     eval result=\$gl_cv_type_${gltype}_suffix
19042     test "$result" = no && result=
19043     eval ${GLTYPE}_SUFFIX=\$result
19044     cat >>confdefs.h <<_ACEOF
19045 #define ${GLTYPE}_SUFFIX $result
19046 _ACEOF
19047
19048   done
19049
19050
19051
19052           if test $BITSIZEOF_WINT_T -lt 32; then
19053     BITSIZEOF_WINT_T=32
19054   fi
19055
19056     STDINT_H=stdint.h
19057   fi
19058
19059    if test -n "$STDINT_H"; then
19060   GL_GENERATE_STDINT_H_TRUE=
19061   GL_GENERATE_STDINT_H_FALSE='#'
19062 else
19063   GL_GENERATE_STDINT_H_TRUE='#'
19064   GL_GENERATE_STDINT_H_FALSE=
19065 fi
19066
19067
19068
19069      REPLACE_STRERROR_0=0
19070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19071 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19072 if ${gl_cv_func_strerror_0_works+:} false; then :
19073   $as_echo_n "(cached) " >&6
19074 else
19075   if test "$cross_compiling" = yes; then :
19076   case "$host_os" in
19077                  # Guess yes on glibc systems.
19078          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19079                  # If we don't know, assume the worst.
19080          *)      gl_cv_func_strerror_0_works="guessing no" ;;
19081        esac
19082
19083 else
19084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h.  */
19086 #include <string.h>
19087            #include <errno.h>
19088
19089 int
19090 main ()
19091 {
19092 int result = 0;
19093            char *str;
19094            errno = 0;
19095            str = strerror (0);
19096            if (!*str) result |= 1;
19097            if (errno) result |= 2;
19098            if (strstr (str, "nknown") || strstr (str, "ndefined"))
19099              result |= 4;
19100            return result;
19101   ;
19102   return 0;
19103 }
19104 _ACEOF
19105 if ac_fn_c_try_run "$LINENO"; then :
19106   gl_cv_func_strerror_0_works=yes
19107 else
19108   gl_cv_func_strerror_0_works=no
19109 fi
19110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19111   conftest.$ac_objext conftest.beam conftest.$ac_ext
19112 fi
19113
19114
19115 fi
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19117 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19118   case "$gl_cv_func_strerror_0_works" in
19119     *yes) ;;
19120     *)
19121       REPLACE_STRERROR_0=1
19122
19123 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19124
19125       ;;
19126   esac
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144      if test $gl_cv_have_include_next = yes; then
19145        gl_cv_next_string_h='<'string.h'>'
19146      else
19147        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19148 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19149 if ${gl_cv_next_string_h+:} false; then :
19150   $as_echo_n "(cached) " >&6
19151 else
19152
19153                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h.  */
19155 #include <string.h>
19156
19157 _ACEOF
19158                                                                                                                         case "$host_os" in
19159                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19160                  *)    gl_absname_cpp="$ac_cpp" ;;
19161                esac
19162
19163                case "$host_os" in
19164                  mingw*)
19165                                                                                                                                      gl_dirsep_regex='[/\\]'
19166                    ;;
19167                  *)
19168                    gl_dirsep_regex='\/'
19169                    ;;
19170                esac
19171                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19172
19173                gl_header_literal_regex=`echo 'string.h' \
19174                                         | sed -e "$gl_make_literal_regex_sed"`
19175                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19176                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19177                    s|^/[^/]|//&|
19178                    p
19179                    q
19180                  }'
19181                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19182                       sed -n "$gl_absolute_header_sed"`'"'
19183
19184
19185 fi
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19187 $as_echo "$gl_cv_next_string_h" >&6; }
19188      fi
19189      NEXT_STRING_H=$gl_cv_next_string_h
19190
19191      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19192        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19193        gl_next_as_first_directive='<'string.h'>'
19194      else
19195        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19196        gl_next_as_first_directive=$gl_cv_next_string_h
19197      fi
19198      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19199
19200
19201
19202
19203
19204
19205     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
19206     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19208 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19209 if eval \${$as_gl_Symbol+:} false; then :
19210   $as_echo_n "(cached) " >&6
19211 else
19212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h.  */
19214 #include <string.h>
19215
19216 int
19217 main ()
19218 {
19219 #undef $gl_func
19220   (void) $gl_func;
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_compile "$LINENO"; then :
19226   eval "$as_gl_Symbol=yes"
19227 else
19228   eval "$as_gl_Symbol=no"
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 eval ac_res=\$$as_gl_Symbol
19233                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19234 $as_echo "$ac_res" >&6; }
19235     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19236   cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19238 _ACEOF
19239
19240                      eval ac_cv_have_decl_$gl_func=yes
19241 fi
19242       done
19243
19244
19245
19246       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19247 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19248   ac_have_decl=1
19249 else
19250   ac_have_decl=0
19251 fi
19252
19253 cat >>confdefs.h <<_ACEOF
19254 #define HAVE_DECL_STRNDUP $ac_have_decl
19255 _ACEOF
19256
19257
19258
19259
19260
19261
19262
19263
19264       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19265 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19266   ac_have_decl=1
19267 else
19268   ac_have_decl=0
19269 fi
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_DECL_STRNLEN $ac_have_decl
19273 _ACEOF
19274
19275
19276
19277       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19278 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19279   ac_have_decl=1
19280 else
19281   ac_have_decl=0
19282 fi
19283
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19286 _ACEOF
19287
19288
19289 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19290 /* NetBSD declares sys_siglist in unistd.h.  */
19291 #ifdef HAVE_UNISTD_H
19292 # include <unistd.h>
19293 #endif
19294
19295 "
19296 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19297   ac_have_decl=1
19298 else
19299   ac_have_decl=0
19300 fi
19301
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19304 _ACEOF
19305
19306
19307
19308   GNULIB_PSELECT=0;
19309   GNULIB_SELECT=0;
19310     HAVE_PSELECT=1;
19311   REPLACE_PSELECT=0;
19312   REPLACE_SELECT=0;
19313
19314
19315
19316
19317
19318
19319
19320      GNULIB_FCHMODAT=0;
19321   GNULIB_FSTAT=0;
19322   GNULIB_FSTATAT=0;
19323   GNULIB_FUTIMENS=0;
19324   GNULIB_LCHMOD=0;
19325   GNULIB_LSTAT=0;
19326   GNULIB_MKDIRAT=0;
19327   GNULIB_MKFIFO=0;
19328   GNULIB_MKFIFOAT=0;
19329   GNULIB_MKNOD=0;
19330   GNULIB_MKNODAT=0;
19331   GNULIB_STAT=0;
19332   GNULIB_UTIMENSAT=0;
19333     HAVE_FCHMODAT=1;
19334   HAVE_FSTATAT=1;
19335   HAVE_FUTIMENS=1;
19336   HAVE_LCHMOD=1;
19337   HAVE_LSTAT=1;
19338   HAVE_MKDIRAT=1;
19339   HAVE_MKFIFO=1;
19340   HAVE_MKFIFOAT=1;
19341   HAVE_MKNOD=1;
19342   HAVE_MKNODAT=1;
19343   HAVE_UTIMENSAT=1;
19344   REPLACE_FSTAT=0;
19345   REPLACE_FSTATAT=0;
19346   REPLACE_FUTIMENS=0;
19347   REPLACE_LSTAT=0;
19348   REPLACE_MKDIR=0;
19349   REPLACE_MKFIFO=0;
19350   REPLACE_MKNOD=0;
19351   REPLACE_STAT=0;
19352   REPLACE_UTIMENSAT=0;
19353
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19355 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19356 if ${ac_cv_header_stat_broken+:} false; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h.  */
19361 #include <sys/types.h>
19362 #include <sys/stat.h>
19363
19364 #if defined S_ISBLK && defined S_IFDIR
19365 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19366 #endif
19367
19368 #if defined S_ISBLK && defined S_IFCHR
19369 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19370 #endif
19371
19372 #if defined S_ISLNK && defined S_IFREG
19373 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19374 #endif
19375
19376 #if defined S_ISSOCK && defined S_IFREG
19377 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19378 #endif
19379
19380 _ACEOF
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382   ac_cv_header_stat_broken=no
19383 else
19384   ac_cv_header_stat_broken=yes
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 fi
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19389 $as_echo "$ac_cv_header_stat_broken" >&6; }
19390 if test $ac_cv_header_stat_broken = yes; then
19391
19392 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19393
19394 fi
19395
19396
19397
19398
19399
19400
19401 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19402 if test "x$ac_cv_type_mode_t" = xyes; then :
19403
19404 else
19405
19406 cat >>confdefs.h <<_ACEOF
19407 #define mode_t int
19408 _ACEOF
19409
19410 fi
19411
19412
19413   GNULIB_GETTIMEOFDAY=0;
19414     HAVE_GETTIMEOFDAY=1;
19415   HAVE_STRUCT_TIMEVAL=1;
19416   HAVE_SYS_TIME_H=1;
19417   REPLACE_GETTIMEOFDAY=0;
19418   REPLACE_STRUCT_TIMEVAL=0;
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429   :
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441   :
19442
19443
19444
19445
19446
19447
19448
19449
19450      if test $gl_cv_have_include_next = yes; then
19451        gl_cv_next_sys_time_h='<'sys/time.h'>'
19452      else
19453        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19454 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19455 if ${gl_cv_next_sys_time_h+:} false; then :
19456   $as_echo_n "(cached) " >&6
19457 else
19458
19459              if test $ac_cv_header_sys_time_h = yes; then
19460
19461
19462                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h.  */
19464 #include <sys/time.h>
19465
19466 _ACEOF
19467                                                                                                                         case "$host_os" in
19468                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19469                  *)    gl_absname_cpp="$ac_cpp" ;;
19470                esac
19471
19472                case "$host_os" in
19473                  mingw*)
19474                                                                                                                                      gl_dirsep_regex='[/\\]'
19475                    ;;
19476                  *)
19477                    gl_dirsep_regex='\/'
19478                    ;;
19479                esac
19480                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19481
19482                gl_header_literal_regex=`echo 'sys/time.h' \
19483                                         | sed -e "$gl_make_literal_regex_sed"`
19484                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19485                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19486                    s|^/[^/]|//&|
19487                    p
19488                    q
19489                  }'
19490                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19491                       sed -n "$gl_absolute_header_sed"`'"'
19492           else
19493                gl_cv_next_sys_time_h='<'sys/time.h'>'
19494              fi
19495
19496
19497 fi
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19499 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19500      fi
19501      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19502
19503      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19504        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19505        gl_next_as_first_directive='<'sys/time.h'>'
19506      else
19507        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19508        gl_next_as_first_directive=$gl_cv_next_sys_time_h
19509      fi
19510      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19511
19512
19513
19514
19515
19516   if test $ac_cv_header_sys_time_h != yes; then
19517     HAVE_SYS_TIME_H=0
19518   fi
19519
19520
19521
19522
19523
19524   :
19525
19526
19527
19528
19529
19530   if test $ac_cv_header_sys_socket_h != yes; then
19531                     for ac_header in winsock2.h
19532 do :
19533   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19534 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19535   cat >>confdefs.h <<_ACEOF
19536 #define HAVE_WINSOCK2_H 1
19537 _ACEOF
19538
19539 fi
19540
19541 done
19542
19543   fi
19544   if test "$ac_cv_header_winsock2_h" = yes; then
19545     HAVE_WINSOCK2_H=1
19546     UNISTD_H_HAVE_WINSOCK2_H=1
19547     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19548   else
19549     HAVE_WINSOCK2_H=0
19550   fi
19551
19552
19553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19554 $as_echo_n "checking for struct timeval... " >&6; }
19555 if ${gl_cv_sys_struct_timeval+:} false; then :
19556   $as_echo_n "(cached) " >&6
19557 else
19558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h.  */
19560 #if HAVE_SYS_TIME_H
19561              #include <sys/time.h>
19562             #endif
19563             #include <time.h>
19564             #if HAVE_WINSOCK2_H
19565             # include <winsock2.h>
19566             #endif
19567
19568 int
19569 main ()
19570 {
19571 static struct timeval x; x.tv_sec = x.tv_usec;
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577   gl_cv_sys_struct_timeval=yes
19578 else
19579   gl_cv_sys_struct_timeval=no
19580 fi
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19585 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19586   if test $gl_cv_sys_struct_timeval != yes; then
19587     HAVE_STRUCT_TIMEVAL=0
19588   else
19589                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19590 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19591 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19592   $as_echo_n "(cached) " >&6
19593 else
19594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h.  */
19596 #if HAVE_SYS_TIME_H
19597                #include <sys/time.h>
19598               #endif
19599               #include <time.h>
19600               #if HAVE_WINSOCK2_H
19601               # include <winsock2.h>
19602               #endif
19603
19604 int
19605 main ()
19606 {
19607 static struct timeval x;
19608               typedef int verify_tv_sec_type[
19609                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19610               ];
19611
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 if ac_fn_c_try_compile "$LINENO"; then :
19617   gl_cv_sys_struct_timeval_tv_sec=yes
19618 else
19619   gl_cv_sys_struct_timeval_tv_sec=no
19620 fi
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19625 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19626     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19627       REPLACE_STRUCT_TIMEVAL=1
19628     fi
19629   fi
19630
19631
19632     for gl_func in gettimeofday; do
19633     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19635 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19636 if eval \${$as_gl_Symbol+:} false; then :
19637   $as_echo_n "(cached) " >&6
19638 else
19639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h.  */
19641
19642 #if HAVE_SYS_TIME_H
19643 # include <sys/time.h>
19644 #endif
19645 #include <time.h>
19646
19647 int
19648 main ()
19649 {
19650 #undef $gl_func
19651   (void) $gl_func;
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_c_try_compile "$LINENO"; then :
19657   eval "$as_gl_Symbol=yes"
19658 else
19659   eval "$as_gl_Symbol=no"
19660 fi
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662 fi
19663 eval ac_res=\$$as_gl_Symbol
19664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19665 $as_echo "$ac_res" >&6; }
19666     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19667   cat >>confdefs.h <<_ACEOF
19668 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19669 _ACEOF
19670
19671                      eval ac_cv_have_decl_$gl_func=yes
19672 fi
19673       done
19674
19675
19676
19677
19678
19679
19680     WINDOWS_64_BIT_OFF_T=0
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694      if test $gl_cv_have_include_next = yes; then
19695        gl_cv_next_sys_types_h='<'sys/types.h'>'
19696      else
19697        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
19698 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
19699 if ${gl_cv_next_sys_types_h+:} false; then :
19700   $as_echo_n "(cached) " >&6
19701 else
19702
19703                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h.  */
19705 #include <sys/types.h>
19706
19707 _ACEOF
19708                                                                                                                         case "$host_os" in
19709                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19710                  *)    gl_absname_cpp="$ac_cpp" ;;
19711                esac
19712
19713                case "$host_os" in
19714                  mingw*)
19715                                                                                                                                      gl_dirsep_regex='[/\\]'
19716                    ;;
19717                  *)
19718                    gl_dirsep_regex='\/'
19719                    ;;
19720                esac
19721                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19722
19723                gl_header_literal_regex=`echo 'sys/types.h' \
19724                                         | sed -e "$gl_make_literal_regex_sed"`
19725                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19726                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19727                    s|^/[^/]|//&|
19728                    p
19729                    q
19730                  }'
19731                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19732                       sed -n "$gl_absolute_header_sed"`'"'
19733
19734
19735 fi
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
19737 $as_echo "$gl_cv_next_sys_types_h" >&6; }
19738      fi
19739      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
19740
19741      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19742        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19743        gl_next_as_first_directive='<'sys/types.h'>'
19744      else
19745        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19746        gl_next_as_first_directive=$gl_cv_next_sys_types_h
19747      fi
19748      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761   GNULIB_WAITPID=0;
19762
19763
19764
19765
19766
19767
19768
19769   GNULIB_MKTIME=0;
19770   GNULIB_NANOSLEEP=0;
19771   GNULIB_STRPTIME=0;
19772   GNULIB_TIMEGM=0;
19773   GNULIB_TIME_R=0;
19774     HAVE_DECL_LOCALTIME_R=1;
19775   HAVE_NANOSLEEP=1;
19776   HAVE_STRPTIME=1;
19777   HAVE_TIMEGM=1;
19778         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19779   REPLACE_MKTIME=GNULIB_PORTCHECK;
19780   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19781   REPLACE_TIMEGM=GNULIB_PORTCHECK;
19782
19783
19784
19785   :
19786
19787
19788
19789
19790
19791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19792 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19793 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h.  */
19798 #include <time.h>
19799
19800 int
19801 main ()
19802 {
19803 static struct timespec x; x.tv_sec = x.tv_nsec;
19804   ;
19805   return 0;
19806 }
19807 _ACEOF
19808 if ac_fn_c_try_compile "$LINENO"; then :
19809   gl_cv_sys_struct_timespec_in_time_h=yes
19810 else
19811   gl_cv_sys_struct_timespec_in_time_h=no
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19816 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19817
19818   TIME_H_DEFINES_STRUCT_TIMESPEC=0
19819   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19820   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19821   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19822     TIME_H_DEFINES_STRUCT_TIMESPEC=1
19823   else
19824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19825 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19826 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19827   $as_echo_n "(cached) " >&6
19828 else
19829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h.  */
19831 #include <sys/time.h>
19832
19833 int
19834 main ()
19835 {
19836 static struct timespec x; x.tv_sec = x.tv_nsec;
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_compile "$LINENO"; then :
19842   gl_cv_sys_struct_timespec_in_sys_time_h=yes
19843 else
19844   gl_cv_sys_struct_timespec_in_sys_time_h=no
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 fi
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19849 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19850     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19851       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19852     else
19853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19854 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19855 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19856   $as_echo_n "(cached) " >&6
19857 else
19858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h.  */
19860 #include <pthread.h>
19861
19862 int
19863 main ()
19864 {
19865 static struct timespec x; x.tv_sec = x.tv_nsec;
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 if ac_fn_c_try_compile "$LINENO"; then :
19871   gl_cv_sys_struct_timespec_in_pthread_h=yes
19872 else
19873   gl_cv_sys_struct_timespec_in_pthread_h=no
19874 fi
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 fi
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19878 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19879       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19880         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19881       fi
19882     fi
19883   fi
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899      if test $gl_cv_have_include_next = yes; then
19900        gl_cv_next_time_h='<'time.h'>'
19901      else
19902        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19903 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19904 if ${gl_cv_next_time_h+:} false; then :
19905   $as_echo_n "(cached) " >&6
19906 else
19907
19908                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19909 /* end confdefs.h.  */
19910 #include <time.h>
19911
19912 _ACEOF
19913                                                                                                                         case "$host_os" in
19914                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19915                  *)    gl_absname_cpp="$ac_cpp" ;;
19916                esac
19917
19918                case "$host_os" in
19919                  mingw*)
19920                                                                                                                                      gl_dirsep_regex='[/\\]'
19921                    ;;
19922                  *)
19923                    gl_dirsep_regex='\/'
19924                    ;;
19925                esac
19926                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19927
19928                gl_header_literal_regex=`echo 'time.h' \
19929                                         | sed -e "$gl_make_literal_regex_sed"`
19930                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19931                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19932                    s|^/[^/]|//&|
19933                    p
19934                    q
19935                  }'
19936                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19937                       sed -n "$gl_absolute_header_sed"`'"'
19938
19939
19940 fi
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19942 $as_echo "$gl_cv_next_time_h" >&6; }
19943      fi
19944      NEXT_TIME_H=$gl_cv_next_time_h
19945
19946      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19947        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19948        gl_next_as_first_directive='<'time.h'>'
19949      else
19950        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19951        gl_next_as_first_directive=$gl_cv_next_time_h
19952      fi
19953      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19954
19955
19956
19957
19958
19959
19960
19961       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
19962 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
19963   ac_have_decl=1
19964 else
19965   ac_have_decl=0
19966 fi
19967
19968 cat >>confdefs.h <<_ACEOF
19969 #define HAVE_DECL_UNSETENV $ac_have_decl
19970 _ACEOF
19971
19972
19973
19974
19975
19976
19977
19978
19979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19980 $as_echo_n "checking for wint_t... " >&6; }
19981 if ${gt_cv_c_wint_t+:} false; then :
19982   $as_echo_n "(cached) " >&6
19983 else
19984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h.  */
19986
19987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19988    <wchar.h>.
19989    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19990    before <wchar.h>.  */
19991 #include <stddef.h>
19992 #include <stdio.h>
19993 #include <time.h>
19994 #include <wchar.h>
19995             wint_t foo = (wchar_t)'\0';
19996 int
19997 main ()
19998 {
19999
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 if ac_fn_c_try_compile "$LINENO"; then :
20005   gt_cv_c_wint_t=yes
20006 else
20007   gt_cv_c_wint_t=no
20008 fi
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 fi
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20012 $as_echo "$gt_cv_c_wint_t" >&6; }
20013   if test $gt_cv_c_wint_t = yes; then
20014
20015 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20016
20017   fi
20018
20019
20020
20021
20022
20023
20024
20025
20026   :
20027
20028
20029
20030
20031
20032   if test $ac_cv_header_features_h = yes; then
20033     HAVE_FEATURES_H=1
20034   else
20035     HAVE_FEATURES_H=0
20036   fi
20037
20038
20039
20040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20041 $as_echo_n "checking for inttypes.h... " >&6; }
20042 if ${gl_cv_header_inttypes_h+:} false; then :
20043   $as_echo_n "(cached) " >&6
20044 else
20045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h.  */
20047
20048 #include <sys/types.h>
20049 #include <inttypes.h>
20050
20051 int
20052 main ()
20053 {
20054 uintmax_t i = (uintmax_t) -1; return !i;
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_compile "$LINENO"; then :
20060   gl_cv_header_inttypes_h=yes
20061 else
20062   gl_cv_header_inttypes_h=no
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20065 fi
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20067 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20068   if test $gl_cv_header_inttypes_h = yes; then
20069
20070 cat >>confdefs.h <<_ACEOF
20071 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20072 _ACEOF
20073
20074   fi
20075
20076
20077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20078 $as_echo_n "checking for stdint.h... " >&6; }
20079 if ${gl_cv_header_stdint_h+:} false; then :
20080   $as_echo_n "(cached) " >&6
20081 else
20082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h.  */
20084 #include <sys/types.h>
20085             #include <stdint.h>
20086 int
20087 main ()
20088 {
20089 uintmax_t i = (uintmax_t) -1; return !i;
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 if ac_fn_c_try_compile "$LINENO"; then :
20095   gl_cv_header_stdint_h=yes
20096 else
20097   gl_cv_header_stdint_h=no
20098 fi
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 fi
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20102 $as_echo "$gl_cv_header_stdint_h" >&6; }
20103   if test $gl_cv_header_stdint_h = yes; then
20104
20105 cat >>confdefs.h <<_ACEOF
20106 #define HAVE_STDINT_H_WITH_UINTMAX 1
20107 _ACEOF
20108
20109   fi
20110
20111
20112
20113
20114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20115 $as_echo_n "checking for intmax_t... " >&6; }
20116 if ${gt_cv_c_intmax_t+:} false; then :
20117   $as_echo_n "(cached) " >&6
20118 else
20119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h.  */
20121
20122 #include <stddef.h>
20123 #include <stdlib.h>
20124 #if HAVE_STDINT_H_WITH_UINTMAX
20125 #include <stdint.h>
20126 #endif
20127 #if HAVE_INTTYPES_H_WITH_UINTMAX
20128 #include <inttypes.h>
20129 #endif
20130
20131 int
20132 main ()
20133 {
20134 intmax_t x = -1; return !x;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140   gt_cv_c_intmax_t=yes
20141 else
20142   gt_cv_c_intmax_t=no
20143 fi
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20145 fi
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20147 $as_echo "$gt_cv_c_intmax_t" >&6; }
20148   if test $gt_cv_c_intmax_t = yes; then
20149
20150 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20151
20152   else
20153
20154     test $ac_cv_type_long_long_int = yes \
20155       && ac_type='long long' \
20156       || ac_type='long'
20157
20158 cat >>confdefs.h <<_ACEOF
20159 #define intmax_t $ac_type
20160 _ACEOF
20161
20162   fi
20163
20164
20165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20166 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20167 if ${gl_cv_cc_double_expbit0+:} false; then :
20168   $as_echo_n "(cached) " >&6
20169 else
20170
20171       if test "$cross_compiling" = yes; then :
20172
20173                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h.  */
20175
20176 #if defined arm || defined __arm || defined __arm__
20177   mixed_endianness
20178 #endif
20179
20180 _ACEOF
20181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20182   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20183   gl_cv_cc_double_expbit0="unknown"
20184 else
20185
20186                                                          :
20187 if ${ac_cv_c_bigendian+:} false; then :
20188   $as_echo_n "(cached) " >&6
20189 else
20190   ac_cv_c_bigendian=unknown
20191     # See if we're dealing with a universal compiler.
20192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20193 /* end confdefs.h.  */
20194 #ifndef __APPLE_CC__
20195                not a universal capable compiler
20196              #endif
20197              typedef int dummy;
20198
20199 _ACEOF
20200 if ac_fn_c_try_compile "$LINENO"; then :
20201
20202         # Check for potential -arch flags.  It is not universal unless
20203         # there are at least two -arch flags with different values.
20204         ac_arch=
20205         ac_prev=
20206         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20207          if test -n "$ac_prev"; then
20208            case $ac_word in
20209              i?86 | x86_64 | ppc | ppc64)
20210                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20211                  ac_arch=$ac_word
20212                else
20213                  ac_cv_c_bigendian=universal
20214                  break
20215                fi
20216                ;;
20217            esac
20218            ac_prev=
20219          elif test "x$ac_word" = "x-arch"; then
20220            ac_prev=arch
20221          fi
20222        done
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225     if test $ac_cv_c_bigendian = unknown; then
20226       # See if sys/param.h defines the BYTE_ORDER macro.
20227       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h.  */
20229 #include <sys/types.h>
20230              #include <sys/param.h>
20231
20232 int
20233 main ()
20234 {
20235 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20236                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20237                      && LITTLE_ENDIAN)
20238               bogus endian macros
20239              #endif
20240
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 if ac_fn_c_try_compile "$LINENO"; then :
20246   # It does; now see whether it defined to BIG_ENDIAN or not.
20247          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249 #include <sys/types.h>
20250                 #include <sys/param.h>
20251
20252 int
20253 main ()
20254 {
20255 #if BYTE_ORDER != BIG_ENDIAN
20256                  not big endian
20257                 #endif
20258
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 if ac_fn_c_try_compile "$LINENO"; then :
20264   ac_cv_c_bigendian=yes
20265 else
20266   ac_cv_c_bigendian=no
20267 fi
20268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271     fi
20272     if test $ac_cv_c_bigendian = unknown; then
20273       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20274       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h.  */
20276 #include <limits.h>
20277
20278 int
20279 main ()
20280 {
20281 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20282               bogus endian macros
20283              #endif
20284
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 if ac_fn_c_try_compile "$LINENO"; then :
20290   # It does; now see whether it defined to _BIG_ENDIAN or not.
20291          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h.  */
20293 #include <limits.h>
20294
20295 int
20296 main ()
20297 {
20298 #ifndef _BIG_ENDIAN
20299                  not big endian
20300                 #endif
20301
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 if ac_fn_c_try_compile "$LINENO"; then :
20307   ac_cv_c_bigendian=yes
20308 else
20309   ac_cv_c_bigendian=no
20310 fi
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314     fi
20315     if test $ac_cv_c_bigendian = unknown; then
20316       # Compile a test program.
20317       if test "$cross_compiling" = yes; then :
20318   # Try to guess by grepping values from an object file.
20319          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h.  */
20321 short int ascii_mm[] =
20322                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20323                 short int ascii_ii[] =
20324                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20325                 int use_ascii (int i) {
20326                   return ascii_mm[i] + ascii_ii[i];
20327                 }
20328                 short int ebcdic_ii[] =
20329                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20330                 short int ebcdic_mm[] =
20331                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20332                 int use_ebcdic (int i) {
20333                   return ebcdic_mm[i] + ebcdic_ii[i];
20334                 }
20335                 extern int foo;
20336
20337 int
20338 main ()
20339 {
20340 return use_ascii (foo) == use_ebcdic (foo);
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 if ac_fn_c_try_compile "$LINENO"; then :
20346   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20347               ac_cv_c_bigendian=yes
20348             fi
20349             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20350               if test "$ac_cv_c_bigendian" = unknown; then
20351                 ac_cv_c_bigendian=no
20352               else
20353                 # finding both strings is unlikely to happen, but who knows?
20354                 ac_cv_c_bigendian=unknown
20355               fi
20356             fi
20357 fi
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 else
20360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h.  */
20362 $ac_includes_default
20363 int
20364 main ()
20365 {
20366
20367              /* Are we little or big endian?  From Harbison&Steele.  */
20368              union
20369              {
20370                long int l;
20371                char c[sizeof (long int)];
20372              } u;
20373              u.l = 1;
20374              return u.c[sizeof (long int) - 1] == 1;
20375
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 if ac_fn_c_try_run "$LINENO"; then :
20381   ac_cv_c_bigendian=no
20382 else
20383   ac_cv_c_bigendian=yes
20384 fi
20385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20386   conftest.$ac_objext conftest.beam conftest.$ac_ext
20387 fi
20388
20389     fi
20390 fi
20391 :
20392  case $ac_cv_c_bigendian in #(
20393    yes)
20394      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20395    no)
20396      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20397    universal)
20398
20399 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20400
20401      ;; #(
20402    *)
20403      gl_cv_cc_double_expbit0="unknown" ;;
20404  esac
20405
20406
20407 fi
20408 rm -f conftest*
20409
20410
20411 else
20412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20413 /* end confdefs.h.  */
20414
20415 #include <float.h>
20416 #include <stddef.h>
20417 #include <stdio.h>
20418 #include <string.h>
20419 #define NWORDS \
20420   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20421 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20422 static unsigned int ored_words[NWORDS];
20423 static unsigned int anded_words[NWORDS];
20424 static void add_to_ored_words (double x)
20425 {
20426   memory_double m;
20427   size_t i;
20428   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20429   memset (&m, 0, sizeof (memory_double));
20430   m.value = x;
20431   for (i = 0; i < NWORDS; i++)
20432     {
20433       ored_words[i] |= m.word[i];
20434       anded_words[i] &= m.word[i];
20435     }
20436 }
20437 int main ()
20438 {
20439   size_t j;
20440   FILE *fp = fopen ("conftest.out", "w");
20441   if (fp == NULL)
20442     return 1;
20443   for (j = 0; j < NWORDS; j++)
20444     anded_words[j] = ~ (unsigned int) 0;
20445   add_to_ored_words (0.25);
20446   add_to_ored_words (0.5);
20447   add_to_ored_words (1.0);
20448   add_to_ored_words (2.0);
20449   add_to_ored_words (4.0);
20450   /* Remove bits that are common (e.g. if representation of the first mantissa
20451      bit is explicit).  */
20452   for (j = 0; j < NWORDS; j++)
20453     ored_words[j] &= ~anded_words[j];
20454   /* Now find the nonzero word.  */
20455   for (j = 0; j < NWORDS; j++)
20456     if (ored_words[j] != 0)
20457       break;
20458   if (j < NWORDS)
20459     {
20460       size_t i;
20461       for (i = j + 1; i < NWORDS; i++)
20462         if (ored_words[i] != 0)
20463           {
20464             fprintf (fp, "unknown");
20465             return (fclose (fp) != 0);
20466           }
20467       for (i = 0; ; i++)
20468         if ((ored_words[j] >> i) & 1)
20469           {
20470             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20471             return (fclose (fp) != 0);
20472           }
20473     }
20474   fprintf (fp, "unknown");
20475   return (fclose (fp) != 0);
20476 }
20477
20478 _ACEOF
20479 if ac_fn_c_try_run "$LINENO"; then :
20480   gl_cv_cc_double_expbit0=`cat conftest.out`
20481 else
20482   gl_cv_cc_double_expbit0="unknown"
20483 fi
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20485   conftest.$ac_objext conftest.beam conftest.$ac_ext
20486 fi
20487
20488       rm -f conftest.out
20489
20490 fi
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20492 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20493   case "$gl_cv_cc_double_expbit0" in
20494     word*bit*)
20495       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20496       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20497
20498 cat >>confdefs.h <<_ACEOF
20499 #define DBL_EXPBIT0_WORD $word
20500 _ACEOF
20501
20502
20503 cat >>confdefs.h <<_ACEOF
20504 #define DBL_EXPBIT0_BIT $bit
20505 _ACEOF
20506
20507       ;;
20508   esac
20509
20510
20511
20512
20513
20514
20515   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20516 do :
20517   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20520   cat >>confdefs.h <<_ACEOF
20521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20522 _ACEOF
20523
20524 fi
20525 done
20526
20527       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20528 "
20529 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20530   ac_have_decl=1
20531 else
20532   ac_have_decl=0
20533 fi
20534
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_DECL__SNPRINTF $ac_have_decl
20537 _ACEOF
20538
20539
20540
20541   case "$gl_cv_func_snprintf_retval_c99" in
20542     *yes)
20543
20544 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20545
20546       ;;
20547   esac
20548
20549
20550   GNULIB_BTOWC=0;
20551   GNULIB_WCTOB=0;
20552   GNULIB_MBSINIT=0;
20553   GNULIB_MBRTOWC=0;
20554   GNULIB_MBRLEN=0;
20555   GNULIB_MBSRTOWCS=0;
20556   GNULIB_MBSNRTOWCS=0;
20557   GNULIB_WCRTOMB=0;
20558   GNULIB_WCSRTOMBS=0;
20559   GNULIB_WCSNRTOMBS=0;
20560   GNULIB_WCWIDTH=0;
20561   GNULIB_WMEMCHR=0;
20562   GNULIB_WMEMCMP=0;
20563   GNULIB_WMEMCPY=0;
20564   GNULIB_WMEMMOVE=0;
20565   GNULIB_WMEMSET=0;
20566   GNULIB_WCSLEN=0;
20567   GNULIB_WCSNLEN=0;
20568   GNULIB_WCSCPY=0;
20569   GNULIB_WCPCPY=0;
20570   GNULIB_WCSNCPY=0;
20571   GNULIB_WCPNCPY=0;
20572   GNULIB_WCSCAT=0;
20573   GNULIB_WCSNCAT=0;
20574   GNULIB_WCSCMP=0;
20575   GNULIB_WCSNCMP=0;
20576   GNULIB_WCSCASECMP=0;
20577   GNULIB_WCSNCASECMP=0;
20578   GNULIB_WCSCOLL=0;
20579   GNULIB_WCSXFRM=0;
20580   GNULIB_WCSDUP=0;
20581   GNULIB_WCSCHR=0;
20582   GNULIB_WCSRCHR=0;
20583   GNULIB_WCSCSPN=0;
20584   GNULIB_WCSSPN=0;
20585   GNULIB_WCSPBRK=0;
20586   GNULIB_WCSSTR=0;
20587   GNULIB_WCSTOK=0;
20588   GNULIB_WCSWIDTH=0;
20589     HAVE_BTOWC=1;
20590   HAVE_MBSINIT=1;
20591   HAVE_MBRTOWC=1;
20592   HAVE_MBRLEN=1;
20593   HAVE_MBSRTOWCS=1;
20594   HAVE_MBSNRTOWCS=1;
20595   HAVE_WCRTOMB=1;
20596   HAVE_WCSRTOMBS=1;
20597   HAVE_WCSNRTOMBS=1;
20598   HAVE_WMEMCHR=1;
20599   HAVE_WMEMCMP=1;
20600   HAVE_WMEMCPY=1;
20601   HAVE_WMEMMOVE=1;
20602   HAVE_WMEMSET=1;
20603   HAVE_WCSLEN=1;
20604   HAVE_WCSNLEN=1;
20605   HAVE_WCSCPY=1;
20606   HAVE_WCPCPY=1;
20607   HAVE_WCSNCPY=1;
20608   HAVE_WCPNCPY=1;
20609   HAVE_WCSCAT=1;
20610   HAVE_WCSNCAT=1;
20611   HAVE_WCSCMP=1;
20612   HAVE_WCSNCMP=1;
20613   HAVE_WCSCASECMP=1;
20614   HAVE_WCSNCASECMP=1;
20615   HAVE_WCSCOLL=1;
20616   HAVE_WCSXFRM=1;
20617   HAVE_WCSDUP=1;
20618   HAVE_WCSCHR=1;
20619   HAVE_WCSRCHR=1;
20620   HAVE_WCSCSPN=1;
20621   HAVE_WCSSPN=1;
20622   HAVE_WCSPBRK=1;
20623   HAVE_WCSSTR=1;
20624   HAVE_WCSTOK=1;
20625   HAVE_WCSWIDTH=1;
20626   HAVE_DECL_WCTOB=1;
20627   HAVE_DECL_WCWIDTH=1;
20628   REPLACE_MBSTATE_T=0;
20629   REPLACE_BTOWC=0;
20630   REPLACE_WCTOB=0;
20631   REPLACE_MBSINIT=0;
20632   REPLACE_MBRTOWC=0;
20633   REPLACE_MBRLEN=0;
20634   REPLACE_MBSRTOWCS=0;
20635   REPLACE_MBSNRTOWCS=0;
20636   REPLACE_WCRTOMB=0;
20637   REPLACE_WCSRTOMBS=0;
20638   REPLACE_WCSNRTOMBS=0;
20639   REPLACE_WCWIDTH=0;
20640   REPLACE_WCSWIDTH=0;
20641
20642
20643             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20644 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20645 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20646   $as_echo_n "(cached) " >&6
20647 else
20648   gl_cv_header_wchar_h_correct_inline=yes
20649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h.  */
20651
20652        #define wcstod renamed_wcstod
20653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20654    <wchar.h>.
20655    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20656    included before <wchar.h>.  */
20657 #include <stddef.h>
20658 #include <stdio.h>
20659 #include <time.h>
20660 #include <wchar.h>
20661 extern int zero (void);
20662 int main () { return zero(); }
20663
20664 _ACEOF
20665      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20666   (eval $ac_compile) 2>&5
20667   ac_status=$?
20668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20669   test $ac_status = 0; }; then
20670        mv conftest.$ac_objext conftest1.$ac_objext
20671        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673
20674          #define wcstod renamed_wcstod
20675 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20676    <wchar.h>.
20677    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20678    included before <wchar.h>.  */
20679 #include <stddef.h>
20680 #include <stdio.h>
20681 #include <time.h>
20682 #include <wchar.h>
20683 int zero (void) { return 0; }
20684
20685 _ACEOF
20686        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20687   (eval $ac_compile) 2>&5
20688   ac_status=$?
20689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20690   test $ac_status = 0; }; then
20691          mv conftest.$ac_objext conftest2.$ac_objext
20692          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20693            :
20694          else
20695            gl_cv_header_wchar_h_correct_inline=no
20696          fi
20697        fi
20698      fi
20699      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20700
20701 fi
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20703 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20704   if test $gl_cv_header_wchar_h_correct_inline = no; then
20705     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20706 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20707 C99 mode. You have four options:
20708   - Add the flag -fgnu89-inline to CC and reconfigure, or
20709   - Fix your include files, using parts of
20710     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20711   - Use a gcc version older than 4.3, or
20712   - Don't use the flags -std=c99 or -std=gnu99.
20713 Configuration aborted." "$LINENO" 5
20714   fi
20715
20716
20717    if true; then
20718   GL_COND_LIBTOOL_TRUE=
20719   GL_COND_LIBTOOL_FALSE='#'
20720 else
20721   GL_COND_LIBTOOL_TRUE='#'
20722   GL_COND_LIBTOOL_FALSE=
20723 fi
20724
20725   gl_cond_libtool=true
20726   gl_m4_base='gnulib/m4'
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736   gl_source_base='gnulib/lib'
20737
20738
20739   if test $ac_cv_func_alloca_works = no; then
20740     :
20741   fi
20742
20743   # Define an additional variable used in the Makefile substitution.
20744   if test $ac_cv_working_alloca_h = yes; then
20745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20746 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20747 if ${gl_cv_rpl_alloca+:} false; then :
20748   $as_echo_n "(cached) " >&6
20749 else
20750
20751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h.  */
20753
20754 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20755         Need own alloca
20756 #endif
20757
20758 _ACEOF
20759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20760   $EGREP "Need own alloca" >/dev/null 2>&1; then :
20761   gl_cv_rpl_alloca=yes
20762 else
20763   gl_cv_rpl_alloca=no
20764 fi
20765 rm -f conftest*
20766
20767
20768 fi
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20770 $as_echo "$gl_cv_rpl_alloca" >&6; }
20771     if test $gl_cv_rpl_alloca = yes; then
20772
20773 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20774
20775       ALLOCA_H=alloca.h
20776     else
20777                   ALLOCA_H=
20778     fi
20779   else
20780     ALLOCA_H=alloca.h
20781   fi
20782
20783    if test -n "$ALLOCA_H"; then
20784   GL_GENERATE_ALLOCA_H_TRUE=
20785   GL_GENERATE_ALLOCA_H_FALSE='#'
20786 else
20787   GL_GENERATE_ALLOCA_H_TRUE='#'
20788   GL_GENERATE_ALLOCA_H_FALSE=
20789 fi
20790
20791
20792
20793
20794
20795
20796
20797 cat >>confdefs.h <<_ACEOF
20798 #define GNULIB_DIRNAME 1
20799 _ACEOF
20800
20801
20802
20803
20804
20805
20806
20807
20808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20809 $as_echo_n "checking whether // is distinct from /... " >&6; }
20810 if ${gl_cv_double_slash_root+:} false; then :
20811   $as_echo_n "(cached) " >&6
20812 else
20813    if test x"$cross_compiling" = xyes ; then
20814         # When cross-compiling, there is no way to tell whether // is special
20815         # short of a list of hosts.  However, the only known hosts to date
20816         # that have a distinct // are Apollo DomainOS (too old to port to),
20817         # Cygwin, and z/OS.  If anyone knows of another system for which // has
20818         # special semantics and is distinct from /, please report it to
20819         # <bug-gnulib@gnu.org>.
20820         case $host in
20821           *-cygwin | i370-ibm-openedition)
20822             gl_cv_double_slash_root=yes ;;
20823           *)
20824             # Be optimistic and assume that / and // are the same when we
20825             # don't know.
20826             gl_cv_double_slash_root='unknown, assuming no' ;;
20827         esac
20828       else
20829         set x `ls -di / // 2>/dev/null`
20830         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20831           gl_cv_double_slash_root=no
20832         else
20833           gl_cv_double_slash_root=yes
20834         fi
20835       fi
20836 fi
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20838 $as_echo "$gl_cv_double_slash_root" >&6; }
20839   if test "$gl_cv_double_slash_root" = yes; then
20840
20841 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20842
20843   fi
20844
20845
20846
20847
20848
20849
20850
20851           GNULIB_ENVIRON=1
20852
20853
20854
20855
20856
20857 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
20858
20859
20860
20861
20862
20863       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20864 $as_echo_n "checking for error_at_line... " >&6; }
20865 if ${ac_cv_lib_error_at_line+:} false; then :
20866   $as_echo_n "(cached) " >&6
20867 else
20868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h.  */
20870 #include <error.h>
20871 int
20872 main ()
20873 {
20874 error_at_line (0, 0, "", 0, "an error occurred");
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 if ac_fn_c_try_link "$LINENO"; then :
20880   ac_cv_lib_error_at_line=yes
20881 else
20882   ac_cv_lib_error_at_line=no
20883 fi
20884 rm -f core conftest.err conftest.$ac_objext \
20885     conftest$ac_exeext conftest.$ac_ext
20886 fi
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20888 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20889
20890   if test $ac_cv_lib_error_at_line = no; then
20891
20892
20893
20894
20895
20896
20897
20898
20899   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20900
20901
20902
20903   :
20904
20905   fi
20906
20907
20908   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20909
20910
20911
20912   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20913
20914
20915
20916
20917
20918   FLOAT_H=
20919   REPLACE_FLOAT_LDBL=0
20920   case "$host_os" in
20921     aix* | beos* | openbsd* | mirbsd* | irix*)
20922       FLOAT_H=float.h
20923       ;;
20924     freebsd*)
20925       case "$host_cpu" in
20926         i[34567]86 )
20927           FLOAT_H=float.h
20928           ;;
20929         x86_64 )
20930           # On x86_64 systems, the C compiler may still be generating
20931           # 32-bit code.
20932           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h.  */
20934 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20935              yes
20936              #endif
20937 _ACEOF
20938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20939   $EGREP "yes" >/dev/null 2>&1; then :
20940
20941 else
20942   FLOAT_H=float.h
20943 fi
20944 rm -f conftest*
20945
20946           ;;
20947       esac
20948       ;;
20949     linux*)
20950       case "$host_cpu" in
20951         powerpc*)
20952           FLOAT_H=float.h
20953           ;;
20954       esac
20955       ;;
20956   esac
20957   case "$host_os" in
20958     aix* | freebsd* | linux*)
20959       if test -n "$FLOAT_H"; then
20960         REPLACE_FLOAT_LDBL=1
20961       fi
20962       ;;
20963   esac
20964
20965     REPLACE_ITOLD=0
20966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20967 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20968 if ${gl_cv_func_itold_works+:} false; then :
20969   $as_echo_n "(cached) " >&6
20970 else
20971
20972       if test "$cross_compiling" = yes; then :
20973   case "$host" in
20974            sparc*-*-linux*)
20975              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h.  */
20977 #if defined __LP64__ || defined __arch64__
20978                 yes
20979                 #endif
20980 _ACEOF
20981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20982   $EGREP "yes" >/dev/null 2>&1; then :
20983   gl_cv_func_itold_works="guessing no"
20984 else
20985   gl_cv_func_itold_works="guessing yes"
20986 fi
20987 rm -f conftest*
20988
20989              ;;
20990            *) gl_cv_func_itold_works="guessing yes" ;;
20991          esac
20992
20993 else
20994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h.  */
20996
20997 int i = -1;
20998 volatile long double ld;
20999 int main ()
21000 {
21001   ld += i * 1.0L;
21002   if (ld > 0)
21003     return 1;
21004   return 0;
21005 }
21006 _ACEOF
21007 if ac_fn_c_try_run "$LINENO"; then :
21008   gl_cv_func_itold_works=yes
21009 else
21010   gl_cv_func_itold_works=no
21011 fi
21012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21013   conftest.$ac_objext conftest.beam conftest.$ac_ext
21014 fi
21015
21016
21017 fi
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21019 $as_echo "$gl_cv_func_itold_works" >&6; }
21020   case "$gl_cv_func_itold_works" in
21021     *no)
21022       REPLACE_ITOLD=1
21023                   FLOAT_H=float.h
21024       ;;
21025   esac
21026
21027   if test -n "$FLOAT_H"; then
21028
21029
21030
21031
21032
21033
21034
21035
21036      if test $gl_cv_have_include_next = yes; then
21037        gl_cv_next_float_h='<'float.h'>'
21038      else
21039        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21040 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21041 if ${gl_cv_next_float_h+:} false; then :
21042   $as_echo_n "(cached) " >&6
21043 else
21044
21045                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046 /* end confdefs.h.  */
21047 #include <float.h>
21048
21049 _ACEOF
21050                                                                                                                         case "$host_os" in
21051                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21052                  *)    gl_absname_cpp="$ac_cpp" ;;
21053                esac
21054
21055                case "$host_os" in
21056                  mingw*)
21057                                                                                                                                      gl_dirsep_regex='[/\\]'
21058                    ;;
21059                  *)
21060                    gl_dirsep_regex='\/'
21061                    ;;
21062                esac
21063                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21064
21065                gl_header_literal_regex=`echo 'float.h' \
21066                                         | sed -e "$gl_make_literal_regex_sed"`
21067                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21068                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21069                    s|^/[^/]|//&|
21070                    p
21071                    q
21072                  }'
21073                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21074                       sed -n "$gl_absolute_header_sed"`'"'
21075
21076
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21079 $as_echo "$gl_cv_next_float_h" >&6; }
21080      fi
21081      NEXT_FLOAT_H=$gl_cv_next_float_h
21082
21083      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21084        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21085        gl_next_as_first_directive='<'float.h'>'
21086      else
21087        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21088        gl_next_as_first_directive=$gl_cv_next_float_h
21089      fi
21090      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21091
21092
21093
21094
21095   fi
21096
21097    if test -n "$FLOAT_H"; then
21098   GL_GENERATE_FLOAT_H_TRUE=
21099   GL_GENERATE_FLOAT_H_FALSE='#'
21100 else
21101   GL_GENERATE_FLOAT_H_TRUE='#'
21102   GL_GENERATE_FLOAT_H_FALSE=
21103 fi
21104
21105
21106
21107   if test $REPLACE_FLOAT_LDBL = 1; then
21108
21109
21110
21111
21112
21113
21114
21115
21116   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21117
21118   fi
21119   if test $REPLACE_ITOLD = 1; then
21120
21121
21122
21123
21124
21125
21126
21127
21128   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21129
21130   fi
21131
21132
21133
21134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21135 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21136 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21137   $as_echo_n "(cached) " >&6
21138 else
21139   gl_cv_prog_c_ignore_unused_libraries=none
21140      gl_saved_ldflags=$LDFLAGS
21141      gl_saved_libs=$LIBS
21142      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21143      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21144      LIBS="$LIBS -lm"
21145      # Use long option sequences like '-z ignore' to test for the feature,
21146      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21147      # GCC + binutils likes '-Wl,--as-needed'.
21148      # GCC + Solaris ld likes '-Wl,-z,ignore'.
21149      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21150      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21151      # native cc issues annoying warnings and then ignores it,
21152      # which would cause us to incorrectly conclude that it worked.
21153      for gl_flags in  '-Wl,--as-needed' \
21154   '-Wl,-z,ignore' \
21155   '-z ignore'
21156
21157      do
21158        LDFLAGS="$gl_flags $LDFLAGS"
21159        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21160 /* end confdefs.h.  */
21161
21162 int
21163 main ()
21164 {
21165
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 if ac_fn_c_try_link "$LINENO"; then :
21171   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21172 fi
21173 rm -f core conftest.err conftest.$ac_objext \
21174     conftest$ac_exeext conftest.$ac_ext
21175        LDFLAGS=$gl_saved_ldflags
21176        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21177          break
21178      done
21179      LIBS=$gl_saved_libs
21180
21181 fi
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21183 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21184   IGNORE_UNUSED_LIBRARIES_CFLAGS=
21185   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21186     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21187   fi
21188
21189
21190
21191
21192   if test "$gl_threads_api" = posix; then
21193     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21194     # pthread_rwlock_* functions.
21195     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21196 "
21197 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21198
21199 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21200
21201 fi
21202
21203     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h.  */
21206
21207       #include <pthread.h>
21208 int
21209 main ()
21210 {
21211
21212 #if __FreeBSD__ == 4
21213 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21214 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21215        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21216 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21217 #else
21218 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21219 return !x;
21220 #endif
21221
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 if ac_fn_c_try_compile "$LINENO"; then :
21227
21228 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21229
21230 fi
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232   fi
21233   :
21234
21235
21236
21237 cat >>confdefs.h <<_ACEOF
21238 #define GNULIB_LOCK 1
21239 _ACEOF
21240
21241
21242
21243
21244
21245   if test $gl_cv_func_malloc_posix = yes; then
21246
21247 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21248
21249   else
21250     REPLACE_MALLOC=1
21251   fi
21252
21253   if test $REPLACE_MALLOC = 1; then
21254
21255
21256
21257
21258
21259
21260
21261
21262   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21263
21264   fi
21265
21266
21267
21268
21269
21270           GNULIB_MALLOC_POSIX=1
21271
21272
21273
21274
21275
21276 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21277
21278
21279
21280
21281
21282
21283
21284
21285   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21286
21287
21288
21289
21290
21291
21292
21293
21294   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21295
21296
21297   for ac_header in bp-sym.h
21298 do :
21299   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21300 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21301   cat >>confdefs.h <<_ACEOF
21302 #define HAVE_BP_SYM_H 1
21303 _ACEOF
21304
21305 fi
21306
21307 done
21308
21309
21310   fi
21311
21312
21313
21314
21315
21316           GNULIB_MEMCHR=1
21317
21318
21319
21320
21321
21322 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21323
21324
21325
21326
21327
21328   :
21329
21330
21331
21332
21333
21334   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21335     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21336
21337 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21338
21339   else
21340     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21341   fi
21342
21343
21344   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21345
21346
21347
21348
21349
21350
21351
21352
21353   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21354
21355   fi
21356
21357
21358
21359   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21360
21361
21362
21363
21364
21365
21366
21367
21368   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21369
21370   fi
21371
21372
21373
21374
21375
21376   for ac_func in raise
21377 do :
21378   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21379 if test "x$ac_cv_func_raise" = xyes; then :
21380   cat >>confdefs.h <<_ACEOF
21381 #define HAVE_RAISE 1
21382 _ACEOF
21383
21384 fi
21385 done
21386
21387   if test $ac_cv_func_raise = no; then
21388     HAVE_RAISE=0
21389   else
21390     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21391       REPLACE_RAISE=1
21392     fi
21393
21394
21395
21396
21397   if test $gl_cv_type_sigset_t = yes; then
21398     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21399 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21400   gl_cv_func_sigprocmask=1
21401 fi
21402
21403   fi
21404   if test -z "$gl_cv_func_sigprocmask"; then
21405     HAVE_POSIX_SIGNALBLOCKING=0
21406   fi
21407
21408       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21409         :
21410       fi
21411
21412   fi
21413
21414   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21415
21416
21417
21418
21419
21420
21421
21422
21423   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21424
21425     :
21426   fi
21427
21428
21429
21430
21431
21432           GNULIB_RAISE=1
21433
21434
21435
21436
21437
21438 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21439
21440
21441
21442
21443
21444
21445   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21446     REPLACE_READ=1
21447   fi
21448
21449
21450   if test $REPLACE_READ = 1; then
21451
21452
21453
21454
21455
21456
21457
21458
21459   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21460
21461     :
21462   fi
21463
21464
21465
21466
21467
21468           GNULIB_READ=1
21469
21470
21471
21472
21473
21474 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488      if test $ac_cv_func_setenv = no; then
21489     HAVE_SETENV=0
21490   else
21491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21492 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21493 if ${gl_cv_func_setenv_works+:} false; then :
21494   $as_echo_n "(cached) " >&6
21495 else
21496   if test "$cross_compiling" = yes; then :
21497   case "$host_os" in
21498                  # Guess yes on glibc systems.
21499          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
21500                  # If we don't know, assume the worst.
21501          *)      gl_cv_func_setenv_works="guessing no" ;;
21502        esac
21503
21504 else
21505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h.  */
21507
21508        #include <stdlib.h>
21509        #include <errno.h>
21510        #include <string.h>
21511
21512 int
21513 main ()
21514 {
21515
21516        int result = 0;
21517        {
21518          if (setenv ("", "", 0) != -1)
21519            result |= 1;
21520          else if (errno != EINVAL)
21521            result |= 2;
21522        }
21523        {
21524          if (setenv ("a", "=", 1) != 0)
21525            result |= 4;
21526          else if (strcmp (getenv ("a"), "=") != 0)
21527            result |= 8;
21528        }
21529        return result;
21530
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 if ac_fn_c_try_run "$LINENO"; then :
21536   gl_cv_func_setenv_works=yes
21537 else
21538   gl_cv_func_setenv_works=no
21539 fi
21540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21541   conftest.$ac_objext conftest.beam conftest.$ac_ext
21542 fi
21543
21544 fi
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21546 $as_echo "$gl_cv_func_setenv_works" >&6; }
21547     case "$gl_cv_func_setenv_works" in
21548       *yes) ;;
21549       *)
21550         REPLACE_SETENV=1
21551         ;;
21552     esac
21553   fi
21554
21555   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21556
21557
21558
21559
21560
21561
21562
21563
21564   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21565
21566   fi
21567
21568
21569
21570
21571
21572           GNULIB_SETENV=1
21573
21574
21575
21576
21577
21578 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21579
21580
21581
21582
21583
21584
21585   :
21586
21587
21588
21589
21590
21591   if test $ac_cv_func_sigaction = yes; then
21592     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21593 "
21594 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21595
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21598 _ACEOF
21599
21600
21601 fi
21602
21603     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21604       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21605     fi
21606   else
21607     HAVE_SIGACTION=0
21608   fi
21609
21610   if test $HAVE_SIGACTION = 0; then
21611
21612
21613
21614
21615
21616
21617
21618
21619   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21620
21621
21622
21623
21624
21625
21626
21627   :
21628
21629
21630
21631
21632
21633
21634
21635
21636   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21637 #include <signal.h>
21638
21639 "
21640 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_SIGINFO_T 1
21644 _ACEOF
21645
21646
21647 fi
21648
21649   if test $ac_cv_type_siginfo_t = no; then
21650     HAVE_SIGINFO_T=0
21651   fi
21652
21653   fi
21654
21655
21656
21657
21658
21659           GNULIB_SIGACTION=1
21660
21661
21662
21663
21664
21665 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680      if test $gl_cv_have_include_next = yes; then
21681        gl_cv_next_signal_h='<'signal.h'>'
21682      else
21683        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21684 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21685 if ${gl_cv_next_signal_h+:} false; then :
21686   $as_echo_n "(cached) " >&6
21687 else
21688
21689                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690 /* end confdefs.h.  */
21691 #include <signal.h>
21692
21693 _ACEOF
21694                                                                                                                         case "$host_os" in
21695                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21696                  *)    gl_absname_cpp="$ac_cpp" ;;
21697                esac
21698
21699                case "$host_os" in
21700                  mingw*)
21701                                                                                                                                      gl_dirsep_regex='[/\\]'
21702                    ;;
21703                  *)
21704                    gl_dirsep_regex='\/'
21705                    ;;
21706                esac
21707                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21708
21709                gl_header_literal_regex=`echo 'signal.h' \
21710                                         | sed -e "$gl_make_literal_regex_sed"`
21711                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21712                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21713                    s|^/[^/]|//&|
21714                    p
21715                    q
21716                  }'
21717                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21718                       sed -n "$gl_absolute_header_sed"`'"'
21719
21720
21721 fi
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21723 $as_echo "$gl_cv_next_signal_h" >&6; }
21724      fi
21725      NEXT_SIGNAL_H=$gl_cv_next_signal_h
21726
21727      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21728        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21729        gl_next_as_first_directive='<'signal.h'>'
21730      else
21731        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21732        gl_next_as_first_directive=$gl_cv_next_signal_h
21733      fi
21734      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21735
21736
21737
21738
21739
21740 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21741 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
21742   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21743 #include <signal.h>
21744
21745 "
21746 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
21747
21748 else
21749   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21750 fi
21751
21752
21753
21754
21755
21756
21757
21758   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21759 #include <signal.h>
21760
21761 "
21762 if test "x$ac_cv_type_sighandler_t" = xyes; then :
21763
21764 else
21765   HAVE_SIGHANDLER_T=0
21766 fi
21767
21768
21769
21770     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
21771     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21773 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21774 if eval \${$as_gl_Symbol+:} false; then :
21775   $as_echo_n "(cached) " >&6
21776 else
21777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h.  */
21779 #include <signal.h>
21780
21781 int
21782 main ()
21783 {
21784 #undef $gl_func
21785   (void) $gl_func;
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 if ac_fn_c_try_compile "$LINENO"; then :
21791   eval "$as_gl_Symbol=yes"
21792 else
21793   eval "$as_gl_Symbol=no"
21794 fi
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 fi
21797 eval ac_res=\$$as_gl_Symbol
21798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21799 $as_echo "$ac_res" >&6; }
21800     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21801   cat >>confdefs.h <<_ACEOF
21802 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21803 _ACEOF
21804
21805                      eval ac_cv_have_decl_$gl_func=yes
21806 fi
21807       done
21808
21809
21810
21811
21812
21813   if test $gl_cv_type_sigset_t = yes; then
21814     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21815 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21816   gl_cv_func_sigprocmask=1
21817 fi
21818
21819   fi
21820   if test -z "$gl_cv_func_sigprocmask"; then
21821     HAVE_POSIX_SIGNALBLOCKING=0
21822   fi
21823
21824   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21825
21826
21827
21828
21829
21830
21831
21832
21833   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21834
21835     :
21836   fi
21837
21838
21839
21840
21841
21842           GNULIB_SIGPROCMASK=1
21843
21844
21845
21846
21847
21848 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
21849
21850
21851
21852
21853   for ac_header in stdint.h
21854 do :
21855   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21856 if test "x$ac_cv_header_stdint_h" = xyes; then :
21857   cat >>confdefs.h <<_ACEOF
21858 #define HAVE_STDINT_H 1
21859 _ACEOF
21860
21861 fi
21862
21863 done
21864
21865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21866 $as_echo_n "checking for SIZE_MAX... " >&6; }
21867 if ${gl_cv_size_max+:} false; then :
21868   $as_echo_n "(cached) " >&6
21869 else
21870
21871     gl_cv_size_max=
21872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h.  */
21874
21875 #include <limits.h>
21876 #if HAVE_STDINT_H
21877 #include <stdint.h>
21878 #endif
21879 #ifdef SIZE_MAX
21880 Found it
21881 #endif
21882
21883 _ACEOF
21884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21885   $EGREP "Found it" >/dev/null 2>&1; then :
21886   gl_cv_size_max=yes
21887 fi
21888 rm -f conftest*
21889
21890     if test -z "$gl_cv_size_max"; then
21891                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
21892 #include <limits.h>"; then :
21893
21894 else
21895   size_t_bits_minus_1=
21896 fi
21897
21898       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
21899
21900 else
21901   fits_in_uint=
21902 fi
21903
21904       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21905         if test $fits_in_uint = 1; then
21906                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21907 /* end confdefs.h.  */
21908 #include <stddef.h>
21909                  extern size_t foo;
21910                  extern unsigned long foo;
21911
21912 int
21913 main ()
21914 {
21915
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 if ac_fn_c_try_compile "$LINENO"; then :
21921   fits_in_uint=0
21922 fi
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924         fi
21925                                 if test $fits_in_uint = 1; then
21926           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21927         else
21928           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21929         fi
21930       else
21931                 gl_cv_size_max='((size_t)~(size_t)0)'
21932       fi
21933     fi
21934
21935 fi
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21937 $as_echo "$gl_cv_size_max" >&6; }
21938   if test "$gl_cv_size_max" != yes; then
21939
21940 cat >>confdefs.h <<_ACEOF
21941 #define SIZE_MAX $gl_cv_size_max
21942 _ACEOF
21943
21944   fi
21945
21946
21947
21948
21949   gl_cv_func_snprintf_usable=no
21950   for ac_func in snprintf
21951 do :
21952   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
21953 if test "x$ac_cv_func_snprintf" = xyes; then :
21954   cat >>confdefs.h <<_ACEOF
21955 #define HAVE_SNPRINTF 1
21956 _ACEOF
21957
21958 fi
21959 done
21960
21961   if test $ac_cv_func_snprintf = yes; then
21962
21963
21964
21965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
21966 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
21967 if ${gl_cv_func_snprintf_size1+:} false; then :
21968   $as_echo_n "(cached) " >&6
21969 else
21970
21971       if test "$cross_compiling" = yes; then :
21972   gl_cv_func_snprintf_size1="guessing yes"
21973 else
21974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h.  */
21976
21977 #include <stdio.h>
21978 #if HAVE_SNPRINTF
21979 # define my_snprintf snprintf
21980 #else
21981 # include <stdarg.h>
21982 static int my_snprintf (char *buf, int size, const char *format, ...)
21983 {
21984   va_list args;
21985   int ret;
21986   va_start (args, format);
21987   ret = vsnprintf (buf, size, format, args);
21988   va_end (args);
21989   return ret;
21990 }
21991 #endif
21992 int main()
21993 {
21994   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
21995   my_snprintf (buf, 1, "%d", 12345);
21996   return buf[1] != 'E';
21997 }
21998 _ACEOF
21999 if ac_fn_c_try_run "$LINENO"; then :
22000   gl_cv_func_snprintf_size1=yes
22001 else
22002   gl_cv_func_snprintf_size1=no
22003 fi
22004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22005   conftest.$ac_objext conftest.beam conftest.$ac_ext
22006 fi
22007
22008
22009 fi
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22011 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22012
22013     case "$gl_cv_func_snprintf_size1" in
22014       *yes)
22015
22016         case "$gl_cv_func_snprintf_retval_c99" in
22017           *yes)
22018
22019
22020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22021 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22022 if ${gl_cv_func_printf_positions+:} false; then :
22023   $as_echo_n "(cached) " >&6
22024 else
22025
22026       if test "$cross_compiling" = yes; then :
22027
22028          case "$host_os" in
22029            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22030                          gl_cv_func_printf_positions="guessing no";;
22031            beos*)        gl_cv_func_printf_positions="guessing no";;
22032            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22033            *)            gl_cv_func_printf_positions="guessing yes";;
22034          esac
22035
22036 else
22037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h.  */
22039
22040 #include <stdio.h>
22041 #include <string.h>
22042 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22043    dollar expansion (possibly an autoconf bug).  */
22044 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22045 static char buf[100];
22046 int main ()
22047 {
22048   sprintf (buf, format, 33, 55);
22049   return (strcmp (buf, "55 33") != 0);
22050 }
22051 _ACEOF
22052 if ac_fn_c_try_run "$LINENO"; then :
22053   gl_cv_func_printf_positions=yes
22054 else
22055   gl_cv_func_printf_positions=no
22056 fi
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22058   conftest.$ac_objext conftest.beam conftest.$ac_ext
22059 fi
22060
22061
22062 fi
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22064 $as_echo "$gl_cv_func_printf_positions" >&6; }
22065
22066             case "$gl_cv_func_printf_positions" in
22067               *yes)
22068                 gl_cv_func_snprintf_usable=yes
22069                 ;;
22070             esac
22071             ;;
22072         esac
22073         ;;
22074     esac
22075   fi
22076   if test $gl_cv_func_snprintf_usable = no; then
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22088
22089   if test $ac_cv_func_snprintf = yes; then
22090     REPLACE_SNPRINTF=1
22091   fi
22092   :
22093
22094   fi
22095
22096   :
22097
22098
22099
22100
22101
22102   if test $ac_cv_have_decl_snprintf = no; then
22103     HAVE_DECL_SNPRINTF=0
22104   fi
22105
22106
22107
22108
22109
22110
22111           GNULIB_SNPRINTF=1
22112
22113
22114
22115
22116
22117 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22118
22119
22120
22121
22122
22123 cat >>confdefs.h <<_ACEOF
22124 #define GNULIB_SNPRINTF 1
22125 _ACEOF
22126
22127
22128
22129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22130 $as_echo_n "checking for ssize_t... " >&6; }
22131 if ${gt_cv_ssize_t+:} false; then :
22132   $as_echo_n "(cached) " >&6
22133 else
22134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h.  */
22136 #include <sys/types.h>
22137 int
22138 main ()
22139 {
22140 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22141             return !x;
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 if ac_fn_c_try_compile "$LINENO"; then :
22147   gt_cv_ssize_t=yes
22148 else
22149   gt_cv_ssize_t=no
22150 fi
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 fi
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22154 $as_echo "$gt_cv_ssize_t" >&6; }
22155   if test $gt_cv_ssize_t = no; then
22156
22157 $as_echo "#define ssize_t int" >>confdefs.h
22158
22159   fi
22160
22161
22162   STDARG_H=''
22163   NEXT_STDARG_H='<stdarg.h>'
22164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22165 $as_echo_n "checking for va_copy... " >&6; }
22166   if ${gl_cv_func_va_copy+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169
22170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h.  */
22172 #include <stdarg.h>
22173 int
22174 main ()
22175 {
22176
22177 #ifndef va_copy
22178 void (*func) (va_list, va_list) = va_copy;
22179 #endif
22180
22181   ;
22182   return 0;
22183 }
22184 _ACEOF
22185 if ac_fn_c_try_compile "$LINENO"; then :
22186   gl_cv_func_va_copy=yes
22187 else
22188   gl_cv_func_va_copy=no
22189 fi
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192
22193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22194 $as_echo "$gl_cv_func_va_copy" >&6; }
22195   if test $gl_cv_func_va_copy = no; then
22196                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h.  */
22198 #if defined _AIX && !defined __GNUC__
22199         AIX vaccine
22200        #endif
22201
22202 _ACEOF
22203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22204   $EGREP "vaccine" >/dev/null 2>&1; then :
22205   gl_aixcc=yes
22206 else
22207   gl_aixcc=no
22208 fi
22209 rm -f conftest*
22210
22211     if test $gl_aixcc = yes; then
22212             STDARG_H=stdarg.h
22213
22214
22215
22216
22217
22218
22219
22220
22221      if test $gl_cv_have_include_next = yes; then
22222        gl_cv_next_stdarg_h='<'stdarg.h'>'
22223      else
22224        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22225 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22226 if ${gl_cv_next_stdarg_h+:} false; then :
22227   $as_echo_n "(cached) " >&6
22228 else
22229
22230                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h.  */
22232 #include <stdarg.h>
22233
22234 _ACEOF
22235                                                                                                                         case "$host_os" in
22236                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22237                  *)    gl_absname_cpp="$ac_cpp" ;;
22238                esac
22239
22240                case "$host_os" in
22241                  mingw*)
22242                                                                                                                                      gl_dirsep_regex='[/\\]'
22243                    ;;
22244                  *)
22245                    gl_dirsep_regex='\/'
22246                    ;;
22247                esac
22248                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22249
22250                gl_header_literal_regex=`echo 'stdarg.h' \
22251                                         | sed -e "$gl_make_literal_regex_sed"`
22252                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22253                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22254                    s|^/[^/]|//&|
22255                    p
22256                    q
22257                  }'
22258                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22259                       sed -n "$gl_absolute_header_sed"`'"'
22260
22261
22262 fi
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22264 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22265      fi
22266      NEXT_STDARG_H=$gl_cv_next_stdarg_h
22267
22268      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22270        gl_next_as_first_directive='<'stdarg.h'>'
22271      else
22272        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22273        gl_next_as_first_directive=$gl_cv_next_stdarg_h
22274      fi
22275      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22276
22277
22278
22279
22280             if test "$gl_cv_next_stdarg_h" = '""'; then
22281         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22282         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22283       fi
22284     else
22285
22286   saved_as_echo_n="$as_echo_n"
22287   as_echo_n=':'
22288   if ${gl_cv_func___va_copy+:} false; then :
22289   $as_echo_n "(cached) " >&6
22290 else
22291
22292         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293 /* end confdefs.h.  */
22294 #include <stdarg.h>
22295 int
22296 main ()
22297 {
22298
22299 #ifndef __va_copy
22300 error, bail out
22301 #endif
22302
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 if ac_fn_c_try_compile "$LINENO"; then :
22308   gl_cv_func___va_copy=yes
22309 else
22310   gl_cv_func___va_copy=no
22311 fi
22312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313 fi
22314
22315   as_echo_n="$saved_as_echo_n"
22316
22317       if test $gl_cv_func___va_copy = yes; then
22318
22319 $as_echo "#define va_copy __va_copy" >>confdefs.h
22320
22321       else
22322
22323
22324 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22325
22326       fi
22327     fi
22328   fi
22329
22330    if test -n "$STDARG_H"; then
22331   GL_GENERATE_STDARG_H_TRUE=
22332   GL_GENERATE_STDARG_H_FALSE='#'
22333 else
22334   GL_GENERATE_STDARG_H_TRUE='#'
22335   GL_GENERATE_STDARG_H_FALSE=
22336 fi
22337
22338
22339
22340
22341
22342
22343   # Define two additional variables used in the Makefile substitution.
22344
22345   if test "$ac_cv_header_stdbool_h" = yes; then
22346     STDBOOL_H=''
22347   else
22348     STDBOOL_H='stdbool.h'
22349   fi
22350
22351    if test -n "$STDBOOL_H"; then
22352   GL_GENERATE_STDBOOL_H_TRUE=
22353   GL_GENERATE_STDBOOL_H_FALSE='#'
22354 else
22355   GL_GENERATE_STDBOOL_H_TRUE='#'
22356   GL_GENERATE_STDBOOL_H_FALSE=
22357 fi
22358
22359
22360   if test "$ac_cv_type__Bool" = yes; then
22361     HAVE__BOOL=1
22362   else
22363     HAVE__BOOL=0
22364   fi
22365
22366
22367
22368
22369
22370   STDDEF_H=
22371   if test $gt_cv_c_wchar_t = no; then
22372     HAVE_WCHAR_T=0
22373     STDDEF_H=stddef.h
22374   fi
22375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22376 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22377 if ${gl_cv_decl_null_works+:} false; then :
22378   $as_echo_n "(cached) " >&6
22379 else
22380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h.  */
22382 #include <stddef.h>
22383       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22384
22385 int
22386 main ()
22387 {
22388
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 if ac_fn_c_try_compile "$LINENO"; then :
22394   gl_cv_decl_null_works=yes
22395 else
22396   gl_cv_decl_null_works=no
22397 fi
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 fi
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22401 $as_echo "$gl_cv_decl_null_works" >&6; }
22402   if test $gl_cv_decl_null_works = no; then
22403     REPLACE_NULL=1
22404     STDDEF_H=stddef.h
22405   fi
22406
22407    if test -n "$STDDEF_H"; then
22408   GL_GENERATE_STDDEF_H_TRUE=
22409   GL_GENERATE_STDDEF_H_FALSE='#'
22410 else
22411   GL_GENERATE_STDDEF_H_TRUE='#'
22412   GL_GENERATE_STDDEF_H_FALSE=
22413 fi
22414
22415   if test -n "$STDDEF_H"; then
22416
22417
22418
22419
22420
22421
22422
22423
22424      if test $gl_cv_have_include_next = yes; then
22425        gl_cv_next_stddef_h='<'stddef.h'>'
22426      else
22427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22428 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22429 if ${gl_cv_next_stddef_h+:} false; then :
22430   $as_echo_n "(cached) " >&6
22431 else
22432
22433                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h.  */
22435 #include <stddef.h>
22436
22437 _ACEOF
22438                                                                                                                         case "$host_os" in
22439                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22440                  *)    gl_absname_cpp="$ac_cpp" ;;
22441                esac
22442
22443                case "$host_os" in
22444                  mingw*)
22445                                                                                                                                      gl_dirsep_regex='[/\\]'
22446                    ;;
22447                  *)
22448                    gl_dirsep_regex='\/'
22449                    ;;
22450                esac
22451                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22452
22453                gl_header_literal_regex=`echo 'stddef.h' \
22454                                         | sed -e "$gl_make_literal_regex_sed"`
22455                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22456                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22457                    s|^/[^/]|//&|
22458                    p
22459                    q
22460                  }'
22461                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22462                       sed -n "$gl_absolute_header_sed"`'"'
22463
22464
22465 fi
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22467 $as_echo "$gl_cv_next_stddef_h" >&6; }
22468      fi
22469      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22470
22471      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22472        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22473        gl_next_as_first_directive='<'stddef.h'>'
22474      else
22475        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22476        gl_next_as_first_directive=$gl_cv_next_stddef_h
22477      fi
22478      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22479
22480
22481
22482
22483   fi
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496      if test $gl_cv_have_include_next = yes; then
22497        gl_cv_next_stdio_h='<'stdio.h'>'
22498      else
22499        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22500 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22501 if ${gl_cv_next_stdio_h+:} false; then :
22502   $as_echo_n "(cached) " >&6
22503 else
22504
22505                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h.  */
22507 #include <stdio.h>
22508
22509 _ACEOF
22510                                                                                                                         case "$host_os" in
22511                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22512                  *)    gl_absname_cpp="$ac_cpp" ;;
22513                esac
22514
22515                case "$host_os" in
22516                  mingw*)
22517                                                                                                                                      gl_dirsep_regex='[/\\]'
22518                    ;;
22519                  *)
22520                    gl_dirsep_regex='\/'
22521                    ;;
22522                esac
22523                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22524
22525                gl_header_literal_regex=`echo 'stdio.h' \
22526                                         | sed -e "$gl_make_literal_regex_sed"`
22527                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22528                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22529                    s|^/[^/]|//&|
22530                    p
22531                    q
22532                  }'
22533                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22534                       sed -n "$gl_absolute_header_sed"`'"'
22535
22536
22537 fi
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22539 $as_echo "$gl_cv_next_stdio_h" >&6; }
22540      fi
22541      NEXT_STDIO_H=$gl_cv_next_stdio_h
22542
22543      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22545        gl_next_as_first_directive='<'stdio.h'>'
22546      else
22547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22548        gl_next_as_first_directive=$gl_cv_next_stdio_h
22549      fi
22550      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22551
22552
22553
22554
22555
22556       GNULIB_FSCANF=1
22557
22558
22559 cat >>confdefs.h <<_ACEOF
22560 #define GNULIB_FSCANF 1
22561 _ACEOF
22562
22563
22564   GNULIB_SCANF=1
22565
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define GNULIB_SCANF 1
22569 _ACEOF
22570
22571
22572   GNULIB_FGETC=1
22573   GNULIB_GETC=1
22574   GNULIB_GETCHAR=1
22575   GNULIB_FGETS=1
22576   GNULIB_FREAD=1
22577
22578
22579       GNULIB_FPRINTF=1
22580   GNULIB_PRINTF=1
22581   GNULIB_VFPRINTF=1
22582   GNULIB_VPRINTF=1
22583   GNULIB_FPUTC=1
22584   GNULIB_PUTC=1
22585   GNULIB_PUTCHAR=1
22586   GNULIB_FPUTS=1
22587   GNULIB_PUTS=1
22588   GNULIB_FWRITE=1
22589
22590
22591
22592
22593     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
22594     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22596 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22597 if eval \${$as_gl_Symbol+:} false; then :
22598   $as_echo_n "(cached) " >&6
22599 else
22600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601 /* end confdefs.h.  */
22602 #include <stdio.h>
22603
22604 int
22605 main ()
22606 {
22607 #undef $gl_func
22608   (void) $gl_func;
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 if ac_fn_c_try_compile "$LINENO"; then :
22614   eval "$as_gl_Symbol=yes"
22615 else
22616   eval "$as_gl_Symbol=no"
22617 fi
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 fi
22620 eval ac_res=\$$as_gl_Symbol
22621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22622 $as_echo "$ac_res" >&6; }
22623     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22624   cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22626 _ACEOF
22627
22628                      eval ac_cv_have_decl_$gl_func=yes
22629 fi
22630       done
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643      if test $gl_cv_have_include_next = yes; then
22644        gl_cv_next_stdlib_h='<'stdlib.h'>'
22645      else
22646        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22647 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22648 if ${gl_cv_next_stdlib_h+:} false; then :
22649   $as_echo_n "(cached) " >&6
22650 else
22651
22652                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h.  */
22654 #include <stdlib.h>
22655
22656 _ACEOF
22657                                                                                                                         case "$host_os" in
22658                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22659                  *)    gl_absname_cpp="$ac_cpp" ;;
22660                esac
22661
22662                case "$host_os" in
22663                  mingw*)
22664                                                                                                                                      gl_dirsep_regex='[/\\]'
22665                    ;;
22666                  *)
22667                    gl_dirsep_regex='\/'
22668                    ;;
22669                esac
22670                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22671
22672                gl_header_literal_regex=`echo 'stdlib.h' \
22673                                         | sed -e "$gl_make_literal_regex_sed"`
22674                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22675                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22676                    s|^/[^/]|//&|
22677                    p
22678                    q
22679                  }'
22680                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22681                       sed -n "$gl_absolute_header_sed"`'"'
22682
22683
22684 fi
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22686 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22687      fi
22688      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22689
22690      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22691        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22692        gl_next_as_first_directive='<'stdlib.h'>'
22693      else
22694        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22695        gl_next_as_first_directive=$gl_cv_next_stdlib_h
22696      fi
22697      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22698
22699
22700
22701
22702
22703
22704     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
22705     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22707 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22708 if eval \${$as_gl_Symbol+:} false; then :
22709   $as_echo_n "(cached) " >&6
22710 else
22711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h.  */
22713 #include <stdlib.h>
22714 #if HAVE_SYS_LOADAVG_H
22715 # include <sys/loadavg.h>
22716 #endif
22717 #if HAVE_RANDOM_H
22718 # include <random.h>
22719 #endif
22720
22721 int
22722 main ()
22723 {
22724 #undef $gl_func
22725   (void) $gl_func;
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 if ac_fn_c_try_compile "$LINENO"; then :
22731   eval "$as_gl_Symbol=yes"
22732 else
22733   eval "$as_gl_Symbol=no"
22734 fi
22735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 fi
22737 eval ac_res=\$$as_gl_Symbol
22738                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22739 $as_echo "$ac_res" >&6; }
22740     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22741   cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22743 _ACEOF
22744
22745                      eval ac_cv_have_decl_$gl_func=yes
22746 fi
22747       done
22748
22749
22750
22751
22752
22753
22754
22755   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
22756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
22757 $as_echo_n "checking for working strerror function... " >&6; }
22758 if ${gl_cv_func_working_strerror+:} false; then :
22759   $as_echo_n "(cached) " >&6
22760 else
22761   if test "$cross_compiling" = yes; then :
22762   case "$host_os" in
22763                    # Guess yes on glibc systems.
22764            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
22765                    # If we don't know, assume the worst.
22766            *)      gl_cv_func_working_strerror="guessing no" ;;
22767          esac
22768
22769 else
22770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h.  */
22772 #include <string.h>
22773
22774 int
22775 main ()
22776 {
22777 if (!*strerror (-2)) return 1;
22778   ;
22779   return 0;
22780 }
22781 _ACEOF
22782 if ac_fn_c_try_run "$LINENO"; then :
22783   gl_cv_func_working_strerror=yes
22784 else
22785   gl_cv_func_working_strerror=no
22786 fi
22787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22788   conftest.$ac_objext conftest.beam conftest.$ac_ext
22789 fi
22790
22791
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
22794 $as_echo "$gl_cv_func_working_strerror" >&6; }
22795     case "$gl_cv_func_working_strerror" in
22796       *yes) ;;
22797       *)
22798                         REPLACE_STRERROR=1
22799         ;;
22800     esac
22801
22802   else
22803             REPLACE_STRERROR=1
22804   fi
22805
22806   if test $REPLACE_STRERROR = 1; then
22807
22808
22809
22810
22811
22812
22813
22814
22815   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
22816
22817   fi
22818
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define GNULIB_STRERROR 1
22822 _ACEOF
22823
22824
22825
22826
22827
22828
22829
22830           GNULIB_STRERROR=1
22831
22832
22833
22834
22835
22836 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
22837
22838
22839
22840
22841
22842   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
22843
22844
22845
22846
22847
22848
22849
22850
22851   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
22852
22853
22854
22855
22856
22857   :
22858
22859
22860
22861
22862
22863   if test $ac_cv_header_sys_socket_h != yes; then
22864                     for ac_header in winsock2.h
22865 do :
22866   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22867 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22868   cat >>confdefs.h <<_ACEOF
22869 #define HAVE_WINSOCK2_H 1
22870 _ACEOF
22871
22872 fi
22873
22874 done
22875
22876   fi
22877   if test "$ac_cv_header_winsock2_h" = yes; then
22878     HAVE_WINSOCK2_H=1
22879     UNISTD_H_HAVE_WINSOCK2_H=1
22880     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22881   else
22882     HAVE_WINSOCK2_H=0
22883   fi
22884
22885
22886   fi
22887
22888
22889
22890
22891
22892
22893
22894
22895   :
22896
22897
22898
22899
22900
22901
22902   :
22903
22904
22905
22906
22907
22908   if test $ac_cv_have_decl_strndup = no; then
22909     HAVE_DECL_STRNDUP=0
22910   fi
22911
22912   if test $ac_cv_func_strndup = yes; then
22913     HAVE_STRNDUP=1
22914     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
22915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
22916 $as_echo_n "checking for working strndup... " >&6; }
22917 if ${gl_cv_func_strndup_works+:} false; then :
22918   $as_echo_n "(cached) " >&6
22919 else
22920   if test "$cross_compiling" = yes; then :
22921
22922           case $host_os in
22923             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
22924             *)               gl_cv_func_strndup_works="guessing yes";;
22925           esac
22926
22927 else
22928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h.  */
22930
22931          #include <string.h>
22932                            #include <stdlib.h>
22933 int
22934 main ()
22935 {
22936
22937 #if !HAVE_DECL_STRNDUP
22938   extern
22939   #ifdef __cplusplus
22940   "C"
22941   #endif
22942   char *strndup (const char *, size_t);
22943 #endif
22944   char *s;
22945   s = strndup ("some longer string", 15);
22946   free (s);
22947   s = strndup ("shorter string", 13);
22948   return s[13] != '\0';
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 if ac_fn_c_try_run "$LINENO"; then :
22954   gl_cv_func_strndup_works=yes
22955 else
22956   gl_cv_func_strndup_works=no
22957 fi
22958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959   conftest.$ac_objext conftest.beam conftest.$ac_ext
22960 fi
22961
22962 fi
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
22964 $as_echo "$gl_cv_func_strndup_works" >&6; }
22965     case $gl_cv_func_strndup_works in
22966       *no) REPLACE_STRNDUP=1 ;;
22967     esac
22968   else
22969     HAVE_STRNDUP=0
22970   fi
22971
22972   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
22973
22974
22975
22976
22977
22978
22979
22980
22981   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
22982
22983   fi
22984
22985
22986
22987
22988
22989           GNULIB_STRNDUP=1
22990
22991
22992
22993
22994
22995 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005   :
23006
23007
23008
23009
23010
23011   if test $ac_cv_have_decl_strnlen = no; then
23012     HAVE_DECL_STRNLEN=0
23013   else
23014
23015          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23016 $as_echo_n "checking for working strnlen... " >&6; }
23017 if ${ac_cv_func_strnlen_working+:} false; then :
23018   $as_echo_n "(cached) " >&6
23019 else
23020   if test "$cross_compiling" = yes; then :
23021   # Guess no on AIX systems, yes otherwise.
23022                 case "$host_os" in
23023                   aix*) ac_cv_func_strnlen_working=no;;
23024                   *)    ac_cv_func_strnlen_working=yes;;
23025                 esac
23026 else
23027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h.  */
23029 $ac_includes_default
23030 int
23031 main ()
23032 {
23033
23034 #define S "foobar"
23035 #define S_LEN (sizeof S - 1)
23036
23037   /* At least one implementation is buggy: that of AIX 4.3 would
23038      give strnlen (S, 1) == 3.  */
23039
23040   int i;
23041   for (i = 0; i < S_LEN + 1; ++i)
23042     {
23043       int expected = i <= S_LEN ? i : S_LEN;
23044       if (strnlen (S, i) != expected)
23045         return 1;
23046     }
23047   return 0;
23048
23049   ;
23050   return 0;
23051 }
23052 _ACEOF
23053 if ac_fn_c_try_run "$LINENO"; then :
23054   ac_cv_func_strnlen_working=yes
23055 else
23056   ac_cv_func_strnlen_working=no
23057 fi
23058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23059   conftest.$ac_objext conftest.beam conftest.$ac_ext
23060 fi
23061
23062 fi
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23064 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23065 test $ac_cv_func_strnlen_working = no && :
23066
23067
23068     if test $ac_cv_func_strnlen_working = no; then
23069       REPLACE_STRNLEN=1
23070     fi
23071   fi
23072
23073   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23074
23075
23076
23077
23078
23079
23080
23081
23082   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23083
23084     :
23085   fi
23086
23087
23088
23089
23090
23091           GNULIB_STRNLEN=1
23092
23093
23094
23095
23096
23097 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107   :
23108
23109
23110
23111
23112
23113   if test $ac_cv_have_decl_strsignal = no; then
23114     HAVE_DECL_STRSIGNAL=0
23115   fi
23116
23117   for ac_func in strsignal
23118 do :
23119   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23120 if test "x$ac_cv_func_strsignal" = xyes; then :
23121   cat >>confdefs.h <<_ACEOF
23122 #define HAVE_STRSIGNAL 1
23123 _ACEOF
23124
23125 fi
23126 done
23127
23128   if test $ac_cv_func_strsignal = yes; then
23129     HAVE_STRSIGNAL=1
23130             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23131 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23132 if ${gl_cv_func_working_strsignal+:} false; then :
23133   $as_echo_n "(cached) " >&6
23134 else
23135   if test "$cross_compiling" = yes; then :
23136   case "$host_os" in
23137             solaris* | aix*) gl_cv_func_working_strsignal=no;;
23138             *)               gl_cv_func_working_strsignal="guessing yes";;
23139           esac
23140 else
23141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h.  */
23143 #include <string.h>
23144 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23145
23146 int
23147 main ()
23148 {
23149 int result = 0;
23150               char *s = strsignal (-1);
23151               if (s == (char *) 0)
23152                 result |= 1;
23153               if (s == (char *) -1)
23154                 result |= 2;
23155               return result;
23156
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 if ac_fn_c_try_run "$LINENO"; then :
23162   gl_cv_func_working_strsignal=yes
23163 else
23164   gl_cv_func_working_strsignal=no
23165 fi
23166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23167   conftest.$ac_objext conftest.beam conftest.$ac_ext
23168 fi
23169
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23172 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23173     if test "$gl_cv_func_working_strsignal" = no; then
23174       REPLACE_STRSIGNAL=1
23175     fi
23176   else
23177     HAVE_STRSIGNAL=0
23178   fi
23179
23180   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23181
23182
23183
23184
23185
23186
23187
23188
23189   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23190
23191
23192
23193   :
23194
23195
23196
23197
23198
23199
23200   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23201 "
23202 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23203   ac_have_decl=1
23204 else
23205   ac_have_decl=0
23206 fi
23207
23208 cat >>confdefs.h <<_ACEOF
23209 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23210 _ACEOF
23211
23212
23213   fi
23214
23215
23216
23217
23218
23219           GNULIB_STRSIGNAL=1
23220
23221
23222
23223
23224
23225 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23226
23227
23228
23229
23230
23231
23232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23233 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23234 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23235   $as_echo_n "(cached) " >&6
23236 else
23237
23238                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239 /* end confdefs.h.  */
23240 #include <sys/select.h>
23241 int
23242 main ()
23243 {
23244 struct timeval b;
23245   ;
23246   return 0;
23247 }
23248 _ACEOF
23249 if ac_fn_c_try_compile "$LINENO"; then :
23250   gl_cv_header_sys_select_h_selfcontained=yes
23251 else
23252   gl_cv_header_sys_select_h_selfcontained=no
23253 fi
23254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23256         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h.  */
23258 #include <sys/select.h>
23259 int
23260 main ()
23261 {
23262 int memset; int bzero;
23263   ;
23264   return 0;
23265 }
23266
23267 _ACEOF
23268 if ac_fn_c_try_compile "$LINENO"; then :
23269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270 /* end confdefs.h.  */
23271 #include <sys/select.h>
23272 int
23273 main ()
23274 {
23275
23276                   #undef memset
23277                   #define memset nonexistent_memset
23278                   extern
23279                   #ifdef __cplusplus
23280                   "C"
23281                   #endif
23282                   void *memset (void *, int, unsigned long);
23283                   #undef bzero
23284                   #define bzero nonexistent_bzero
23285                   extern
23286                   #ifdef __cplusplus
23287                   "C"
23288                   #endif
23289                   void bzero (void *, unsigned long);
23290                   fd_set fds;
23291                   FD_ZERO (&fds);
23292
23293   ;
23294   return 0;
23295 }
23296
23297 _ACEOF
23298 if ac_fn_c_try_link "$LINENO"; then :
23299
23300 else
23301   gl_cv_header_sys_select_h_selfcontained=no
23302 fi
23303 rm -f core conftest.err conftest.$ac_objext \
23304     conftest$ac_exeext conftest.$ac_ext
23305
23306 fi
23307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308       fi
23309
23310 fi
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23312 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23313
23314
23315
23316
23317
23318
23319   :
23320
23321
23322
23323
23324
23325
23326
23327
23328      if test $gl_cv_have_include_next = yes; then
23329        gl_cv_next_sys_select_h='<'sys/select.h'>'
23330      else
23331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23332 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23333 if ${gl_cv_next_sys_select_h+:} false; then :
23334   $as_echo_n "(cached) " >&6
23335 else
23336
23337              if test $ac_cv_header_sys_select_h = yes; then
23338
23339
23340                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h.  */
23342 #include <sys/select.h>
23343
23344 _ACEOF
23345                                                                                                                         case "$host_os" in
23346                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23347                  *)    gl_absname_cpp="$ac_cpp" ;;
23348                esac
23349
23350                case "$host_os" in
23351                  mingw*)
23352                                                                                                                                      gl_dirsep_regex='[/\\]'
23353                    ;;
23354                  *)
23355                    gl_dirsep_regex='\/'
23356                    ;;
23357                esac
23358                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23359
23360                gl_header_literal_regex=`echo 'sys/select.h' \
23361                                         | sed -e "$gl_make_literal_regex_sed"`
23362                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23363                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23364                    s|^/[^/]|//&|
23365                    p
23366                    q
23367                  }'
23368                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23369                       sed -n "$gl_absolute_header_sed"`'"'
23370           else
23371                gl_cv_next_sys_select_h='<'sys/select.h'>'
23372              fi
23373
23374
23375 fi
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23377 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23378      fi
23379      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23380
23381      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23383        gl_next_as_first_directive='<'sys/select.h'>'
23384      else
23385        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23386        gl_next_as_first_directive=$gl_cv_next_sys_select_h
23387      fi
23388      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23389
23390
23391
23392
23393   if test $ac_cv_header_sys_select_h = yes; then
23394     HAVE_SYS_SELECT_H=1
23395   else
23396     HAVE_SYS_SELECT_H=0
23397   fi
23398
23399
23400
23401
23402
23403   :
23404
23405
23406
23407
23408
23409   if test $ac_cv_header_sys_socket_h != yes; then
23410                     for ac_header in winsock2.h
23411 do :
23412   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23413 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23414   cat >>confdefs.h <<_ACEOF
23415 #define HAVE_WINSOCK2_H 1
23416 _ACEOF
23417
23418 fi
23419
23420 done
23421
23422   fi
23423   if test "$ac_cv_header_winsock2_h" = yes; then
23424     HAVE_WINSOCK2_H=1
23425     UNISTD_H_HAVE_WINSOCK2_H=1
23426     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23427   else
23428     HAVE_WINSOCK2_H=0
23429   fi
23430
23431
23432
23433
23434     for gl_func in pselect select; do
23435     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23438 if eval \${$as_gl_Symbol+:} false; then :
23439   $as_echo_n "(cached) " >&6
23440 else
23441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23442 /* end confdefs.h.  */
23443
23444 /* Some systems require prerequisite headers.  */
23445 #include <sys/types.h>
23446 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23447 # include <sys/time.h>
23448 #endif
23449 #include <sys/select.h>
23450
23451 int
23452 main ()
23453 {
23454 #undef $gl_func
23455   (void) $gl_func;
23456   ;
23457   return 0;
23458 }
23459 _ACEOF
23460 if ac_fn_c_try_compile "$LINENO"; then :
23461   eval "$as_gl_Symbol=yes"
23462 else
23463   eval "$as_gl_Symbol=no"
23464 fi
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 fi
23467 eval ac_res=\$$as_gl_Symbol
23468                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23469 $as_echo "$ac_res" >&6; }
23470     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23471   cat >>confdefs.h <<_ACEOF
23472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23473 _ACEOF
23474
23475                      eval ac_cv_have_decl_$gl_func=yes
23476 fi
23477       done
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492   :
23493
23494
23495
23496
23497
23498
23499
23500
23501      if test $gl_cv_have_include_next = yes; then
23502        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23503      else
23504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23505 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23506 if ${gl_cv_next_sys_stat_h+:} false; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509
23510              if test $ac_cv_header_sys_stat_h = yes; then
23511
23512
23513                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h.  */
23515 #include <sys/stat.h>
23516
23517 _ACEOF
23518                                                                                                                         case "$host_os" in
23519                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23520                  *)    gl_absname_cpp="$ac_cpp" ;;
23521                esac
23522
23523                case "$host_os" in
23524                  mingw*)
23525                                                                                                                                      gl_dirsep_regex='[/\\]'
23526                    ;;
23527                  *)
23528                    gl_dirsep_regex='\/'
23529                    ;;
23530                esac
23531                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23532
23533                gl_header_literal_regex=`echo 'sys/stat.h' \
23534                                         | sed -e "$gl_make_literal_regex_sed"`
23535                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23536                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23537                    s|^/[^/]|//&|
23538                    p
23539                    q
23540                  }'
23541                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23542                       sed -n "$gl_absolute_header_sed"`'"'
23543           else
23544                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23545              fi
23546
23547
23548 fi
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23550 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23551      fi
23552      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23553
23554      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23555        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23556        gl_next_as_first_directive='<'sys/stat.h'>'
23557      else
23558        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23559        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23560      fi
23561      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23562
23563
23564
23565
23566
23567
23568
23569
23570     WINDOWS_64_BIT_ST_SIZE=0
23571
23572
23573   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23574
23575 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23576
23577   fi
23578
23579       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23580      #include <sys/stat.h>
23581 "
23582 if test "x$ac_cv_type_nlink_t" = xyes; then :
23583
23584 else
23585
23586 $as_echo "#define nlink_t int" >>confdefs.h
23587
23588 fi
23589
23590
23591
23592     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
23593     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23596 if eval \${$as_gl_Symbol+:} false; then :
23597   $as_echo_n "(cached) " >&6
23598 else
23599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h.  */
23601 #include <sys/stat.h>
23602
23603 int
23604 main ()
23605 {
23606 #undef $gl_func
23607   (void) $gl_func;
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 if ac_fn_c_try_compile "$LINENO"; then :
23613   eval "$as_gl_Symbol=yes"
23614 else
23615   eval "$as_gl_Symbol=no"
23616 fi
23617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23618 fi
23619 eval ac_res=\$$as_gl_Symbol
23620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23621 $as_echo "$ac_res" >&6; }
23622     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23623   cat >>confdefs.h <<_ACEOF
23624 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23625 _ACEOF
23626
23627                      eval ac_cv_have_decl_$gl_func=yes
23628 fi
23629       done
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648   :
23649
23650
23651
23652
23653
23654
23655
23656
23657      if test $gl_cv_have_include_next = yes; then
23658        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23659      else
23660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23661 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23662 if ${gl_cv_next_sys_wait_h+:} false; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665
23666              if test $ac_cv_header_sys_wait_h = yes; then
23667
23668
23669                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h.  */
23671 #include <sys/wait.h>
23672
23673 _ACEOF
23674                                                                                                                         case "$host_os" in
23675                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23676                  *)    gl_absname_cpp="$ac_cpp" ;;
23677                esac
23678
23679                case "$host_os" in
23680                  mingw*)
23681                                                                                                                                      gl_dirsep_regex='[/\\]'
23682                    ;;
23683                  *)
23684                    gl_dirsep_regex='\/'
23685                    ;;
23686                esac
23687                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23688
23689                gl_header_literal_regex=`echo 'sys/wait.h' \
23690                                         | sed -e "$gl_make_literal_regex_sed"`
23691                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23692                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23693                    s|^/[^/]|//&|
23694                    p
23695                    q
23696                  }'
23697                                                             gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23698                       sed -n "$gl_absolute_header_sed"`'"'
23699           else
23700                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23701              fi
23702
23703
23704 fi
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
23706 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
23707      fi
23708      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
23709
23710      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23711        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23712        gl_next_as_first_directive='<'sys/wait.h'>'
23713      else
23714        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23715        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
23716      fi
23717      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
23718
23719
23720
23721
23722
23723
23724
23725
23726     for gl_func in waitpid; do
23727     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23729 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23730 if eval \${$as_gl_Symbol+:} false; then :
23731   $as_echo_n "(cached) " >&6
23732 else
23733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h.  */
23735 #include <sys/wait.h>
23736 int
23737 main ()
23738 {
23739 #undef $gl_func
23740   (void) $gl_func;
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_c_try_compile "$LINENO"; then :
23746   eval "$as_gl_Symbol=yes"
23747 else
23748   eval "$as_gl_Symbol=no"
23749 fi
23750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 fi
23752 eval ac_res=\$$as_gl_Symbol
23753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23754 $as_echo "$ac_res" >&6; }
23755     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23756   cat >>confdefs.h <<_ACEOF
23757 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23758 _ACEOF
23759
23760                      eval ac_cv_have_decl_$gl_func=yes
23761 fi
23762       done
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785   :
23786
23787
23788
23789
23790
23791
23792
23793
23794      if test $gl_cv_have_include_next = yes; then
23795        gl_cv_next_unistd_h='<'unistd.h'>'
23796      else
23797        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23798 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23799 if ${gl_cv_next_unistd_h+:} false; then :
23800   $as_echo_n "(cached) " >&6
23801 else
23802
23803              if test $ac_cv_header_unistd_h = yes; then
23804
23805
23806                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h.  */
23808 #include <unistd.h>
23809
23810 _ACEOF
23811                                                                                                                         case "$host_os" in
23812                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23813                  *)    gl_absname_cpp="$ac_cpp" ;;
23814                esac
23815
23816                case "$host_os" in
23817                  mingw*)
23818                                                                                                                                      gl_dirsep_regex='[/\\]'
23819                    ;;
23820                  *)
23821                    gl_dirsep_regex='\/'
23822                    ;;
23823                esac
23824                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23825
23826                gl_header_literal_regex=`echo 'unistd.h' \
23827                                         | sed -e "$gl_make_literal_regex_sed"`
23828                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23829                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23830                    s|^/[^/]|//&|
23831                    p
23832                    q
23833                  }'
23834                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23835                       sed -n "$gl_absolute_header_sed"`'"'
23836           else
23837                gl_cv_next_unistd_h='<'unistd.h'>'
23838              fi
23839
23840
23841 fi
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23843 $as_echo "$gl_cv_next_unistd_h" >&6; }
23844      fi
23845      NEXT_UNISTD_H=$gl_cv_next_unistd_h
23846
23847      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23849        gl_next_as_first_directive='<'unistd.h'>'
23850      else
23851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23852        gl_next_as_first_directive=$gl_cv_next_unistd_h
23853      fi
23854      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23855
23856
23857
23858
23859   if test $ac_cv_header_unistd_h = yes; then
23860     HAVE_UNISTD_H=1
23861   else
23862     HAVE_UNISTD_H=0
23863   fi
23864
23865
23866
23867
23868
23869
23870
23871     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
23872     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23874 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23875 if eval \${$as_gl_Symbol+:} false; then :
23876   $as_echo_n "(cached) " >&6
23877 else
23878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23879 /* end confdefs.h.  */
23880
23881 #if HAVE_UNISTD_H
23882 # include <unistd.h>
23883 #endif
23884 /* Some systems declare various items in the wrong headers.  */
23885 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23886 # include <fcntl.h>
23887 # include <stdio.h>
23888 # include <stdlib.h>
23889 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23890 #  include <io.h>
23891 # endif
23892 #endif
23893
23894 int
23895 main ()
23896 {
23897 #undef $gl_func
23898   (void) $gl_func;
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 if ac_fn_c_try_compile "$LINENO"; then :
23904   eval "$as_gl_Symbol=yes"
23905 else
23906   eval "$as_gl_Symbol=no"
23907 fi
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 fi
23910 eval ac_res=\$$as_gl_Symbol
23911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23912 $as_echo "$ac_res" >&6; }
23913     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23914   cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23916 _ACEOF
23917
23918                      eval ac_cv_have_decl_$gl_func=yes
23919 fi
23920       done
23921
23922
23923
23924
23925
23926   :
23927
23928
23929
23930
23931
23932   if test $ac_cv_have_decl_unsetenv = no; then
23933     HAVE_DECL_UNSETENV=0
23934   fi
23935   for ac_func in unsetenv
23936 do :
23937   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23938 if test "x$ac_cv_func_unsetenv" = xyes; then :
23939   cat >>confdefs.h <<_ACEOF
23940 #define HAVE_UNSETENV 1
23941 _ACEOF
23942
23943 fi
23944 done
23945
23946   if test $ac_cv_func_unsetenv = no; then
23947     HAVE_UNSETENV=0
23948   else
23949     HAVE_UNSETENV=1
23950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23951 $as_echo_n "checking for unsetenv() return type... " >&6; }
23952 if ${gt_cv_func_unsetenv_ret+:} false; then :
23953   $as_echo_n "(cached) " >&6
23954 else
23955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h.  */
23957
23958 #undef _BSD
23959 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23960 #include <stdlib.h>
23961 extern
23962 #ifdef __cplusplus
23963 "C"
23964 #endif
23965 int unsetenv (const char *name);
23966
23967 int
23968 main ()
23969 {
23970
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 if ac_fn_c_try_compile "$LINENO"; then :
23976   gt_cv_func_unsetenv_ret='int'
23977 else
23978   gt_cv_func_unsetenv_ret='void'
23979 fi
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23983 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23984     if test $gt_cv_func_unsetenv_ret = 'void'; then
23985
23986 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23987
23988       REPLACE_UNSETENV=1
23989     fi
23990
23991                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23992 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23993 if ${gl_cv_func_unsetenv_works+:} false; then :
23994   $as_echo_n "(cached) " >&6
23995 else
23996   if test "$cross_compiling" = yes; then :
23997   case "$host_os" in
23998                  # Guess yes on glibc systems.
23999          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24000                  # If we don't know, assume the worst.
24001          *)      gl_cv_func_unsetenv_works="guessing no" ;;
24002        esac
24003
24004 else
24005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24006 /* end confdefs.h.  */
24007
24008        #include <stdlib.h>
24009        #include <errno.h>
24010        extern char **environ;
24011
24012 int
24013 main ()
24014 {
24015
24016        char entry1[] = "a=1";
24017        char entry2[] = "b=2";
24018        char *env[] = { entry1, entry2, NULL };
24019        if (putenv ((char *) "a=1")) return 1;
24020        if (putenv (entry2)) return 2;
24021        entry2[0] = 'a';
24022        unsetenv ("a");
24023        if (getenv ("a")) return 3;
24024        if (!unsetenv ("") || errno != EINVAL) return 4;
24025        entry2[0] = 'b';
24026        environ = env;
24027        if (!getenv ("a")) return 5;
24028        entry2[0] = 'a';
24029        unsetenv ("a");
24030        if (getenv ("a")) return 6;
24031
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 if ac_fn_c_try_run "$LINENO"; then :
24037   gl_cv_func_unsetenv_works=yes
24038 else
24039   gl_cv_func_unsetenv_works=no
24040 fi
24041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24042   conftest.$ac_objext conftest.beam conftest.$ac_ext
24043 fi
24044
24045 fi
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24047 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24048     case "$gl_cv_func_unsetenv_works" in
24049       *yes) ;;
24050       *)
24051         REPLACE_UNSETENV=1
24052         ;;
24053     esac
24054   fi
24055
24056   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24057
24058
24059
24060
24061
24062
24063
24064
24065   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24066
24067
24068
24069
24070   :
24071
24072
24073
24074
24075
24076
24077   fi
24078
24079
24080
24081
24082
24083           GNULIB_UNSETENV=1
24084
24085
24086
24087
24088
24089 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24090
24091
24092
24093
24094
24095   :
24096
24097
24098
24099
24100
24101   if test $ac_cv_func_vasnprintf = no; then
24102
24103
24104   :
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24149
24150   if test $ac_cv_func_vasnprintf = yes; then
24151
24152 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24153
24154   fi
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24167 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24168
24169 else
24170
24171 $as_echo "#define ptrdiff_t long" >>confdefs.h
24172
24173
24174 fi
24175
24176
24177
24178
24179
24180
24181
24182   fi
24183
24184
24185   for ac_func in vasprintf
24186 do :
24187   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24188 if test "x$ac_cv_func_vasprintf" = xyes; then :
24189   cat >>confdefs.h <<_ACEOF
24190 #define HAVE_VASPRINTF 1
24191 _ACEOF
24192
24193 fi
24194 done
24195
24196   if test $ac_cv_func_vasprintf = no; then
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24217
24218
24219   if test $ac_cv_func_vasprintf = yes; then
24220     REPLACE_VASPRINTF=1
24221   else
24222     HAVE_VASPRINTF=0
24223   fi
24224
24225
24226
24227
24228
24229
24230
24231
24232   fi
24233
24234
24235
24236
24237
24238
24239           GNULIB_VASPRINTF=1
24240
24241
24242
24243
24244
24245 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24246
24247
24248
24249
24250
24251   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24252
24253
24254
24255   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24256
24257
24258
24259   HAVE_WAITPID=1
24260   case $host_os in
24261     mingw*) HAVE_WAITPID=0 ;;
24262   esac
24263
24264   if test $HAVE_WAITPID = 0; then
24265
24266
24267
24268
24269
24270
24271
24272
24273   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24274
24275   fi
24276
24277
24278
24279
24280
24281           GNULIB_WAITPID=1
24282
24283
24284
24285
24286
24287 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300   :
24301
24302
24303
24304
24305
24306
24307
24308
24309      if test $gl_cv_have_include_next = yes; then
24310        gl_cv_next_wchar_h='<'wchar.h'>'
24311      else
24312        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24313 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24314 if ${gl_cv_next_wchar_h+:} false; then :
24315   $as_echo_n "(cached) " >&6
24316 else
24317
24318              if test $ac_cv_header_wchar_h = yes; then
24319
24320
24321                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h.  */
24323 #include <wchar.h>
24324
24325 _ACEOF
24326                                                                                                                         case "$host_os" in
24327                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24328                  *)    gl_absname_cpp="$ac_cpp" ;;
24329                esac
24330
24331                case "$host_os" in
24332                  mingw*)
24333                                                                                                                                      gl_dirsep_regex='[/\\]'
24334                    ;;
24335                  *)
24336                    gl_dirsep_regex='\/'
24337                    ;;
24338                esac
24339                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24340
24341                gl_header_literal_regex=`echo 'wchar.h' \
24342                                         | sed -e "$gl_make_literal_regex_sed"`
24343                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24344                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24345                    s|^/[^/]|//&|
24346                    p
24347                    q
24348                  }'
24349                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24350                       sed -n "$gl_absolute_header_sed"`'"'
24351           else
24352                gl_cv_next_wchar_h='<'wchar.h'>'
24353              fi
24354
24355
24356 fi
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24358 $as_echo "$gl_cv_next_wchar_h" >&6; }
24359      fi
24360      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24361
24362      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24363        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24364        gl_next_as_first_directive='<'wchar.h'>'
24365      else
24366        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24367        gl_next_as_first_directive=$gl_cv_next_wchar_h
24368      fi
24369      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24370
24371
24372
24373
24374   if test $ac_cv_header_wchar_h = yes; then
24375     HAVE_WCHAR_H=1
24376   else
24377     HAVE_WCHAR_H=0
24378   fi
24379
24380
24381
24382
24383
24384   if test $gt_cv_c_wint_t = yes; then
24385     HAVE_WINT_T=1
24386   else
24387     HAVE_WINT_T=0
24388   fi
24389
24390
24391
24392     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
24393     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24395 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24396 if eval \${$as_gl_Symbol+:} false; then :
24397   $as_echo_n "(cached) " >&6
24398 else
24399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h.  */
24401
24402 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24403    <wchar.h>.
24404    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24405    included before <wchar.h>.  */
24406 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24407 # include <stddef.h>
24408 # include <stdio.h>
24409 # include <time.h>
24410 #endif
24411 #include <wchar.h>
24412
24413 int
24414 main ()
24415 {
24416 #undef $gl_func
24417   (void) $gl_func;
24418   ;
24419   return 0;
24420 }
24421 _ACEOF
24422 if ac_fn_c_try_compile "$LINENO"; then :
24423   eval "$as_gl_Symbol=yes"
24424 else
24425   eval "$as_gl_Symbol=no"
24426 fi
24427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24428 fi
24429 eval ac_res=\$$as_gl_Symbol
24430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24431 $as_echo "$ac_res" >&6; }
24432     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24433   cat >>confdefs.h <<_ACEOF
24434 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24435 _ACEOF
24436
24437                      eval ac_cv_have_decl_$gl_func=yes
24438 fi
24439       done
24440
24441
24442
24443
24444
24445   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24446     REPLACE_WRITE=1
24447   fi
24448
24449
24450
24451   if test $REPLACE_WRITE = 1; then
24452
24453
24454
24455
24456
24457
24458
24459
24460   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24461
24462     :
24463   fi
24464
24465
24466
24467
24468
24469           GNULIB_WRITE=1
24470
24471
24472
24473
24474
24475 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24476
24477
24478
24479   :
24480
24481
24482   for ac_header in stdint.h
24483 do :
24484   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24485 if test "x$ac_cv_header_stdint_h" = xyes; then :
24486   cat >>confdefs.h <<_ACEOF
24487 #define HAVE_STDINT_H 1
24488 _ACEOF
24489
24490 fi
24491
24492 done
24493
24494
24495
24496
24497   :
24498
24499
24500   :
24501
24502
24503   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24504
24505   # End of code from modules
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515   gltests_libdeps=
24516   gltests_ltlibdeps=
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526   gl_source_base='tests'
24527   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
24528
24529   gl_module_indicator_condition=$gltests_WITNESS
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540 for ac_header in fcntl.h
24541 do :
24542   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24543 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24544   cat >>confdefs.h <<_ACEOF
24545 #define HAVE_FCNTL_H 1
24546 _ACEOF
24547
24548 fi
24549
24550 done
24551
24552 for ac_func in clearenv
24553 do :
24554   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
24555 if test "x$ac_cv_func_clearenv" = xyes; then :
24556   cat >>confdefs.h <<_ACEOF
24557 #define HAVE_CLEARENV 1
24558 _ACEOF
24559
24560 fi
24561 done
24562
24563
24564 # Checks for structures and compiler characteristics.
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24566 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24567 if ${ac_cv_c_const+:} false; then :
24568   $as_echo_n "(cached) " >&6
24569 else
24570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24571 /* end confdefs.h.  */
24572
24573 int
24574 main ()
24575 {
24576
24577 #ifndef __cplusplus
24578   /* Ultrix mips cc rejects this sort of thing.  */
24579   typedef int charset[2];
24580   const charset cs = { 0, 0 };
24581   /* SunOS 4.1.1 cc rejects this.  */
24582   char const *const *pcpcc;
24583   char **ppc;
24584   /* NEC SVR4.0.2 mips cc rejects this.  */
24585   struct point {int x, y;};
24586   static struct point const zero = {0,0};
24587   /* AIX XL C 1.02.0.0 rejects this.
24588      It does not let you subtract one const X* pointer from another in
24589      an arm of an if-expression whose if-part is not a constant
24590      expression */
24591   const char *g = "string";
24592   pcpcc = &g + (g ? g-g : 0);
24593   /* HPUX 7.0 cc rejects these. */
24594   ++pcpcc;
24595   ppc = (char**) pcpcc;
24596   pcpcc = (char const *const *) ppc;
24597   { /* SCO 3.2v4 cc rejects this sort of thing.  */
24598     char tx;
24599     char *t = &tx;
24600     char const *s = 0 ? (char *) 0 : (char const *) 0;
24601
24602     *t++ = 0;
24603     if (s) return 0;
24604   }
24605   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24606     int x[] = {25, 17};
24607     const int *foo = &x[0];
24608     ++foo;
24609   }
24610   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24611     typedef const int *iptr;
24612     iptr p = 0;
24613     ++p;
24614   }
24615   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24616        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24617     struct s { int j; const int *ap[3]; } bx;
24618     struct s *b = &bx; b->j = 5;
24619   }
24620   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24621     const int foo = 10;
24622     if (!foo) return 0;
24623   }
24624   return !cs[0] && !zero.x;
24625 #endif
24626
24627   ;
24628   return 0;
24629 }
24630 _ACEOF
24631 if ac_fn_c_try_compile "$LINENO"; then :
24632   ac_cv_c_const=yes
24633 else
24634   ac_cv_c_const=no
24635 fi
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 fi
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24639 $as_echo "$ac_cv_c_const" >&6; }
24640 if test $ac_cv_c_const = no; then
24641
24642 $as_echo "#define const /**/" >>confdefs.h
24643
24644 fi
24645
24646 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24647 if test "x$ac_cv_type_pid_t" = xyes; then :
24648
24649 else
24650
24651 cat >>confdefs.h <<_ACEOF
24652 #define pid_t int
24653 _ACEOF
24654
24655 fi
24656
24657 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24658 if test "x$ac_cv_type_size_t" = xyes; then :
24659
24660 else
24661
24662 cat >>confdefs.h <<_ACEOF
24663 #define size_t unsigned int
24664 _ACEOF
24665
24666 fi
24667
24668
24669 # We must have fork(2) support.
24670 for ac_header in vfork.h
24671 do :
24672   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24673 if test "x$ac_cv_header_vfork_h" = xyes; then :
24674   cat >>confdefs.h <<_ACEOF
24675 #define HAVE_VFORK_H 1
24676 _ACEOF
24677
24678 fi
24679
24680 done
24681
24682 for ac_func in fork vfork
24683 do :
24684   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24687   cat >>confdefs.h <<_ACEOF
24688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24689 _ACEOF
24690
24691 fi
24692 done
24693
24694 if test "x$ac_cv_func_fork" = xyes; then
24695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24696 $as_echo_n "checking for working fork... " >&6; }
24697 if ${ac_cv_func_fork_works+:} false; then :
24698   $as_echo_n "(cached) " >&6
24699 else
24700   if test "$cross_compiling" = yes; then :
24701   ac_cv_func_fork_works=cross
24702 else
24703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h.  */
24705 $ac_includes_default
24706 int
24707 main ()
24708 {
24709
24710           /* By Ruediger Kuhlmann. */
24711           return fork () < 0;
24712
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 if ac_fn_c_try_run "$LINENO"; then :
24718   ac_cv_func_fork_works=yes
24719 else
24720   ac_cv_func_fork_works=no
24721 fi
24722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24723   conftest.$ac_objext conftest.beam conftest.$ac_ext
24724 fi
24725
24726 fi
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24728 $as_echo "$ac_cv_func_fork_works" >&6; }
24729
24730 else
24731   ac_cv_func_fork_works=$ac_cv_func_fork
24732 fi
24733 if test "x$ac_cv_func_fork_works" = xcross; then
24734   case $host in
24735     *-*-amigaos* | *-*-msdosdjgpp*)
24736       # Override, as these systems have only a dummy fork() stub
24737       ac_cv_func_fork_works=no
24738       ;;
24739     *)
24740       ac_cv_func_fork_works=yes
24741       ;;
24742   esac
24743   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24744 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24745 fi
24746 ac_cv_func_vfork_works=$ac_cv_func_vfork
24747 if test "x$ac_cv_func_vfork" = xyes; then
24748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24749 $as_echo_n "checking for working vfork... " >&6; }
24750 if ${ac_cv_func_vfork_works+:} false; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   if test "$cross_compiling" = yes; then :
24754   ac_cv_func_vfork_works=cross
24755 else
24756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h.  */
24758 /* Thanks to Paul Eggert for this test.  */
24759 $ac_includes_default
24760 #include <sys/wait.h>
24761 #ifdef HAVE_VFORK_H
24762 # include <vfork.h>
24763 #endif
24764 /* On some sparc systems, changes by the child to local and incoming
24765    argument registers are propagated back to the parent.  The compiler
24766    is told about this with #include <vfork.h>, but some compilers
24767    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24768    static variable whose address is put into a register that is
24769    clobbered by the vfork.  */
24770 static void
24771 #ifdef __cplusplus
24772 sparc_address_test (int arg)
24773 # else
24774 sparc_address_test (arg) int arg;
24775 #endif
24776 {
24777   static pid_t child;
24778   if (!child) {
24779     child = vfork ();
24780     if (child < 0) {
24781       perror ("vfork");
24782       _exit(2);
24783     }
24784     if (!child) {
24785       arg = getpid();
24786       write(-1, "", 0);
24787       _exit (arg);
24788     }
24789   }
24790 }
24791
24792 int
24793 main ()
24794 {
24795   pid_t parent = getpid ();
24796   pid_t child;
24797
24798   sparc_address_test (0);
24799
24800   child = vfork ();
24801
24802   if (child == 0) {
24803     /* Here is another test for sparc vfork register problems.  This
24804        test uses lots of local variables, at least as many local
24805        variables as main has allocated so far including compiler
24806        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24807        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24808        reuse the register of parent for one of the local variables,
24809        since it will think that parent can't possibly be used any more
24810        in this routine.  Assigning to the local variable will thus
24811        munge parent in the parent process.  */
24812     pid_t
24813       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24814       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24815     /* Convince the compiler that p..p7 are live; otherwise, it might
24816        use the same hardware register for all 8 local variables.  */
24817     if (p != p1 || p != p2 || p != p3 || p != p4
24818         || p != p5 || p != p6 || p != p7)
24819       _exit(1);
24820
24821     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24822        from child file descriptors.  If the child closes a descriptor
24823        before it execs or exits, this munges the parent's descriptor
24824        as well.  Test for this by closing stdout in the child.  */
24825     _exit(close(fileno(stdout)) != 0);
24826   } else {
24827     int status;
24828     struct stat st;
24829
24830     while (wait(&status) != child)
24831       ;
24832     return (
24833          /* Was there some problem with vforking?  */
24834          child < 0
24835
24836          /* Did the child fail?  (This shouldn't happen.)  */
24837          || status
24838
24839          /* Did the vfork/compiler bug occur?  */
24840          || parent != getpid()
24841
24842          /* Did the file descriptor bug occur?  */
24843          || fstat(fileno(stdout), &st) != 0
24844          );
24845   }
24846 }
24847 _ACEOF
24848 if ac_fn_c_try_run "$LINENO"; then :
24849   ac_cv_func_vfork_works=yes
24850 else
24851   ac_cv_func_vfork_works=no
24852 fi
24853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24854   conftest.$ac_objext conftest.beam conftest.$ac_ext
24855 fi
24856
24857 fi
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24859 $as_echo "$ac_cv_func_vfork_works" >&6; }
24860
24861 fi;
24862 if test "x$ac_cv_func_fork_works" = xcross; then
24863   ac_cv_func_vfork_works=$ac_cv_func_vfork
24864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24865 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24866 fi
24867
24868 if test "x$ac_cv_func_vfork_works" = xyes; then
24869
24870 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24871
24872 else
24873
24874 $as_echo "#define vfork fork" >>confdefs.h
24875
24876 fi
24877 if test "x$ac_cv_func_fork_works" = xyes; then
24878
24879 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24880
24881 fi
24882
24883 if test "x$ac_cv_func_fork_works" != xyes; then
24884   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24886 as_fn_error $? "cannot use libpipeline on systems without fork
24887 See \`config.log' for more details" "$LINENO" 5; }
24888 fi
24889
24890 # Check for socketpair(2) as fast replacement for pipe(2).
24891 # Check whether --enable-socketpair-pipe was given.
24892 if test "${enable_socketpair_pipe+set}" = set; then :
24893   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
24894     then
24895        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
24896 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
24897   if ${pipeline_cv_socketpair_pipe+:} false; then :
24898   $as_echo_n "(cached) " >&6
24899 else
24900
24901     if test "$cross_compiling" = yes; then :
24902   pipeline_cv_socketpair_pipe=no
24903 else
24904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h.  */
24906
24907 #include <netdb.h>
24908 #include <netinet/in.h>
24909 #include <signal.h>
24910 #include <sys/socket.h>
24911 #include <sys/types.h>
24912 #include <sys/wait.h>
24913 #include <unistd.h>
24914 #ifndef SHUT_RD
24915 #       define SHUT_RD  0
24916 #endif
24917 #ifndef SHUT_WR
24918 #       define SHUT_WR  1
24919 #endif
24920
24921 static void sigpipe(int sig)
24922 {
24923         _exit(0);
24924 }
24925
24926 int main()
24927 {
24928         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
24929         char buf[256];
24930         int sfd[2], s;
24931         pid_t pid;
24932         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24933                 return 1;
24934         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24935                 return 1;
24936         if ((pid = fork()) < 0)
24937                 return 1;
24938         if (pid) {
24939                 close(sfd[1]);
24940                 waitpid(-1,&s,0);
24941                 if (read(sfd[0],buf,sizeof(buf)) < 0)
24942                         return 1;
24943         } else {
24944                 close(sfd[0]);
24945                 write(sfd[1],test,sizeof(test) - 1);
24946                 return 0;
24947         }
24948         close(sfd[0]);
24949         signal(SIGPIPE, sigpipe);
24950         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24951                 return 1;
24952         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24953                 return 1;
24954         close(sfd[0]);
24955         write(sfd[1],test,sizeof(test) - 1);
24956         return 1;
24957 }
24958 _ACEOF
24959 if ac_fn_c_try_run "$LINENO"; then :
24960   pipeline_cv_socketpair_pipe=yes
24961 else
24962   pipeline_cv_socketpair_pipe=no
24963 fi
24964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24965   conftest.$ac_objext conftest.beam conftest.$ac_ext
24966 fi
24967
24968
24969 fi
24970
24971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
24972 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
24973   if test "$pipeline_cv_socketpair_pipe" = yes; then
24974
24975 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
24976
24977   fi
24978
24979       if test "$pipeline_cv_socketpair_pipe" = yes; then
24980          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
24981 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
24982   if ${pipeline_cv_socketpair_mode+:} false; then :
24983   $as_echo_n "(cached) " >&6
24984 else
24985
24986     if test "$cross_compiling" = yes; then :
24987   pipeline_cv_socketpair_mode=no
24988 else
24989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990 /* end confdefs.h.  */
24991
24992 #include <netdb.h>
24993 #include <netinet/in.h>
24994 #include <sys/stat.h>
24995 #include <sys/socket.h>
24996 #include <sys/types.h>
24997 #include <unistd.h>
24998 #ifndef SHUT_RD
24999 #       define SHUT_RD  0
25000 #endif
25001 #ifndef SHUT_WR
25002 #       define SHUT_WR  1
25003 #endif
25004
25005 int main()
25006 {
25007         int sfd[2];
25008         struct stat st[2];
25009         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25010                 return 1;
25011         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25012                 return 1;
25013         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25014                 return 1;
25015         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25016                 return 1;
25017         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25018                 return 1;
25019         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25020                 return 1;
25021         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25022                 return 1;
25023         return 0;
25024 }
25025 _ACEOF
25026 if ac_fn_c_try_run "$LINENO"; then :
25027   pipeline_cv_socketpair_mode=yes
25028 else
25029   pipeline_cv_socketpair_mode=no
25030 fi
25031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25032   conftest.$ac_objext conftest.beam conftest.$ac_ext
25033 fi
25034
25035
25036 fi
25037
25038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25039 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25040   if test "$pipeline_cv_socketpair_mode" = yes; then
25041
25042 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25043
25044   fi
25045
25046       fi
25047     fi
25048
25049 fi
25050
25051
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25053 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25055 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25057 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25059 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25061 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25063 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25064
25065 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25066
25067 cat >confcache <<\_ACEOF
25068 # This file is a shell script that caches the results of configure
25069 # tests run on this system so they can be shared between configure
25070 # scripts and configure runs, see configure's option --config-cache.
25071 # It is not useful on other systems.  If it contains results you don't
25072 # want to keep, you may remove or edit it.
25073 #
25074 # config.status only pays attention to the cache file if you give it
25075 # the --recheck option to rerun configure.
25076 #
25077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25079 # following values.
25080
25081 _ACEOF
25082
25083 # The following way of writing the cache mishandles newlines in values,
25084 # but we know of no workaround that is simple, portable, and efficient.
25085 # So, we kill variables containing newlines.
25086 # Ultrix sh set writes to stderr and can't be redirected directly,
25087 # and sets the high bit in the cache file unless we assign to the vars.
25088 (
25089   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25090     eval ac_val=\$$ac_var
25091     case $ac_val in #(
25092     *${as_nl}*)
25093       case $ac_var in #(
25094       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25096       esac
25097       case $ac_var in #(
25098       _ | IFS | as_nl) ;; #(
25099       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25100       *) { eval $ac_var=; unset $ac_var;} ;;
25101       esac ;;
25102     esac
25103   done
25104
25105   (set) 2>&1 |
25106     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25107     *${as_nl}ac_space=\ *)
25108       # `set' does not quote correctly, so add quotes: double-quote
25109       # substitution turns \\\\ into \\, and sed turns \\ into \.
25110       sed -n \
25111         "s/'/'\\\\''/g;
25112           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25113       ;; #(
25114     *)
25115       # `set' quotes correctly as required by POSIX, so do not add quotes.
25116       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25117       ;;
25118     esac |
25119     sort
25120 ) |
25121   sed '
25122      /^ac_cv_env_/b end
25123      t clear
25124      :clear
25125      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25126      t end
25127      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25128      :end' >>confcache
25129 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25130   if test -w "$cache_file"; then
25131     if test "x$cache_file" != "x/dev/null"; then
25132       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25133 $as_echo "$as_me: updating cache $cache_file" >&6;}
25134       if test ! -f "$cache_file" || test -h "$cache_file"; then
25135         cat confcache >"$cache_file"
25136       else
25137         case $cache_file in #(
25138         */* | ?:*)
25139           mv -f confcache "$cache_file"$$ &&
25140           mv -f "$cache_file"$$ "$cache_file" ;; #(
25141         *)
25142           mv -f confcache "$cache_file" ;;
25143         esac
25144       fi
25145     fi
25146   else
25147     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25148 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25149   fi
25150 fi
25151 rm -f confcache
25152
25153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25154 # Let make expand exec_prefix.
25155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25156
25157 DEFS=-DHAVE_CONFIG_H
25158
25159 ac_libobjs=
25160 ac_ltlibobjs=
25161 U=
25162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25163   # 1. Remove the extension, and $U if already installed.
25164   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25165   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25166   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25167   #    will be set to the directory where LIBOBJS objects are built.
25168   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25169   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25170 done
25171 LIBOBJS=$ac_libobjs
25172
25173 LTLIBOBJS=$ac_ltlibobjs
25174
25175
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25177 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25178    if test -n "$am_sleep_pid"; then
25179      # Hide warnings about reused PIDs.
25180      wait $am_sleep_pid 2>/dev/null
25181    fi
25182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25183 $as_echo "done" >&6; }
25184  if test -n "$EXEEXT"; then
25185   am__EXEEXT_TRUE=
25186   am__EXEEXT_FALSE='#'
25187 else
25188   am__EXEEXT_TRUE='#'
25189   am__EXEEXT_FALSE=
25190 fi
25191
25192 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25193   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25195 fi
25196 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25197   as_fn_error $? "conditional \"AMDEP\" was never defined.
25198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25199 fi
25200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25201   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25203 fi
25204 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25205   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25207 fi
25208 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25209   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25211 fi
25212 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25213   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25215 fi
25216 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25217   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25219 fi
25220 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25221   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25223 fi
25224 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25225   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25227 fi
25228 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25229   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25231 fi
25232 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25233   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25235 fi
25236 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25237   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25239 fi
25240 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25241   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25243 fi
25244
25245
25246     gl_libobjs=
25247     gl_ltlibobjs=
25248     if test -n "$gl_LIBOBJS"; then
25249       # Remove the extension.
25250       sed_drop_objext='s/\.o$//;s/\.obj$//'
25251       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25252         gl_libobjs="$gl_libobjs $i.$ac_objext"
25253         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25254       done
25255     fi
25256     gl_LIBOBJS=$gl_libobjs
25257
25258     gl_LTLIBOBJS=$gl_ltlibobjs
25259
25260
25261
25262     gltests_libobjs=
25263     gltests_ltlibobjs=
25264     if test -n "$gltests_LIBOBJS"; then
25265       # Remove the extension.
25266       sed_drop_objext='s/\.o$//;s/\.obj$//'
25267       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25268         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25269         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25270       done
25271     fi
25272     gltests_LIBOBJS=$gltests_libobjs
25273
25274     gltests_LTLIBOBJS=$gltests_ltlibobjs
25275
25276
25277
25278 : "${CONFIG_STATUS=./config.status}"
25279 ac_write_fail=0
25280 ac_clean_files_save=$ac_clean_files
25281 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25283 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25284 as_write_fail=0
25285 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25286 #! $SHELL
25287 # Generated by $as_me.
25288 # Run this file to recreate the current configuration.
25289 # Compiler output produced by configure, useful for debugging
25290 # configure, is in config.log if it exists.
25291
25292 debug=false
25293 ac_cs_recheck=false
25294 ac_cs_silent=false
25295
25296 SHELL=\${CONFIG_SHELL-$SHELL}
25297 export SHELL
25298 _ASEOF
25299 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25300 ## -------------------- ##
25301 ## M4sh Initialization. ##
25302 ## -------------------- ##
25303
25304 # Be more Bourne compatible
25305 DUALCASE=1; export DUALCASE # for MKS sh
25306 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25307   emulate sh
25308   NULLCMD=:
25309   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25310   # is contrary to our usage.  Disable this feature.
25311   alias -g '${1+"$@"}'='"$@"'
25312   setopt NO_GLOB_SUBST
25313 else
25314   case `(set -o) 2>/dev/null` in #(
25315   *posix*) :
25316     set -o posix ;; #(
25317   *) :
25318      ;;
25319 esac
25320 fi
25321
25322
25323 as_nl='
25324 '
25325 export as_nl
25326 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25327 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25330 # Prefer a ksh shell builtin over an external printf program on Solaris,
25331 # but without wasting forks for bash or zsh.
25332 if test -z "$BASH_VERSION$ZSH_VERSION" \
25333     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25334   as_echo='print -r --'
25335   as_echo_n='print -rn --'
25336 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25337   as_echo='printf %s\n'
25338   as_echo_n='printf %s'
25339 else
25340   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25341     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25342     as_echo_n='/usr/ucb/echo -n'
25343   else
25344     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25345     as_echo_n_body='eval
25346       arg=$1;
25347       case $arg in #(
25348       *"$as_nl"*)
25349         expr "X$arg" : "X\\(.*\\)$as_nl";
25350         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25351       esac;
25352       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25353     '
25354     export as_echo_n_body
25355     as_echo_n='sh -c $as_echo_n_body as_echo'
25356   fi
25357   export as_echo_body
25358   as_echo='sh -c $as_echo_body as_echo'
25359 fi
25360
25361 # The user is always right.
25362 if test "${PATH_SEPARATOR+set}" != set; then
25363   PATH_SEPARATOR=:
25364   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25365     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25366       PATH_SEPARATOR=';'
25367   }
25368 fi
25369
25370
25371 # IFS
25372 # We need space, tab and new line, in precisely that order.  Quoting is
25373 # there to prevent editors from complaining about space-tab.
25374 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25375 # splitting by setting IFS to empty value.)
25376 IFS=" ""        $as_nl"
25377
25378 # Find who we are.  Look in the path if we contain no directory separator.
25379 as_myself=
25380 case $0 in #((
25381   *[\\/]* ) as_myself=$0 ;;
25382   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 for as_dir in $PATH
25384 do
25385   IFS=$as_save_IFS
25386   test -z "$as_dir" && as_dir=.
25387     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25388   done
25389 IFS=$as_save_IFS
25390
25391      ;;
25392 esac
25393 # We did not find ourselves, most probably we were run as `sh COMMAND'
25394 # in which case we are not to be found in the path.
25395 if test "x$as_myself" = x; then
25396   as_myself=$0
25397 fi
25398 if test ! -f "$as_myself"; then
25399   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25400   exit 1
25401 fi
25402
25403 # Unset variables that we do not need and which cause bugs (e.g. in
25404 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25405 # suppresses any "Segmentation fault" message there.  '((' could
25406 # trigger a bug in pdksh 5.2.14.
25407 for as_var in BASH_ENV ENV MAIL MAILPATH
25408 do eval test x\${$as_var+set} = xset \
25409   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25410 done
25411 PS1='$ '
25412 PS2='> '
25413 PS4='+ '
25414
25415 # NLS nuisances.
25416 LC_ALL=C
25417 export LC_ALL
25418 LANGUAGE=C
25419 export LANGUAGE
25420
25421 # CDPATH.
25422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25423
25424
25425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25426 # ----------------------------------------
25427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25429 # script with STATUS, using 1 if that was 0.
25430 as_fn_error ()
25431 {
25432   as_status=$1; test $as_status -eq 0 && as_status=1
25433   if test "$4"; then
25434     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25435     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25436   fi
25437   $as_echo "$as_me: error: $2" >&2
25438   as_fn_exit $as_status
25439 } # as_fn_error
25440
25441
25442 # as_fn_set_status STATUS
25443 # -----------------------
25444 # Set $? to STATUS, without forking.
25445 as_fn_set_status ()
25446 {
25447   return $1
25448 } # as_fn_set_status
25449
25450 # as_fn_exit STATUS
25451 # -----------------
25452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25453 as_fn_exit ()
25454 {
25455   set +e
25456   as_fn_set_status $1
25457   exit $1
25458 } # as_fn_exit
25459
25460 # as_fn_unset VAR
25461 # ---------------
25462 # Portably unset VAR.
25463 as_fn_unset ()
25464 {
25465   { eval $1=; unset $1;}
25466 }
25467 as_unset=as_fn_unset
25468 # as_fn_append VAR VALUE
25469 # ----------------------
25470 # Append the text in VALUE to the end of the definition contained in VAR. Take
25471 # advantage of any shell optimizations that allow amortized linear growth over
25472 # repeated appends, instead of the typical quadratic growth present in naive
25473 # implementations.
25474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25475   eval 'as_fn_append ()
25476   {
25477     eval $1+=\$2
25478   }'
25479 else
25480   as_fn_append ()
25481   {
25482     eval $1=\$$1\$2
25483   }
25484 fi # as_fn_append
25485
25486 # as_fn_arith ARG...
25487 # ------------------
25488 # Perform arithmetic evaluation on the ARGs, and store the result in the
25489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25490 # must be portable across $(()) and expr.
25491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25492   eval 'as_fn_arith ()
25493   {
25494     as_val=$(( $* ))
25495   }'
25496 else
25497   as_fn_arith ()
25498   {
25499     as_val=`expr "$@" || test $? -eq 1`
25500   }
25501 fi # as_fn_arith
25502
25503
25504 if expr a : '\(a\)' >/dev/null 2>&1 &&
25505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25506   as_expr=expr
25507 else
25508   as_expr=false
25509 fi
25510
25511 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25512   as_basename=basename
25513 else
25514   as_basename=false
25515 fi
25516
25517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25518   as_dirname=dirname
25519 else
25520   as_dirname=false
25521 fi
25522
25523 as_me=`$as_basename -- "$0" ||
25524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25525          X"$0" : 'X\(//\)$' \| \
25526          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25527 $as_echo X/"$0" |
25528     sed '/^.*\/\([^/][^/]*\)\/*$/{
25529             s//\1/
25530             q
25531           }
25532           /^X\/\(\/\/\)$/{
25533             s//\1/
25534             q
25535           }
25536           /^X\/\(\/\).*/{
25537             s//\1/
25538             q
25539           }
25540           s/.*/./; q'`
25541
25542 # Avoid depending upon Character Ranges.
25543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25546 as_cr_digits='0123456789'
25547 as_cr_alnum=$as_cr_Letters$as_cr_digits
25548
25549 ECHO_C= ECHO_N= ECHO_T=
25550 case `echo -n x` in #(((((
25551 -n*)
25552   case `echo 'xy\c'` in
25553   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25554   xy)  ECHO_C='\c';;
25555   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25556        ECHO_T=' ';;
25557   esac;;
25558 *)
25559   ECHO_N='-n';;
25560 esac
25561
25562 rm -f conf$$ conf$$.exe conf$$.file
25563 if test -d conf$$.dir; then
25564   rm -f conf$$.dir/conf$$.file
25565 else
25566   rm -f conf$$.dir
25567   mkdir conf$$.dir 2>/dev/null
25568 fi
25569 if (echo >conf$$.file) 2>/dev/null; then
25570   if ln -s conf$$.file conf$$ 2>/dev/null; then
25571     as_ln_s='ln -s'
25572     # ... but there are two gotchas:
25573     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25574     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25575     # In both cases, we have to default to `cp -pR'.
25576     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25577       as_ln_s='cp -pR'
25578   elif ln conf$$.file conf$$ 2>/dev/null; then
25579     as_ln_s=ln
25580   else
25581     as_ln_s='cp -pR'
25582   fi
25583 else
25584   as_ln_s='cp -pR'
25585 fi
25586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25587 rmdir conf$$.dir 2>/dev/null
25588
25589
25590 # as_fn_mkdir_p
25591 # -------------
25592 # Create "$as_dir" as a directory, including parents if necessary.
25593 as_fn_mkdir_p ()
25594 {
25595
25596   case $as_dir in #(
25597   -*) as_dir=./$as_dir;;
25598   esac
25599   test -d "$as_dir" || eval $as_mkdir_p || {
25600     as_dirs=
25601     while :; do
25602       case $as_dir in #(
25603       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25604       *) as_qdir=$as_dir;;
25605       esac
25606       as_dirs="'$as_qdir' $as_dirs"
25607       as_dir=`$as_dirname -- "$as_dir" ||
25608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609          X"$as_dir" : 'X\(//\)[^/]' \| \
25610          X"$as_dir" : 'X\(//\)$' \| \
25611          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25612 $as_echo X"$as_dir" |
25613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25614             s//\1/
25615             q
25616           }
25617           /^X\(\/\/\)[^/].*/{
25618             s//\1/
25619             q
25620           }
25621           /^X\(\/\/\)$/{
25622             s//\1/
25623             q
25624           }
25625           /^X\(\/\).*/{
25626             s//\1/
25627             q
25628           }
25629           s/.*/./; q'`
25630       test -d "$as_dir" && break
25631     done
25632     test -z "$as_dirs" || eval "mkdir $as_dirs"
25633   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25634
25635
25636 } # as_fn_mkdir_p
25637 if mkdir -p . 2>/dev/null; then
25638   as_mkdir_p='mkdir -p "$as_dir"'
25639 else
25640   test -d ./-p && rmdir ./-p
25641   as_mkdir_p=false
25642 fi
25643
25644
25645 # as_fn_executable_p FILE
25646 # -----------------------
25647 # Test if FILE is an executable regular file.
25648 as_fn_executable_p ()
25649 {
25650   test -f "$1" && test -x "$1"
25651 } # as_fn_executable_p
25652 as_test_x='test -x'
25653 as_executable_p=as_fn_executable_p
25654
25655 # Sed expression to map a string onto a valid CPP name.
25656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25657
25658 # Sed expression to map a string onto a valid variable name.
25659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25660
25661
25662 exec 6>&1
25663 ## ----------------------------------- ##
25664 ## Main body of $CONFIG_STATUS script. ##
25665 ## ----------------------------------- ##
25666 _ASEOF
25667 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25668
25669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25670 # Save the log message, to keep $0 and so on meaningful, and to
25671 # report actual input values of CONFIG_FILES etc. instead of their
25672 # values after options handling.
25673 ac_log="
25674 This file was extended by libpipeline $as_me 1.2.4, which was
25675 generated by GNU Autoconf 2.69.  Invocation command line was
25676
25677   CONFIG_FILES    = $CONFIG_FILES
25678   CONFIG_HEADERS  = $CONFIG_HEADERS
25679   CONFIG_LINKS    = $CONFIG_LINKS
25680   CONFIG_COMMANDS = $CONFIG_COMMANDS
25681   $ $0 $@
25682
25683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25684 "
25685
25686 _ACEOF
25687
25688 case $ac_config_files in *"
25689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25690 esac
25691
25692 case $ac_config_headers in *"
25693 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25694 esac
25695
25696
25697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25698 # Files that config.status was made for.
25699 config_files="$ac_config_files"
25700 config_headers="$ac_config_headers"
25701 config_commands="$ac_config_commands"
25702
25703 _ACEOF
25704
25705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25706 ac_cs_usage="\
25707 \`$as_me' instantiates files and other configuration actions
25708 from templates according to the current configuration.  Unless the files
25709 and actions are specified as TAGs, all are instantiated by default.
25710
25711 Usage: $0 [OPTION]... [TAG]...
25712
25713   -h, --help       print this help, then exit
25714   -V, --version    print version number and configuration settings, then exit
25715       --config     print configuration, then exit
25716   -q, --quiet, --silent
25717                    do not print progress messages
25718   -d, --debug      don't remove temporary files
25719       --recheck    update $as_me by reconfiguring in the same conditions
25720       --file=FILE[:TEMPLATE]
25721                    instantiate the configuration file FILE
25722       --header=FILE[:TEMPLATE]
25723                    instantiate the configuration header FILE
25724
25725 Configuration files:
25726 $config_files
25727
25728 Configuration headers:
25729 $config_headers
25730
25731 Configuration commands:
25732 $config_commands
25733
25734 Report bugs to <cjwatson@debian.org>."
25735
25736 _ACEOF
25737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25738 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25739 ac_cs_version="\\
25740 libpipeline config.status 1.2.4
25741 configured by $0, generated by GNU Autoconf 2.69,
25742   with options \\"\$ac_cs_config\\"
25743
25744 Copyright (C) 2012 Free Software Foundation, Inc.
25745 This config.status script is free software; the Free Software Foundation
25746 gives unlimited permission to copy, distribute and modify it."
25747
25748 ac_pwd='$ac_pwd'
25749 srcdir='$srcdir'
25750 INSTALL='$INSTALL'
25751 MKDIR_P='$MKDIR_P'
25752 AWK='$AWK'
25753 test -n "\$AWK" || AWK=awk
25754 _ACEOF
25755
25756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25757 # The default lists apply if the user does not specify any file.
25758 ac_need_defaults=:
25759 while test $# != 0
25760 do
25761   case $1 in
25762   --*=?*)
25763     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25764     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25765     ac_shift=:
25766     ;;
25767   --*=)
25768     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25769     ac_optarg=
25770     ac_shift=:
25771     ;;
25772   *)
25773     ac_option=$1
25774     ac_optarg=$2
25775     ac_shift=shift
25776     ;;
25777   esac
25778
25779   case $ac_option in
25780   # Handling of the options.
25781   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25782     ac_cs_recheck=: ;;
25783   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25784     $as_echo "$ac_cs_version"; exit ;;
25785   --config | --confi | --conf | --con | --co | --c )
25786     $as_echo "$ac_cs_config"; exit ;;
25787   --debug | --debu | --deb | --de | --d | -d )
25788     debug=: ;;
25789   --file | --fil | --fi | --f )
25790     $ac_shift
25791     case $ac_optarg in
25792     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25793     '') as_fn_error $? "missing file argument" ;;
25794     esac
25795     as_fn_append CONFIG_FILES " '$ac_optarg'"
25796     ac_need_defaults=false;;
25797   --header | --heade | --head | --hea )
25798     $ac_shift
25799     case $ac_optarg in
25800     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25801     esac
25802     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25803     ac_need_defaults=false;;
25804   --he | --h)
25805     # Conflict between --help and --header
25806     as_fn_error $? "ambiguous option: \`$1'
25807 Try \`$0 --help' for more information.";;
25808   --help | --hel | -h )
25809     $as_echo "$ac_cs_usage"; exit ;;
25810   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25811   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25812     ac_cs_silent=: ;;
25813
25814   # This is an error.
25815   -*) as_fn_error $? "unrecognized option: \`$1'
25816 Try \`$0 --help' for more information." ;;
25817
25818   *) as_fn_append ac_config_targets " $1"
25819      ac_need_defaults=false ;;
25820
25821   esac
25822   shift
25823 done
25824
25825 ac_configure_extra_args=
25826
25827 if $ac_cs_silent; then
25828   exec 6>/dev/null
25829   ac_configure_extra_args="$ac_configure_extra_args --silent"
25830 fi
25831
25832 _ACEOF
25833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25834 if \$ac_cs_recheck; then
25835   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25836   shift
25837   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25838   CONFIG_SHELL='$SHELL'
25839   export CONFIG_SHELL
25840   exec "\$@"
25841 fi
25842
25843 _ACEOF
25844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25845 exec 5>>config.log
25846 {
25847   echo
25848   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25849 ## Running $as_me. ##
25850 _ASBOX
25851   $as_echo "$ac_log"
25852 } >&5
25853
25854 _ACEOF
25855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25856 #
25857 # INIT-COMMANDS
25858 #
25859 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25860
25861
25862 # The HP-UX ksh and POSIX shell print the target directory to stdout
25863 # if CDPATH is set.
25864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25865
25866 sed_quote_subst='$sed_quote_subst'
25867 double_quote_subst='$double_quote_subst'
25868 delay_variable_subst='$delay_variable_subst'
25869 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25870 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25871 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25872 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25873 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25874 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25875 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25876 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25877 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25878 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25879 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25880 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25881 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25882 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25883 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25884 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25885 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25886 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25887 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25888 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25889 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25890 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25891 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25892 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25893 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25894 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25895 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25896 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25897 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25898 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25899 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25900 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25901 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25902 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25903 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25904 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25905 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25906 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25907 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25908 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25909 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25910 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25911 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25912 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25913 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25914 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25915 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25916 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25917 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25918 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25919 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25920 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25921 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25922 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25923 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25924 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25925 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"`'
25926 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25927 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25928 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25929 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25930 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25931 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25932 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25933 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25934 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25935 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25936 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25937 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25938 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25939 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25940 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25941 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25942 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25943 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25944 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25945 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25946 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25947 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25948 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25949 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25950 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25951 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25952 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25953 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25954 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25955 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25956 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25957 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25958 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25959 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25960 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25961 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25962 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25963 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25964 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25965 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25966 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25967 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25968 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25969 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25970 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25971 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25972 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25973 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25974 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25975 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25976 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25977 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25978 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25979 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25980 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25981 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25982 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25983 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25984 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25985 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25986 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25987 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25988 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25989 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25990 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25991 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25992 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25993 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25994 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25995 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25996 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25997 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25998 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25999
26000 LTCC='$LTCC'
26001 LTCFLAGS='$LTCFLAGS'
26002 compiler='$compiler_DEFAULT'
26003
26004 # A function that is used when there is no print builtin or printf.
26005 func_fallback_echo ()
26006 {
26007   eval 'cat <<_LTECHO_EOF
26008 \$1
26009 _LTECHO_EOF'
26010 }
26011
26012 # Quote evaled strings.
26013 for var in SHELL \
26014 ECHO \
26015 PATH_SEPARATOR \
26016 SED \
26017 GREP \
26018 EGREP \
26019 FGREP \
26020 LD \
26021 NM \
26022 LN_S \
26023 lt_SP2NL \
26024 lt_NL2SP \
26025 reload_flag \
26026 OBJDUMP \
26027 deplibs_check_method \
26028 file_magic_cmd \
26029 file_magic_glob \
26030 want_nocaseglob \
26031 DLLTOOL \
26032 sharedlib_from_linklib_cmd \
26033 AR \
26034 AR_FLAGS \
26035 archiver_list_spec \
26036 STRIP \
26037 RANLIB \
26038 CC \
26039 CFLAGS \
26040 compiler \
26041 lt_cv_sys_global_symbol_pipe \
26042 lt_cv_sys_global_symbol_to_cdecl \
26043 lt_cv_sys_global_symbol_to_c_name_address \
26044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26045 nm_file_list_spec \
26046 lt_prog_compiler_no_builtin_flag \
26047 lt_prog_compiler_pic \
26048 lt_prog_compiler_wl \
26049 lt_prog_compiler_static \
26050 lt_cv_prog_compiler_c_o \
26051 need_locks \
26052 MANIFEST_TOOL \
26053 DSYMUTIL \
26054 NMEDIT \
26055 LIPO \
26056 OTOOL \
26057 OTOOL64 \
26058 shrext_cmds \
26059 export_dynamic_flag_spec \
26060 whole_archive_flag_spec \
26061 compiler_needs_object \
26062 with_gnu_ld \
26063 allow_undefined_flag \
26064 no_undefined_flag \
26065 hardcode_libdir_flag_spec \
26066 hardcode_libdir_separator \
26067 exclude_expsyms \
26068 include_expsyms \
26069 file_list_spec \
26070 variables_saved_for_relink \
26071 libname_spec \
26072 library_names_spec \
26073 soname_spec \
26074 install_override_mode \
26075 finish_eval \
26076 old_striplib \
26077 striplib; do
26078     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26079     *[\\\\\\\`\\"\\\$]*)
26080       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26081       ;;
26082     *)
26083       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26084       ;;
26085     esac
26086 done
26087
26088 # Double-quote double-evaled strings.
26089 for var in reload_cmds \
26090 old_postinstall_cmds \
26091 old_postuninstall_cmds \
26092 old_archive_cmds \
26093 extract_expsyms_cmds \
26094 old_archive_from_new_cmds \
26095 old_archive_from_expsyms_cmds \
26096 archive_cmds \
26097 archive_expsym_cmds \
26098 module_cmds \
26099 module_expsym_cmds \
26100 export_symbols_cmds \
26101 prelink_cmds \
26102 postlink_cmds \
26103 postinstall_cmds \
26104 postuninstall_cmds \
26105 finish_cmds \
26106 sys_lib_search_path_spec \
26107 sys_lib_dlsearch_path_spec; do
26108     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26109     *[\\\\\\\`\\"\\\$]*)
26110       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26111       ;;
26112     *)
26113       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26114       ;;
26115     esac
26116 done
26117
26118 ac_aux_dir='$ac_aux_dir'
26119 xsi_shell='$xsi_shell'
26120 lt_shell_append='$lt_shell_append'
26121
26122 # See if we are running on zsh, and set the options which allow our
26123 # commands through without removal of \ escapes INIT.
26124 if test -n "\${ZSH_VERSION+set}" ; then
26125    setopt NO_GLOB_SUBST
26126 fi
26127
26128
26129     PACKAGE='$PACKAGE'
26130     VERSION='$VERSION'
26131     TIMESTAMP='$TIMESTAMP'
26132     RM='$RM'
26133     ofile='$ofile'
26134
26135
26136
26137
26138 _ACEOF
26139
26140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26141
26142 # Handling of arguments.
26143 for ac_config_target in $ac_config_targets
26144 do
26145   case $ac_config_target in
26146     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26147     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26148     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26149     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26150     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26151     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26152     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26153     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26154     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26155
26156   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26157   esac
26158 done
26159
26160
26161 # If the user did not use the arguments to specify the items to instantiate,
26162 # then the envvar interface is used.  Set only those that are not.
26163 # We use the long form for the default assignment because of an extremely
26164 # bizarre bug on SunOS 4.1.3.
26165 if $ac_need_defaults; then
26166   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26167   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26168   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26169 fi
26170
26171 # Have a temporary directory for convenience.  Make it in the build tree
26172 # simply because there is no reason against having it here, and in addition,
26173 # creating and moving files from /tmp can sometimes cause problems.
26174 # Hook for its removal unless debugging.
26175 # Note that there is a small window in which the directory will not be cleaned:
26176 # after its creation but before its name has been assigned to `$tmp'.
26177 $debug ||
26178 {
26179   tmp= ac_tmp=
26180   trap 'exit_status=$?
26181   : "${ac_tmp:=$tmp}"
26182   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26183 ' 0
26184   trap 'as_fn_exit 1' 1 2 13 15
26185 }
26186 # Create a (secure) tmp directory for tmp files.
26187
26188 {
26189   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26190   test -d "$tmp"
26191 }  ||
26192 {
26193   tmp=./conf$$-$RANDOM
26194   (umask 077 && mkdir "$tmp")
26195 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26196 ac_tmp=$tmp
26197
26198 # Set up the scripts for CONFIG_FILES section.
26199 # No need to generate them if there are no CONFIG_FILES.
26200 # This happens for instance with `./config.status config.h'.
26201 if test -n "$CONFIG_FILES"; then
26202
26203
26204 ac_cr=`echo X | tr X '\015'`
26205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26206 # But we know of no other shell where ac_cr would be empty at this
26207 # point, so we can use a bashism as a fallback.
26208 if test "x$ac_cr" = x; then
26209   eval ac_cr=\$\'\\r\'
26210 fi
26211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26213   ac_cs_awk_cr='\\r'
26214 else
26215   ac_cs_awk_cr=$ac_cr
26216 fi
26217
26218 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26219 _ACEOF
26220
26221
26222 {
26223   echo "cat >conf$$subs.awk <<_ACEOF" &&
26224   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26225   echo "_ACEOF"
26226 } >conf$$subs.sh ||
26227   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26229 ac_delim='%!_!# '
26230 for ac_last_try in false false false false false :; do
26231   . ./conf$$subs.sh ||
26232     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26233
26234   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26235   if test $ac_delim_n = $ac_delim_num; then
26236     break
26237   elif $ac_last_try; then
26238     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26239   else
26240     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26241   fi
26242 done
26243 rm -f conf$$subs.sh
26244
26245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26246 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26247 _ACEOF
26248 sed -n '
26249 h
26250 s/^/S["/; s/!.*/"]=/
26251 p
26252 g
26253 s/^[^!]*!//
26254 :repl
26255 t repl
26256 s/'"$ac_delim"'$//
26257 t delim
26258 :nl
26259 h
26260 s/\(.\{148\}\)..*/\1/
26261 t more1
26262 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26263 p
26264 n
26265 b repl
26266 :more1
26267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26268 p
26269 g
26270 s/.\{148\}//
26271 t nl
26272 :delim
26273 h
26274 s/\(.\{148\}\)..*/\1/
26275 t more2
26276 s/["\\]/\\&/g; s/^/"/; s/$/"/
26277 p
26278 b
26279 :more2
26280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26281 p
26282 g
26283 s/.\{148\}//
26284 t delim
26285 ' <conf$$subs.awk | sed '
26286 /^[^""]/{
26287   N
26288   s/\n//
26289 }
26290 ' >>$CONFIG_STATUS || ac_write_fail=1
26291 rm -f conf$$subs.awk
26292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26293 _ACAWK
26294 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26295   for (key in S) S_is_set[key] = 1
26296   FS = "\a"
26297
26298 }
26299 {
26300   line = $ 0
26301   nfields = split(line, field, "@")
26302   substed = 0
26303   len = length(field[1])
26304   for (i = 2; i < nfields; i++) {
26305     key = field[i]
26306     keylen = length(key)
26307     if (S_is_set[key]) {
26308       value = S[key]
26309       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26310       len += length(value) + length(field[++i])
26311       substed = 1
26312     } else
26313       len += 1 + keylen
26314   }
26315
26316   print line
26317 }
26318
26319 _ACAWK
26320 _ACEOF
26321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26323   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26324 else
26325   cat
26326 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26327   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26328 _ACEOF
26329
26330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26332 # trailing colons and then remove the whole line if VPATH becomes empty
26333 # (actually we leave an empty line to preserve line numbers).
26334 if test "x$srcdir" = x.; then
26335   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26336 h
26337 s///
26338 s/^/:/
26339 s/[      ]*$/:/
26340 s/:\$(srcdir):/:/g
26341 s/:\${srcdir}:/:/g
26342 s/:@srcdir@:/:/g
26343 s/^:*//
26344 s/:*$//
26345 x
26346 s/\(=[   ]*\).*/\1/
26347 G
26348 s/\n//
26349 s/^[^=]*=[       ]*$//
26350 }'
26351 fi
26352
26353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26354 fi # test -n "$CONFIG_FILES"
26355
26356 # Set up the scripts for CONFIG_HEADERS section.
26357 # No need to generate them if there are no CONFIG_HEADERS.
26358 # This happens for instance with `./config.status Makefile'.
26359 if test -n "$CONFIG_HEADERS"; then
26360 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26361 BEGIN {
26362 _ACEOF
26363
26364 # Transform confdefs.h into an awk script `defines.awk', embedded as
26365 # here-document in config.status, that substitutes the proper values into
26366 # config.h.in to produce config.h.
26367
26368 # Create a delimiter string that does not exist in confdefs.h, to ease
26369 # handling of long lines.
26370 ac_delim='%!_!# '
26371 for ac_last_try in false false :; do
26372   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26373   if test -z "$ac_tt"; then
26374     break
26375   elif $ac_last_try; then
26376     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26377   else
26378     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26379   fi
26380 done
26381
26382 # For the awk script, D is an array of macro values keyed by name,
26383 # likewise P contains macro parameters if any.  Preserve backslash
26384 # newline sequences.
26385
26386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26387 sed -n '
26388 s/.\{148\}/&'"$ac_delim"'/g
26389 t rset
26390 :rset
26391 s/^[     ]*#[    ]*define[       ][      ]*/ /
26392 t def
26393 d
26394 :def
26395 s/\\$//
26396 t bsnl
26397 s/["\\]/\\&/g
26398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26399 D["\1"]=" \3"/p
26400 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26401 d
26402 :bsnl
26403 s/["\\]/\\&/g
26404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26405 D["\1"]=" \3\\\\\\n"\\/p
26406 t cont
26407 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26408 t cont
26409 d
26410 :cont
26411 n
26412 s/.\{148\}/&'"$ac_delim"'/g
26413 t clear
26414 :clear
26415 s/\\$//
26416 t bsnlc
26417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26418 d
26419 :bsnlc
26420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26421 b cont
26422 ' <confdefs.h | sed '
26423 s/'"$ac_delim"'/"\\\
26424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26425
26426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26427   for (key in D) D_is_set[key] = 1
26428   FS = "\a"
26429 }
26430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26431   line = \$ 0
26432   split(line, arg, " ")
26433   if (arg[1] == "#") {
26434     defundef = arg[2]
26435     mac1 = arg[3]
26436   } else {
26437     defundef = substr(arg[1], 2)
26438     mac1 = arg[2]
26439   }
26440   split(mac1, mac2, "(") #)
26441   macro = mac2[1]
26442   prefix = substr(line, 1, index(line, defundef) - 1)
26443   if (D_is_set[macro]) {
26444     # Preserve the white space surrounding the "#".
26445     print prefix "define", macro P[macro] D[macro]
26446     next
26447   } else {
26448     # Replace #undef with comments.  This is necessary, for example,
26449     # in the case of _POSIX_SOURCE, which is predefined and required
26450     # on some systems where configure will not decide to define it.
26451     if (defundef == "undef") {
26452       print "/*", prefix defundef, macro, "*/"
26453       next
26454     }
26455   }
26456 }
26457 { print }
26458 _ACAWK
26459 _ACEOF
26460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26461   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26462 fi # test -n "$CONFIG_HEADERS"
26463
26464
26465 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26466 shift
26467 for ac_tag
26468 do
26469   case $ac_tag in
26470   :[FHLC]) ac_mode=$ac_tag; continue;;
26471   esac
26472   case $ac_mode$ac_tag in
26473   :[FHL]*:*);;
26474   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26475   :[FH]-) ac_tag=-:-;;
26476   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26477   esac
26478   ac_save_IFS=$IFS
26479   IFS=:
26480   set x $ac_tag
26481   IFS=$ac_save_IFS
26482   shift
26483   ac_file=$1
26484   shift
26485
26486   case $ac_mode in
26487   :L) ac_source=$1;;
26488   :[FH])
26489     ac_file_inputs=
26490     for ac_f
26491     do
26492       case $ac_f in
26493       -) ac_f="$ac_tmp/stdin";;
26494       *) # Look for the file first in the build tree, then in the source tree
26495          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26496          # because $ac_f cannot contain `:'.
26497          test -f "$ac_f" ||
26498            case $ac_f in
26499            [\\/$]*) false;;
26500            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26501            esac ||
26502            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26503       esac
26504       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26505       as_fn_append ac_file_inputs " '$ac_f'"
26506     done
26507
26508     # Let's still pretend it is `configure' which instantiates (i.e., don't
26509     # use $as_me), people would be surprised to read:
26510     #    /* config.h.  Generated by config.status.  */
26511     configure_input='Generated from '`
26512           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26513         `' by configure.'
26514     if test x"$ac_file" != x-; then
26515       configure_input="$ac_file.  $configure_input"
26516       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26517 $as_echo "$as_me: creating $ac_file" >&6;}
26518     fi
26519     # Neutralize special characters interpreted by sed in replacement strings.
26520     case $configure_input in #(
26521     *\&* | *\|* | *\\* )
26522        ac_sed_conf_input=`$as_echo "$configure_input" |
26523        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26524     *) ac_sed_conf_input=$configure_input;;
26525     esac
26526
26527     case $ac_tag in
26528     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26529       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26530     esac
26531     ;;
26532   esac
26533
26534   ac_dir=`$as_dirname -- "$ac_file" ||
26535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26536          X"$ac_file" : 'X\(//\)[^/]' \| \
26537          X"$ac_file" : 'X\(//\)$' \| \
26538          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26539 $as_echo X"$ac_file" |
26540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26541             s//\1/
26542             q
26543           }
26544           /^X\(\/\/\)[^/].*/{
26545             s//\1/
26546             q
26547           }
26548           /^X\(\/\/\)$/{
26549             s//\1/
26550             q
26551           }
26552           /^X\(\/\).*/{
26553             s//\1/
26554             q
26555           }
26556           s/.*/./; q'`
26557   as_dir="$ac_dir"; as_fn_mkdir_p
26558   ac_builddir=.
26559
26560 case "$ac_dir" in
26561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26562 *)
26563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26564   # A ".." for each directory in $ac_dir_suffix.
26565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26566   case $ac_top_builddir_sub in
26567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26569   esac ;;
26570 esac
26571 ac_abs_top_builddir=$ac_pwd
26572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26573 # for backward compatibility:
26574 ac_top_builddir=$ac_top_build_prefix
26575
26576 case $srcdir in
26577   .)  # We are building in place.
26578     ac_srcdir=.
26579     ac_top_srcdir=$ac_top_builddir_sub
26580     ac_abs_top_srcdir=$ac_pwd ;;
26581   [\\/]* | ?:[\\/]* )  # Absolute name.
26582     ac_srcdir=$srcdir$ac_dir_suffix;
26583     ac_top_srcdir=$srcdir
26584     ac_abs_top_srcdir=$srcdir ;;
26585   *) # Relative name.
26586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26587     ac_top_srcdir=$ac_top_build_prefix$srcdir
26588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26589 esac
26590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26591
26592
26593   case $ac_mode in
26594   :F)
26595   #
26596   # CONFIG_FILE
26597   #
26598
26599   case $INSTALL in
26600   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26601   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26602   esac
26603   ac_MKDIR_P=$MKDIR_P
26604   case $MKDIR_P in
26605   [\\/$]* | ?:[\\/]* ) ;;
26606   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26607   esac
26608 _ACEOF
26609
26610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26611 # If the template does not know about datarootdir, expand it.
26612 # FIXME: This hack should be removed a few years after 2.60.
26613 ac_datarootdir_hack=; ac_datarootdir_seen=
26614 ac_sed_dataroot='
26615 /datarootdir/ {
26616   p
26617   q
26618 }
26619 /@datadir@/p
26620 /@docdir@/p
26621 /@infodir@/p
26622 /@localedir@/p
26623 /@mandir@/p'
26624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26625 *datarootdir*) ac_datarootdir_seen=yes;;
26626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26627   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26629 _ACEOF
26630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26631   ac_datarootdir_hack='
26632   s&@datadir@&$datadir&g
26633   s&@docdir@&$docdir&g
26634   s&@infodir@&$infodir&g
26635   s&@localedir@&$localedir&g
26636   s&@mandir@&$mandir&g
26637   s&\\\${datarootdir}&$datarootdir&g' ;;
26638 esac
26639 _ACEOF
26640
26641 # Neutralize VPATH when `$srcdir' = `.'.
26642 # Shell code in configure.ac might set extrasub.
26643 # FIXME: do we really want to maintain this feature?
26644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26645 ac_sed_extra="$ac_vpsub
26646 $extrasub
26647 _ACEOF
26648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26649 :t
26650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26651 s|@configure_input@|$ac_sed_conf_input|;t t
26652 s&@top_builddir@&$ac_top_builddir_sub&;t t
26653 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26654 s&@srcdir@&$ac_srcdir&;t t
26655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26656 s&@top_srcdir@&$ac_top_srcdir&;t t
26657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26658 s&@builddir@&$ac_builddir&;t t
26659 s&@abs_builddir@&$ac_abs_builddir&;t t
26660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26661 s&@INSTALL@&$ac_INSTALL&;t t
26662 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26663 $ac_datarootdir_hack
26664 "
26665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26666   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26667
26668 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26669   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26670   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26671       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26673 which seems to be undefined.  Please make sure it is defined" >&5
26674 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26675 which seems to be undefined.  Please make sure it is defined" >&2;}
26676
26677   rm -f "$ac_tmp/stdin"
26678   case $ac_file in
26679   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26680   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26681   esac \
26682   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26683  ;;
26684   :H)
26685   #
26686   # CONFIG_HEADER
26687   #
26688   if test x"$ac_file" != x-; then
26689     {
26690       $as_echo "/* $configure_input  */" \
26691       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26692     } >"$ac_tmp/config.h" \
26693       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26694     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26695       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26696 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26697     else
26698       rm -f "$ac_file"
26699       mv "$ac_tmp/config.h" "$ac_file" \
26700         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26701     fi
26702   else
26703     $as_echo "/* $configure_input  */" \
26704       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26705       || as_fn_error $? "could not create -" "$LINENO" 5
26706   fi
26707 # Compute "$ac_file"'s index in $config_headers.
26708 _am_arg="$ac_file"
26709 _am_stamp_count=1
26710 for _am_header in $config_headers :; do
26711   case $_am_header in
26712     $_am_arg | $_am_arg:* )
26713       break ;;
26714     * )
26715       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26716   esac
26717 done
26718 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26719 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26720          X"$_am_arg" : 'X\(//\)[^/]' \| \
26721          X"$_am_arg" : 'X\(//\)$' \| \
26722          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26723 $as_echo X"$_am_arg" |
26724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26725             s//\1/
26726             q
26727           }
26728           /^X\(\/\/\)[^/].*/{
26729             s//\1/
26730             q
26731           }
26732           /^X\(\/\/\)$/{
26733             s//\1/
26734             q
26735           }
26736           /^X\(\/\).*/{
26737             s//\1/
26738             q
26739           }
26740           s/.*/./; q'`/stamp-h$_am_stamp_count
26741  ;;
26742
26743   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26744 $as_echo "$as_me: executing $ac_file commands" >&6;}
26745  ;;
26746   esac
26747
26748
26749   case $ac_file$ac_mode in
26750     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26751   # Older Autoconf quotes --file arguments for eval, but not when files
26752   # are listed without --file.  Let's play safe and only enable the eval
26753   # if we detect the quoting.
26754   case $CONFIG_FILES in
26755   *\'*) eval set x "$CONFIG_FILES" ;;
26756   *)   set x $CONFIG_FILES ;;
26757   esac
26758   shift
26759   for mf
26760   do
26761     # Strip MF so we end up with the name of the file.
26762     mf=`echo "$mf" | sed -e 's/:.*$//'`
26763     # Check whether this is an Automake generated Makefile or not.
26764     # We used to match only the files named 'Makefile.in', but
26765     # some people rename them; so instead we look at the file content.
26766     # Grep'ing the first line is not enough: some people post-process
26767     # each Makefile.in and add a new line on top of each file to say so.
26768     # Grep'ing the whole file is not good either: AIX grep has a line
26769     # limit of 2048, but all sed's we know have understand at least 4000.
26770     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26771       dirpart=`$as_dirname -- "$mf" ||
26772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773          X"$mf" : 'X\(//\)[^/]' \| \
26774          X"$mf" : 'X\(//\)$' \| \
26775          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26776 $as_echo X"$mf" |
26777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26778             s//\1/
26779             q
26780           }
26781           /^X\(\/\/\)[^/].*/{
26782             s//\1/
26783             q
26784           }
26785           /^X\(\/\/\)$/{
26786             s//\1/
26787             q
26788           }
26789           /^X\(\/\).*/{
26790             s//\1/
26791             q
26792           }
26793           s/.*/./; q'`
26794     else
26795       continue
26796     fi
26797     # Extract the definition of DEPDIR, am__include, and am__quote
26798     # from the Makefile without running 'make'.
26799     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26800     test -z "$DEPDIR" && continue
26801     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26802     test -z "$am__include" && continue
26803     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26804     # Find all dependency output files, they are included files with
26805     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26806     # simplest approach to changing $(DEPDIR) to its actual value in the
26807     # expansion.
26808     for file in `sed -n "
26809       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26810          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26811       # Make sure the directory exists.
26812       test -f "$dirpart/$file" && continue
26813       fdir=`$as_dirname -- "$file" ||
26814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26815          X"$file" : 'X\(//\)[^/]' \| \
26816          X"$file" : 'X\(//\)$' \| \
26817          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26818 $as_echo X"$file" |
26819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26820             s//\1/
26821             q
26822           }
26823           /^X\(\/\/\)[^/].*/{
26824             s//\1/
26825             q
26826           }
26827           /^X\(\/\/\)$/{
26828             s//\1/
26829             q
26830           }
26831           /^X\(\/\).*/{
26832             s//\1/
26833             q
26834           }
26835           s/.*/./; q'`
26836       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26837       # echo "creating $dirpart/$file"
26838       echo '# dummy' > "$dirpart/$file"
26839     done
26840   done
26841 }
26842  ;;
26843     "libtool":C)
26844
26845     # See if we are running on zsh, and set the options which allow our
26846     # commands through without removal of \ escapes.
26847     if test -n "${ZSH_VERSION+set}" ; then
26848       setopt NO_GLOB_SUBST
26849     fi
26850
26851     cfgfile="${ofile}T"
26852     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26853     $RM "$cfgfile"
26854
26855     cat <<_LT_EOF >> "$cfgfile"
26856 #! $SHELL
26857
26858 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26859 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26861 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26862 #
26863 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26864 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26865 #                 Foundation, Inc.
26866 #   Written by Gordon Matzigkeit, 1996
26867 #
26868 #   This file is part of GNU Libtool.
26869 #
26870 # GNU Libtool is free software; you can redistribute it and/or
26871 # modify it under the terms of the GNU General Public License as
26872 # published by the Free Software Foundation; either version 2 of
26873 # the License, or (at your option) any later version.
26874 #
26875 # As a special exception to the GNU General Public License,
26876 # if you distribute this file as part of a program or library that
26877 # is built using GNU Libtool, you may include this file under the
26878 # same distribution terms that you use for the rest of that program.
26879 #
26880 # GNU Libtool is distributed in the hope that it will be useful,
26881 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26882 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26883 # GNU General Public License for more details.
26884 #
26885 # You should have received a copy of the GNU General Public License
26886 # along with GNU Libtool; see the file COPYING.  If not, a copy
26887 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26888 # obtained by writing to the Free Software Foundation, Inc.,
26889 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26890
26891
26892 # The names of the tagged configurations supported by this script.
26893 available_tags=""
26894
26895 # ### BEGIN LIBTOOL CONFIG
26896
26897 # Which release of libtool.m4 was used?
26898 macro_version=$macro_version
26899 macro_revision=$macro_revision
26900
26901 # Whether or not to build static libraries.
26902 build_old_libs=$enable_static
26903
26904 # Whether or not to build shared libraries.
26905 build_libtool_libs=$enable_shared
26906
26907 # What type of objects to build.
26908 pic_mode=$pic_mode
26909
26910 # Whether or not to optimize for fast installation.
26911 fast_install=$enable_fast_install
26912
26913 # Shell to use when invoking shell scripts.
26914 SHELL=$lt_SHELL
26915
26916 # An echo program that protects backslashes.
26917 ECHO=$lt_ECHO
26918
26919 # The PATH separator for the build system.
26920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26921
26922 # The host system.
26923 host_alias=$host_alias
26924 host=$host
26925 host_os=$host_os
26926
26927 # The build system.
26928 build_alias=$build_alias
26929 build=$build
26930 build_os=$build_os
26931
26932 # A sed program that does not truncate output.
26933 SED=$lt_SED
26934
26935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26936 Xsed="\$SED -e 1s/^X//"
26937
26938 # A grep program that handles long lines.
26939 GREP=$lt_GREP
26940
26941 # An ERE matcher.
26942 EGREP=$lt_EGREP
26943
26944 # A literal string matcher.
26945 FGREP=$lt_FGREP
26946
26947 # A BSD- or MS-compatible name lister.
26948 NM=$lt_NM
26949
26950 # Whether we need soft or hard links.
26951 LN_S=$lt_LN_S
26952
26953 # What is the maximum length of a command?
26954 max_cmd_len=$max_cmd_len
26955
26956 # Object file suffix (normally "o").
26957 objext=$ac_objext
26958
26959 # Executable file suffix (normally "").
26960 exeext=$exeext
26961
26962 # whether the shell understands "unset".
26963 lt_unset=$lt_unset
26964
26965 # turn spaces into newlines.
26966 SP2NL=$lt_lt_SP2NL
26967
26968 # turn newlines into spaces.
26969 NL2SP=$lt_lt_NL2SP
26970
26971 # convert \$build file names to \$host format.
26972 to_host_file_cmd=$lt_cv_to_host_file_cmd
26973
26974 # convert \$build files to toolchain format.
26975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26976
26977 # An object symbol dumper.
26978 OBJDUMP=$lt_OBJDUMP
26979
26980 # Method to check whether dependent libraries are shared objects.
26981 deplibs_check_method=$lt_deplibs_check_method
26982
26983 # Command to use when deplibs_check_method = "file_magic".
26984 file_magic_cmd=$lt_file_magic_cmd
26985
26986 # How to find potential files when deplibs_check_method = "file_magic".
26987 file_magic_glob=$lt_file_magic_glob
26988
26989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26990 want_nocaseglob=$lt_want_nocaseglob
26991
26992 # DLL creation program.
26993 DLLTOOL=$lt_DLLTOOL
26994
26995 # Command to associate shared and link libraries.
26996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26997
26998 # The archiver.
26999 AR=$lt_AR
27000
27001 # Flags to create an archive.
27002 AR_FLAGS=$lt_AR_FLAGS
27003
27004 # How to feed a file listing to the archiver.
27005 archiver_list_spec=$lt_archiver_list_spec
27006
27007 # A symbol stripping program.
27008 STRIP=$lt_STRIP
27009
27010 # Commands used to install an old-style archive.
27011 RANLIB=$lt_RANLIB
27012 old_postinstall_cmds=$lt_old_postinstall_cmds
27013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27014
27015 # Whether to use a lock for old archive extraction.
27016 lock_old_archive_extraction=$lock_old_archive_extraction
27017
27018 # A C compiler.
27019 LTCC=$lt_CC
27020
27021 # LTCC compiler flags.
27022 LTCFLAGS=$lt_CFLAGS
27023
27024 # Take the output of nm and produce a listing of raw symbols and C names.
27025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27026
27027 # Transform the output of nm in a proper C declaration.
27028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27029
27030 # Transform the output of nm in a C name address pair.
27031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27032
27033 # Transform the output of nm in a C name address pair when lib prefix is needed.
27034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27035
27036 # Specify filename containing input files for \$NM.
27037 nm_file_list_spec=$lt_nm_file_list_spec
27038
27039 # The root where to search for dependent libraries,and in which our libraries should be installed.
27040 lt_sysroot=$lt_sysroot
27041
27042 # The name of the directory that contains temporary libtool files.
27043 objdir=$objdir
27044
27045 # Used to examine libraries when file_magic_cmd begins with "file".
27046 MAGIC_CMD=$MAGIC_CMD
27047
27048 # Must we lock files when doing compilation?
27049 need_locks=$lt_need_locks
27050
27051 # Manifest tool.
27052 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27053
27054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27055 DSYMUTIL=$lt_DSYMUTIL
27056
27057 # Tool to change global to local symbols on Mac OS X.
27058 NMEDIT=$lt_NMEDIT
27059
27060 # Tool to manipulate fat objects and archives on Mac OS X.
27061 LIPO=$lt_LIPO
27062
27063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27064 OTOOL=$lt_OTOOL
27065
27066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27067 OTOOL64=$lt_OTOOL64
27068
27069 # Old archive suffix (normally "a").
27070 libext=$libext
27071
27072 # Shared library suffix (normally ".so").
27073 shrext_cmds=$lt_shrext_cmds
27074
27075 # The commands to extract the exported symbol list from a shared archive.
27076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27077
27078 # Variables whose values should be saved in libtool wrapper scripts and
27079 # restored at link time.
27080 variables_saved_for_relink=$lt_variables_saved_for_relink
27081
27082 # Do we need the "lib" prefix for modules?
27083 need_lib_prefix=$need_lib_prefix
27084
27085 # Do we need a version for libraries?
27086 need_version=$need_version
27087
27088 # Library versioning type.
27089 version_type=$version_type
27090
27091 # Shared library runtime path variable.
27092 runpath_var=$runpath_var
27093
27094 # Shared library path variable.
27095 shlibpath_var=$shlibpath_var
27096
27097 # Is shlibpath searched before the hard-coded library search path?
27098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27099
27100 # Format of library name prefix.
27101 libname_spec=$lt_libname_spec
27102
27103 # List of archive names.  First name is the real one, the rest are links.
27104 # The last name is the one that the linker finds with -lNAME
27105 library_names_spec=$lt_library_names_spec
27106
27107 # The coded name of the library, if different from the real name.
27108 soname_spec=$lt_soname_spec
27109
27110 # Permission mode override for installation of shared libraries.
27111 install_override_mode=$lt_install_override_mode
27112
27113 # Command to use after installation of a shared archive.
27114 postinstall_cmds=$lt_postinstall_cmds
27115
27116 # Command to use after uninstallation of a shared archive.
27117 postuninstall_cmds=$lt_postuninstall_cmds
27118
27119 # Commands used to finish a libtool library installation in a directory.
27120 finish_cmds=$lt_finish_cmds
27121
27122 # As "finish_cmds", except a single script fragment to be evaled but
27123 # not shown.
27124 finish_eval=$lt_finish_eval
27125
27126 # Whether we should hardcode library paths into libraries.
27127 hardcode_into_libs=$hardcode_into_libs
27128
27129 # Compile-time system search path for libraries.
27130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27131
27132 # Run-time system search path for libraries.
27133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27134
27135 # Whether dlopen is supported.
27136 dlopen_support=$enable_dlopen
27137
27138 # Whether dlopen of programs is supported.
27139 dlopen_self=$enable_dlopen_self
27140
27141 # Whether dlopen of statically linked programs is supported.
27142 dlopen_self_static=$enable_dlopen_self_static
27143
27144 # Commands to strip libraries.
27145 old_striplib=$lt_old_striplib
27146 striplib=$lt_striplib
27147
27148
27149 # The linker used to build libraries.
27150 LD=$lt_LD
27151
27152 # How to create reloadable object files.
27153 reload_flag=$lt_reload_flag
27154 reload_cmds=$lt_reload_cmds
27155
27156 # Commands used to build an old-style archive.
27157 old_archive_cmds=$lt_old_archive_cmds
27158
27159 # A language specific compiler.
27160 CC=$lt_compiler
27161
27162 # Is the compiler the GNU compiler?
27163 with_gcc=$GCC
27164
27165 # Compiler flag to turn off builtin functions.
27166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27167
27168 # Additional compiler flags for building library objects.
27169 pic_flag=$lt_lt_prog_compiler_pic
27170
27171 # How to pass a linker flag through the compiler.
27172 wl=$lt_lt_prog_compiler_wl
27173
27174 # Compiler flag to prevent dynamic linking.
27175 link_static_flag=$lt_lt_prog_compiler_static
27176
27177 # Does compiler simultaneously support -c and -o options?
27178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27179
27180 # Whether or not to add -lc for building shared libraries.
27181 build_libtool_need_lc=$archive_cmds_need_lc
27182
27183 # Whether or not to disallow shared libs when runtime libs are static.
27184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27185
27186 # Compiler flag to allow reflexive dlopens.
27187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27188
27189 # Compiler flag to generate shared objects directly from archives.
27190 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27191
27192 # Whether the compiler copes with passing no objects directly.
27193 compiler_needs_object=$lt_compiler_needs_object
27194
27195 # Create an old-style archive from a shared archive.
27196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27197
27198 # Create a temporary old-style archive to link instead of a shared archive.
27199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27200
27201 # Commands used to build a shared archive.
27202 archive_cmds=$lt_archive_cmds
27203 archive_expsym_cmds=$lt_archive_expsym_cmds
27204
27205 # Commands used to build a loadable module if different from building
27206 # a shared archive.
27207 module_cmds=$lt_module_cmds
27208 module_expsym_cmds=$lt_module_expsym_cmds
27209
27210 # Whether we are building with GNU ld or not.
27211 with_gnu_ld=$lt_with_gnu_ld
27212
27213 # Flag that allows shared libraries with undefined symbols to be built.
27214 allow_undefined_flag=$lt_allow_undefined_flag
27215
27216 # Flag that enforces no undefined symbols.
27217 no_undefined_flag=$lt_no_undefined_flag
27218
27219 # Flag to hardcode \$libdir into a binary during linking.
27220 # This must work even if \$libdir does not exist
27221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27222
27223 # Whether we need a single "-rpath" flag with a separated argument.
27224 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27225
27226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27227 # DIR into the resulting binary.
27228 hardcode_direct=$hardcode_direct
27229
27230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27231 # DIR into the resulting binary and the resulting library dependency is
27232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27233 # library is relocated.
27234 hardcode_direct_absolute=$hardcode_direct_absolute
27235
27236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27237 # into the resulting binary.
27238 hardcode_minus_L=$hardcode_minus_L
27239
27240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27241 # into the resulting binary.
27242 hardcode_shlibpath_var=$hardcode_shlibpath_var
27243
27244 # Set to "yes" if building a shared library automatically hardcodes DIR
27245 # into the library and all subsequent libraries and executables linked
27246 # against it.
27247 hardcode_automatic=$hardcode_automatic
27248
27249 # Set to yes if linker adds runtime paths of dependent libraries
27250 # to runtime path list.
27251 inherit_rpath=$inherit_rpath
27252
27253 # Whether libtool must link a program against all its dependency libraries.
27254 link_all_deplibs=$link_all_deplibs
27255
27256 # Set to "yes" if exported symbols are required.
27257 always_export_symbols=$always_export_symbols
27258
27259 # The commands to list exported symbols.
27260 export_symbols_cmds=$lt_export_symbols_cmds
27261
27262 # Symbols that should not be listed in the preloaded symbols.
27263 exclude_expsyms=$lt_exclude_expsyms
27264
27265 # Symbols that must always be exported.
27266 include_expsyms=$lt_include_expsyms
27267
27268 # Commands necessary for linking programs (against libraries) with templates.
27269 prelink_cmds=$lt_prelink_cmds
27270
27271 # Commands necessary for finishing linking programs.
27272 postlink_cmds=$lt_postlink_cmds
27273
27274 # Specify filename containing input files.
27275 file_list_spec=$lt_file_list_spec
27276
27277 # How to hardcode a shared library path into an executable.
27278 hardcode_action=$hardcode_action
27279
27280 # ### END LIBTOOL CONFIG
27281
27282 _LT_EOF
27283
27284   case $host_os in
27285   aix3*)
27286     cat <<\_LT_EOF >> "$cfgfile"
27287 # AIX sometimes has problems with the GCC collect2 program.  For some
27288 # reason, if we set the COLLECT_NAMES environment variable, the problems
27289 # vanish in a puff of smoke.
27290 if test "X${COLLECT_NAMES+set}" != Xset; then
27291   COLLECT_NAMES=
27292   export COLLECT_NAMES
27293 fi
27294 _LT_EOF
27295     ;;
27296   esac
27297
27298
27299 ltmain="$ac_aux_dir/ltmain.sh"
27300
27301
27302   # We use sed instead of cat because bash on DJGPP gets confused if
27303   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27304   # text mode, it properly converts lines to CR/LF.  This bash problem
27305   # is reportedly fixed, but why not run on old versions too?
27306   sed '$q' "$ltmain" >> "$cfgfile" \
27307      || (rm -f "$cfgfile"; exit 1)
27308
27309   if test x"$xsi_shell" = xyes; then
27310   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27311 func_dirname ()\
27312 {\
27313 \    case ${1} in\
27314 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27315 \      *  ) func_dirname_result="${3}" ;;\
27316 \    esac\
27317 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27318   && mv -f "$cfgfile.tmp" "$cfgfile" \
27319     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27320 test 0 -eq $? || _lt_function_replace_fail=:
27321
27322
27323   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27324 func_basename ()\
27325 {\
27326 \    func_basename_result="${1##*/}"\
27327 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27328   && mv -f "$cfgfile.tmp" "$cfgfile" \
27329     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27330 test 0 -eq $? || _lt_function_replace_fail=:
27331
27332
27333   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27334 func_dirname_and_basename ()\
27335 {\
27336 \    case ${1} in\
27337 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27338 \      *  ) func_dirname_result="${3}" ;;\
27339 \    esac\
27340 \    func_basename_result="${1##*/}"\
27341 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27342   && mv -f "$cfgfile.tmp" "$cfgfile" \
27343     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27344 test 0 -eq $? || _lt_function_replace_fail=:
27345
27346
27347   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27348 func_stripname ()\
27349 {\
27350 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27351 \    # positional parameters, so assign one to ordinary parameter first.\
27352 \    func_stripname_result=${3}\
27353 \    func_stripname_result=${func_stripname_result#"${1}"}\
27354 \    func_stripname_result=${func_stripname_result%"${2}"}\
27355 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27356   && mv -f "$cfgfile.tmp" "$cfgfile" \
27357     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27358 test 0 -eq $? || _lt_function_replace_fail=:
27359
27360
27361   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27362 func_split_long_opt ()\
27363 {\
27364 \    func_split_long_opt_name=${1%%=*}\
27365 \    func_split_long_opt_arg=${1#*=}\
27366 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27367   && mv -f "$cfgfile.tmp" "$cfgfile" \
27368     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27369 test 0 -eq $? || _lt_function_replace_fail=:
27370
27371
27372   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27373 func_split_short_opt ()\
27374 {\
27375 \    func_split_short_opt_arg=${1#??}\
27376 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27377 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27378   && mv -f "$cfgfile.tmp" "$cfgfile" \
27379     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27380 test 0 -eq $? || _lt_function_replace_fail=:
27381
27382
27383   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27384 func_lo2o ()\
27385 {\
27386 \    case ${1} in\
27387 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27388 \      *)    func_lo2o_result=${1} ;;\
27389 \    esac\
27390 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27391   && mv -f "$cfgfile.tmp" "$cfgfile" \
27392     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27393 test 0 -eq $? || _lt_function_replace_fail=:
27394
27395
27396   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27397 func_xform ()\
27398 {\
27399     func_xform_result=${1%.*}.lo\
27400 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27401   && mv -f "$cfgfile.tmp" "$cfgfile" \
27402     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27403 test 0 -eq $? || _lt_function_replace_fail=:
27404
27405
27406   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27407 func_arith ()\
27408 {\
27409     func_arith_result=$(( $* ))\
27410 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27411   && mv -f "$cfgfile.tmp" "$cfgfile" \
27412     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27413 test 0 -eq $? || _lt_function_replace_fail=:
27414
27415
27416   sed -e '/^func_len ()$/,/^} # func_len /c\
27417 func_len ()\
27418 {\
27419     func_len_result=${#1}\
27420 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27421   && mv -f "$cfgfile.tmp" "$cfgfile" \
27422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27423 test 0 -eq $? || _lt_function_replace_fail=:
27424
27425 fi
27426
27427 if test x"$lt_shell_append" = xyes; then
27428   sed -e '/^func_append ()$/,/^} # func_append /c\
27429 func_append ()\
27430 {\
27431     eval "${1}+=\\${2}"\
27432 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27433   && mv -f "$cfgfile.tmp" "$cfgfile" \
27434     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27435 test 0 -eq $? || _lt_function_replace_fail=:
27436
27437
27438   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27439 func_append_quoted ()\
27440 {\
27441 \    func_quote_for_eval "${2}"\
27442 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27443 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27444   && mv -f "$cfgfile.tmp" "$cfgfile" \
27445     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27446 test 0 -eq $? || _lt_function_replace_fail=:
27447
27448
27449   # Save a `func_append' function call where possible by direct use of '+='
27450   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27451     && mv -f "$cfgfile.tmp" "$cfgfile" \
27452       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27453   test 0 -eq $? || _lt_function_replace_fail=:
27454 else
27455   # Save a `func_append' function call even when '+=' is not available
27456   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27457     && mv -f "$cfgfile.tmp" "$cfgfile" \
27458       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27459   test 0 -eq $? || _lt_function_replace_fail=:
27460 fi
27461
27462 if test x"$_lt_function_replace_fail" = x":"; then
27463   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27464 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27465 fi
27466
27467
27468    mv -f "$cfgfile" "$ofile" ||
27469     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27470   chmod +x "$ofile"
27471
27472  ;;
27473
27474   esac
27475 done # for ac_tag
27476
27477
27478 as_fn_exit 0
27479 _ACEOF
27480 ac_clean_files=$ac_clean_files_save
27481
27482 test $ac_write_fail = 0 ||
27483   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27484
27485
27486 # configure is writing to config.log, and then calls config.status.
27487 # config.status does its own redirection, appending to config.log.
27488 # Unfortunately, on DOS this fails, as config.log is still kept open
27489 # by configure, so config.status won't be able to write to it; its
27490 # output is simply discarded.  So we exec the FD to /dev/null,
27491 # effectively closing config.log, so it can be properly (re)opened and
27492 # appended to by config.status.  When coming back to configure, we
27493 # need to make the FD available again.
27494 if test "$no_create" != yes; then
27495   ac_cs_success=:
27496   ac_config_status_args=
27497   test "$silent" = yes &&
27498     ac_config_status_args="$ac_config_status_args --quiet"
27499   exec 5>/dev/null
27500   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27501   exec 5>>config.log
27502   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27503   # would make configure fail if this is the last instruction.
27504   $ac_cs_success || as_fn_exit 1
27505 fi
27506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27509 fi
27510