]> git.lizzy.rs Git - rust.git/blob - src/libbacktrace/configure
Make fields and macro defs exported
[rust.git] / src / libbacktrace / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libbacktrace'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="backtrace.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NATIVE_FALSE
606 NATIVE_TRUE
607 BACKTRACE_USES_MALLOC
608 ALLOC_FILE
609 VIEW_FILE
610 BACKTRACE_SUPPORTS_DATA
611 BACKTRACE_SUPPORTED
612 FORMAT_FILE
613 BACKTRACE_SUPPORTS_THREADS
614 PIC_FLAG
615 WARN_FLAGS
616 EXTRA_FLAGS
617 BACKTRACE_FILE
618 OTOOL64
619 OTOOL
620 LIPO
621 NMEDIT
622 DSYMUTIL
623 AR
624 OBJDUMP
625 LN_S
626 NM
627 ac_ct_DUMPBIN
628 DUMPBIN
629 LD
630 FGREP
631 SED
632 LIBTOOL
633 RANLIB
634 MAINT
635 MAINTAINER_MODE_FALSE
636 MAINTAINER_MODE_TRUE
637 am__untar
638 am__tar
639 AMTAR
640 am__leading_dot
641 SET_MAKE
642 AWK
643 mkdir_p
644 MKDIR_P
645 INSTALL_STRIP_PROGRAM
646 STRIP
647 install_sh
648 MAKEINFO
649 AUTOHEADER
650 AUTOMAKE
651 AUTOCONF
652 ACLOCAL
653 VERSION
654 PACKAGE
655 CYGPATH_W
656 am__isrc
657 INSTALL_DATA
658 INSTALL_SCRIPT
659 INSTALL_PROGRAM
660 libtool_VERSION
661 EGREP
662 GREP
663 CPP
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 target_os
672 target_vendor
673 target_cpu
674 target
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 multi_basedir
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 localstatedir
704 sharedstatedir
705 sysconfdir
706 datadir
707 datarootdir
708 libexecdir
709 sbindir
710 bindir
711 program_transform_name
712 prefix
713 exec_prefix
714 PACKAGE_URL
715 PACKAGE_BUGREPORT
716 PACKAGE_STRING
717 PACKAGE_VERSION
718 PACKAGE_TARNAME
719 PACKAGE_NAME
720 PATH_SEPARATOR
721 SHELL'
722 ac_subst_files=''
723 ac_user_opts='
724 enable_option_checking
725 enable_multilib
726 enable_maintainer_mode
727 with_target_subdir
728 enable_shared
729 enable_static
730 with_pic
731 enable_fast_install
732 with_gnu_ld
733 enable_libtool_lock
734 with_system_libunwind
735 enable_host_shared
736 '
737       ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP'
746
747
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 ac_unrecognized_opts=
752 ac_unrecognized_sep=
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
769
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
795
796 ac_prev=
797 ac_dashdash=
798 for ac_option
799 do
800   # If the previous option needs an argument, assign it.
801   if test -n "$ac_prev"; then
802     eval $ac_prev=\$ac_option
803     ac_prev=
804     continue
805   fi
806
807   case $ac_option in
808   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809   *)    ac_optarg=yes ;;
810   esac
811
812   # Accept the important Cygnus configure options, so we can diagnose typos.
813
814   case $ac_dashdash$ac_option in
815   --)
816     ac_dashdash=yes ;;
817
818   -bindir | --bindir | --bindi | --bind | --bin | --bi)
819     ac_prev=bindir ;;
820   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821     bindir=$ac_optarg ;;
822
823   -build | --build | --buil | --bui | --bu)
824     ac_prev=build_alias ;;
825   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826     build_alias=$ac_optarg ;;
827
828   -cache-file | --cache-file | --cache-fil | --cache-fi \
829   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830     ac_prev=cache_file ;;
831   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833     cache_file=$ac_optarg ;;
834
835   --config-cache | -C)
836     cache_file=config.cache ;;
837
838   -datadir | --datadir | --datadi | --datad)
839     ac_prev=datadir ;;
840   -datadir=* | --datadir=* | --datadi=* | --datad=*)
841     datadir=$ac_optarg ;;
842
843   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844   | --dataroo | --dataro | --datar)
845     ac_prev=datarootdir ;;
846   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848     datarootdir=$ac_optarg ;;
849
850   -disable-* | --disable-*)
851     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852     # Reject names that are not valid shell variable names.
853     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854       as_fn_error "invalid feature name: $ac_useropt"
855     ac_useropt_orig=$ac_useropt
856     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857     case $ac_user_opts in
858       *"
859 "enable_$ac_useropt"
860 "*) ;;
861       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
862          ac_unrecognized_sep=', ';;
863     esac
864     eval enable_$ac_useropt=no ;;
865
866   -docdir | --docdir | --docdi | --doc | --do)
867     ac_prev=docdir ;;
868   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869     docdir=$ac_optarg ;;
870
871   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872     ac_prev=dvidir ;;
873   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874     dvidir=$ac_optarg ;;
875
876   -enable-* | --enable-*)
877     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878     # Reject names that are not valid shell variable names.
879     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880       as_fn_error "invalid feature name: $ac_useropt"
881     ac_useropt_orig=$ac_useropt
882     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883     case $ac_user_opts in
884       *"
885 "enable_$ac_useropt"
886 "*) ;;
887       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888          ac_unrecognized_sep=', ';;
889     esac
890     eval enable_$ac_useropt=\$ac_optarg ;;
891
892   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894   | --exec | --exe | --ex)
895     ac_prev=exec_prefix ;;
896   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898   | --exec=* | --exe=* | --ex=*)
899     exec_prefix=$ac_optarg ;;
900
901   -gas | --gas | --ga | --g)
902     # Obsolete; use --with-gas.
903     with_gas=yes ;;
904
905   -help | --help | --hel | --he | -h)
906     ac_init_help=long ;;
907   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908     ac_init_help=recursive ;;
909   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910     ac_init_help=short ;;
911
912   -host | --host | --hos | --ho)
913     ac_prev=host_alias ;;
914   -host=* | --host=* | --hos=* | --ho=*)
915     host_alias=$ac_optarg ;;
916
917   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918     ac_prev=htmldir ;;
919   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920   | --ht=*)
921     htmldir=$ac_optarg ;;
922
923   -includedir | --includedir | --includedi | --included | --include \
924   | --includ | --inclu | --incl | --inc)
925     ac_prev=includedir ;;
926   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927   | --includ=* | --inclu=* | --incl=* | --inc=*)
928     includedir=$ac_optarg ;;
929
930   -infodir | --infodir | --infodi | --infod | --info | --inf)
931     ac_prev=infodir ;;
932   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933     infodir=$ac_optarg ;;
934
935   -libdir | --libdir | --libdi | --libd)
936     ac_prev=libdir ;;
937   -libdir=* | --libdir=* | --libdi=* | --libd=*)
938     libdir=$ac_optarg ;;
939
940   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941   | --libexe | --libex | --libe)
942     ac_prev=libexecdir ;;
943   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944   | --libexe=* | --libex=* | --libe=*)
945     libexecdir=$ac_optarg ;;
946
947   -localedir | --localedir | --localedi | --localed | --locale)
948     ac_prev=localedir ;;
949   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950     localedir=$ac_optarg ;;
951
952   -localstatedir | --localstatedir | --localstatedi | --localstated \
953   | --localstate | --localstat | --localsta | --localst | --locals)
954     ac_prev=localstatedir ;;
955   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957     localstatedir=$ac_optarg ;;
958
959   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960     ac_prev=mandir ;;
961   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962     mandir=$ac_optarg ;;
963
964   -nfp | --nfp | --nf)
965     # Obsolete; use --without-fp.
966     with_fp=no ;;
967
968   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969   | --no-cr | --no-c | -n)
970     no_create=yes ;;
971
972   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974     no_recursion=yes ;;
975
976   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978   | --oldin | --oldi | --old | --ol | --o)
979     ac_prev=oldincludedir ;;
980   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983     oldincludedir=$ac_optarg ;;
984
985   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986     ac_prev=prefix ;;
987   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988     prefix=$ac_optarg ;;
989
990   -program-prefix | --program-prefix | --program-prefi | --program-pref \
991   | --program-pre | --program-pr | --program-p)
992     ac_prev=program_prefix ;;
993   -program-prefix=* | --program-prefix=* | --program-prefi=* \
994   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995     program_prefix=$ac_optarg ;;
996
997   -program-suffix | --program-suffix | --program-suffi | --program-suff \
998   | --program-suf | --program-su | --program-s)
999     ac_prev=program_suffix ;;
1000   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002     program_suffix=$ac_optarg ;;
1003
1004   -program-transform-name | --program-transform-name \
1005   | --program-transform-nam | --program-transform-na \
1006   | --program-transform-n | --program-transform- \
1007   | --program-transform | --program-transfor \
1008   | --program-transfo | --program-transf \
1009   | --program-trans | --program-tran \
1010   | --progr-tra | --program-tr | --program-t)
1011     ac_prev=program_transform_name ;;
1012   -program-transform-name=* | --program-transform-name=* \
1013   | --program-transform-nam=* | --program-transform-na=* \
1014   | --program-transform-n=* | --program-transform-=* \
1015   | --program-transform=* | --program-transfor=* \
1016   | --program-transfo=* | --program-transf=* \
1017   | --program-trans=* | --program-tran=* \
1018   | --progr-tra=* | --program-tr=* | --program-t=*)
1019     program_transform_name=$ac_optarg ;;
1020
1021   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022     ac_prev=pdfdir ;;
1023   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024     pdfdir=$ac_optarg ;;
1025
1026   -psdir | --psdir | --psdi | --psd | --ps)
1027     ac_prev=psdir ;;
1028   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029     psdir=$ac_optarg ;;
1030
1031   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032   | -silent | --silent | --silen | --sile | --sil)
1033     silent=yes ;;
1034
1035   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036     ac_prev=sbindir ;;
1037   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038   | --sbi=* | --sb=*)
1039     sbindir=$ac_optarg ;;
1040
1041   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043   | --sharedst | --shareds | --shared | --share | --shar \
1044   | --sha | --sh)
1045     ac_prev=sharedstatedir ;;
1046   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049   | --sha=* | --sh=*)
1050     sharedstatedir=$ac_optarg ;;
1051
1052   -site | --site | --sit)
1053     ac_prev=site ;;
1054   -site=* | --site=* | --sit=*)
1055     site=$ac_optarg ;;
1056
1057   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058     ac_prev=srcdir ;;
1059   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060     srcdir=$ac_optarg ;;
1061
1062   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063   | --syscon | --sysco | --sysc | --sys | --sy)
1064     ac_prev=sysconfdir ;;
1065   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067     sysconfdir=$ac_optarg ;;
1068
1069   -target | --target | --targe | --targ | --tar | --ta | --t)
1070     ac_prev=target_alias ;;
1071   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072     target_alias=$ac_optarg ;;
1073
1074   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075     verbose=yes ;;
1076
1077   -version | --version | --versio | --versi | --vers | -V)
1078     ac_init_version=: ;;
1079
1080   -with-* | --with-*)
1081     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084       as_fn_error "invalid package name: $ac_useropt"
1085     ac_useropt_orig=$ac_useropt
1086     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087     case $ac_user_opts in
1088       *"
1089 "with_$ac_useropt"
1090 "*) ;;
1091       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092          ac_unrecognized_sep=', ';;
1093     esac
1094     eval with_$ac_useropt=\$ac_optarg ;;
1095
1096   -without-* | --without-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       as_fn_error "invalid package name: $ac_useropt"
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval with_$ac_useropt=no ;;
1111
1112   --x)
1113     # Obsolete; use --with-x.
1114     with_x=yes ;;
1115
1116   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117   | --x-incl | --x-inc | --x-in | --x-i)
1118     ac_prev=x_includes ;;
1119   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121     x_includes=$ac_optarg ;;
1122
1123   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125     ac_prev=x_libraries ;;
1126   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128     x_libraries=$ac_optarg ;;
1129
1130   -*) as_fn_error "unrecognized option: \`$ac_option'
1131 Try \`$0 --help' for more information."
1132     ;;
1133
1134   *=*)
1135     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136     # Reject names that are not valid shell variable names.
1137     case $ac_envvar in #(
1138       '' | [0-9]* | *[!_$as_cr_alnum]* )
1139       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1140     esac
1141     eval $ac_envvar=\$ac_optarg
1142     export $ac_envvar ;;
1143
1144   *)
1145     # FIXME: should be removed in autoconf 3.0.
1146     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150     ;;
1151
1152   esac
1153 done
1154
1155 if test -n "$ac_prev"; then
1156   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157   as_fn_error "missing argument to $ac_option"
1158 fi
1159
1160 if test -n "$ac_unrecognized_opts"; then
1161   case $enable_option_checking in
1162     no) ;;
1163     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1164     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165   esac
1166 fi
1167
1168 # Check all directory arguments for consistency.
1169 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170                 datadir sysconfdir sharedstatedir localstatedir includedir \
1171                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172                 libdir localedir mandir
1173 do
1174   eval ac_val=\$$ac_var
1175   # Remove trailing slashes.
1176   case $ac_val in
1177     */ )
1178       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1179       eval $ac_var=\$ac_val;;
1180   esac
1181   # Be sure to have absolute directory names.
1182   case $ac_val in
1183     [\\/$]* | ?:[\\/]* )  continue;;
1184     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185   esac
1186   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1187 done
1188
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1192 build=$build_alias
1193 host=$host_alias
1194 target=$target_alias
1195
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198   if test "x$build_alias" = x; then
1199     cross_compiling=maybe
1200     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201     If a cross compiler is detected then cross compile mode will be used." >&2
1202   elif test "x$build_alias" != "x$host_alias"; then
1203     cross_compiling=yes
1204   fi
1205 fi
1206
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210 test "$silent" = yes && exec 6>/dev/null
1211
1212
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216   as_fn_error "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218   as_fn_error "pwd does not report name of working directory"
1219
1220
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223   ac_srcdir_defaulted=yes
1224   # Try the directory containing this script, then the parent directory.
1225   ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227          X"$as_myself" : 'X\(//\)[^/]' \| \
1228          X"$as_myself" : 'X\(//\)$' \| \
1229          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)[^/].*/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)$/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\).*/{
1244             s//\1/
1245             q
1246           }
1247           s/.*/./; q'`
1248   srcdir=$ac_confdir
1249   if test ! -r "$srcdir/$ac_unique_file"; then
1250     srcdir=..
1251   fi
1252 else
1253   ac_srcdir_defaulted=no
1254 fi
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1258 fi
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1262         pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265   srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_env_${ac_var}_value=\$${ac_var}
1276   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284   # Omit some internal or obsolete options to make the list less imposing.
1285   # This message is too long to be a string in the A/UX 3.1 sh.
1286   cat <<_ACEOF
1287 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE.  See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297   -h, --help              display this help and exit
1298       --help=short        display options specific to this package
1299       --help=recursive    display the short help of all the included packages
1300   -V, --version           display version information and exit
1301   -q, --quiet, --silent   do not print \`checking...' messages
1302       --cache-file=FILE   cache test results in FILE [disabled]
1303   -C, --config-cache      alias for \`--cache-file=config.cache'
1304   -n, --no-create         do not create output files
1305       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308   --prefix=PREFIX         install architecture-independent files in PREFIX
1309                           [$ac_default_prefix]
1310   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1311                           [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321   --bindir=DIR            user executables [EPREFIX/bin]
1322   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1323   --libexecdir=DIR        program executables [EPREFIX/libexec]
1324   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1325   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1326   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1327   --libdir=DIR            object code libraries [EPREFIX/lib]
1328   --includedir=DIR        C header files [PREFIX/include]
1329   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1330   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1331   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1332   --infodir=DIR           info documentation [DATAROOTDIR/info]
1333   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1334   --mandir=DIR            man documentation [DATAROOTDIR/man]
1335   --docdir=DIR            documentation root [DATAROOTDIR/doc/libbacktrace]
1336   --htmldir=DIR           html documentation [DOCDIR]
1337   --dvidir=DIR            dvi documentation [DOCDIR]
1338   --pdfdir=DIR            pdf documentation [DOCDIR]
1339   --psdir=DIR             ps documentation [DOCDIR]
1340 _ACEOF
1341
1342   cat <<\_ACEOF
1343
1344 Program names:
1345   --program-prefix=PREFIX            prepend PREFIX to installed program names
1346   --program-suffix=SUFFIX            append SUFFIX to installed program names
1347   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1348
1349 System types:
1350   --build=BUILD     configure for building on BUILD [guessed]
1351   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1352   --target=TARGET   configure for building compilers for TARGET [HOST]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357   case $ac_init_help in
1358      short | recursive ) echo "Configuration of package-unused version-unused:";;
1359    esac
1360   cat <<\_ACEOF
1361
1362 Optional Features:
1363   --disable-option-checking  ignore unrecognized --enable/--with options
1364   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366   --enable-multilib       build many library versions (default)
1367   --enable-maintainer-mode  enable make rules and dependencies not useful
1368                           (and sometimes confusing) to the casual installer
1369   --enable-shared[=PKGS]  build shared libraries [default=no]
1370   --enable-static[=PKGS]  build static libraries [default=yes]
1371   --enable-fast-install[=PKGS]
1372                           optimize for fast installation [default=yes]
1373   --disable-libtool-lock  avoid locking (might break parallel builds)
1374   --enable-host-shared    build host code as shared libraries
1375
1376 Optional Packages:
1377   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1378   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1379   --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
1380   --with-pic              try to use only PIC/non-PIC objects [default=use
1381                           both]
1382   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1383   --with-system-libunwind use installed libunwind
1384
1385 Some influential environment variables:
1386   CC          C compiler command
1387   CFLAGS      C compiler flags
1388   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1389               nonstandard directory <lib dir>
1390   LIBS        libraries to pass to the linker, e.g. -l<library>
1391   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1392               you have headers in a nonstandard directory <include dir>
1393   CPP         C preprocessor
1394
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to the package provider.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404   # If there are subdirs, report their specific --help.
1405   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406     test -d "$ac_dir" ||
1407       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408       continue
1409     ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415   # A ".." for each directory in $ac_dir_suffix.
1416   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417   case $ac_top_builddir_sub in
1418   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420   esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428   .)  # We are building in place.
1429     ac_srcdir=.
1430     ac_top_srcdir=$ac_top_builddir_sub
1431     ac_abs_top_srcdir=$ac_pwd ;;
1432   [\\/]* | ?:[\\/]* )  # Absolute name.
1433     ac_srcdir=$srcdir$ac_dir_suffix;
1434     ac_top_srcdir=$srcdir
1435     ac_abs_top_srcdir=$srcdir ;;
1436   *) # Relative name.
1437     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438     ac_top_srcdir=$ac_top_build_prefix$srcdir
1439     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443     cd "$ac_dir" || { ac_status=$?; continue; }
1444     # Check for guested configure.
1445     if test -f "$ac_srcdir/configure.gnu"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448     elif test -f "$ac_srcdir/configure"; then
1449       echo &&
1450       $SHELL "$ac_srcdir/configure" --help=recursive
1451     else
1452       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453     fi || ac_status=$?
1454     cd "$ac_pwd" || { ac_status=$?; break; }
1455   done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460   cat <<\_ACEOF
1461 package-unused configure version-unused
1462 generated by GNU Autoconf 2.64
1463
1464 Copyright (C) 2009 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468   exit
1469 fi
1470
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481   rm -f conftest.$ac_objext
1482   if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485   *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489   (eval "$ac_compile") 2>conftest.err
1490   ac_status=$?
1491   if test -s conftest.err; then
1492     grep -v '^ *+' conftest.err >conftest.er1
1493     cat conftest.er1 >&5
1494     mv -f conftest.er1 conftest.err
1495   fi
1496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497   test $ac_status = 0; } && {
1498          test -z "$ac_c_werror_flag" ||
1499          test ! -s conftest.err
1500        } && test -s conftest.$ac_objext; then :
1501   ac_retval=0
1502 else
1503   $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506         ac_retval=1
1507 fi
1508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509   return $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_cpp LINENO
1514 # ----------------------
1515 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_cpp ()
1517 {
1518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519   if { { ac_try="$ac_cpp conftest.$ac_ext"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } >/dev/null && {
1535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        }; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543     ac_retval=1
1544 fi
1545   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546   return $ac_retval
1547
1548 } # ac_fn_c_try_cpp
1549
1550 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1551 # -------------------------------------------------------
1552 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1553 # the include files in INCLUDES and setting the cache variable VAR
1554 # accordingly.
1555 ac_fn_c_check_header_mongrel ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 $as_echo_n "checking for $2... " >&6; }
1561 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562   $as_echo_n "(cached) " >&6
1563 fi
1564 eval ac_res=\$$3
1565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566 $as_echo "$ac_res" >&6; }
1567 else
1568   # Is the header compilable?
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1570 $as_echo_n "checking $2 usability... " >&6; }
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h.  */
1573 $4
1574 #include <$2>
1575 _ACEOF
1576 if ac_fn_c_try_compile "$LINENO"; then :
1577   ac_header_compiler=yes
1578 else
1579   ac_header_compiler=no
1580 fi
1581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1583 $as_echo "$ac_header_compiler" >&6; }
1584
1585 # Is the header present?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1587 $as_echo_n "checking $2 presence... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h.  */
1590 #include <$2>
1591 _ACEOF
1592 if ac_fn_c_try_cpp "$LINENO"; then :
1593   ac_header_preproc=yes
1594 else
1595   ac_header_preproc=no
1596 fi
1597 rm -f conftest.err conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1599 $as_echo "$ac_header_preproc" >&6; }
1600
1601 # So?  What about this header?
1602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1603   yes:no: )
1604     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1605 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608     ;;
1609   no:yes:* )
1610     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1611 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1612     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1613 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1615 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1617 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1618     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620     ;;
1621 esac
1622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625   $as_echo_n "(cached) " >&6
1626 else
1627   eval "$3=\$ac_header_compiler"
1628 fi
1629 eval ac_res=\$$3
1630                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 fi
1633   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634
1635 } # ac_fn_c_check_header_mongrel
1636
1637 # ac_fn_c_try_run LINENO
1638 # ----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1640 # that executables *can* be run.
1641 ac_fn_c_try_run ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_link") 2>&5
1652   ac_status=$?
1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1655   { { case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_try") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; }; }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: program exited with status $ac_status" >&5
1668        $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671        ac_retval=$ac_status
1672 fi
1673   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675   return $ac_retval
1676
1677 } # ac_fn_c_try_run
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689   $as_echo_n "(cached) " >&6
1690 else
1691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h.  */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697   eval "$3=yes"
1698 else
1699   eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_link ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext conftest$ac_exeext
1717   if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_link") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest$ac_exeext && {
1736          test "$cross_compiling" = yes ||
1737          $as_test_x conftest$ac_exeext
1738        }; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744         ac_retval=1
1745 fi
1746   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748   # interfere with the next link command; also delete a directory that is
1749   # left behind by Apple's compiler.  We do this before executing the actions.
1750   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752   return $ac_retval
1753
1754 } # ac_fn_c_try_link
1755
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771 #define $2 innocuous_$2
1772
1773 /* System header to define __stub macros and hopefully few prototypes,
1774     which can conflict with char $2 (); below.
1775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776     <limits.h> exists even on freestanding compilers.  */
1777
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1783
1784 #undef $2
1785
1786 /* Override any GCC internal prototype to avoid an error.
1787    Use char because int might match the return type of a GCC
1788    builtin and then its argument prototype would still apply.  */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794     to always fail with ENOSYS.  Some functions are actually named
1795     something starting with __ and the normal name is an alias.  */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1799
1800 int
1801 main ()
1802 {
1803 return $2 ();
1804   ;
1805   return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809   eval "$3=yes"
1810 else
1811   eval "$3=no"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext \
1814     conftest$ac_exeext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821 } # ac_fn_c_check_func
1822
1823 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1824 # -------------------------------------------
1825 # Tests whether TYPE exists after having included INCLUDES, setting cache
1826 # variable VAR accordingly.
1827 ac_fn_c_check_type ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   eval "$3=no"
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 $4
1839 int
1840 main ()
1841 {
1842 if (sizeof ($2))
1843          return 0;
1844   ;
1845   return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 $4
1852 int
1853 main ()
1854 {
1855 if (sizeof (($2)))
1856             return 0;
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862
1863 else
1864   eval "$3=yes"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875 } # ac_fn_c_check_type
1876
1877 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1878 # --------------------------------------------
1879 # Tries to find the compile-time value of EXPR in a program that includes
1880 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1881 # computed
1882 ac_fn_c_compute_int ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   if test "$cross_compiling" = yes; then
1886     # Depending upon the size, compute the lo and hi bounds.
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 $4
1890 int
1891 main ()
1892 {
1893 static int test_array [1 - 2 * !(($2) >= 0)];
1894 test_array [0] = 0
1895
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   ac_lo=0 ac_mid=0
1902   while :; do
1903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 test_array [0] = 0
1911
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   ac_hi=$ac_mid; break
1918 else
1919   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1920                         if test $ac_lo -le $ac_mid; then
1921                           ac_lo= ac_hi=
1922                           break
1923                         fi
1924                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927   done
1928 else
1929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !(($2) < 0)];
1936 test_array [0] = 0
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_hi=-1 ac_mid=-1
1944   while :; do
1945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1952 test_array [0] = 0
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959   ac_lo=$ac_mid; break
1960 else
1961   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1962                         if test $ac_mid -le $ac_hi; then
1963                           ac_lo= ac_hi=
1964                           break
1965                         fi
1966                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969   done
1970 else
1971   ac_lo= ac_hi=
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 # Binary search between lo and hi bounds.
1977 while test "x$ac_lo" != "x$ac_hi"; do
1978   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986 test_array [0] = 0
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_hi=$ac_mid
1994 else
1995   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 case $ac_lo in #((
2000 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001 '') ac_retval=1 ;;
2002 esac
2003   else
2004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 static long int longval () { return $2; }
2008 static unsigned long int ulongval () { return $2; }
2009 #include <stdio.h>
2010 #include <stdlib.h>
2011 int
2012 main ()
2013 {
2014
2015   FILE *f = fopen ("conftest.val", "w");
2016   if (! f)
2017     return 1;
2018   if (($2) < 0)
2019     {
2020       long int i = longval ();
2021       if (i != ($2))
2022         return 1;
2023       fprintf (f, "%ld", i);
2024     }
2025   else
2026     {
2027       unsigned long int i = ulongval ();
2028       if (i != ($2))
2029         return 1;
2030       fprintf (f, "%lu", i);
2031     }
2032   /* Do not output a trailing newline, as this causes \r\n confusion
2033      on some platforms.  */
2034   return ferror (f) || fclose (f) != 0;
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_run "$LINENO"; then :
2041   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2042 else
2043   ac_retval=1
2044 fi
2045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046   conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 rm -f conftest.val
2048
2049   fi
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051   return $ac_retval
2052
2053 } # ac_fn_c_compute_int
2054
2055 # ac_fn_c_check_decl LINENO SYMBOL VAR
2056 # ------------------------------------
2057 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2058 ac_fn_c_check_decl ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   as_decl_name=`echo $2|sed 's/ *(.*//'`
2062   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2064 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2065 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2066   $as_echo_n "(cached) " >&6
2067 else
2068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 $4
2071 int
2072 main ()
2073 {
2074 #ifndef $as_decl_name
2075 #ifdef __cplusplus
2076   (void) $as_decl_use;
2077 #else
2078   (void) $as_decl_name;
2079 #endif
2080 #endif
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   eval "$3=yes"
2088 else
2089   eval "$3=no"
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097
2098 } # ac_fn_c_check_decl
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by package-unused $as_me version-unused, which was
2104 generated by GNU Autoconf 2.64.  Invocation command line was
2105
2106   $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2124
2125 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2126 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2129 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2130 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2131 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140     $as_echo "PATH: $as_dir"
2141   done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167   for ac_arg
2168   do
2169     case $ac_arg in
2170     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172     | -silent | --silent | --silen | --sile | --sil)
2173       continue ;;
2174     *\'*)
2175       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176     esac
2177     case $ac_pass in
2178     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179     2)
2180       as_fn_append ac_configure_args1 " '$ac_arg'"
2181       if test $ac_must_keep_next = true; then
2182         ac_must_keep_next=false # Got value, back to normal.
2183       else
2184         case $ac_arg in
2185           *=* | --config-cache | -C | -disable-* | --disable-* \
2186           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188           | -with-* | --with-* | -without-* | --without-* | --x)
2189             case "$ac_configure_args0 " in
2190               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191             esac
2192             ;;
2193           -* ) ac_must_keep_next=true ;;
2194         esac
2195       fi
2196       as_fn_append ac_configure_args " '$ac_arg'"
2197       ;;
2198     esac
2199   done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log.  We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210   # Save into config.log some information that might help in debugging.
2211   {
2212     echo
2213
2214     cat <<\_ASBOX
2215 ## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##
2218 _ASBOX
2219     echo
2220     # The following way of writing the cache mishandles newlines in values,
2221 (
2222   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223     eval ac_val=\$$ac_var
2224     case $ac_val in #(
2225     *${as_nl}*)
2226       case $ac_var in #(
2227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229       esac
2230       case $ac_var in #(
2231       _ | IFS | as_nl) ;; #(
2232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233       *) { eval $ac_var=; unset $ac_var;} ;;
2234       esac ;;
2235     esac
2236   done
2237   (set) 2>&1 |
2238     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239     *${as_nl}ac_space=\ *)
2240       sed -n \
2241         "s/'\''/'\''\\\\'\'''\''/g;
2242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243       ;; #(
2244     *)
2245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246       ;;
2247     esac |
2248     sort
2249 )
2250     echo
2251
2252     cat <<\_ASBOX
2253 ## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##
2256 _ASBOX
2257     echo
2258     for ac_var in $ac_subst_vars
2259     do
2260       eval ac_val=\$$ac_var
2261       case $ac_val in
2262       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263       esac
2264       $as_echo "$ac_var='\''$ac_val'\''"
2265     done | sort
2266     echo
2267
2268     if test -n "$ac_subst_files"; then
2269       cat <<\_ASBOX
2270 ## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##
2273 _ASBOX
2274       echo
2275       for ac_var in $ac_subst_files
2276       do
2277         eval ac_val=\$$ac_var
2278         case $ac_val in
2279         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280         esac
2281         $as_echo "$ac_var='\''$ac_val'\''"
2282       done | sort
2283       echo
2284     fi
2285
2286     if test -s confdefs.h; then
2287       cat <<\_ASBOX
2288 ## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##
2291 _ASBOX
2292       echo
2293       cat confdefs.h
2294       echo
2295     fi
2296     test "$ac_signal" != 0 &&
2297       $as_echo "$as_me: caught signal $ac_signal"
2298     $as_echo "$as_me: exit $exit_status"
2299   } >&5
2300   rm -f core *.core core.conftest.* &&
2301     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302     exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 $as_echo "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2339
2340
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346   ac_site_file1=$CONFIG_SITE
2347 elif test "x$prefix" != xNONE; then
2348   ac_site_file1=$prefix/share/config.site
2349   ac_site_file2=$prefix/etc/config.site
2350 else
2351   ac_site_file1=$ac_default_prefix/share/config.site
2352   ac_site_file2=$ac_default_prefix/etc/config.site
2353 fi
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 do
2356   test "x$ac_site_file" = xNONE && continue
2357   if test -r "$ac_site_file"; then
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360     sed 's/^/| /' "$ac_site_file" >&5
2361     . "$ac_site_file"
2362   fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366   # Some versions of bash will fail to source /dev/null (special
2367   # files actually), so we avoid doing that.
2368   if test -f "$cache_file"; then
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371     case $cache_file in
2372       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373       *)                      . "./$cache_file";;
2374     esac
2375   fi
2376 else
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379   >$cache_file
2380 fi
2381
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387   eval ac_new_set=\$ac_env_${ac_var}_set
2388   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389   eval ac_new_val=\$ac_env_${ac_var}_value
2390   case $ac_old_set,$ac_new_set in
2391     set,)
2392       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394       ac_cache_corrupted=: ;;
2395     ,set)
2396       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,);;
2400     *)
2401       if test "x$ac_old_val" != "x$ac_new_val"; then
2402         # differences in whitespace do not lead to failure.
2403         ac_old_val_w=`echo x $ac_old_val`
2404         ac_new_val_w=`echo x $ac_new_val`
2405         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408           ac_cache_corrupted=:
2409         else
2410           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412           eval $ac_var=\$ac_old_val
2413         fi
2414         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2415 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2416         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2418       fi;;
2419   esac
2420   # Pass precious variables to config.status.
2421   if test "$ac_new_set" = set; then
2422     case $ac_new_val in
2423     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     *) ac_arg=$ac_var=$ac_new_val ;;
2425     esac
2426     case " $ac_configure_args " in
2427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2428       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429     esac
2430   fi
2431 done
2432 if $ac_cache_corrupted; then
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 fi
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449
2450
2451
2452
2453
2454 ac_config_headers="$ac_config_headers config.h"
2455
2456
2457 if test -n "${with_target_subdir}"; then
2458   # Default to --enable-multilib
2459 # Check whether --enable-multilib was given.
2460 if test "${enable_multilib+set}" = set; then :
2461   enableval=$enable_multilib; case "$enableval" in
2462   yes) multilib=yes ;;
2463   no)  multilib=no ;;
2464   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2465  esac
2466 else
2467   multilib=yes
2468 fi
2469
2470
2471 # We may get other options which we leave undocumented:
2472 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2473 # See config-ml.in if you want the gory details.
2474
2475 if test "$srcdir" = "."; then
2476   if test "$with_target_subdir" != "."; then
2477     multi_basedir="$srcdir/$with_multisrctop../.."
2478   else
2479     multi_basedir="$srcdir/$with_multisrctop.."
2480   fi
2481 else
2482   multi_basedir="$srcdir/.."
2483 fi
2484
2485
2486 # Even if the default multilib is not a cross compilation,
2487 # it may be that some of the other multilibs are.
2488 if test $cross_compiling = no && test $multilib = yes \
2489    && test "x${with_multisubdir}" != x ; then
2490    cross_compiling=maybe
2491 fi
2492
2493 ac_config_commands="$ac_config_commands default-1"
2494
2495 fi
2496
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499   for ac_t in install-sh install.sh shtool; do
2500     if test -f "$ac_dir/$ac_t"; then
2501       ac_aux_dir=$ac_dir
2502       ac_install_sh="$ac_aux_dir/$ac_t -c"
2503       break 2
2504     fi
2505   done
2506 done
2507 if test -z "$ac_aux_dir"; then
2508   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2509 fi
2510
2511 # These three variables are undocumented and unsupported,
2512 # and are intended to be withdrawn in a future Autoconf release.
2513 # They can cause serious problems if a builder's source tree is in a directory
2514 # whose full name contains unusual characters.
2515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2517 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2518
2519
2520 # Make sure we can run config.sub.
2521 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2522   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2525 $as_echo_n "checking build system type... " >&6; }
2526 if test "${ac_cv_build+set}" = set; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   ac_build_alias=$build_alias
2530 test "x$ac_build_alias" = x &&
2531   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2532 test "x$ac_build_alias" = x &&
2533   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2536
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2539 $as_echo "$ac_cv_build" >&6; }
2540 case $ac_cv_build in
2541 *-*-*) ;;
2542 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2543 esac
2544 build=$ac_cv_build
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_build
2547 shift
2548 build_cpu=$1
2549 build_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 build_os=$*
2554 IFS=$ac_save_IFS
2555 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2556
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2559 $as_echo_n "checking host system type... " >&6; }
2560 if test "${ac_cv_host+set}" = set; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test "x$host_alias" = x; then
2564   ac_cv_host=$ac_cv_build
2565 else
2566   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2567     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2568 fi
2569
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2572 $as_echo "$ac_cv_host" >&6; }
2573 case $ac_cv_host in
2574 *-*-*) ;;
2575 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2576 esac
2577 host=$ac_cv_host
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_host
2580 shift
2581 host_cpu=$1
2582 host_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 host_os=$*
2587 IFS=$ac_save_IFS
2588 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2589
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2592 $as_echo_n "checking target system type... " >&6; }
2593 if test "${ac_cv_target+set}" = set; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test "x$target_alias" = x; then
2597   ac_cv_target=$ac_cv_host
2598 else
2599   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2600     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2601 fi
2602
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2605 $as_echo "$ac_cv_target" >&6; }
2606 case $ac_cv_target in
2607 *-*-*) ;;
2608 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2609 esac
2610 target=$ac_cv_target
2611 ac_save_IFS=$IFS; IFS='-'
2612 set x $ac_cv_target
2613 shift
2614 target_cpu=$1
2615 target_vendor=$2
2616 shift; shift
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2619 target_os=$*
2620 IFS=$ac_save_IFS
2621 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2622
2623
2624 # The aliases save the names the user supplied, while $host etc.
2625 # will get canonicalized.
2626 test -n "$target_alias" &&
2627   test "$program_prefix$program_suffix$program_transform_name" = \
2628     NONENONEs,x,x, &&
2629   program_prefix=${target_alias}-
2630
2631 target_alias=${target_alias-$host_alias}
2632
2633 ac_ext=c
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 if test -n "$ac_tool_prefix"; then
2639   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676 fi
2677 if test -z "$ac_cv_prog_CC"; then
2678   ac_ct_CC=$CC
2679   # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$ac_ct_CC"; then
2687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_prog_ac_ct_CC="gcc"
2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709 $as_echo "$ac_ct_CC" >&6; }
2710 else
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2723 esac
2724     CC=$ac_ct_CC
2725   fi
2726 else
2727   CC="$ac_cv_prog_CC"
2728 fi
2729
2730 if test -z "$CC"; then
2731           if test -n "$ac_tool_prefix"; then
2732     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}cc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$CC"; then
2740   ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749     ac_cv_prog_CC="${ac_tool_prefix}cc"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769   fi
2770 fi
2771 if test -z "$CC"; then
2772   # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_CC+set}" = set; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$CC"; then
2780   ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782   ac_prog_rejected=no
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791        ac_prog_rejected=yes
2792        continue
2793      fi
2794     ac_cv_prog_CC="cc"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 if test $ac_prog_rejected = yes; then
2803   # We found a bogon in the path, so make sure we never use it.
2804   set dummy $ac_cv_prog_CC
2805   shift
2806   if test $# != 0; then
2807     # We chose a different compiler from the bogus one.
2808     # However, it has the same basename, so the bogon will be chosen
2809     # first if we set CC to just the basename; use the full file name.
2810     shift
2811     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812   fi
2813 fi
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$CC"; then
2828   if test -n "$ac_tool_prefix"; then
2829   for ac_prog in cl.exe
2830   do
2831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then :
2836   $as_echo_n "(cached) " >&6
2837 else
2838   if test -n "$CC"; then
2839   ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846     for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853   done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868     test -n "$CC" && break
2869   done
2870 fi
2871 if test -z "$CC"; then
2872   ac_ct_CC=$CC
2873   for ac_prog in cl.exe
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$ac_ct_CC"; then
2883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890     for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_ac_ct_CC="$ac_prog"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2906 else
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912   test -n "$ac_ct_CC" && break
2913 done
2914
2915   if test "x$ac_ct_CC" = x; then
2916     CC=""
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 fi
2927
2928 fi
2929
2930
2931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error "no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." "$LINENO" 5; }
2935
2936 # Provide some information about the compiler.
2937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2938 set X $ac_compile
2939 ac_compiler=$2
2940 for ac_option in --version -v -V -qversion; do
2941   { { ac_try="$ac_compiler $ac_option >&5"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947 $as_echo "$ac_try_echo"; } >&5
2948   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2949   ac_status=$?
2950   if test -s conftest.err; then
2951     sed '10a\
2952 ... rest of stderr output deleted ...
2953          10q' conftest.err >conftest.er1
2954     cat conftest.er1 >&5
2955     rm -f conftest.er1 conftest.err
2956   fi
2957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958   test $ac_status = 0; }
2959 done
2960
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h.  */
2963
2964 int
2965 main ()
2966 {
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 ac_clean_files_save=$ac_clean_files
2973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2974 # Try to create an executable without -o first, disregard a.out.
2975 # It will help us diagnose broken compilers, and finding out an intuition
2976 # of exeext.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2978 $as_echo_n "checking for C compiler default output file name... " >&6; }
2979 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980
2981 # The possible output files:
2982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983
2984 ac_rmfiles=
2985 for ac_file in $ac_files
2986 do
2987   case $ac_file in
2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990   esac
2991 done
2992 rm -f $ac_rmfiles
2993
2994 if { { ac_try="$ac_link_default"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001   (eval "$ac_link_default") 2>&5
3002   ac_status=$?
3003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004   test $ac_status = 0; }; then :
3005   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3007 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3008 # so that the user can short-circuit this test for compilers unknown to
3009 # Autoconf.
3010 for ac_file in $ac_files ''
3011 do
3012   test -f "$ac_file" || continue
3013   case $ac_file in
3014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015         ;;
3016     [ab].out )
3017         # We found the default executable, but exeext='' is most
3018         # certainly right.
3019         break;;
3020     *.* )
3021         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3022         then :; else
3023            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024         fi
3025         # We set ac_cv_exeext here because the later test for it is not
3026         # safe: cross compilers may not add the suffix if given an `-o'
3027         # argument, so we may need to know it at that point already.
3028         # Even if this section looks crufty: it has the advantage of
3029         # actually working.
3030         break;;
3031     * )
3032         break;;
3033   esac
3034 done
3035 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036
3037 else
3038   ac_file=''
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041 $as_echo "$ac_file" >&6; }
3042 if test -z "$ac_file"; then :
3043   $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 { as_fn_set_status 77
3049 as_fn_error "C compiler cannot create executables
3050 See \`config.log' for more details." "$LINENO" 5; }; }
3051 fi
3052 ac_exeext=$ac_cv_exeext
3053
3054 # Check that the compiler produces executables we can run.  If not, either
3055 # the compiler is broken, or we cross compile.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057 $as_echo_n "checking whether the C compiler works... " >&6; }
3058 # If not cross compiling, check that we can run a simple program.
3059 if test "$cross_compiling" != yes; then
3060   if { ac_try='./$ac_file'
3061   { { case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070   test $ac_status = 0; }; }; then
3071     cross_compiling=no
3072   else
3073     if test "$cross_compiling" = maybe; then
3074         cross_compiling=yes
3075     else
3076         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error "cannot run C compiled programs.
3079 If you meant to cross compile, use \`--host'.
3080 See \`config.log' for more details." "$LINENO" 5; }
3081     fi
3082   fi
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086
3087 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3088 ac_clean_files=$ac_clean_files_save
3089 # Check that the compiler produces executables we can run.  If not, either
3090 # the compiler is broken, or we cross compile.
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3092 $as_echo_n "checking whether we are cross compiling... " >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3094 $as_echo "$cross_compiling" >&6; }
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3097 $as_echo_n "checking for suffix of executables... " >&6; }
3098 if { { ac_try="$ac_link"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105   (eval "$ac_link") 2>&5
3106   ac_status=$?
3107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108   test $ac_status = 0; }; then :
3109   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 # `rm'.
3113 for ac_file in conftest.exe conftest conftest.*; do
3114   test -f "$ac_file" || continue
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118           break;;
3119     * ) break;;
3120   esac
3121 done
3122 else
3123   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error "cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details." "$LINENO" 5; }
3127 fi
3128 rm -f conftest$ac_cv_exeext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3131
3132 rm -f conftest.$ac_ext
3133 EXEEXT=$ac_cv_exeext
3134 ac_exeext=$EXEEXT
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3136 $as_echo_n "checking for suffix of object files... " >&6; }
3137 if test "${ac_cv_objext+set}" = set; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.o conftest.obj
3152 if { { ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159   (eval "$ac_compile") 2>&5
3160   ac_status=$?
3161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162   test $ac_status = 0; }; then :
3163   for ac_file in conftest.o conftest.obj conftest.*; do
3164   test -f "$ac_file" || continue;
3165   case $ac_file in
3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3167     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3168        break;;
3169   esac
3170 done
3171 else
3172   $as_echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error "cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details." "$LINENO" 5; }
3179 fi
3180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3183 $as_echo "$ac_cv_objext" >&6; }
3184 OBJEXT=$ac_cv_objext
3185 ac_objext=$OBJEXT
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3188 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197 #ifndef __GNUC__
3198        choke me
3199 #endif
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206   ac_compiler_gnu=yes
3207 else
3208   ac_compiler_gnu=no
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3216 if test $ac_compiler_gnu = yes; then
3217   GCC=yes
3218 else
3219   GCC=
3220 fi
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   ac_save_c_werror_flag=$ac_c_werror_flag
3229    ac_c_werror_flag=yes
3230    ac_cv_prog_cc_g=no
3231    CFLAGS="-g"
3232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244   ac_cv_prog_cc_g=yes
3245 else
3246   CFLAGS=""
3247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259
3260 else
3261   ac_c_werror_flag=$ac_save_c_werror_flag
3262          CFLAGS="-g"
3263          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275   ac_cv_prog_cc_g=yes
3276 fi
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282    ac_c_werror_flag=$ac_save_c_werror_flag
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3285 $as_echo "$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
3287   CFLAGS=$ac_save_CFLAGS
3288 elif test $ac_cv_prog_cc_g = yes; then
3289   if test "$GCC" = yes; then
3290     CFLAGS="-g -O2"
3291   else
3292     CFLAGS="-g"
3293   fi
3294 else
3295   if test "$GCC" = yes; then
3296     CFLAGS="-O2"
3297   else
3298     CFLAGS=
3299   fi
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3303 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   ac_cv_prog_cc_c89=no
3307 ac_save_CC=$CC
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310 #include <stdarg.h>
3311 #include <stdio.h>
3312 #include <sys/types.h>
3313 #include <sys/stat.h>
3314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3315 struct buf { int x; };
3316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3317 static char *e (p, i)
3318      char **p;
3319      int i;
3320 {
3321   return p[i];
3322 }
3323 static char *f (char * (*g) (char **, int), char **p, ...)
3324 {
3325   char *s;
3326   va_list v;
3327   va_start (v,p);
3328   s = g (p, va_arg (v,int));
3329   va_end (v);
3330   return s;
3331 }
3332
3333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3334    function prototypes and stuff, but not '\xHH' hex character constants.
3335    These don't provoke an error unfortunately, instead are silently treated
3336    as 'x'.  The following induces an error, until -std is added to get
3337    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3338    array size at least.  It's necessary to write '\x00'==0 to get something
3339    that's true only with -std.  */
3340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341
3342 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3343    inside strings and character constants.  */
3344 #define FOO(x) 'x'
3345 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346
3347 int test (int i, double x);
3348 struct s1 {int (*f) (int a);};
3349 struct s2 {int (*f) (double a);};
3350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 int argc;
3352 char **argv;
3353 int
3354 main ()
3355 {
3356 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3362         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 do
3364   CC="$ac_save_CC $ac_arg"
3365   if ac_fn_c_try_compile "$LINENO"; then :
3366   ac_cv_prog_cc_c89=$ac_arg
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext
3369   test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 done
3371 rm -f conftest.$ac_ext
3372 CC=$ac_save_CC
3373
3374 fi
3375 # AC_CACHE_VAL
3376 case "x$ac_cv_prog_cc_c89" in
3377   x)
3378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3379 $as_echo "none needed" >&6; } ;;
3380   xno)
3381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3382 $as_echo "unsupported" >&6; } ;;
3383   *)
3384     CC="$CC $ac_cv_prog_cc_c89"
3385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3386 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3387 esac
3388 if test "x$ac_cv_prog_cc_c89" != xno; then :
3389
3390 fi
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3408   CPP=
3409 fi
3410 if test -z "$CPP"; then
3411   if test "${ac_cv_prog_CPP+set}" = set; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414       # Double quotes because CPP needs to be expanded
3415     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416     do
3417       ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420   # Use a header file that comes with gcc, so configuring glibc
3421   # with a fresh cross-compiler works.
3422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423   # <limits.h> exists even on freestanding compilers.
3424   # On the NeXT, cc -E runs the code through the compiler's parser,
3425   # not just through cpp. "Syntax error" is here to catch this case.
3426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428 #ifdef __STDC__
3429 # include <limits.h>
3430 #else
3431 # include <assert.h>
3432 #endif
3433                      Syntax error
3434 _ACEOF
3435 if ac_fn_c_try_cpp "$LINENO"; then :
3436
3437 else
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441 rm -f conftest.err conftest.$ac_ext
3442
3443   # OK, works on sane cases.  Now check whether nonexistent headers
3444   # can be detected and how.
3445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3450   # Broken: success on invalid input.
3451 continue
3452 else
3453   # Passes both tests.
3454 ac_preproc_ok=:
3455 break
3456 fi
3457 rm -f conftest.err conftest.$ac_ext
3458
3459 done
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then :
3463   break
3464 fi
3465
3466     done
3467     ac_cv_prog_CPP=$CPP
3468
3469 fi
3470   CPP=$ac_cv_prog_CPP
3471 else
3472   ac_cv_prog_CPP=$CPP
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3475 $as_echo "$CPP" >&6; }
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3478 do
3479   # Use a header file that comes with gcc, so configuring glibc
3480   # with a fresh cross-compiler works.
3481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482   # <limits.h> exists even on freestanding compilers.
3483   # On the NeXT, cc -E runs the code through the compiler's parser,
3484   # not just through cpp. "Syntax error" is here to catch this case.
3485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492                      Syntax error
3493 _ACEOF
3494 if ac_fn_c_try_cpp "$LINENO"; then :
3495
3496 else
3497   # Broken: fails on valid input.
3498 continue
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501
3502   # OK, works on sane cases.  Now check whether nonexistent headers
3503   # can be detected and how.
3504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509   # Broken: success on invalid input.
3510 continue
3511 else
3512   # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516 rm -f conftest.err conftest.$ac_ext
3517
3518 done
3519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520 rm -f conftest.err conftest.$ac_ext
3521 if $ac_preproc_ok; then :
3522
3523 else
3524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details." "$LINENO" 5; }
3528 fi
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3538 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3539 if test "${ac_cv_path_GREP+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -z "$GREP"; then
3543   ac_path_GREP_found=false
3544   # Loop through the user's path and test for each of PROGNAME-LIST
3545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_prog in grep ggrep; do
3551     for ac_exec_ext in '' $ac_executable_extensions; do
3552       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3553       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3554 # Check for GNU ac_path_GREP and select it if it is found.
3555   # Check for GNU $ac_path_GREP
3556 case `"$ac_path_GREP" --version 2>&1` in
3557 *GNU*)
3558   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559 *)
3560   ac_count=0
3561   $as_echo_n 0123456789 >"conftest.in"
3562   while :
3563   do
3564     cat "conftest.in" "conftest.in" >"conftest.tmp"
3565     mv "conftest.tmp" "conftest.in"
3566     cp "conftest.in" "conftest.nl"
3567     $as_echo 'GREP' >> "conftest.nl"
3568     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570     as_fn_arith $ac_count + 1 && ac_count=$as_val
3571     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572       # Best one so far, save it but keep looking for a better one
3573       ac_cv_path_GREP="$ac_path_GREP"
3574       ac_path_GREP_max=$ac_count
3575     fi
3576     # 10*(2^10) chars as input seems more than enough
3577     test $ac_count -gt 10 && break
3578   done
3579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 esac
3581
3582       $ac_path_GREP_found && break 3
3583     done
3584   done
3585   done
3586 IFS=$as_save_IFS
3587   if test -z "$ac_cv_path_GREP"; then
3588     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589   fi
3590 else
3591   ac_cv_path_GREP=$GREP
3592 fi
3593
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3596 $as_echo "$ac_cv_path_GREP" >&6; }
3597  GREP="$ac_cv_path_GREP"
3598
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3601 $as_echo_n "checking for egrep... " >&6; }
3602 if test "${ac_cv_path_EGREP+set}" = set; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3606    then ac_cv_path_EGREP="$GREP -E"
3607    else
3608      if test -z "$EGREP"; then
3609   ac_path_EGREP_found=false
3610   # Loop through the user's path and test for each of PROGNAME-LIST
3611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616     for ac_prog in egrep; do
3617     for ac_exec_ext in '' $ac_executable_extensions; do
3618       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3619       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3620 # Check for GNU ac_path_EGREP and select it if it is found.
3621   # Check for GNU $ac_path_EGREP
3622 case `"$ac_path_EGREP" --version 2>&1` in
3623 *GNU*)
3624   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3625 *)
3626   ac_count=0
3627   $as_echo_n 0123456789 >"conftest.in"
3628   while :
3629   do
3630     cat "conftest.in" "conftest.in" >"conftest.tmp"
3631     mv "conftest.tmp" "conftest.in"
3632     cp "conftest.in" "conftest.nl"
3633     $as_echo 'EGREP' >> "conftest.nl"
3634     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636     as_fn_arith $ac_count + 1 && ac_count=$as_val
3637     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3638       # Best one so far, save it but keep looking for a better one
3639       ac_cv_path_EGREP="$ac_path_EGREP"
3640       ac_path_EGREP_max=$ac_count
3641     fi
3642     # 10*(2^10) chars as input seems more than enough
3643     test $ac_count -gt 10 && break
3644   done
3645   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3646 esac
3647
3648       $ac_path_EGREP_found && break 3
3649     done
3650   done
3651   done
3652 IFS=$as_save_IFS
3653   if test -z "$ac_cv_path_EGREP"; then
3654     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3655   fi
3656 else
3657   ac_cv_path_EGREP=$EGREP
3658 fi
3659
3660    fi
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3663 $as_echo "$ac_cv_path_EGREP" >&6; }
3664  EGREP="$ac_cv_path_EGREP"
3665
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3668 $as_echo_n "checking for ANSI C header files... " >&6; }
3669 if test "${ac_cv_header_stdc+set}" = set; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #include <stdlib.h>
3675 #include <stdarg.h>
3676 #include <string.h>
3677 #include <float.h>
3678
3679 int
3680 main ()
3681 {
3682
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688   ac_cv_header_stdc=yes
3689 else
3690   ac_cv_header_stdc=no
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693
3694 if test $ac_cv_header_stdc = yes; then
3695   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698 #include <string.h>
3699
3700 _ACEOF
3701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702   $EGREP "memchr" >/dev/null 2>&1; then :
3703
3704 else
3705   ac_cv_header_stdc=no
3706 fi
3707 rm -f conftest*
3708
3709 fi
3710
3711 if test $ac_cv_header_stdc = yes; then
3712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715 #include <stdlib.h>
3716
3717 _ACEOF
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719   $EGREP "free" >/dev/null 2>&1; then :
3720
3721 else
3722   ac_cv_header_stdc=no
3723 fi
3724 rm -f conftest*
3725
3726 fi
3727
3728 if test $ac_cv_header_stdc = yes; then
3729   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3730   if test "$cross_compiling" = yes; then :
3731   :
3732 else
3733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735 #include <ctype.h>
3736 #include <stdlib.h>
3737 #if ((' ' & 0x0FF) == 0x020)
3738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3740 #else
3741 # define ISLOWER(c) \
3742                    (('a' <= (c) && (c) <= 'i') \
3743                      || ('j' <= (c) && (c) <= 'r') \
3744                      || ('s' <= (c) && (c) <= 'z'))
3745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3746 #endif
3747
3748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3749 int
3750 main ()
3751 {
3752   int i;
3753   for (i = 0; i < 256; i++)
3754     if (XOR (islower (i), ISLOWER (i))
3755         || toupper (i) != TOUPPER (i))
3756       return 2;
3757   return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_run "$LINENO"; then :
3761
3762 else
3763   ac_cv_header_stdc=no
3764 fi
3765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3766   conftest.$ac_objext conftest.beam conftest.$ac_ext
3767 fi
3768
3769 fi
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3772 $as_echo "$ac_cv_header_stdc" >&6; }
3773 if test $ac_cv_header_stdc = yes; then
3774
3775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3776
3777 fi
3778
3779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3781                   inttypes.h stdint.h unistd.h
3782 do :
3783   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3785 "
3786 eval as_val=\$$as_ac_Header
3787    if test "x$as_val" = x""yes; then :
3788   cat >>confdefs.h <<_ACEOF
3789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790 _ACEOF
3791
3792 fi
3793
3794 done
3795
3796
3797
3798   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3799 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3800   MINIX=yes
3801 else
3802   MINIX=
3803 fi
3804
3805
3806   if test "$MINIX" = yes; then
3807
3808 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3809
3810
3811 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3812
3813
3814 $as_echo "#define _MINIX 1" >>confdefs.h
3815
3816   fi
3817
3818
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3820 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3821 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 #         define __EXTENSIONS__ 1
3828           $ac_includes_default
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838   ac_cv_safe_to_define___extensions__=yes
3839 else
3840   ac_cv_safe_to_define___extensions__=no
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3845 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3846   test $ac_cv_safe_to_define___extensions__ = yes &&
3847     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3848
3849   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3850
3851   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3852
3853   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854
3855   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3856
3857
3858
3859 libtool_VERSION=1:0:0
3860
3861
3862 # 1.11.1: Require that version of automake.
3863 # foreign: Don't require README, INSTALL, NEWS, etc.
3864 # no-define: Don't define PACKAGE and VERSION.
3865 # no-dependencies: Don't generate automatic dependencies.
3866 #    (because it breaks when using bootstrap-lean, since some of the
3867 #    headers are gone at "make install" time).
3868 # -Wall: Issue all automake warnings.
3869 # -Wno-portability: Don't warn about constructs supported by GNU make.
3870 #    (because GCC requires GNU make anyhow).
3871 am__api_version='1.11'
3872
3873 # Find a good install program.  We prefer a C program (faster),
3874 # so one script is as good as another.  But avoid the broken or
3875 # incompatible versions:
3876 # SysV /etc/install, /usr/sbin/install
3877 # SunOS /usr/etc/install
3878 # IRIX /sbin/install
3879 # AIX /bin/install
3880 # AmigaOS /C/install, which installs bootblocks on floppy discs
3881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3884 # OS/2's system install, which has a completely different semantic
3885 # ./install, which can be erroneously created by make from ./install.sh.
3886 # Reject install programs that cannot install multiple files.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3888 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3889 if test -z "$INSTALL"; then
3890 if test "${ac_cv_path_install+set}" = set; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     # Account for people who put trailing slashes in PATH elements.
3899 case $as_dir/ in #((
3900   ./ | .// | /[cC]/* | \
3901   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3902   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3903   /usr/ucb/* ) ;;
3904   *)
3905     # OSF1 and SCO ODT 3.0 have their own names for install.
3906     # Don't use installbsd from OSF since it installs stuff as root
3907     # by default.
3908     for ac_prog in ginstall scoinst install; do
3909       for ac_exec_ext in '' $ac_executable_extensions; do
3910         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3911           if test $ac_prog = install &&
3912             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3913             # AIX install.  It has an incompatible calling convention.
3914             :
3915           elif test $ac_prog = install &&
3916             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917             # program-specific install script used by HP pwplus--don't use.
3918             :
3919           else
3920             rm -rf conftest.one conftest.two conftest.dir
3921             echo one > conftest.one
3922             echo two > conftest.two
3923             mkdir conftest.dir
3924             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3925               test -s conftest.one && test -s conftest.two &&
3926               test -s conftest.dir/conftest.one &&
3927               test -s conftest.dir/conftest.two
3928             then
3929               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3930               break 3
3931             fi
3932           fi
3933         fi
3934       done
3935     done
3936     ;;
3937 esac
3938
3939   done
3940 IFS=$as_save_IFS
3941
3942 rm -rf conftest.one conftest.two conftest.dir
3943
3944 fi
3945   if test "${ac_cv_path_install+set}" = set; then
3946     INSTALL=$ac_cv_path_install
3947   else
3948     # As a last resort, use the slow shell script.  Don't cache a
3949     # value for INSTALL within a source directory, because that will
3950     # break other packages using the cache if that directory is
3951     # removed, or if the value is a relative name.
3952     INSTALL=$ac_install_sh
3953   fi
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3956 $as_echo "$INSTALL" >&6; }
3957
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3967 $as_echo_n "checking whether build environment is sane... " >&6; }
3968 # Just in case
3969 sleep 1
3970 echo timestamp > conftest.file
3971 # Reject unsafe characters in $srcdir or the absolute working directory
3972 # name.  Accept space and tab only in the latter.
3973 am_lf='
3974 '
3975 case `pwd` in
3976   *[\\\"\#\$\&\'\`$am_lf]*)
3977     as_fn_error "unsafe absolute working directory name: \``pwd`'" "$LINENO" 5;;
3978 esac
3979 case $srcdir in
3980   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3981     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3982 esac
3983
3984 # Do `set' in a subshell so we don't clobber the current shell's
3985 # arguments.  Must try -L first in case configure is actually a
3986 # symlink; some systems play weird games with the mod time of symlinks
3987 # (eg FreeBSD returns the mod time of the symlink's containing
3988 # directory).
3989 if (
3990    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3991    if test "$*" = "X"; then
3992       # -L didn't work.
3993       set X `ls -t "$srcdir/configure" conftest.file`
3994    fi
3995    rm -f conftest.file
3996    if test "$*" != "X $srcdir/configure conftest.file" \
3997       && test "$*" != "X conftest.file $srcdir/configure"; then
3998
3999       # If neither matched, then we have a broken ls.  This can happen
4000       # if, for instance, CONFIG_SHELL is bash and it inherits a
4001       # broken ls alias from the environment.  This has actually
4002       # happened.  Such a system could not be considered "sane".
4003       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4004 alias in your environment" "$LINENO" 5
4005    fi
4006
4007    test "$2" = conftest.file
4008    )
4009 then
4010    # Ok.
4011    :
4012 else
4013    as_fn_error "newly created file is older than distributed files!
4014 Check your system clock" "$LINENO" 5
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017 $as_echo "yes" >&6; }
4018 test "$program_prefix" != NONE &&
4019   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4020 # Use a double $ so make ignores it.
4021 test "$program_suffix" != NONE &&
4022   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4023 # Double any \ or $.
4024 # By default was `s,x,x', remove it if useless.
4025 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4026 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4027
4028 # expand $ac_aux_dir to an absolute path
4029 am_aux_dir=`cd $ac_aux_dir && pwd`
4030
4031 if test x"${MISSING+set}" != xset; then
4032   case $am_aux_dir in
4033   *\ * | *\     *)
4034     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4035   *)
4036     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4037   esac
4038 fi
4039 # Use eval to expand $SHELL
4040 if eval "$MISSING --run true"; then
4041   am_missing_run="$MISSING --run "
4042 else
4043   am_missing_run=
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4045 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4046 fi
4047
4048 if test x"${install_sh}" != xset; then
4049   case $am_aux_dir in
4050   *\ * | *\     *)
4051     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4052   *)
4053     install_sh="\${SHELL} $am_aux_dir/install-sh"
4054   esac
4055 fi
4056
4057 # Installed binaries are usually stripped using `strip' when the user
4058 # run `make install-strip'.  However `strip' might not be the right
4059 # tool to use in cross-compilation environments, therefore Automake
4060 # will honor the `STRIP' environment variable to overrule this program.
4061 if test "$cross_compiling" != no; then
4062   if test -n "$ac_tool_prefix"; then
4063   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4064 set dummy ${ac_tool_prefix}strip; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if test "${ac_cv_prog_STRIP+set}" = set; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if test -n "$STRIP"; then
4071   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076   IFS=$as_save_IFS
4077   test -z "$as_dir" && as_dir=.
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082     break 2
4083   fi
4084 done
4085   done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 STRIP=$ac_cv_prog_STRIP
4091 if test -n "$STRIP"; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4093 $as_echo "$STRIP" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099
4100 fi
4101 if test -z "$ac_cv_prog_STRIP"; then
4102   ac_ct_STRIP=$STRIP
4103   # Extract the first word of "strip", so it can be a program name with args.
4104 set dummy strip; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -n "$ac_ct_STRIP"; then
4111   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     for ac_exec_ext in '' $ac_executable_extensions; do
4119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120     ac_cv_prog_ac_ct_STRIP="strip"
4121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125   done
4126 IFS=$as_save_IFS
4127
4128 fi
4129 fi
4130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4131 if test -n "$ac_ct_STRIP"; then
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4133 $as_echo "$ac_ct_STRIP" >&6; }
4134 else
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4137 fi
4138
4139   if test "x$ac_ct_STRIP" = x; then
4140     STRIP=":"
4141   else
4142     case $cross_compiling:$ac_tool_warned in
4143 yes:)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned=yes ;;
4147 esac
4148     STRIP=$ac_ct_STRIP
4149   fi
4150 else
4151   STRIP="$ac_cv_prog_STRIP"
4152 fi
4153
4154 fi
4155 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4158 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4159 if test -z "$MKDIR_P"; then
4160   if test "${ac_cv_path_mkdir+set}" = set; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168     for ac_prog in mkdir gmkdir; do
4169          for ac_exec_ext in '' $ac_executable_extensions; do
4170            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4171            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4172              'mkdir (GNU coreutils) '* | \
4173              'mkdir (coreutils) '* | \
4174              'mkdir (fileutils) '4.1*)
4175                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4176                break 3;;
4177            esac
4178          done
4179        done
4180   done
4181 IFS=$as_save_IFS
4182
4183 fi
4184
4185   if test "${ac_cv_path_mkdir+set}" = set; then
4186     MKDIR_P="$ac_cv_path_mkdir -p"
4187   else
4188     # As a last resort, use the slow shell script.  Don't cache a
4189     # value for MKDIR_P within a source directory, because that will
4190     # break other packages using the cache if that directory is
4191     # removed, or if the value is a relative name.
4192     test -d ./--version && rmdir ./--version
4193     MKDIR_P="$ac_install_sh -d"
4194   fi
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4197 $as_echo "$MKDIR_P" >&6; }
4198
4199 mkdir_p="$MKDIR_P"
4200 case $mkdir_p in
4201   [\\/$]* | ?:[\\/]*) ;;
4202   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4203 esac
4204
4205 for ac_prog in gawk mawk nawk awk
4206 do
4207   # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_AWK+set}" = set; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   if test -n "$AWK"; then
4215   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224     ac_cv_prog_AWK="$ac_prog"
4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229   done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 AWK=$ac_cv_prog_AWK
4235 if test -n "$AWK"; then
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4237 $as_echo "$AWK" >&6; }
4238 else
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244   test -n "$AWK" && break
4245 done
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4249 set x ${MAKE-make}
4250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   cat >conftest.make <<\_ACEOF
4255 SHELL = /bin/sh
4256 all:
4257         @echo '@@@%%%=$(MAKE)=@@@%%%'
4258 _ACEOF
4259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4261   *@@@%%%=?*=@@@%%%*)
4262     eval ac_cv_prog_make_${ac_make}_set=yes;;
4263   *)
4264     eval ac_cv_prog_make_${ac_make}_set=no;;
4265 esac
4266 rm -f conftest.make
4267 fi
4268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4270 $as_echo "yes" >&6; }
4271   SET_MAKE=
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275   SET_MAKE="MAKE=${MAKE-make}"
4276 fi
4277
4278 rm -rf .tst 2>/dev/null
4279 mkdir .tst 2>/dev/null
4280 if test -d .tst; then
4281   am__leading_dot=.
4282 else
4283   am__leading_dot=_
4284 fi
4285 rmdir .tst 2>/dev/null
4286
4287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4288   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4289   # is not polluted with repeated "-I."
4290   am__isrc=' -I$(srcdir)'
4291   # test to see if srcdir already configured
4292   if test -f $srcdir/config.status; then
4293     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4294   fi
4295 fi
4296
4297 # test whether we have cygpath
4298 if test -z "$CYGPATH_W"; then
4299   if (cygpath --version) >/dev/null 2>/dev/null; then
4300     CYGPATH_W='cygpath -w'
4301   else
4302     CYGPATH_W=echo
4303   fi
4304 fi
4305
4306
4307 # Define the identity of the package.
4308  PACKAGE='libbacktrace'
4309  VERSION='version-unused'
4310
4311
4312 # Some tools Automake needs.
4313
4314 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4315
4316
4317 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4318
4319
4320 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4321
4322
4323 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4324
4325
4326 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4327
4328 # We need awk for the "check" target.  The system "awk" is bad on
4329 # some platforms.
4330 # Always define AMTAR for backward compatibility.  Yes, it's still used
4331 # in the wild :-(  We should find a proper way to deprecate it ...
4332 AMTAR='$${TAR-tar}'
4333
4334 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4335
4336
4337
4338
4339
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4343 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4344     # Check whether --enable-maintainer-mode was given.
4345 if test "${enable_maintainer_mode+set}" = set; then :
4346   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4347 else
4348   USE_MAINTAINER_MODE=no
4349 fi
4350
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4352 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4353    if test $USE_MAINTAINER_MODE = yes; then
4354   MAINTAINER_MODE_TRUE=
4355   MAINTAINER_MODE_FALSE='#'
4356 else
4357   MAINTAINER_MODE_TRUE='#'
4358   MAINTAINER_MODE_FALSE=
4359 fi
4360
4361   MAINT=$MAINTAINER_MODE_TRUE
4362
4363
4364
4365
4366 # Check whether --with-target-subdir was given.
4367 if test "${with_target_subdir+set}" = set; then :
4368   withval=$with_target_subdir;
4369 fi
4370
4371
4372 # We must force CC to /not/ be precious variables; otherwise
4373 # the wrong, non-multilib-adjusted value will be used in multilibs.
4374 # As a side effect, we have to subst CFLAGS ourselves.
4375
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 if test -n "$ac_tool_prefix"; then
4383   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_CC+set}" = set; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   if test -n "$CC"; then
4391   ac_cv_prog_CC="$CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 CC=$ac_cv_prog_CC
4411 if test -n "$CC"; then
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4413 $as_echo "$CC" >&6; }
4414 else
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420 fi
4421 if test -z "$ac_cv_prog_CC"; then
4422   ac_ct_CC=$CC
4423   # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   if test -n "$ac_ct_CC"; then
4431   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_ac_ct_CC="gcc"
4441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445   done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451 if test -n "$ac_ct_CC"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4453 $as_echo "$ac_ct_CC" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459   if test "x$ac_ct_CC" = x; then
4460     CC=""
4461   else
4462     case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468     CC=$ac_ct_CC
4469   fi
4470 else
4471   CC="$ac_cv_prog_CC"
4472 fi
4473
4474 if test -z "$CC"; then
4475           if test -n "$ac_tool_prefix"; then
4476     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4477 set dummy ${ac_tool_prefix}cc; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_CC+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   if test -n "$CC"; then
4484   ac_cv_prog_CC="$CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491     for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_CC="${ac_tool_prefix}cc"
4494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498   done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 $as_echo "$CC" >&6; }
4507 else
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512
4513   fi
4514 fi
4515 if test -z "$CC"; then
4516   # Extract the first word of "cc", so it can be a program name with args.
4517 set dummy cc; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_prog_CC+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   if test -n "$CC"; then
4524   ac_cv_prog_CC="$CC" # Let the user override the test.
4525 else
4526   ac_prog_rejected=no
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532     for ac_exec_ext in '' $ac_executable_extensions; do
4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4535        ac_prog_rejected=yes
4536        continue
4537      fi
4538     ac_cv_prog_CC="cc"
4539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540     break 2
4541   fi
4542 done
4543   done
4544 IFS=$as_save_IFS
4545
4546 if test $ac_prog_rejected = yes; then
4547   # We found a bogon in the path, so make sure we never use it.
4548   set dummy $ac_cv_prog_CC
4549   shift
4550   if test $# != 0; then
4551     # We chose a different compiler from the bogus one.
4552     # However, it has the same basename, so the bogon will be chosen
4553     # first if we set CC to just the basename; use the full file name.
4554     shift
4555     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4556   fi
4557 fi
4558 fi
4559 fi
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570 fi
4571 if test -z "$CC"; then
4572   if test -n "$ac_tool_prefix"; then
4573   for ac_prog in cl.exe
4574   do
4575     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_CC+set}" = set; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   if test -n "$CC"; then
4583   ac_cv_prog_CC="$CC" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590     for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597   done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 CC=$ac_cv_prog_CC
4603 if test -n "$CC"; then
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4605 $as_echo "$CC" >&6; }
4606 else
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610
4611
4612     test -n "$CC" && break
4613   done
4614 fi
4615 if test -z "$CC"; then
4616   ac_ct_CC=$CC
4617   for ac_prog in cl.exe
4618 do
4619   # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy $ac_prog; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   if test -n "$ac_ct_CC"; then
4627   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_exec_ext in '' $ac_executable_extensions; do
4635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636     ac_cv_prog_ac_ct_CC="$ac_prog"
4637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641   done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4647 if test -n "$ac_ct_CC"; then
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4649 $as_echo "$ac_ct_CC" >&6; }
4650 else
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656   test -n "$ac_ct_CC" && break
4657 done
4658
4659   if test "x$ac_ct_CC" = x; then
4660     CC=""
4661   else
4662     case $cross_compiling:$ac_tool_warned in
4663 yes:)
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4666 ac_tool_warned=yes ;;
4667 esac
4668     CC=$ac_ct_CC
4669   fi
4670 fi
4671
4672 fi
4673
4674
4675 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error "no acceptable C compiler found in \$PATH
4678 See \`config.log' for more details." "$LINENO" 5; }
4679
4680 # Provide some information about the compiler.
4681 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4682 set X $ac_compile
4683 ac_compiler=$2
4684 for ac_option in --version -v -V -qversion; do
4685   { { ac_try="$ac_compiler $ac_option >&5"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691 $as_echo "$ac_try_echo"; } >&5
4692   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4693   ac_status=$?
4694   if test -s conftest.err; then
4695     sed '10a\
4696 ... rest of stderr output deleted ...
4697          10q' conftest.err >conftest.er1
4698     cat conftest.er1 >&5
4699     rm -f conftest.er1 conftest.err
4700   fi
4701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702   test $ac_status = 0; }
4703 done
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4707 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712
4713 int
4714 main ()
4715 {
4716 #ifndef __GNUC__
4717        choke me
4718 #endif
4719
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725   ac_compiler_gnu=yes
4726 else
4727   ac_compiler_gnu=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4731
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4735 if test $ac_compiler_gnu = yes; then
4736   GCC=yes
4737 else
4738   GCC=
4739 fi
4740 ac_test_CFLAGS=${CFLAGS+set}
4741 ac_save_CFLAGS=$CFLAGS
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4744 if test "${ac_cv_prog_cc_g+set}" = set; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   ac_save_c_werror_flag=$ac_c_werror_flag
4748    ac_c_werror_flag=yes
4749    ac_cv_prog_cc_g=no
4750    CFLAGS="-g"
4751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753
4754 int
4755 main ()
4756 {
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763   ac_cv_prog_cc_g=yes
4764 else
4765   CFLAGS=""
4766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768
4769 int
4770 main ()
4771 {
4772
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778
4779 else
4780   ac_c_werror_flag=$ac_save_c_werror_flag
4781          CFLAGS="-g"
4782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784
4785 int
4786 main ()
4787 {
4788
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794   ac_cv_prog_cc_g=yes
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801    ac_c_werror_flag=$ac_save_c_werror_flag
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4804 $as_echo "$ac_cv_prog_cc_g" >&6; }
4805 if test "$ac_test_CFLAGS" = set; then
4806   CFLAGS=$ac_save_CFLAGS
4807 elif test $ac_cv_prog_cc_g = yes; then
4808   if test "$GCC" = yes; then
4809     CFLAGS="-g -O2"
4810   else
4811     CFLAGS="-g"
4812   fi
4813 else
4814   if test "$GCC" = yes; then
4815     CFLAGS="-O2"
4816   else
4817     CFLAGS=
4818   fi
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4822 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   ac_cv_prog_cc_c89=no
4826 ac_save_CC=$CC
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829 #include <stdarg.h>
4830 #include <stdio.h>
4831 #include <sys/types.h>
4832 #include <sys/stat.h>
4833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4834 struct buf { int x; };
4835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4836 static char *e (p, i)
4837      char **p;
4838      int i;
4839 {
4840   return p[i];
4841 }
4842 static char *f (char * (*g) (char **, int), char **p, ...)
4843 {
4844   char *s;
4845   va_list v;
4846   va_start (v,p);
4847   s = g (p, va_arg (v,int));
4848   va_end (v);
4849   return s;
4850 }
4851
4852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4853    function prototypes and stuff, but not '\xHH' hex character constants.
4854    These don't provoke an error unfortunately, instead are silently treated
4855    as 'x'.  The following induces an error, until -std is added to get
4856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4857    array size at least.  It's necessary to write '\x00'==0 to get something
4858    that's true only with -std.  */
4859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4860
4861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4862    inside strings and character constants.  */
4863 #define FOO(x) 'x'
4864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4865
4866 int test (int i, double x);
4867 struct s1 {int (*f) (int a);};
4868 struct s2 {int (*f) (double a);};
4869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4870 int argc;
4871 char **argv;
4872 int
4873 main ()
4874 {
4875 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4881         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4882 do
4883   CC="$ac_save_CC $ac_arg"
4884   if ac_fn_c_try_compile "$LINENO"; then :
4885   ac_cv_prog_cc_c89=$ac_arg
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext
4888   test "x$ac_cv_prog_cc_c89" != "xno" && break
4889 done
4890 rm -f conftest.$ac_ext
4891 CC=$ac_save_CC
4892
4893 fi
4894 # AC_CACHE_VAL
4895 case "x$ac_cv_prog_cc_c89" in
4896   x)
4897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4898 $as_echo "none needed" >&6; } ;;
4899   xno)
4900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 $as_echo "unsupported" >&6; } ;;
4902   *)
4903     CC="$CC $ac_cv_prog_cc_c89"
4904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4906 esac
4907 if test "x$ac_cv_prog_cc_c89" != xno; then :
4908
4909 fi
4910
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917
4918
4919
4920
4921 if test -n "$ac_tool_prefix"; then
4922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -n "$RANLIB"; then
4930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 RANLIB=$ac_cv_prog_RANLIB
4950 if test -n "$RANLIB"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4952 $as_echo "$RANLIB" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959 fi
4960 if test -z "$ac_cv_prog_RANLIB"; then
4961   ac_ct_RANLIB=$RANLIB
4962   # Extract the first word of "ranlib", so it can be a program name with args.
4963 set dummy ranlib; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$ac_ct_RANLIB"; then
4970   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_ac_ct_RANLIB="ranlib"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4990 if test -n "$ac_ct_RANLIB"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4992 $as_echo "$ac_ct_RANLIB" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998   if test "x$ac_ct_RANLIB" = x; then
4999     RANLIB=":"
5000   else
5001     case $cross_compiling:$ac_tool_warned in
5002 yes:)
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005 ac_tool_warned=yes ;;
5006 esac
5007     RANLIB=$ac_ct_RANLIB
5008   fi
5009 else
5010   RANLIB="$ac_cv_prog_RANLIB"
5011 fi
5012
5013
5014 for ac_prog in gawk mawk nawk awk
5015 do
5016   # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_AWK+set}" = set; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   if test -n "$AWK"; then
5024   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033     ac_cv_prog_AWK="$ac_prog"
5034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038   done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 AWK=$ac_cv_prog_AWK
5044 if test -n "$AWK"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5046 $as_echo "$AWK" >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052
5053   test -n "$AWK" && break
5054 done
5055
5056 case "$AWK" in
5057 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5058 esac
5059
5060 case `pwd` in
5061   *\ * | *\     *)
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5063 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5064 esac
5065
5066
5067
5068 macro_version='2.2.7a'
5069 macro_revision='1.3134'
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 ltmain="$ac_aux_dir/ltmain.sh"
5084
5085 # Backslashify metacharacters that are still active within
5086 # double-quoted strings.
5087 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5088
5089 # Same as above, but do not quote variable references.
5090 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5091
5092 # Sed substitution to delay expansion of an escaped shell variable in a
5093 # double_quote_subst'ed string.
5094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5095
5096 # Sed substitution to delay expansion of an escaped single quote.
5097 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5098
5099 # Sed substitution to avoid accidental globbing in evaled expressions
5100 no_glob_subst='s/\*/\\\*/g'
5101
5102 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5103 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5107 $as_echo_n "checking how to print strings... " >&6; }
5108 # Test print first, because it will be a builtin if present.
5109 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5110    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5111   ECHO='print -r --'
5112 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5113   ECHO='printf %s\n'
5114 else
5115   # Use this function as a fallback that always works.
5116   func_fallback_echo ()
5117   {
5118     eval 'cat <<_LTECHO_EOF
5119 $1
5120 _LTECHO_EOF'
5121   }
5122   ECHO='func_fallback_echo'
5123 fi
5124
5125 # func_echo_all arg...
5126 # Invoke $ECHO with all args, space-separated.
5127 func_echo_all ()
5128 {
5129     $ECHO ""
5130 }
5131
5132 case "$ECHO" in
5133   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5134 $as_echo "printf" >&6; } ;;
5135   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5136 $as_echo "print -r" >&6; } ;;
5137   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5138 $as_echo "cat" >&6; } ;;
5139 esac
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5155 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5156 if test "${ac_cv_path_SED+set}" = set; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5160      for ac_i in 1 2 3 4 5 6 7; do
5161        ac_script="$ac_script$as_nl$ac_script"
5162      done
5163      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5164      { ac_script=; unset ac_script;}
5165      if test -z "$SED"; then
5166   ac_path_SED_found=false
5167   # Loop through the user's path and test for each of PROGNAME-LIST
5168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_prog in sed gsed; do
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5176       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5177 # Check for GNU ac_path_SED and select it if it is found.
5178   # Check for GNU $ac_path_SED
5179 case `"$ac_path_SED" --version 2>&1` in
5180 *GNU*)
5181   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5182 *)
5183   ac_count=0
5184   $as_echo_n 0123456789 >"conftest.in"
5185   while :
5186   do
5187     cat "conftest.in" "conftest.in" >"conftest.tmp"
5188     mv "conftest.tmp" "conftest.in"
5189     cp "conftest.in" "conftest.nl"
5190     $as_echo '' >> "conftest.nl"
5191     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193     as_fn_arith $ac_count + 1 && ac_count=$as_val
5194     if test $ac_count -gt ${ac_path_SED_max-0}; then
5195       # Best one so far, save it but keep looking for a better one
5196       ac_cv_path_SED="$ac_path_SED"
5197       ac_path_SED_max=$ac_count
5198     fi
5199     # 10*(2^10) chars as input seems more than enough
5200     test $ac_count -gt 10 && break
5201   done
5202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205       $ac_path_SED_found && break 3
5206     done
5207   done
5208   done
5209 IFS=$as_save_IFS
5210   if test -z "$ac_cv_path_SED"; then
5211     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5212   fi
5213 else
5214   ac_cv_path_SED=$SED
5215 fi
5216
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5219 $as_echo "$ac_cv_path_SED" >&6; }
5220  SED="$ac_cv_path_SED"
5221   rm -f conftest.sed
5222
5223 test -z "$SED" && SED=sed
5224 Xsed="$SED -e 1s/^X//"
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5237 $as_echo_n "checking for fgrep... " >&6; }
5238 if test "${ac_cv_path_FGREP+set}" = set; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5242    then ac_cv_path_FGREP="$GREP -F"
5243    else
5244      if test -z "$FGREP"; then
5245   ac_path_FGREP_found=false
5246   # Loop through the user's path and test for each of PROGNAME-LIST
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_prog in fgrep; do
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5255       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5256 # Check for GNU ac_path_FGREP and select it if it is found.
5257   # Check for GNU $ac_path_FGREP
5258 case `"$ac_path_FGREP" --version 2>&1` in
5259 *GNU*)
5260   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5261 *)
5262   ac_count=0
5263   $as_echo_n 0123456789 >"conftest.in"
5264   while :
5265   do
5266     cat "conftest.in" "conftest.in" >"conftest.tmp"
5267     mv "conftest.tmp" "conftest.in"
5268     cp "conftest.in" "conftest.nl"
5269     $as_echo 'FGREP' >> "conftest.nl"
5270     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272     as_fn_arith $ac_count + 1 && ac_count=$as_val
5273     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5274       # Best one so far, save it but keep looking for a better one
5275       ac_cv_path_FGREP="$ac_path_FGREP"
5276       ac_path_FGREP_max=$ac_count
5277     fi
5278     # 10*(2^10) chars as input seems more than enough
5279     test $ac_count -gt 10 && break
5280   done
5281   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5283
5284       $ac_path_FGREP_found && break 3
5285     done
5286   done
5287   done
5288 IFS=$as_save_IFS
5289   if test -z "$ac_cv_path_FGREP"; then
5290     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291   fi
5292 else
5293   ac_cv_path_FGREP=$FGREP
5294 fi
5295
5296    fi
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5299 $as_echo "$ac_cv_path_FGREP" >&6; }
5300  FGREP="$ac_cv_path_FGREP"
5301
5302
5303 test -z "$GREP" && GREP=grep
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 # Check whether --with-gnu-ld was given.
5324 if test "${with_gnu_ld+set}" = set; then :
5325   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5326 else
5327   with_gnu_ld=no
5328 fi
5329
5330 ac_prog=ld
5331 if test "$GCC" = yes; then
5332   # Check if gcc -print-prog-name=ld gives a path.
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5334 $as_echo_n "checking for ld used by $CC... " >&6; }
5335   case $host in
5336   *-*-mingw*)
5337     # gcc leaves a trailing carriage return which upsets mingw
5338     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5339   *)
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341   esac
5342   case $ac_prog in
5343     # Accept absolute paths.
5344     [\\/]* | ?:[\\/]*)
5345       re_direlt='/[^/][^/]*/\.\./'
5346       # Canonicalize the pathname of ld
5347       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5348       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5349         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5350       done
5351       test -z "$LD" && LD="$ac_prog"
5352       ;;
5353   "")
5354     # If it fails, then pretend we aren't using GCC.
5355     ac_prog=ld
5356     ;;
5357   *)
5358     # If it is relative, then search for the first ld in PATH.
5359     with_gnu_ld=unknown
5360     ;;
5361   esac
5362 elif test "$with_gnu_ld" = yes; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5364 $as_echo_n "checking for GNU ld... " >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5367 $as_echo_n "checking for non-GNU ld... " >&6; }
5368 fi
5369 if test "${lt_cv_path_LD+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if test -z "$LD"; then
5373   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374   for ac_dir in $PATH; do
5375     IFS="$lt_save_ifs"
5376     test -z "$ac_dir" && ac_dir=.
5377     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378       lt_cv_path_LD="$ac_dir/$ac_prog"
5379       # Check to see if the program is GNU ld.  I'd rather use --version,
5380       # but apparently some variants of GNU ld only accept -v.
5381       # Break only if it was the GNU/non-GNU ld that we prefer.
5382       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383       *GNU* | *'with BFD'*)
5384         test "$with_gnu_ld" != no && break
5385         ;;
5386       *)
5387         test "$with_gnu_ld" != yes && break
5388         ;;
5389       esac
5390     fi
5391   done
5392   IFS="$lt_save_ifs"
5393 else
5394   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5395 fi
5396 fi
5397
5398 LD="$lt_cv_path_LD"
5399 if test -n "$LD"; then
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5401 $as_echo "$LD" >&6; }
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5409 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5413 case `$LD -v 2>&1 </dev/null` in
5414 *GNU* | *'with BFD'*)
5415   lt_cv_prog_gnu_ld=yes
5416   ;;
5417 *)
5418   lt_cv_prog_gnu_ld=no
5419   ;;
5420 esac
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5423 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5424 with_gnu_ld=$lt_cv_prog_gnu_ld
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5435 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5436 if test "${lt_cv_path_NM+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test -n "$NM"; then
5440   # Let the user override the test.
5441   lt_cv_path_NM="$NM"
5442 else
5443   lt_nm_to_check="${ac_tool_prefix}nm"
5444   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5445     lt_nm_to_check="$lt_nm_to_check nm"
5446   fi
5447   for lt_tmp_nm in $lt_nm_to_check; do
5448     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5450       IFS="$lt_save_ifs"
5451       test -z "$ac_dir" && ac_dir=.
5452       tmp_nm="$ac_dir/$lt_tmp_nm"
5453       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454         # Check to see if the nm accepts a BSD-compat flag.
5455         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456         #   nm: unknown option "B" ignored
5457         # Tru64's nm complains that /dev/null is an invalid object file
5458         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459         */dev/null* | *'Invalid file or object type'*)
5460           lt_cv_path_NM="$tmp_nm -B"
5461           break
5462           ;;
5463         *)
5464           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465           */dev/null*)
5466             lt_cv_path_NM="$tmp_nm -p"
5467             break
5468             ;;
5469           *)
5470             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471             continue # so that we can try to find one that supports BSD flags
5472             ;;
5473           esac
5474           ;;
5475         esac
5476       fi
5477     done
5478     IFS="$lt_save_ifs"
5479   done
5480   : ${lt_cv_path_NM=no}
5481 fi
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5484 $as_echo "$lt_cv_path_NM" >&6; }
5485 if test "$lt_cv_path_NM" != "no"; then
5486   NM="$lt_cv_path_NM"
5487 else
5488   # Didn't find any BSD compatible name lister, look for dumpbin.
5489   if test -n "$DUMPBIN"; then :
5490     # Let the user override the test.
5491   else
5492     if test -n "$ac_tool_prefix"; then
5493   for ac_prog in dumpbin "link -dump"
5494   do
5495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5500   $as_echo_n "(cached) " >&6
5501 else
5502   if test -n "$DUMPBIN"; then
5503   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510     for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517   done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 DUMPBIN=$ac_cv_prog_DUMPBIN
5523 if test -n "$DUMPBIN"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525 $as_echo "$DUMPBIN" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532     test -n "$DUMPBIN" && break
5533   done
5534 fi
5535 if test -z "$DUMPBIN"; then
5536   ac_ct_DUMPBIN=$DUMPBIN
5537   for ac_prog in dumpbin "link -dump"
5538 do
5539   # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -n "$ac_ct_DUMPBIN"; then
5547   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554     for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561   done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5567 if test -n "$ac_ct_DUMPBIN"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5569 $as_echo "$ac_ct_DUMPBIN" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576   test -n "$ac_ct_DUMPBIN" && break
5577 done
5578
5579   if test "x$ac_ct_DUMPBIN" = x; then
5580     DUMPBIN=":"
5581   else
5582     case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588     DUMPBIN=$ac_ct_DUMPBIN
5589   fi
5590 fi
5591
5592     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5593     *COFF*)
5594       DUMPBIN="$DUMPBIN -symbols"
5595       ;;
5596     *)
5597       DUMPBIN=:
5598       ;;
5599     esac
5600   fi
5601
5602   if test "$DUMPBIN" != ":"; then
5603     NM="$DUMPBIN"
5604   fi
5605 fi
5606 test -z "$NM" && NM=nm
5607
5608
5609
5610
5611
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5614 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5615 if test "${lt_cv_nm_interface+set}" = set; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   lt_cv_nm_interface="BSD nm"
5619   echo "int some_variable = 0;" > conftest.$ac_ext
5620   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5621   (eval "$ac_compile" 2>conftest.err)
5622   cat conftest.err >&5
5623   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5624   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5625   cat conftest.err >&5
5626   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5627   cat conftest.out >&5
5628   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5629     lt_cv_nm_interface="MS dumpbin"
5630   fi
5631   rm -f conftest*
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5634 $as_echo "$lt_cv_nm_interface" >&6; }
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5637 $as_echo_n "checking whether ln -s works... " >&6; }
5638 LN_S=$as_ln_s
5639 if test "$LN_S" = "ln -s"; then
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5641 $as_echo "yes" >&6; }
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5644 $as_echo "no, using $LN_S" >&6; }
5645 fi
5646
5647 # find the maximum length of command line arguments
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5649 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5650 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653     i=0
5654   teststring="ABCD"
5655
5656   case $build_os in
5657   msdosdjgpp*)
5658     # On DJGPP, this test can blow up pretty badly due to problems in libc
5659     # (any single argument exceeding 2000 bytes causes a buffer overrun
5660     # during glob expansion).  Even if it were fixed, the result of this
5661     # check would be larger than it should be.
5662     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5663     ;;
5664
5665   gnu*)
5666     # Under GNU Hurd, this test is not required because there is
5667     # no limit to the length of command line arguments.
5668     # Libtool will interpret -1 as no limit whatsoever
5669     lt_cv_sys_max_cmd_len=-1;
5670     ;;
5671
5672   cygwin* | mingw* | cegcc*)
5673     # On Win9x/ME, this test blows up -- it succeeds, but takes
5674     # about 5 minutes as the teststring grows exponentially.
5675     # Worse, since 9x/ME are not pre-emptively multitasking,
5676     # you end up with a "frozen" computer, even though with patience
5677     # the test eventually succeeds (with a max line length of 256k).
5678     # Instead, let's just punt: use the minimum linelength reported by
5679     # all of the supported platforms: 8192 (on NT/2K/XP).
5680     lt_cv_sys_max_cmd_len=8192;
5681     ;;
5682
5683   mint*)
5684     # On MiNT this can take a long time and run out of memory.
5685     lt_cv_sys_max_cmd_len=8192;
5686     ;;
5687
5688   amigaos*)
5689     # On AmigaOS with pdksh, this test takes hours, literally.
5690     # So we just punt and use a minimum line length of 8192.
5691     lt_cv_sys_max_cmd_len=8192;
5692     ;;
5693
5694   netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
5695     # This has been around since 386BSD, at least.  Likely further.
5696     if test -x /sbin/sysctl; then
5697       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5698     elif test -x /usr/sbin/sysctl; then
5699       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5700     else
5701       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5702     fi
5703     # And add a safety zone
5704     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5705     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5706     ;;
5707
5708   interix*)
5709     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5710     lt_cv_sys_max_cmd_len=196608
5711     ;;
5712
5713   osf*)
5714     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5715     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5716     # nice to cause kernel panics so lets avoid the loop below.
5717     # First set a reasonable default.
5718     lt_cv_sys_max_cmd_len=16384
5719     #
5720     if test -x /sbin/sysconfig; then
5721       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5722         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5723       esac
5724     fi
5725     ;;
5726   sco3.2v5*)
5727     lt_cv_sys_max_cmd_len=102400
5728     ;;
5729   sysv5* | sco5v6* | sysv4.2uw2*)
5730     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5731     if test -n "$kargmax"; then
5732       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5733     else
5734       lt_cv_sys_max_cmd_len=32768
5735     fi
5736     ;;
5737   *)
5738     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5739     if test -n "$lt_cv_sys_max_cmd_len"; then
5740       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742     else
5743       # Make teststring a little bigger before we do anything with it.
5744       # a 1K string should be a reasonable start.
5745       for i in 1 2 3 4 5 6 7 8 ; do
5746         teststring=$teststring$teststring
5747       done
5748       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5749       # If test is not a shell built-in, we'll probably end up computing a
5750       # maximum length that is only half of the actual maximum length, but
5751       # we can't tell.
5752       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5753                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5754               test $i != 17 # 1/2 MB should be enough
5755       do
5756         i=`expr $i + 1`
5757         teststring=$teststring$teststring
5758       done
5759       # Only check the string length outside the loop.
5760       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5761       teststring=
5762       # Add a significant safety factor because C++ compilers can tack on
5763       # massive amounts of additional arguments before passing them to the
5764       # linker.  It appears as though 1/2 is a usable value.
5765       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766     fi
5767     ;;
5768   esac
5769
5770 fi
5771
5772 if test -n $lt_cv_sys_max_cmd_len ; then
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5774 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5775 else
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5777 $as_echo "none" >&6; }
5778 fi
5779 max_cmd_len=$lt_cv_sys_max_cmd_len
5780
5781
5782
5783
5784
5785
5786 : ${CP="cp -f"}
5787 : ${MV="mv -f"}
5788 : ${RM="rm -f"}
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5791 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5792 # Try some XSI features
5793 xsi_shell=no
5794 ( _lt_dummy="a/b/c"
5795   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5796       = c,a/b,, \
5797     && eval 'test $(( 1 + 1 )) -eq 2 \
5798     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5799   && xsi_shell=yes
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5801 $as_echo "$xsi_shell" >&6; }
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5805 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5806 lt_shell_append=no
5807 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5808     >/dev/null 2>&1 \
5809   && lt_shell_append=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5811 $as_echo "$lt_shell_append" >&6; }
5812
5813
5814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5815   lt_unset=unset
5816 else
5817   lt_unset=false
5818 fi
5819
5820
5821
5822
5823
5824 # test EBCDIC or ASCII
5825 case `echo X|tr X '\101'` in
5826  A) # ASCII based system
5827     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5828   lt_SP2NL='tr \040 \012'
5829   lt_NL2SP='tr \015\012 \040\040'
5830   ;;
5831  *) # EBCDIC based system
5832   lt_SP2NL='tr \100 \n'
5833   lt_NL2SP='tr \r\n \100\100'
5834   ;;
5835 esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5847 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   lt_cv_ld_reload_flag='-r'
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5854 reload_flag=$lt_cv_ld_reload_flag
5855 case $reload_flag in
5856 "" | " "*) ;;
5857 *) reload_flag=" $reload_flag" ;;
5858 esac
5859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860 case $host_os in
5861   darwin*)
5862     if test "$GCC" = yes; then
5863       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5864     else
5865       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5866     fi
5867     ;;
5868 esac
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878 if test -n "$ac_tool_prefix"; then
5879   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5880 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if test -n "$OBJDUMP"; then
5887   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 OBJDUMP=$ac_cv_prog_OBJDUMP
5907 if test -n "$OBJDUMP"; then
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5909 $as_echo "$OBJDUMP" >&6; }
5910 else
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916 fi
5917 if test -z "$ac_cv_prog_OBJDUMP"; then
5918   ac_ct_OBJDUMP=$OBJDUMP
5919   # Extract the first word of "objdump", so it can be a program name with args.
5920 set dummy objdump; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   if test -n "$ac_ct_OBJDUMP"; then
5927   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934     for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941   done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5947 if test -n "$ac_ct_OBJDUMP"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5949 $as_echo "$ac_ct_OBJDUMP" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954
5955   if test "x$ac_ct_OBJDUMP" = x; then
5956     OBJDUMP="false"
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964     OBJDUMP=$ac_ct_OBJDUMP
5965   fi
5966 else
5967   OBJDUMP="$ac_cv_prog_OBJDUMP"
5968 fi
5969
5970 test -z "$OBJDUMP" && OBJDUMP=objdump
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5981 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5982 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   lt_cv_file_magic_cmd='$MAGIC_CMD'
5986 lt_cv_file_magic_test_file=
5987 lt_cv_deplibs_check_method='unknown'
5988 # Need to set the preceding variable on all platforms that support
5989 # interlibrary dependencies.
5990 # 'none' -- dependencies not supported.
5991 # `unknown' -- same as none, but documents that we really don't know.
5992 # 'pass_all' -- all dependencies passed with no checks.
5993 # 'test_compile' -- check by making test program.
5994 # 'file_magic [[regex]]' -- check by looking for files in library path
5995 # which responds to the $file_magic_cmd with a given extended regex.
5996 # If you have `file' or equivalent on your system and you're not sure
5997 # whether `pass_all' will *always* work, you probably want this one.
5998
5999 case $host_os in
6000 aix[4-9]*)
6001   lt_cv_deplibs_check_method=pass_all
6002   ;;
6003
6004 beos*)
6005   lt_cv_deplibs_check_method=pass_all
6006   ;;
6007
6008 bsdi[45]*)
6009   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010   lt_cv_file_magic_cmd='/usr/bin/file -L'
6011   lt_cv_file_magic_test_file=/shlib/libc.so
6012   ;;
6013
6014 cygwin*)
6015   # func_win32_libid is a shell function defined in ltmain.sh
6016   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017   lt_cv_file_magic_cmd='func_win32_libid'
6018   ;;
6019
6020 mingw* | pw32*)
6021   # Base MSYS/MinGW do not provide the 'file' command needed by
6022   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023   # unless we find 'file', for example because we are cross-compiling.
6024   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6025   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6026     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027     lt_cv_file_magic_cmd='func_win32_libid'
6028   else
6029     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6030     lt_cv_file_magic_cmd='$OBJDUMP -f'
6031   fi
6032   ;;
6033
6034 cegcc*)
6035   # use the weaker test based on 'objdump'. See mingw*.
6036   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6037   lt_cv_file_magic_cmd='$OBJDUMP -f'
6038   ;;
6039
6040 darwin* | rhapsody*)
6041   lt_cv_deplibs_check_method=pass_all
6042   ;;
6043
6044 freebsd* | dragonfly*)
6045   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6046     case $host_cpu in
6047     i*86 )
6048       # Not sure whether the presence of OpenBSD here was a mistake.
6049       # Let's accept both of them until this is cleared up.
6050       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6051       lt_cv_file_magic_cmd=/usr/bin/file
6052       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6053       ;;
6054     esac
6055   else
6056     lt_cv_deplibs_check_method=pass_all
6057   fi
6058   ;;
6059
6060 gnu*)
6061   lt_cv_deplibs_check_method=pass_all
6062   ;;
6063
6064 haiku*)
6065   lt_cv_deplibs_check_method=pass_all
6066   ;;
6067
6068 hpux10.20* | hpux11*)
6069   lt_cv_file_magic_cmd=/usr/bin/file
6070   case $host_cpu in
6071   ia64*)
6072     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6073     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6074     ;;
6075   hppa*64*)
6076     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]'
6077     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6078     ;;
6079   *)
6080     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6081     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6082     ;;
6083   esac
6084   ;;
6085
6086 interix[3-9]*)
6087   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6088   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6089   ;;
6090
6091 irix5* | irix6* | nonstopux*)
6092   case $LD in
6093   *-32|*"-32 ") libmagic=32-bit;;
6094   *-n32|*"-n32 ") libmagic=N32;;
6095   *-64|*"-64 ") libmagic=64-bit;;
6096   *) libmagic=never-match;;
6097   esac
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 # This must be Linux ELF.
6102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6103   lt_cv_deplibs_check_method=pass_all
6104   ;;
6105
6106 netbsd*)
6107   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6109   else
6110     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6111   fi
6112   ;;
6113
6114 newos6*)
6115   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6116   lt_cv_file_magic_cmd=/usr/bin/file
6117   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6118   ;;
6119
6120 *nto* | *qnx*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 openbsd*)
6125   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6126     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6127   else
6128     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6129   fi
6130   ;;
6131
6132 osf3* | osf4* | osf5*)
6133   lt_cv_deplibs_check_method=pass_all
6134   ;;
6135
6136 rdos*)
6137   lt_cv_deplibs_check_method=pass_all
6138   ;;
6139
6140 solaris*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143
6144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6145   lt_cv_deplibs_check_method=pass_all
6146   ;;
6147
6148 sysv4 | sysv4.3*)
6149   case $host_vendor in
6150   motorola)
6151     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]'
6152     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6153     ;;
6154   ncr)
6155     lt_cv_deplibs_check_method=pass_all
6156     ;;
6157   sequent)
6158     lt_cv_file_magic_cmd='/bin/file'
6159     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160     ;;
6161   sni)
6162     lt_cv_file_magic_cmd='/bin/file'
6163     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6164     lt_cv_file_magic_test_file=/lib/libc.so
6165     ;;
6166   siemens)
6167     lt_cv_deplibs_check_method=pass_all
6168     ;;
6169   pc)
6170     lt_cv_deplibs_check_method=pass_all
6171     ;;
6172   esac
6173   ;;
6174
6175 tpf*)
6176   lt_cv_deplibs_check_method=pass_all
6177   ;;
6178 esac
6179
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6182 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6183 file_magic_cmd=$lt_cv_file_magic_cmd
6184 deplibs_check_method=$lt_cv_deplibs_check_method
6185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 if test -n "$ac_tool_prefix"; then
6199   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}ar; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if test "${ac_cv_prog_AR+set}" = set; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -n "$AR"; then
6207   ac_cv_prog_AR="$AR" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216     ac_cv_prog_AR="${ac_tool_prefix}ar"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 AR=$ac_cv_prog_AR
6227 if test -n "$AR"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229 $as_echo "$AR" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 fi
6237 if test -z "$ac_cv_prog_AR"; then
6238   ac_ct_AR=$AR
6239   # Extract the first word of "ar", so it can be a program name with args.
6240 set dummy ar; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6244   $as_echo_n "(cached) " >&6
6245 else
6246   if test -n "$ac_ct_AR"; then
6247   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254     for ac_exec_ext in '' $ac_executable_extensions; do
6255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256     ac_cv_prog_ac_ct_AR="ar"
6257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261   done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6267 if test -n "$ac_ct_AR"; then
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6269 $as_echo "$ac_ct_AR" >&6; }
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275   if test "x$ac_ct_AR" = x; then
6276     AR="false"
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     AR=$ac_ct_AR
6285   fi
6286 else
6287   AR="$ac_cv_prog_AR"
6288 fi
6289
6290 test -z "$AR" && AR=ar
6291 test -z "$AR_FLAGS" && AR_FLAGS=cru
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 if test -n "$ac_tool_prefix"; then
6304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}strip; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_STRIP+set}" = set; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$STRIP"; then
6312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 STRIP=$ac_cv_prog_STRIP
6332 if test -n "$STRIP"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6334 $as_echo "$STRIP" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_STRIP"; then
6343   ac_ct_STRIP=$STRIP
6344   # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$ac_ct_STRIP"; then
6352   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_ac_ct_STRIP="strip"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372 if test -n "$ac_ct_STRIP"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6374 $as_echo "$ac_ct_STRIP" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380   if test "x$ac_ct_STRIP" = x; then
6381     STRIP=":"
6382   else
6383     case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389     STRIP=$ac_ct_STRIP
6390   fi
6391 else
6392   STRIP="$ac_cv_prog_STRIP"
6393 fi
6394
6395 test -z "$STRIP" && STRIP=:
6396
6397
6398
6399
6400
6401
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$RANLIB"; then
6411   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 RANLIB=$ac_cv_prog_RANLIB
6431 if test -n "$RANLIB"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433 $as_echo "$RANLIB" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_RANLIB"; then
6442   ac_ct_RANLIB=$RANLIB
6443   # Extract the first word of "ranlib", so it can be a program name with args.
6444 set dummy ranlib; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_RANLIB"; then
6451   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_ac_ct_RANLIB="ranlib"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471 if test -n "$ac_ct_RANLIB"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473 $as_echo "$ac_ct_RANLIB" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_RANLIB" = x; then
6480     RANLIB=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     RANLIB=$ac_ct_RANLIB
6489   fi
6490 else
6491   RANLIB="$ac_cv_prog_RANLIB"
6492 fi
6493
6494 test -z "$RANLIB" && RANLIB=:
6495
6496
6497
6498
6499
6500
6501 # Determine commands to create old-style static archives.
6502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6503 old_postinstall_cmds='chmod 644 $oldlib'
6504 old_postuninstall_cmds=
6505
6506 if test -n "$RANLIB"; then
6507   case $host_os in
6508   openbsd*)
6509     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6510     ;;
6511   *)
6512     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513     ;;
6514   esac
6515   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6516 fi
6517
6518 case $host_os in
6519   darwin*)
6520     lock_old_archive_extraction=yes ;;
6521   *)
6522     lock_old_archive_extraction=no ;;
6523 esac
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 # If no C compiler was specified, use CC.
6564 LTCC=${LTCC-"$CC"}
6565
6566 # If no C compiler flags were specified, use CFLAGS.
6567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
6569 # Allow CC to be a program name with arguments.
6570 compiler=$CC
6571
6572
6573 # Check for command to grab the raw symbol name followed by C symbol from nm.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6576 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579
6580 # These are sane defaults that work on at least a few old systems.
6581 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6582
6583 # Character class describing NM global symbol codes.
6584 symcode='[BCDEGRST]'
6585
6586 # Regexp to match symbols that can be accessed directly from C.
6587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589 # Define system-specific variables.
6590 case $host_os in
6591 aix*)
6592   symcode='[BCDT]'
6593   ;;
6594 cygwin* | mingw* | pw32* | cegcc*)
6595   symcode='[ABCDGISTW]'
6596   ;;
6597 hpux*)
6598   if test "$host_cpu" = ia64; then
6599     symcode='[ABCDEGRST]'
6600   fi
6601   ;;
6602 irix* | nonstopux*)
6603   symcode='[BCDEGRST]'
6604   ;;
6605 osf*)
6606   symcode='[BCDEGQRST]'
6607   ;;
6608 solaris*)
6609   symcode='[BDRT]'
6610   ;;
6611 sco3.2v5*)
6612   symcode='[DT]'
6613   ;;
6614 sysv4.2uw2*)
6615   symcode='[DT]'
6616   ;;
6617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6618   symcode='[ABDT]'
6619   ;;
6620 sysv4)
6621   symcode='[DFNSTU]'
6622   ;;
6623 esac
6624
6625 # If we're using GNU nm, then use its standard symbol codes.
6626 case `$NM -V 2>&1` in
6627 *GNU* | *'with BFD'*)
6628   symcode='[ABCDGIRSTW]' ;;
6629 esac
6630
6631 # Transform an extracted symbol line into a proper C declaration.
6632 # Some systems (esp. on ia64) link data and code symbols differently,
6633 # so use this general approach.
6634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
6636 # Transform an extracted symbol line into symbol name and symbol address
6637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6638 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'"
6639
6640 # Handle CRLF in mingw tool chain
6641 opt_cr=
6642 case $build_os in
6643 mingw*)
6644   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645   ;;
6646 esac
6647
6648 # Try without a prefix underscore, then with it.
6649 for ac_symprfx in "" "_"; do
6650
6651   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6652   symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
6654   # Write the raw and C identifiers.
6655   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656     # Fake it for dumpbin and say T for any non-static function
6657     # and D for any global variable.
6658     # Also find C++ and __fastcall symbols from MSVC++,
6659     # which start with @ or ?.
6660     lt_cv_sys_global_symbol_pipe="$AWK '"\
6661 "     {last_section=section; section=\$ 3};"\
6662 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6663 "     \$ 0!~/External *\|/{next};"\
6664 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6665 "     {if(hide[section]) next};"\
6666 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6667 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6668 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6669 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6670 "     ' prfx=^$ac_symprfx"
6671   else
6672     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6673   fi
6674
6675   # Check to see that the pipe works correctly.
6676   pipe_works=no
6677
6678   rm -f conftest*
6679   cat > conftest.$ac_ext <<_LT_EOF
6680 #ifdef __cplusplus
6681 extern "C" {
6682 #endif
6683 char nm_test_var;
6684 void nm_test_func(void);
6685 void nm_test_func(void){}
6686 #ifdef __cplusplus
6687 }
6688 #endif
6689 int main(){nm_test_var='a';nm_test_func();return(0);}
6690 _LT_EOF
6691
6692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693   (eval $ac_compile) 2>&5
6694   ac_status=$?
6695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696   test $ac_status = 0; }; then
6697     # Now try to grab the symbols.
6698     nlist=conftest.nm
6699     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6700   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6701   ac_status=$?
6702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703   test $ac_status = 0; } && test -s "$nlist"; then
6704       # Try sorting and uniquifying the output.
6705       if sort "$nlist" | uniq > "$nlist"T; then
6706         mv -f "$nlist"T "$nlist"
6707       else
6708         rm -f "$nlist"T
6709       fi
6710
6711       # Make sure that we snagged all the symbols we need.
6712       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6713         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6714           cat <<_LT_EOF > conftest.$ac_ext
6715 #ifdef __cplusplus
6716 extern "C" {
6717 #endif
6718
6719 _LT_EOF
6720           # Now generate the symbol file.
6721           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6722
6723           cat <<_LT_EOF >> conftest.$ac_ext
6724
6725 /* The mapping between symbol names and symbols.  */
6726 const struct {
6727   const char *name;
6728   void       *address;
6729 }
6730 lt__PROGRAM__LTX_preloaded_symbols[] =
6731 {
6732   { "@PROGRAM@", (void *) 0 },
6733 _LT_EOF
6734           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6735           cat <<\_LT_EOF >> conftest.$ac_ext
6736   {0, (void *) 0}
6737 };
6738
6739 /* This works around a problem in FreeBSD linker */
6740 #ifdef FREEBSD_WORKAROUND
6741 static const void *lt_preloaded_setup() {
6742   return lt__PROGRAM__LTX_preloaded_symbols;
6743 }
6744 #endif
6745
6746 #ifdef __cplusplus
6747 }
6748 #endif
6749 _LT_EOF
6750           # Now try linking the two files.
6751           mv conftest.$ac_objext conftstm.$ac_objext
6752           lt_save_LIBS="$LIBS"
6753           lt_save_CFLAGS="$CFLAGS"
6754           LIBS="conftstm.$ac_objext"
6755           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6756           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6757   (eval $ac_link) 2>&5
6758   ac_status=$?
6759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6761             pipe_works=yes
6762           fi
6763           LIBS="$lt_save_LIBS"
6764           CFLAGS="$lt_save_CFLAGS"
6765         else
6766           echo "cannot find nm_test_func in $nlist" >&5
6767         fi
6768       else
6769         echo "cannot find nm_test_var in $nlist" >&5
6770       fi
6771     else
6772       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6773     fi
6774   else
6775     echo "$progname: failed program was:" >&5
6776     cat conftest.$ac_ext >&5
6777   fi
6778   rm -rf conftest* conftst*
6779
6780   # Do not use the global_symbol_pipe unless it works.
6781   if test "$pipe_works" = yes; then
6782     break
6783   else
6784     lt_cv_sys_global_symbol_pipe=
6785   fi
6786 done
6787
6788 fi
6789
6790 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6791   lt_cv_sys_global_symbol_to_cdecl=
6792 fi
6793 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6795 $as_echo "failed" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6798 $as_echo "ok" >&6; }
6799 fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 # Check whether --enable-libtool-lock was given.
6823 if test "${enable_libtool_lock+set}" = set; then :
6824   enableval=$enable_libtool_lock;
6825 fi
6826
6827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6828
6829 # Some flags need to be propagated to the compiler or linker for good
6830 # libtool support.
6831 case $host in
6832 ia64-*-hpux*)
6833   # Find out which ABI we are using.
6834   echo 'int i;' > conftest.$ac_ext
6835   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6836   (eval $ac_compile) 2>&5
6837   ac_status=$?
6838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839   test $ac_status = 0; }; then
6840     case `/usr/bin/file conftest.$ac_objext` in
6841       *ELF-32*)
6842         HPUX_IA64_MODE="32"
6843         ;;
6844       *ELF-64*)
6845         HPUX_IA64_MODE="64"
6846         ;;
6847     esac
6848   fi
6849   rm -rf conftest*
6850   ;;
6851 *-*-irix6*)
6852   # Find out which ABI we are using.
6853   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855   (eval $ac_compile) 2>&5
6856   ac_status=$?
6857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858   test $ac_status = 0; }; then
6859     if test "$lt_cv_prog_gnu_ld" = yes; then
6860       case `/usr/bin/file conftest.$ac_objext` in
6861         *32-bit*)
6862           LD="${LD-ld} -melf32bsmip"
6863           ;;
6864         *N32*)
6865           LD="${LD-ld} -melf32bmipn32"
6866           ;;
6867         *64-bit*)
6868           LD="${LD-ld} -melf64bmip"
6869         ;;
6870       esac
6871     else
6872       case `/usr/bin/file conftest.$ac_objext` in
6873         *32-bit*)
6874           LD="${LD-ld} -32"
6875           ;;
6876         *N32*)
6877           LD="${LD-ld} -n32"
6878           ;;
6879         *64-bit*)
6880           LD="${LD-ld} -64"
6881           ;;
6882       esac
6883     fi
6884   fi
6885   rm -rf conftest*
6886   ;;
6887
6888 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6889 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6890   # Find out which ABI we are using.
6891   echo 'int i;' > conftest.$ac_ext
6892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893   (eval $ac_compile) 2>&5
6894   ac_status=$?
6895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896   test $ac_status = 0; }; then
6897     case `/usr/bin/file conftest.o` in
6898       *32-bit*)
6899         case $host in
6900           x86_64-*kfreebsd*-gnu)
6901             LD="${LD-ld} -m elf_i386_fbsd"
6902             ;;
6903           x86_64-*linux*)
6904             case `/usr/bin/file conftest.o` in
6905               *x86-64*)
6906                 LD="${LD-ld} -m elf32_x86_64"
6907                 ;;
6908               *)
6909                 LD="${LD-ld} -m elf_i386"
6910                 ;;
6911             esac
6912             ;;
6913           powerpc64le-*linux*)
6914             LD="${LD-ld} -m elf32lppclinux"
6915             ;;
6916           powerpc64-*linux*)
6917             LD="${LD-ld} -m elf32ppclinux"
6918             ;;
6919           s390x-*linux*)
6920             LD="${LD-ld} -m elf_s390"
6921             ;;
6922           sparc64-*linux*)
6923             LD="${LD-ld} -m elf32_sparc"
6924             ;;
6925         esac
6926         ;;
6927       *64-bit*)
6928         case $host in
6929           x86_64-*kfreebsd*-gnu)
6930             LD="${LD-ld} -m elf_x86_64_fbsd"
6931             ;;
6932           x86_64-*linux*)
6933             LD="${LD-ld} -m elf_x86_64"
6934             ;;
6935           powerpcle-*linux*)
6936             LD="${LD-ld} -m elf64lppc"
6937             ;;
6938           powerpc-*linux*)
6939             LD="${LD-ld} -m elf64ppc"
6940             ;;
6941           s390*-*linux*|s390*-*tpf*)
6942             LD="${LD-ld} -m elf64_s390"
6943             ;;
6944           sparc*-*linux*)
6945             LD="${LD-ld} -m elf64_sparc"
6946             ;;
6947         esac
6948         ;;
6949     esac
6950   fi
6951   rm -rf conftest*
6952   ;;
6953
6954 *-*-sco3.2v5*)
6955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956   SAVE_CFLAGS="$CFLAGS"
6957   CFLAGS="$CFLAGS -belf"
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6960 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971
6972 int
6973 main ()
6974 {
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981   lt_cv_cc_needs_belf=yes
6982 else
6983   lt_cv_cc_needs_belf=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext \
6986     conftest$ac_exeext conftest.$ac_ext
6987      ac_ext=c
6988 ac_cpp='$CPP $CPPFLAGS'
6989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6995 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6996   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6997     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6998     CFLAGS="$SAVE_CFLAGS"
6999   fi
7000   ;;
7001 sparc*-*solaris*)
7002   # Find out which ABI we are using.
7003   echo 'int i;' > conftest.$ac_ext
7004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; }; then
7009     case `/usr/bin/file conftest.o` in
7010     *64-bit*)
7011       case $lt_cv_prog_gnu_ld in
7012       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7013       *)
7014         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7015           LD="${LD-ld} -64"
7016         fi
7017         ;;
7018       esac
7019       ;;
7020     esac
7021   fi
7022   rm -rf conftest*
7023   ;;
7024 esac
7025
7026 need_locks="$enable_libtool_lock"
7027
7028
7029   case $host_os in
7030     rhapsody* | darwin*)
7031     if test -n "$ac_tool_prefix"; then
7032   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7033 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   if test -n "$DSYMUTIL"; then
7040   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047     for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054   done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7060 if test -n "$DSYMUTIL"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7062 $as_echo "$DSYMUTIL" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068
7069 fi
7070 if test -z "$ac_cv_prog_DSYMUTIL"; then
7071   ac_ct_DSYMUTIL=$DSYMUTIL
7072   # Extract the first word of "dsymutil", so it can be a program name with args.
7073 set dummy dsymutil; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   if test -n "$ac_ct_DSYMUTIL"; then
7080   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   test -z "$as_dir" && as_dir=.
7087     for ac_exec_ext in '' $ac_executable_extensions; do
7088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091     break 2
7092   fi
7093 done
7094   done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7100 if test -n "$ac_ct_DSYMUTIL"; then
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7102 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7103 else
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108   if test "x$ac_ct_DSYMUTIL" = x; then
7109     DSYMUTIL=":"
7110   else
7111     case $cross_compiling:$ac_tool_warned in
7112 yes:)
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115 ac_tool_warned=yes ;;
7116 esac
7117     DSYMUTIL=$ac_ct_DSYMUTIL
7118   fi
7119 else
7120   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7121 fi
7122
7123     if test -n "$ac_tool_prefix"; then
7124   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -n "$NMEDIT"; then
7132   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139     for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146   done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 NMEDIT=$ac_cv_prog_NMEDIT
7152 if test -n "$NMEDIT"; then
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7154 $as_echo "$NMEDIT" >&6; }
7155 else
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160
7161 fi
7162 if test -z "$ac_cv_prog_NMEDIT"; then
7163   ac_ct_NMEDIT=$NMEDIT
7164   # Extract the first word of "nmedit", so it can be a program name with args.
7165 set dummy nmedit; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$ac_ct_NMEDIT"; then
7172   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7192 if test -n "$ac_ct_NMEDIT"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7194 $as_echo "$ac_ct_NMEDIT" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200   if test "x$ac_ct_NMEDIT" = x; then
7201     NMEDIT=":"
7202   else
7203     case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207 ac_tool_warned=yes ;;
7208 esac
7209     NMEDIT=$ac_ct_NMEDIT
7210   fi
7211 else
7212   NMEDIT="$ac_cv_prog_NMEDIT"
7213 fi
7214
7215     if test -n "$ac_tool_prefix"; then
7216   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7217 set dummy ${ac_tool_prefix}lipo; 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 test "${ac_cv_prog_LIPO+set}" = set; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   if test -n "$LIPO"; then
7224   ac_cv_prog_LIPO="$LIPO" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
7244 if test -n "$LIPO"; then
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7246 $as_echo "$LIPO" >&6; }
7247 else
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252
7253 fi
7254 if test -z "$ac_cv_prog_LIPO"; then
7255   ac_ct_LIPO=$LIPO
7256   # Extract the first word of "lipo", so it can be a program name with args.
7257 set dummy lipo; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   if test -n "$ac_ct_LIPO"; then
7264   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271     for ac_exec_ext in '' $ac_executable_extensions; do
7272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273     ac_cv_prog_ac_ct_LIPO="lipo"
7274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278   done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7284 if test -n "$ac_ct_LIPO"; then
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7286 $as_echo "$ac_ct_LIPO" >&6; }
7287 else
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292   if test "x$ac_ct_LIPO" = x; then
7293     LIPO=":"
7294   else
7295     case $cross_compiling:$ac_tool_warned in
7296 yes:)
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299 ac_tool_warned=yes ;;
7300 esac
7301     LIPO=$ac_ct_LIPO
7302   fi
7303 else
7304   LIPO="$ac_cv_prog_LIPO"
7305 fi
7306
7307     if test -n "$ac_tool_prefix"; then
7308   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7309 set dummy ${ac_tool_prefix}otool; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7313   $as_echo_n "(cached) " >&6
7314 else
7315   if test -n "$OTOOL"; then
7316   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321   IFS=$as_save_IFS
7322   test -z "$as_dir" && as_dir=.
7323     for ac_exec_ext in '' $ac_executable_extensions; do
7324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327     break 2
7328   fi
7329 done
7330   done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 OTOOL=$ac_cv_prog_OTOOL
7336 if test -n "$OTOOL"; then
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7338 $as_echo "$OTOOL" >&6; }
7339 else
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343
7344
7345 fi
7346 if test -z "$ac_cv_prog_OTOOL"; then
7347   ac_ct_OTOOL=$OTOOL
7348   # Extract the first word of "otool", so it can be a program name with args.
7349 set dummy otool; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$ac_ct_OTOOL"; then
7356   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363     for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_ac_ct_OTOOL="otool"
7366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370   done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7376 if test -n "$ac_ct_OTOOL"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7378 $as_echo "$ac_ct_OTOOL" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384   if test "x$ac_ct_OTOOL" = x; then
7385     OTOOL=":"
7386   else
7387     case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393     OTOOL=$ac_ct_OTOOL
7394   fi
7395 else
7396   OTOOL="$ac_cv_prog_OTOOL"
7397 fi
7398
7399     if test -n "$ac_tool_prefix"; then
7400   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   if test -n "$OTOOL64"; then
7408   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 OTOOL64=$ac_cv_prog_OTOOL64
7428 if test -n "$OTOOL64"; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7430 $as_echo "$OTOOL64" >&6; }
7431 else
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437 fi
7438 if test -z "$ac_cv_prog_OTOOL64"; then
7439   ac_ct_OTOOL64=$OTOOL64
7440   # Extract the first word of "otool64", so it can be a program name with args.
7441 set dummy otool64; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   if test -n "$ac_ct_OTOOL64"; then
7448   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455     for ac_exec_ext in '' $ac_executable_extensions; do
7456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457     ac_cv_prog_ac_ct_OTOOL64="otool64"
7458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462   done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7468 if test -n "$ac_ct_OTOOL64"; then
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7470 $as_echo "$ac_ct_OTOOL64" >&6; }
7471 else
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476   if test "x$ac_ct_OTOOL64" = x; then
7477     OTOOL64=":"
7478   else
7479     case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485     OTOOL64=$ac_ct_OTOOL64
7486   fi
7487 else
7488   OTOOL64="$ac_cv_prog_OTOOL64"
7489 fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7518 $as_echo_n "checking for -single_module linker flag... " >&6; }
7519 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   lt_cv_apple_cc_single_mod=no
7523       if test -z "${LT_MULTI_MODULE}"; then
7524         # By default we will add the -single_module flag. You can override
7525         # by either setting the environment variable LT_MULTI_MODULE
7526         # non-empty at configure time, or by adding -multi_module to the
7527         # link flags.
7528         rm -rf libconftest.dylib*
7529         echo "int foo(void){return 1;}" > conftest.c
7530         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7531 -dynamiclib -Wl,-single_module conftest.c" >&5
7532         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7534         _lt_result=$?
7535         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7536           lt_cv_apple_cc_single_mod=yes
7537         else
7538           cat conftest.err >&5
7539         fi
7540         rm -rf libconftest.dylib*
7541         rm -f conftest.*
7542       fi
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7545 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7547 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7548 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551   lt_cv_ld_exported_symbols_list=no
7552       save_LDFLAGS=$LDFLAGS
7553       echo "_main" > conftest.sym
7554       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7555       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557
7558 int
7559 main ()
7560 {
7561
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567   lt_cv_ld_exported_symbols_list=yes
7568 else
7569   lt_cv_ld_exported_symbols_list=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572     conftest$ac_exeext conftest.$ac_ext
7573         LDFLAGS="$save_LDFLAGS"
7574
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7577 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7579 $as_echo_n "checking for -force_load linker flag... " >&6; }
7580 if test "${lt_cv_ld_force_load+set}" = set; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   lt_cv_ld_force_load=no
7584       cat > conftest.c << _LT_EOF
7585 int forced_loaded() { return 2;}
7586 _LT_EOF
7587       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7588       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7589       echo "$AR cru libconftest.a conftest.o" >&5
7590       $AR cru libconftest.a conftest.o 2>&5
7591       cat > conftest.c << _LT_EOF
7592 int main() { return 0;}
7593 _LT_EOF
7594       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7595       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7596       _lt_result=$?
7597       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7598         lt_cv_ld_force_load=yes
7599       else
7600         cat conftest.err >&5
7601       fi
7602         rm -f conftest.err libconftest.a conftest conftest.c
7603         rm -rf conftest.dSYM
7604
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7607 $as_echo "$lt_cv_ld_force_load" >&6; }
7608     case $host_os in
7609     rhapsody* | darwin1.[012])
7610       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7611     darwin1.*)
7612       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7613     darwin*) # darwin 5.x on
7614       # if running on 10.5 or later, the deployment target defaults
7615       # to the OS version, if on x86, and 10.4, the deployment
7616       # target defaults to 10.4. Don't you love it?
7617       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7618         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7619           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7620         10.[012][,.]*)
7621           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7622         10.*)
7623           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7624       esac
7625     ;;
7626   esac
7627     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7628       _lt_dar_single_mod='$single_module'
7629     fi
7630     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7631       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7632     else
7633       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634     fi
7635     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7636       _lt_dsymutil='~$DSYMUTIL $lib || :'
7637     else
7638       _lt_dsymutil=
7639     fi
7640     ;;
7641   esac
7642
7643 for ac_header in dlfcn.h
7644 do :
7645   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7646 "
7647 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7648   cat >>confdefs.h <<_ACEOF
7649 #define HAVE_DLFCN_H 1
7650 _ACEOF
7651
7652 fi
7653
7654 done
7655
7656
7657
7658
7659
7660 # Set options
7661 # Check whether --enable-shared was given.
7662 if test "${enable_shared+set}" = set; then :
7663   enableval=$enable_shared; p=${PACKAGE-default}
7664     case $enableval in
7665     yes) enable_shared=yes ;;
7666     no) enable_shared=no ;;
7667     *)
7668       enable_shared=no
7669       # Look at the argument we got.  We use all the common list separators.
7670       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7671       for pkg in $enableval; do
7672         IFS="$lt_save_ifs"
7673         if test "X$pkg" = "X$p"; then
7674           enable_shared=yes
7675         fi
7676       done
7677       IFS="$lt_save_ifs"
7678       ;;
7679     esac
7680 else
7681   enable_shared=no
7682 fi
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693         enable_dlopen=no
7694
7695
7696   enable_win32_dll=no
7697
7698
7699
7700   # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702   enableval=$enable_static; p=${PACKAGE-default}
7703     case $enableval in
7704     yes) enable_static=yes ;;
7705     no) enable_static=no ;;
7706     *)
7707      enable_static=no
7708       # Look at the argument we got.  We use all the common list separators.
7709       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710       for pkg in $enableval; do
7711         IFS="$lt_save_ifs"
7712         if test "X$pkg" = "X$p"; then
7713           enable_static=yes
7714         fi
7715       done
7716       IFS="$lt_save_ifs"
7717       ;;
7718     esac
7719 else
7720   enable_static=yes
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 # Check whether --with-pic was given.
7733 if test "${with_pic+set}" = set; then :
7734   withval=$with_pic; pic_mode="$withval"
7735 else
7736   pic_mode=default
7737 fi
7738
7739
7740 test -z "$pic_mode" && pic_mode=default
7741
7742
7743
7744
7745
7746
7747
7748   # Check whether --enable-fast-install was given.
7749 if test "${enable_fast_install+set}" = set; then :
7750   enableval=$enable_fast_install; p=${PACKAGE-default}
7751     case $enableval in
7752     yes) enable_fast_install=yes ;;
7753     no) enable_fast_install=no ;;
7754     *)
7755       enable_fast_install=no
7756       # Look at the argument we got.  We use all the common list separators.
7757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7758       for pkg in $enableval; do
7759         IFS="$lt_save_ifs"
7760         if test "X$pkg" = "X$p"; then
7761           enable_fast_install=yes
7762         fi
7763       done
7764       IFS="$lt_save_ifs"
7765       ;;
7766     esac
7767 else
7768   enable_fast_install=yes
7769 fi
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781 # This can be used to rebuild libtool when needed
7782 LIBTOOL_DEPS="$ltmain"
7783
7784 # Always use our own libtool.
7785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 test -z "$LN_S" && LN_S="ln -s"
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 if test -n "${ZSH_VERSION+set}" ; then
7828    setopt NO_GLOB_SUBST
7829 fi
7830
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7832 $as_echo_n "checking for objdir... " >&6; }
7833 if test "${lt_cv_objdir+set}" = set; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7839   lt_cv_objdir=.libs
7840 else
7841   # MS-DOS does not allow filenames that begin with a dot.
7842   lt_cv_objdir=_libs
7843 fi
7844 rmdir .libs 2>/dev/null
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7847 $as_echo "$lt_cv_objdir" >&6; }
7848 objdir=$lt_cv_objdir
7849
7850
7851
7852
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define LT_OBJDIR "$lt_cv_objdir/"
7856 _ACEOF
7857
7858
7859
7860
7861 case $host_os in
7862 aix3*)
7863   # AIX sometimes has problems with the GCC collect2 program.  For some
7864   # reason, if we set the COLLECT_NAMES environment variable, the problems
7865   # vanish in a puff of smoke.
7866   if test "X${COLLECT_NAMES+set}" != Xset; then
7867     COLLECT_NAMES=
7868     export COLLECT_NAMES
7869   fi
7870   ;;
7871 esac
7872
7873 # Global variables:
7874 ofile=libtool
7875 can_build_shared=yes
7876
7877 # All known linkers require a `.a' archive for static linking (except MSVC,
7878 # which needs '.lib').
7879 libext=a
7880
7881 with_gnu_ld="$lt_cv_prog_gnu_ld"
7882
7883 old_CC="$CC"
7884 old_CFLAGS="$CFLAGS"
7885
7886 # Set sane defaults for various variables
7887 test -z "$CC" && CC=cc
7888 test -z "$LTCC" && LTCC=$CC
7889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7890 test -z "$LD" && LD=ld
7891 test -z "$ac_objext" && ac_objext=o
7892
7893 for cc_temp in $compiler""; do
7894   case $cc_temp in
7895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897     \-*) ;;
7898     *) break;;
7899   esac
7900 done
7901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7902
7903
7904 # Only perform the check for file, if the check method requires it
7905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7906 case $deplibs_check_method in
7907 file_magic*)
7908   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   case $MAGIC_CMD in
7915 [\\/*] |  ?:[\\/]*)
7916   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917   ;;
7918 *)
7919   lt_save_MAGIC_CMD="$MAGIC_CMD"
7920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922   for ac_dir in $ac_dummy; do
7923     IFS="$lt_save_ifs"
7924     test -z "$ac_dir" && ac_dir=.
7925     if test -f $ac_dir/${ac_tool_prefix}file; then
7926       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7927       if test -n "$file_magic_test_file"; then
7928         case $deplibs_check_method in
7929         "file_magic "*)
7930           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933             $EGREP "$file_magic_regex" > /dev/null; then
7934             :
7935           else
7936             cat <<_LT_EOF 1>&2
7937
7938 *** Warning: the command libtool uses to detect shared libraries,
7939 *** $file_magic_cmd, produces output that libtool cannot recognize.
7940 *** The result is that libtool may fail to recognize shared libraries
7941 *** as such.  This will affect the creation of libtool libraries that
7942 *** depend on shared libraries, but programs linked with such libtool
7943 *** libraries will work regardless of this problem.  Nevertheless, you
7944 *** may want to report the problem to your system manager and/or to
7945 *** bug-libtool@gnu.org
7946
7947 _LT_EOF
7948           fi ;;
7949         esac
7950       fi
7951       break
7952     fi
7953   done
7954   IFS="$lt_save_ifs"
7955   MAGIC_CMD="$lt_save_MAGIC_CMD"
7956   ;;
7957 esac
7958 fi
7959
7960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961 if test -n "$MAGIC_CMD"; then
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963 $as_echo "$MAGIC_CMD" >&6; }
7964 else
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970
7971
7972
7973 if test -z "$lt_cv_path_MAGIC_CMD"; then
7974   if test -n "$ac_tool_prefix"; then
7975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7976 $as_echo_n "checking for file... " >&6; }
7977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   case $MAGIC_CMD in
7981 [\\/*] |  ?:[\\/]*)
7982   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7983   ;;
7984 *)
7985   lt_save_MAGIC_CMD="$MAGIC_CMD"
7986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7987   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7988   for ac_dir in $ac_dummy; do
7989     IFS="$lt_save_ifs"
7990     test -z "$ac_dir" && ac_dir=.
7991     if test -f $ac_dir/file; then
7992       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7993       if test -n "$file_magic_test_file"; then
7994         case $deplibs_check_method in
7995         "file_magic "*)
7996           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7997           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7999             $EGREP "$file_magic_regex" > /dev/null; then
8000             :
8001           else
8002             cat <<_LT_EOF 1>&2
8003
8004 *** Warning: the command libtool uses to detect shared libraries,
8005 *** $file_magic_cmd, produces output that libtool cannot recognize.
8006 *** The result is that libtool may fail to recognize shared libraries
8007 *** as such.  This will affect the creation of libtool libraries that
8008 *** depend on shared libraries, but programs linked with such libtool
8009 *** libraries will work regardless of this problem.  Nevertheless, you
8010 *** may want to report the problem to your system manager and/or to
8011 *** bug-libtool@gnu.org
8012
8013 _LT_EOF
8014           fi ;;
8015         esac
8016       fi
8017       break
8018     fi
8019   done
8020   IFS="$lt_save_ifs"
8021   MAGIC_CMD="$lt_save_MAGIC_CMD"
8022   ;;
8023 esac
8024 fi
8025
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if test -n "$MAGIC_CMD"; then
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8029 $as_echo "$MAGIC_CMD" >&6; }
8030 else
8031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 fi
8034
8035
8036   else
8037     MAGIC_CMD=:
8038   fi
8039 fi
8040
8041   fi
8042   ;;
8043 esac
8044
8045 # Use C for the default configuration in the libtool script
8046
8047 lt_save_CC="$CC"
8048 ac_ext=c
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053
8054
8055 # Source file extension for C test sources.
8056 ac_ext=c
8057
8058 # Object file extension for compiled C test sources.
8059 objext=o
8060 objext=$objext
8061
8062 # Code to be used in simple compile tests
8063 lt_simple_compile_test_code="int some_variable = 0;"
8064
8065 # Code to be used in simple link tests
8066 lt_simple_link_test_code='int main(){return(0);}'
8067
8068
8069
8070
8071
8072
8073
8074 # If no C compiler was specified, use CC.
8075 LTCC=${LTCC-"$CC"}
8076
8077 # If no C compiler flags were specified, use CFLAGS.
8078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079
8080 # Allow CC to be a program name with arguments.
8081 compiler=$CC
8082
8083 # Save the default compiler, since it gets overwritten when the other
8084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8085 compiler_DEFAULT=$CC
8086
8087 # save warnings/boilerplate of simple test code
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_compiler_boilerplate=`cat conftest.err`
8092 $RM conftest*
8093
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_linker_boilerplate=`cat conftest.err`
8098 $RM -r conftest*
8099
8100
8101 ## CAVEAT EMPTOR:
8102 ## There is no encapsulation within the following macros, do not change
8103 ## the running order or otherwise move them around unless you know exactly
8104 ## what you are doing...
8105 if test -n "$compiler"; then
8106
8107 lt_prog_compiler_no_builtin_flag=
8108
8109 if test "$GCC" = yes; then
8110   case $cc_basename in
8111   nvcc*)
8112     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8113   *)
8114     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8115   esac
8116
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   lt_cv_prog_compiler_rtti_exceptions=no
8123    ac_outfile=conftest.$ac_objext
8124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125    lt_compiler_flag="-fno-rtti -fno-exceptions"
8126    # Insert the option either (1) after the last *FLAGS variable, or
8127    # (2) before a word containing "conftest.", or (3) at the end.
8128    # Note that $ac_compile itself does not contain backslashes and begins
8129    # with a dollar sign (not a hyphen), so the echo should work correctly.
8130    # The option is referenced via a variable to avoid confusing sed.
8131    lt_compile=`echo "$ac_compile" | $SED \
8132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134    -e 's:$: $lt_compiler_flag:'`
8135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8136    (eval "$lt_compile" 2>conftest.err)
8137    ac_status=$?
8138    cat conftest.err >&5
8139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140    if (exit $ac_status) && test -s "$ac_outfile"; then
8141      # The compiler can only warn and ignore the option if not recognized
8142      # So say no if there are warnings other than the usual output.
8143      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8144      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146        lt_cv_prog_compiler_rtti_exceptions=yes
8147      fi
8148    fi
8149    $RM conftest*
8150
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8154
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8156     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 else
8158     :
8159 fi
8160
8161 fi
8162
8163
8164
8165
8166
8167
8168   lt_prog_compiler_wl=
8169 lt_prog_compiler_pic=
8170 lt_prog_compiler_static=
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8174
8175   if test "$GCC" = yes; then
8176     lt_prog_compiler_wl='-Wl,'
8177     lt_prog_compiler_static='-static'
8178
8179     case $host_os in
8180       aix*)
8181       # All AIX code is PIC.
8182       if test "$host_cpu" = ia64; then
8183         # AIX 5 now supports IA64 processor
8184         lt_prog_compiler_static='-Bstatic'
8185       fi
8186       lt_prog_compiler_pic='-fPIC'
8187       ;;
8188
8189     amigaos*)
8190       case $host_cpu in
8191       powerpc)
8192             # see comment about AmigaOS4 .so support
8193             lt_prog_compiler_pic='-fPIC'
8194         ;;
8195       m68k)
8196             # FIXME: we need at least 68020 code to build shared libraries, but
8197             # adding the `-m68020' flag to GCC prevents building anything better,
8198             # like `-m68040'.
8199             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8200         ;;
8201       esac
8202       ;;
8203
8204     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8205       # PIC is the default for these OSes.
8206       ;;
8207
8208     mingw* | cygwin* | pw32* | os2* | cegcc*)
8209       # This hack is so that the source file can tell whether it is being
8210       # built for inclusion in a dll (and should export symbols for example).
8211       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8212       # (--disable-auto-import) libraries
8213       lt_prog_compiler_pic='-DDLL_EXPORT'
8214       ;;
8215
8216     darwin* | rhapsody*)
8217       # PIC is the default on this platform
8218       # Common symbols not allowed in MH_DYLIB files
8219       lt_prog_compiler_pic='-fno-common'
8220       ;;
8221
8222     haiku*)
8223       # PIC is the default for Haiku.
8224       # The "-static" flag exists, but is broken.
8225       lt_prog_compiler_static=
8226       ;;
8227
8228     hpux*)
8229       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8230       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8231       # sets the default TLS model and affects inlining.
8232       case $host_cpu in
8233       hppa*64*)
8234         # +Z the default
8235         ;;
8236       *)
8237         lt_prog_compiler_pic='-fPIC'
8238         ;;
8239       esac
8240       ;;
8241
8242     interix[3-9]*)
8243       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8244       # Instead, we relocate shared libraries at runtime.
8245       ;;
8246
8247     msdosdjgpp*)
8248       # Just because we use GCC doesn't mean we suddenly get shared libraries
8249       # on systems that don't support them.
8250       lt_prog_compiler_can_build_shared=no
8251       enable_shared=no
8252       ;;
8253
8254     *nto* | *qnx*)
8255       # QNX uses GNU C++, but need to define -shared option too, otherwise
8256       # it will coredump.
8257       lt_prog_compiler_pic='-fPIC -shared'
8258       ;;
8259
8260     sysv4*MP*)
8261       if test -d /usr/nec; then
8262         lt_prog_compiler_pic=-Kconform_pic
8263       fi
8264       ;;
8265
8266     *)
8267       lt_prog_compiler_pic='-fPIC'
8268       ;;
8269     esac
8270
8271     case $cc_basename in
8272     nvcc*) # Cuda Compiler Driver 2.2
8273       lt_prog_compiler_wl='-Xlinker '
8274       lt_prog_compiler_pic='-Xcompiler -fPIC'
8275       ;;
8276     esac
8277   else
8278     # PORTME Check for flag to pass linker flags through the system compiler.
8279     case $host_os in
8280     aix*)
8281       lt_prog_compiler_wl='-Wl,'
8282       if test "$host_cpu" = ia64; then
8283         # AIX 5 now supports IA64 processor
8284         lt_prog_compiler_static='-Bstatic'
8285       else
8286         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8287       fi
8288       ;;
8289
8290     mingw* | cygwin* | pw32* | os2* | cegcc*)
8291       # This hack is so that the source file can tell whether it is being
8292       # built for inclusion in a dll (and should export symbols for example).
8293       lt_prog_compiler_pic='-DDLL_EXPORT'
8294       ;;
8295
8296     hpux9* | hpux10* | hpux11*)
8297       lt_prog_compiler_wl='-Wl,'
8298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8299       # not for PA HP-UX.
8300       case $host_cpu in
8301       hppa*64*|ia64*)
8302         # +Z the default
8303         ;;
8304       *)
8305         lt_prog_compiler_pic='+Z'
8306         ;;
8307       esac
8308       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8309       lt_prog_compiler_static='${wl}-a ${wl}archive'
8310       ;;
8311
8312     irix5* | irix6* | nonstopux*)
8313       lt_prog_compiler_wl='-Wl,'
8314       # PIC (with -KPIC) is the default.
8315       lt_prog_compiler_static='-non_shared'
8316       ;;
8317
8318     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8319       case $cc_basename in
8320       # old Intel for x86_64 which still supported -KPIC.
8321       ecc*)
8322         lt_prog_compiler_wl='-Wl,'
8323         lt_prog_compiler_pic='-KPIC'
8324         lt_prog_compiler_static='-static'
8325         ;;
8326       # icc used to be incompatible with GCC.
8327       # ICC 10 doesn't accept -KPIC any more.
8328       icc* | ifort*)
8329         lt_prog_compiler_wl='-Wl,'
8330         lt_prog_compiler_pic='-fPIC'
8331         lt_prog_compiler_static='-static'
8332         ;;
8333       # Lahey Fortran 8.1.
8334       lf95*)
8335         lt_prog_compiler_wl='-Wl,'
8336         lt_prog_compiler_pic='--shared'
8337         lt_prog_compiler_static='--static'
8338         ;;
8339       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8340         # Portland Group compilers (*not* the Pentium gcc compiler,
8341         # which looks to be a dead project)
8342         lt_prog_compiler_wl='-Wl,'
8343         lt_prog_compiler_pic='-fpic'
8344         lt_prog_compiler_static='-Bstatic'
8345         ;;
8346       ccc*)
8347         lt_prog_compiler_wl='-Wl,'
8348         # All Alpha code is PIC.
8349         lt_prog_compiler_static='-non_shared'
8350         ;;
8351       xl* | bgxl* | bgf* | mpixl*)
8352         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8353         lt_prog_compiler_wl='-Wl,'
8354         lt_prog_compiler_pic='-qpic'
8355         lt_prog_compiler_static='-qstaticlink'
8356         ;;
8357       *)
8358         case `$CC -V 2>&1 | sed 5q` in
8359         *Sun\ F* | *Sun*Fortran*)
8360           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8361           lt_prog_compiler_pic='-KPIC'
8362           lt_prog_compiler_static='-Bstatic'
8363           lt_prog_compiler_wl=''
8364           ;;
8365         *Sun\ C*)
8366           # Sun C 5.9
8367           lt_prog_compiler_pic='-KPIC'
8368           lt_prog_compiler_static='-Bstatic'
8369           lt_prog_compiler_wl='-Wl,'
8370           ;;
8371         esac
8372         ;;
8373       esac
8374       ;;
8375
8376     newsos6)
8377       lt_prog_compiler_pic='-KPIC'
8378       lt_prog_compiler_static='-Bstatic'
8379       ;;
8380
8381     *nto* | *qnx*)
8382       # QNX uses GNU C++, but need to define -shared option too, otherwise
8383       # it will coredump.
8384       lt_prog_compiler_pic='-fPIC -shared'
8385       ;;
8386
8387     osf3* | osf4* | osf5*)
8388       lt_prog_compiler_wl='-Wl,'
8389       # All OSF/1 code is PIC.
8390       lt_prog_compiler_static='-non_shared'
8391       ;;
8392
8393     rdos*)
8394       lt_prog_compiler_static='-non_shared'
8395       ;;
8396
8397     solaris*)
8398       lt_prog_compiler_pic='-KPIC'
8399       lt_prog_compiler_static='-Bstatic'
8400       case $cc_basename in
8401       f77* | f90* | f95*)
8402         lt_prog_compiler_wl='-Qoption ld ';;
8403       *)
8404         lt_prog_compiler_wl='-Wl,';;
8405       esac
8406       ;;
8407
8408     sunos4*)
8409       lt_prog_compiler_wl='-Qoption ld '
8410       lt_prog_compiler_pic='-PIC'
8411       lt_prog_compiler_static='-Bstatic'
8412       ;;
8413
8414     sysv4 | sysv4.2uw2* | sysv4.3*)
8415       lt_prog_compiler_wl='-Wl,'
8416       lt_prog_compiler_pic='-KPIC'
8417       lt_prog_compiler_static='-Bstatic'
8418       ;;
8419
8420     sysv4*MP*)
8421       if test -d /usr/nec ;then
8422         lt_prog_compiler_pic='-Kconform_pic'
8423         lt_prog_compiler_static='-Bstatic'
8424       fi
8425       ;;
8426
8427     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8428       lt_prog_compiler_wl='-Wl,'
8429       lt_prog_compiler_pic='-KPIC'
8430       lt_prog_compiler_static='-Bstatic'
8431       ;;
8432
8433     unicos*)
8434       lt_prog_compiler_wl='-Wl,'
8435       lt_prog_compiler_can_build_shared=no
8436       ;;
8437
8438     uts4*)
8439       lt_prog_compiler_pic='-pic'
8440       lt_prog_compiler_static='-Bstatic'
8441       ;;
8442
8443     *)
8444       lt_prog_compiler_can_build_shared=no
8445       ;;
8446     esac
8447   fi
8448
8449 case $host_os in
8450   # For platforms which do not support PIC, -DPIC is meaningless:
8451   *djgpp*)
8452     lt_prog_compiler_pic=
8453     ;;
8454   *)
8455     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8456     ;;
8457 esac
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8459 $as_echo "$lt_prog_compiler_pic" >&6; }
8460
8461
8462
8463
8464
8465
8466 #
8467 # Check to make sure the PIC flag actually works.
8468 #
8469 if test -n "$lt_prog_compiler_pic"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8473   $as_echo_n "(cached) " >&6
8474 else
8475   lt_cv_prog_compiler_pic_works=no
8476    ac_outfile=conftest.$ac_objext
8477    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8479    # Insert the option either (1) after the last *FLAGS variable, or
8480    # (2) before a word containing "conftest.", or (3) at the end.
8481    # Note that $ac_compile itself does not contain backslashes and begins
8482    # with a dollar sign (not a hyphen), so the echo should work correctly.
8483    # The option is referenced via a variable to avoid confusing sed.
8484    lt_compile=`echo "$ac_compile" | $SED \
8485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8487    -e 's:$: $lt_compiler_flag:'`
8488    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8489    (eval "$lt_compile" 2>conftest.err)
8490    ac_status=$?
8491    cat conftest.err >&5
8492    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493    if (exit $ac_status) && test -s "$ac_outfile"; then
8494      # The compiler can only warn and ignore the option if not recognized
8495      # So say no if there are warnings other than the usual output.
8496      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8499        lt_cv_prog_compiler_pic_works=yes
8500      fi
8501    fi
8502    $RM conftest*
8503
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8507
8508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8509     case $lt_prog_compiler_pic in
8510      "" | " "*) ;;
8511      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8512      esac
8513 else
8514     lt_prog_compiler_pic=
8515      lt_prog_compiler_can_build_shared=no
8516 fi
8517
8518 fi
8519
8520
8521
8522
8523
8524
8525 #
8526 # Check to make sure the static flag actually works.
8527 #
8528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8532   $as_echo_n "(cached) " >&6
8533 else
8534   lt_cv_prog_compiler_static_works=no
8535    save_LDFLAGS="$LDFLAGS"
8536    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8537    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8538    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8539      # The linker can only warn and ignore the option if not recognized
8540      # So say no if there are warnings
8541      if test -s conftest.err; then
8542        # Append any errors to the config.log.
8543        cat conftest.err 1>&5
8544        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8545        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8546        if diff conftest.exp conftest.er2 >/dev/null; then
8547          lt_cv_prog_compiler_static_works=yes
8548        fi
8549      else
8550        lt_cv_prog_compiler_static_works=yes
8551      fi
8552    fi
8553    $RM -r conftest*
8554    LDFLAGS="$save_LDFLAGS"
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8559
8560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8561     :
8562 else
8563     lt_prog_compiler_static=
8564 fi
8565
8566
8567
8568
8569
8570
8571
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   lt_cv_prog_compiler_c_o=no
8578    $RM -r conftest 2>/dev/null
8579    mkdir conftest
8580    cd conftest
8581    mkdir out
8582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583
8584    lt_compiler_flag="-o out/conftest2.$ac_objext"
8585    # Insert the option either (1) after the last *FLAGS variable, or
8586    # (2) before a word containing "conftest.", or (3) at the end.
8587    # Note that $ac_compile itself does not contain backslashes and begins
8588    # with a dollar sign (not a hyphen), so the echo should work correctly.
8589    lt_compile=`echo "$ac_compile" | $SED \
8590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592    -e 's:$: $lt_compiler_flag:'`
8593    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594    (eval "$lt_compile" 2>out/conftest.err)
8595    ac_status=$?
8596    cat out/conftest.err >&5
8597    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8599    then
8600      # The compiler can only warn and ignore the option if not recognized
8601      # So say no if there are warnings
8602      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8605        lt_cv_prog_compiler_c_o=yes
8606      fi
8607    fi
8608    chmod u+w . 2>&5
8609    $RM conftest*
8610    # SGI C++ compiler will create directory out/ii_files/ for
8611    # template instantiation
8612    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8613    $RM out/* && rmdir out
8614    cd ..
8615    $RM -r conftest
8616    $RM conftest*
8617
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8621
8622
8623
8624
8625
8626
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_prog_compiler_c_o=no
8633    $RM -r conftest 2>/dev/null
8634    mkdir conftest
8635    cd conftest
8636    mkdir out
8637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8638
8639    lt_compiler_flag="-o out/conftest2.$ac_objext"
8640    # Insert the option either (1) after the last *FLAGS variable, or
8641    # (2) before a word containing "conftest.", or (3) at the end.
8642    # Note that $ac_compile itself does not contain backslashes and begins
8643    # with a dollar sign (not a hyphen), so the echo should work correctly.
8644    lt_compile=`echo "$ac_compile" | $SED \
8645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8647    -e 's:$: $lt_compiler_flag:'`
8648    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8649    (eval "$lt_compile" 2>out/conftest.err)
8650    ac_status=$?
8651    cat out/conftest.err >&5
8652    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8654    then
8655      # The compiler can only warn and ignore the option if not recognized
8656      # So say no if there are warnings
8657      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8658      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8659      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8660        lt_cv_prog_compiler_c_o=yes
8661      fi
8662    fi
8663    chmod u+w . 2>&5
8664    $RM conftest*
8665    # SGI C++ compiler will create directory out/ii_files/ for
8666    # template instantiation
8667    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8668    $RM out/* && rmdir out
8669    cd ..
8670    $RM -r conftest
8671    $RM conftest*
8672
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8676
8677
8678
8679
8680 hard_links="nottested"
8681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8682   # do not overwrite the value of need_locks provided by the user
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8684 $as_echo_n "checking if we can lock with hard links... " >&6; }
8685   hard_links=yes
8686   $RM conftest*
8687   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8688   touch conftest.a
8689   ln conftest.a conftest.b 2>&5 || hard_links=no
8690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8692 $as_echo "$hard_links" >&6; }
8693   if test "$hard_links" = no; then
8694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8696     need_locks=warn
8697   fi
8698 else
8699   need_locks=no
8700 fi
8701
8702
8703
8704
8705
8706
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8709
8710   runpath_var=
8711   allow_undefined_flag=
8712   always_export_symbols=no
8713   archive_cmds=
8714   archive_expsym_cmds=
8715   compiler_needs_object=no
8716   enable_shared_with_static_runtimes=no
8717   export_dynamic_flag_spec=
8718   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8719   hardcode_automatic=no
8720   hardcode_direct=no
8721   hardcode_direct_absolute=no
8722   hardcode_libdir_flag_spec=
8723   hardcode_libdir_flag_spec_ld=
8724   hardcode_libdir_separator=
8725   hardcode_minus_L=no
8726   hardcode_shlibpath_var=unsupported
8727   inherit_rpath=no
8728   link_all_deplibs=unknown
8729   module_cmds=
8730   module_expsym_cmds=
8731   old_archive_from_new_cmds=
8732   old_archive_from_expsyms_cmds=
8733   thread_safe_flag_spec=
8734   whole_archive_flag_spec=
8735   # include_expsyms should be a list of space-separated symbols to be *always*
8736   # included in the symbol list
8737   include_expsyms=
8738   # exclude_expsyms can be an extended regexp of symbols to exclude
8739   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8740   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8741   # as well as any symbol that contains `d'.
8742   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8743   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8744   # platforms (ab)use it in PIC code, but their linkers get confused if
8745   # the symbol is explicitly referenced.  Since portable code cannot
8746   # rely on this symbol name, it's probably fine to never include it in
8747   # preloaded symbol tables.
8748   # Exclude shared library initialization/finalization symbols.
8749   extract_expsyms_cmds=
8750
8751   case $host_os in
8752   cygwin* | mingw* | pw32* | cegcc*)
8753     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8754     # When not using gcc, we currently assume that we are using
8755     # Microsoft Visual C++.
8756     if test "$GCC" != yes; then
8757       with_gnu_ld=no
8758     fi
8759     ;;
8760   interix*)
8761     # we just hope/assume this is gcc and not c89 (= MSVC++)
8762     with_gnu_ld=yes
8763     ;;
8764   openbsd*)
8765     with_gnu_ld=no
8766     ;;
8767   esac
8768
8769   ld_shlibs=yes
8770
8771   # On some targets, GNU ld is compatible enough with the native linker
8772   # that we're better off using the native interface for both.
8773   lt_use_gnu_ld_interface=no
8774   if test "$with_gnu_ld" = yes; then
8775     case $host_os in
8776       aix*)
8777         # The AIX port of GNU ld has always aspired to compatibility
8778         # with the native linker.  However, as the warning in the GNU ld
8779         # block says, versions before 2.19.5* couldn't really create working
8780         # shared libraries, regardless of the interface used.
8781         case `$LD -v 2>&1` in
8782           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8783           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8784           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8785           *)
8786             lt_use_gnu_ld_interface=yes
8787             ;;
8788         esac
8789         ;;
8790       *)
8791         lt_use_gnu_ld_interface=yes
8792         ;;
8793     esac
8794   fi
8795
8796   if test "$lt_use_gnu_ld_interface" = yes; then
8797     # If archive_cmds runs LD, not CC, wlarc should be empty
8798     wlarc='${wl}'
8799
8800     # Set some defaults for GNU ld with shared library support. These
8801     # are reset later if shared libraries are not supported. Putting them
8802     # here allows them to be overridden if necessary.
8803     runpath_var=LD_RUN_PATH
8804     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805     export_dynamic_flag_spec='${wl}--export-dynamic'
8806     # ancient GNU ld didn't support --whole-archive et. al.
8807     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8808       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8809     else
8810       whole_archive_flag_spec=
8811     fi
8812     supports_anon_versioning=no
8813     case `$LD -v 2>&1` in
8814       *GNU\ gold*) supports_anon_versioning=yes ;;
8815       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8816       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8817       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8818       *\ 2.11.*) ;; # other 2.11 versions
8819       *) supports_anon_versioning=yes ;;
8820     esac
8821
8822     # See if GNU ld supports shared libraries.
8823     case $host_os in
8824     aix[3-9]*)
8825       # On AIX/PPC, the GNU linker is very broken
8826       if test "$host_cpu" != ia64; then
8827         ld_shlibs=no
8828         cat <<_LT_EOF 1>&2
8829
8830 *** Warning: the GNU linker, at least up to release 2.19, is reported
8831 *** to be unable to reliably create shared libraries on AIX.
8832 *** Therefore, libtool is disabling shared libraries support.  If you
8833 *** really care for shared libraries, you may want to install binutils
8834 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8835 *** You will then need to restart the configuration process.
8836
8837 _LT_EOF
8838       fi
8839       ;;
8840
8841     amigaos*)
8842       case $host_cpu in
8843       powerpc)
8844             # see comment about AmigaOS4 .so support
8845             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846             archive_expsym_cmds=''
8847         ;;
8848       m68k)
8849             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)'
8850             hardcode_libdir_flag_spec='-L$libdir'
8851             hardcode_minus_L=yes
8852         ;;
8853       esac
8854       ;;
8855
8856     beos*)
8857       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8858         allow_undefined_flag=unsupported
8859         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8860         # support --undefined.  This deserves some investigation.  FIXME
8861         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866
8867     cygwin* | mingw* | pw32* | cegcc*)
8868       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8869       # as there is no search path for DLLs.
8870       hardcode_libdir_flag_spec='-L$libdir'
8871       export_dynamic_flag_spec='${wl}--export-all-symbols'
8872       allow_undefined_flag=unsupported
8873       always_export_symbols=no
8874       enable_shared_with_static_runtimes=yes
8875       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8876
8877       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8878         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879         # If the export-symbols file already is a .def file (1st line
8880         # is EXPORTS), use it as is; otherwise, prepend...
8881         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8882           cp $export_symbols $output_objdir/$soname.def;
8883         else
8884           echo EXPORTS > $output_objdir/$soname.def;
8885           cat $export_symbols >> $output_objdir/$soname.def;
8886         fi~
8887         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8888       else
8889         ld_shlibs=no
8890       fi
8891       ;;
8892
8893     haiku*)
8894       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895       link_all_deplibs=yes
8896       ;;
8897
8898     interix[3-9]*)
8899       hardcode_direct=no
8900       hardcode_shlibpath_var=no
8901       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8902       export_dynamic_flag_spec='${wl}-E'
8903       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8904       # Instead, shared libraries are loaded at an image base (0x10000000 by
8905       # default) and relocated if they conflict, which is a slow very memory
8906       # consuming and fragmenting process.  To avoid this, we pick a random,
8907       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8908       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8909       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8910       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'
8911       ;;
8912
8913     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8914       tmp_diet=no
8915       if test "$host_os" = linux-dietlibc; then
8916         case $cc_basename in
8917           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8918         esac
8919       fi
8920       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8921          && test "$tmp_diet" = no
8922       then
8923         tmp_addflag=' $pic_flag'
8924         tmp_sharedflag='-shared'
8925         case $cc_basename,$host_cpu in
8926         pgcc*)                          # Portland Group C compiler
8927           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'
8928           tmp_addflag=' $pic_flag'
8929           ;;
8930         pgf77* | pgf90* | pgf95* | pgfortran*)
8931                                         # Portland Group f77 and f90 compilers
8932           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'
8933           tmp_addflag=' $pic_flag -Mnomain' ;;
8934         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8935           tmp_addflag=' -i_dynamic' ;;
8936         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8937           tmp_addflag=' -i_dynamic -nofor_main' ;;
8938         ifc* | ifort*)                  # Intel Fortran compiler
8939           tmp_addflag=' -nofor_main' ;;
8940         lf95*)                          # Lahey Fortran 8.1
8941           whole_archive_flag_spec=
8942           tmp_sharedflag='--shared' ;;
8943         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8944           tmp_sharedflag='-qmkshrobj'
8945           tmp_addflag= ;;
8946         nvcc*)  # Cuda Compiler Driver 2.2
8947           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'
8948           compiler_needs_object=yes
8949           ;;
8950         esac
8951         case `$CC -V 2>&1 | sed 5q` in
8952         *Sun\ C*)                       # Sun C 5.9
8953           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'
8954           compiler_needs_object=yes
8955           tmp_sharedflag='-G' ;;
8956         *Sun\ F*)                       # Sun Fortran 8.3
8957           tmp_sharedflag='-G' ;;
8958         esac
8959         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960
8961         if test "x$supports_anon_versioning" = xyes; then
8962           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8963             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8964             echo "local: *; };" >> $output_objdir/$libname.ver~
8965             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8966         fi
8967
8968         case $cc_basename in
8969         xlf* | bgf* | bgxlf* | mpixlf*)
8970           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8971           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8972           hardcode_libdir_flag_spec=
8973           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8974           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8975           if test "x$supports_anon_versioning" = xyes; then
8976             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978               echo "local: *; };" >> $output_objdir/$libname.ver~
8979               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8980           fi
8981           ;;
8982         esac
8983       else
8984         ld_shlibs=no
8985       fi
8986       ;;
8987
8988     netbsd*)
8989       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8990         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8991         wlarc=
8992       else
8993         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995       fi
8996       ;;
8997
8998     solaris*)
8999       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9000         ld_shlibs=no
9001         cat <<_LT_EOF 1>&2
9002
9003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9004 *** create shared libraries on Solaris systems.  Therefore, libtool
9005 *** is disabling shared libraries support.  We urge you to upgrade GNU
9006 *** binutils to release 2.9.1 or newer.  Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9009
9010 _LT_EOF
9011       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9012         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014       else
9015         ld_shlibs=no
9016       fi
9017       ;;
9018
9019     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9020       case `$LD -v 2>&1` in
9021         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9022         ld_shlibs=no
9023         cat <<_LT_EOF 1>&2
9024
9025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9026 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9027 *** is disabling shared libraries support.  We urge you to upgrade GNU
9028 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9029 *** your PATH or compiler configuration so that the native linker is
9030 *** used, and then restart.
9031
9032 _LT_EOF
9033         ;;
9034         *)
9035           # For security reasons, it is highly recommended that you always
9036           # use absolute paths for naming shared libraries, and exclude the
9037           # DT_RUNPATH tag from executables and libraries.  But doing so
9038           # requires that you compile everything twice, which is a pain.
9039           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043           else
9044             ld_shlibs=no
9045           fi
9046         ;;
9047       esac
9048       ;;
9049
9050     sunos4*)
9051       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9052       wlarc=
9053       hardcode_direct=yes
9054       hardcode_shlibpath_var=no
9055       ;;
9056
9057     *)
9058       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9059         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061       else
9062         ld_shlibs=no
9063       fi
9064       ;;
9065     esac
9066
9067     if test "$ld_shlibs" = no; then
9068       runpath_var=
9069       hardcode_libdir_flag_spec=
9070       export_dynamic_flag_spec=
9071       whole_archive_flag_spec=
9072     fi
9073   else
9074     # PORTME fill in a description of your system's linker (not GNU ld)
9075     case $host_os in
9076     aix3*)
9077       allow_undefined_flag=unsupported
9078       always_export_symbols=yes
9079       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'
9080       # Note: this linker hardcodes the directories in LIBPATH if there
9081       # are no directories specified by -L.
9082       hardcode_minus_L=yes
9083       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9084         # Neither direct hardcoding nor static linking is supported with a
9085         # broken collect2.
9086         hardcode_direct=unsupported
9087       fi
9088       ;;
9089
9090     aix[4-9]*)
9091       if test "$host_cpu" = ia64; then
9092         # On IA64, the linker does run time linking by default, so we don't
9093         # have to do anything special.
9094         aix_use_runtimelinking=no
9095         exp_sym_flag='-Bexport'
9096         no_entry_flag=""
9097       else
9098         # If we're using GNU nm, then we don't want the "-C" option.
9099         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9100         # Also, AIX nm treats weak defined symbols like other global
9101         # defined symbols, whereas GNU nm marks them as "W".
9102         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9103           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'
9104         else
9105           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'
9106         fi
9107         aix_use_runtimelinking=no
9108
9109         # Test if we are trying to use run time linking or normal
9110         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9111         # need to do runtime linking.
9112         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9113           for ld_flag in $LDFLAGS; do
9114           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9115             aix_use_runtimelinking=yes
9116             break
9117           fi
9118           done
9119           ;;
9120         esac
9121
9122         exp_sym_flag='-bexport'
9123         no_entry_flag='-bnoentry'
9124       fi
9125
9126       # When large executables or shared objects are built, AIX ld can
9127       # have problems creating the table of contents.  If linking a library
9128       # or program results in "error TOC overflow" add -mminimal-toc to
9129       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9130       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9131
9132       archive_cmds=''
9133       hardcode_direct=yes
9134       hardcode_direct_absolute=yes
9135       hardcode_libdir_separator=':'
9136       link_all_deplibs=yes
9137       file_list_spec='${wl}-f,'
9138
9139       if test "$GCC" = yes; then
9140         case $host_os in aix4.[012]|aix4.[012].*)
9141         # We only want to do this on AIX 4.2 and lower, the check
9142         # below for broken collect2 doesn't work under 4.3+
9143           collect2name=`${CC} -print-prog-name=collect2`
9144           if test -f "$collect2name" &&
9145            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9146           then
9147           # We have reworked collect2
9148           :
9149           else
9150           # We have old collect2
9151           hardcode_direct=unsupported
9152           # It fails to find uninstalled libraries when the uninstalled
9153           # path is not listed in the libpath.  Setting hardcode_minus_L
9154           # to unsupported forces relinking
9155           hardcode_minus_L=yes
9156           hardcode_libdir_flag_spec='-L$libdir'
9157           hardcode_libdir_separator=
9158           fi
9159           ;;
9160         esac
9161         shared_flag='-shared'
9162         if test "$aix_use_runtimelinking" = yes; then
9163           shared_flag="$shared_flag "'${wl}-G'
9164         fi
9165       else
9166         # not using gcc
9167         if test "$host_cpu" = ia64; then
9168         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9169         # chokes on -Wl,-G. The following line is correct:
9170           shared_flag='-G'
9171         else
9172           if test "$aix_use_runtimelinking" = yes; then
9173             shared_flag='${wl}-G'
9174           else
9175             shared_flag='${wl}-bM:SRE'
9176           fi
9177         fi
9178       fi
9179
9180       export_dynamic_flag_spec='${wl}-bexpall'
9181       # It seems that -bexpall does not export symbols beginning with
9182       # underscore (_), so it is better to generate a list of symbols to export.
9183       always_export_symbols=yes
9184       if test "$aix_use_runtimelinking" = yes; then
9185         # Warning - without using the other runtime loading flags (-brtl),
9186         # -berok will link without error, but may produce a broken library.
9187         allow_undefined_flag='-berok'
9188         # Determine the default libpath from the value encoded in an
9189         # empty executable.
9190         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h.  */
9192
9193 int
9194 main ()
9195 {
9196
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 if ac_fn_c_try_link "$LINENO"; then :
9202
9203 lt_aix_libpath_sed='
9204     /Import File Strings/,/^$/ {
9205         /^0/ {
9206             s/^0  *\(.*\)$/\1/
9207             p
9208         }
9209     }'
9210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211 # Check for a 64-bit object if we didn't find anything.
9212 if test -z "$aix_libpath"; then
9213   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9214 fi
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext \
9217     conftest$ac_exeext conftest.$ac_ext
9218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9219
9220         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9221         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"
9222       else
9223         if test "$host_cpu" = ia64; then
9224           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9225           allow_undefined_flag="-z nodefs"
9226           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"
9227         else
9228          # Determine the default libpath from the value encoded in an
9229          # empty executable.
9230          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h.  */
9232
9233 int
9234 main ()
9235 {
9236
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242
9243 lt_aix_libpath_sed='
9244     /Import File Strings/,/^$/ {
9245         /^0/ {
9246             s/^0  *\(.*\)$/\1/
9247             p
9248         }
9249     }'
9250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9251 # Check for a 64-bit object if we didn't find anything.
9252 if test -z "$aix_libpath"; then
9253   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9254 fi
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext \
9257     conftest$ac_exeext conftest.$ac_ext
9258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9259
9260          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9261           # Warning - without using the other run time loading flags,
9262           # -berok will link without error, but may produce a broken library.
9263           no_undefined_flag=' ${wl}-bernotok'
9264           allow_undefined_flag=' ${wl}-berok'
9265           if test "$with_gnu_ld" = yes; then
9266             # We only use this code for GNU lds that support --whole-archive.
9267             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9268           else
9269             # Exported symbols can be pulled into shared objects from archives
9270             whole_archive_flag_spec='$convenience'
9271           fi
9272           archive_cmds_need_lc=yes
9273           # This is similar to how AIX traditionally builds its shared libraries.
9274           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'
9275         fi
9276       fi
9277       ;;
9278
9279     amigaos*)
9280       case $host_cpu in
9281       powerpc)
9282             # see comment about AmigaOS4 .so support
9283             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284             archive_expsym_cmds=''
9285         ;;
9286       m68k)
9287             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)'
9288             hardcode_libdir_flag_spec='-L$libdir'
9289             hardcode_minus_L=yes
9290         ;;
9291       esac
9292       ;;
9293
9294     bsdi[45]*)
9295       export_dynamic_flag_spec=-rdynamic
9296       ;;
9297
9298     cygwin* | mingw* | pw32* | cegcc*)
9299       # When not using gcc, we currently assume that we are using
9300       # Microsoft Visual C++.
9301       # hardcode_libdir_flag_spec is actually meaningless, as there is
9302       # no search path for DLLs.
9303       hardcode_libdir_flag_spec=' '
9304       allow_undefined_flag=unsupported
9305       # Tell ltmain to make .lib files, not .a files.
9306       libext=lib
9307       # Tell ltmain to make .dll files, not .so files.
9308       shrext_cmds=".dll"
9309       # FIXME: Setting linknames here is a bad hack.
9310       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9311       # The linker will automatically build a .lib file if we build a DLL.
9312       old_archive_from_new_cmds='true'
9313       # FIXME: Should let the user specify the lib program.
9314       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9315       fix_srcfile_path='`cygpath -w "$srcfile"`'
9316       enable_shared_with_static_runtimes=yes
9317       ;;
9318
9319     darwin* | rhapsody*)
9320
9321
9322   archive_cmds_need_lc=no
9323   hardcode_direct=no
9324   hardcode_automatic=yes
9325   hardcode_shlibpath_var=unsupported
9326   if test "$lt_cv_ld_force_load" = "yes"; then
9327     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\"`'
9328   else
9329     whole_archive_flag_spec=''
9330   fi
9331   link_all_deplibs=yes
9332   allow_undefined_flag="$_lt_dar_allow_undefined"
9333   case $cc_basename in
9334      ifort*) _lt_dar_can_shared=yes ;;
9335      *) _lt_dar_can_shared=$GCC ;;
9336   esac
9337   if test "$_lt_dar_can_shared" = "yes"; then
9338     output_verbose_link_cmd=func_echo_all
9339     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9340     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9341     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}"
9342     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}"
9343
9344   else
9345   ld_shlibs=no
9346   fi
9347
9348       ;;
9349
9350     dgux*)
9351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352       hardcode_libdir_flag_spec='-L$libdir'
9353       hardcode_shlibpath_var=no
9354       ;;
9355
9356     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9357     # support.  Future versions do this automatically, but an explicit c++rt0.o
9358     # does not break anything, and helps significantly (at the cost of a little
9359     # extra space).
9360     freebsd2.2*)
9361       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9362       hardcode_libdir_flag_spec='-R$libdir'
9363       hardcode_direct=yes
9364       hardcode_shlibpath_var=no
9365       ;;
9366
9367     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9368     freebsd2.*)
9369       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9370       hardcode_direct=yes
9371       hardcode_minus_L=yes
9372       hardcode_shlibpath_var=no
9373       ;;
9374
9375     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9376     freebsd* | dragonfly* | bitrig* | openbsd*)
9377       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9378       hardcode_libdir_flag_spec='-R$libdir'
9379       hardcode_direct=yes
9380       hardcode_shlibpath_var=no
9381       ;;
9382
9383     hpux9*)
9384       if test "$GCC" = yes; then
9385         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9386       else
9387         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'
9388       fi
9389       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390       hardcode_libdir_separator=:
9391       hardcode_direct=yes
9392
9393       # hardcode_minus_L: Not really in the search PATH,
9394       # but as the default location of the library.
9395       hardcode_minus_L=yes
9396       export_dynamic_flag_spec='${wl}-E'
9397       ;;
9398
9399     hpux10*)
9400       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9401         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402       else
9403         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9404       fi
9405       if test "$with_gnu_ld" = no; then
9406         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407         hardcode_libdir_flag_spec_ld='+b $libdir'
9408         hardcode_libdir_separator=:
9409         hardcode_direct=yes
9410         hardcode_direct_absolute=yes
9411         export_dynamic_flag_spec='${wl}-E'
9412         # hardcode_minus_L: Not really in the search PATH,
9413         # but as the default location of the library.
9414         hardcode_minus_L=yes
9415       fi
9416       ;;
9417
9418     hpux11*)
9419       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9420         case $host_cpu in
9421         hppa*64*)
9422           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423           ;;
9424         ia64*)
9425           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9426           ;;
9427         *)
9428           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429           ;;
9430         esac
9431       else
9432         case $host_cpu in
9433         hppa*64*)
9434           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435           ;;
9436         ia64*)
9437           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438           ;;
9439         *)
9440
9441           # Older versions of the 11.00 compiler do not understand -b yet
9442           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9443           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9444 $as_echo_n "checking if $CC understands -b... " >&6; }
9445 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   lt_cv_prog_compiler__b=no
9449    save_LDFLAGS="$LDFLAGS"
9450    LDFLAGS="$LDFLAGS -b"
9451    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9452    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9453      # The linker can only warn and ignore the option if not recognized
9454      # So say no if there are warnings
9455      if test -s conftest.err; then
9456        # Append any errors to the config.log.
9457        cat conftest.err 1>&5
9458        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9459        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9460        if diff conftest.exp conftest.er2 >/dev/null; then
9461          lt_cv_prog_compiler__b=yes
9462        fi
9463      else
9464        lt_cv_prog_compiler__b=yes
9465      fi
9466    fi
9467    $RM -r conftest*
9468    LDFLAGS="$save_LDFLAGS"
9469
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9472 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9473
9474 if test x"$lt_cv_prog_compiler__b" = xyes; then
9475     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476 else
9477     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9478 fi
9479
9480           ;;
9481         esac
9482       fi
9483       if test "$with_gnu_ld" = no; then
9484         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485         hardcode_libdir_separator=:
9486
9487         case $host_cpu in
9488         hppa*64*|ia64*)
9489           hardcode_direct=no
9490           hardcode_shlibpath_var=no
9491           ;;
9492         *)
9493           hardcode_direct=yes
9494           hardcode_direct_absolute=yes
9495           export_dynamic_flag_spec='${wl}-E'
9496
9497           # hardcode_minus_L: Not really in the search PATH,
9498           # but as the default location of the library.
9499           hardcode_minus_L=yes
9500           ;;
9501         esac
9502       fi
9503       ;;
9504
9505     irix5* | irix6* | nonstopux*)
9506       if test "$GCC" = yes; then
9507         archive_cmds='$CC -shared $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'
9508         # Try to use the -exported_symbol ld option, if it does not
9509         # work, assume that -exports_file does not work either and
9510         # implicitly export all symbols.
9511         save_LDFLAGS="$LDFLAGS"
9512         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9513         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h.  */
9515 int foo(void) {}
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518   archive_expsym_cmds='$CC -shared $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'
9519
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext \
9522     conftest$ac_exeext conftest.$ac_ext
9523         LDFLAGS="$save_LDFLAGS"
9524       else
9525         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'
9526         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'
9527       fi
9528       archive_cmds_need_lc='no'
9529       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530       hardcode_libdir_separator=:
9531       inherit_rpath=yes
9532       link_all_deplibs=yes
9533       ;;
9534
9535     netbsd*)
9536       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9537         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9538       else
9539         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9540       fi
9541       hardcode_libdir_flag_spec='-R$libdir'
9542       hardcode_direct=yes
9543       hardcode_shlibpath_var=no
9544       ;;
9545
9546     newsos6)
9547       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548       hardcode_direct=yes
9549       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550       hardcode_libdir_separator=:
9551       hardcode_shlibpath_var=no
9552       ;;
9553
9554     *nto* | *qnx*)
9555       ;;
9556
9557     openbsd*)
9558       if test -f /usr/libexec/ld.so; then
9559         hardcode_direct=yes
9560         hardcode_shlibpath_var=no
9561         hardcode_direct_absolute=yes
9562         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9563           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9564           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9565           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9566           export_dynamic_flag_spec='${wl}-E'
9567         else
9568           case $host_os in
9569            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9570              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9571              hardcode_libdir_flag_spec='-R$libdir'
9572              ;;
9573            *)
9574              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576              ;;
9577           esac
9578         fi
9579       else
9580         ld_shlibs=no
9581       fi
9582       ;;
9583
9584     os2*)
9585       hardcode_libdir_flag_spec='-L$libdir'
9586       hardcode_minus_L=yes
9587       allow_undefined_flag=unsupported
9588       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'
9589       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9590       ;;
9591
9592     osf3*)
9593       if test "$GCC" = yes; then
9594         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595         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'
9596       else
9597         allow_undefined_flag=' -expect_unresolved \*'
9598         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'
9599       fi
9600       archive_cmds_need_lc='no'
9601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       hardcode_libdir_separator=:
9603       ;;
9604
9605     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9606       if test "$GCC" = yes; then
9607         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9608         archive_cmds='$CC -shared${allow_undefined_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'
9609         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610       else
9611         allow_undefined_flag=' -expect_unresolved \*'
9612         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'
9613         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~
9614         $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'
9615
9616         # Both c and cxx compiler support -rpath directly
9617         hardcode_libdir_flag_spec='-rpath $libdir'
9618       fi
9619       archive_cmds_need_lc='no'
9620       hardcode_libdir_separator=:
9621       ;;
9622
9623     solaris*)
9624       no_undefined_flag=' -z defs'
9625       if test "$GCC" = yes; then
9626         wlarc='${wl}'
9627         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9628         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9630       else
9631         case `$CC -V 2>&1` in
9632         *"Compilers 5.0"*)
9633           wlarc=''
9634           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9636           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9637           ;;
9638         *)
9639           wlarc='${wl}'
9640           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9642           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9643           ;;
9644         esac
9645       fi
9646       hardcode_libdir_flag_spec='-R$libdir'
9647       hardcode_shlibpath_var=no
9648       case $host_os in
9649       solaris2.[0-5] | solaris2.[0-5].*) ;;
9650       *)
9651         # The compiler driver will combine and reorder linker options,
9652         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9653         # but is careful enough not to reorder.
9654         # Supported since Solaris 2.6 (maybe 2.5.1?)
9655         if test "$GCC" = yes; then
9656           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9657         else
9658           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9659         fi
9660         ;;
9661       esac
9662       link_all_deplibs=yes
9663       ;;
9664
9665     sunos4*)
9666       if test "x$host_vendor" = xsequent; then
9667         # Use $CC to link under sequent, because it throws in some extra .o
9668         # files that make .init and .fini sections work.
9669         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670       else
9671         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9672       fi
9673       hardcode_libdir_flag_spec='-L$libdir'
9674       hardcode_direct=yes
9675       hardcode_minus_L=yes
9676       hardcode_shlibpath_var=no
9677       ;;
9678
9679     sysv4)
9680       case $host_vendor in
9681         sni)
9682           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683           hardcode_direct=yes # is this really true???
9684         ;;
9685         siemens)
9686           ## LD is ld it makes a PLAMLIB
9687           ## CC just makes a GrossModule.
9688           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9689           reload_cmds='$CC -r -o $output$reload_objs'
9690           hardcode_direct=no
9691         ;;
9692         motorola)
9693           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9695         ;;
9696       esac
9697       runpath_var='LD_RUN_PATH'
9698       hardcode_shlibpath_var=no
9699       ;;
9700
9701     sysv4.3*)
9702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703       hardcode_shlibpath_var=no
9704       export_dynamic_flag_spec='-Bexport'
9705       ;;
9706
9707     sysv4*MP*)
9708       if test -d /usr/nec; then
9709         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710         hardcode_shlibpath_var=no
9711         runpath_var=LD_RUN_PATH
9712         hardcode_runpath_var=yes
9713         ld_shlibs=yes
9714       fi
9715       ;;
9716
9717     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9718       no_undefined_flag='${wl}-z,text'
9719       archive_cmds_need_lc=no
9720       hardcode_shlibpath_var=no
9721       runpath_var='LD_RUN_PATH'
9722
9723       if test "$GCC" = yes; then
9724         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       else
9727         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729       fi
9730       ;;
9731
9732     sysv5* | sco3.2v5* | sco5v6*)
9733       # Note: We can NOT use -z defs as we might desire, because we do not
9734       # link with -lc, and that would cause any symbols used from libc to
9735       # always be unresolved, which means just about no library would
9736       # ever link correctly.  If we're not using GNU ld we use -z text
9737       # though, which does catch some bad symbols but isn't as heavy-handed
9738       # as -z defs.
9739       no_undefined_flag='${wl}-z,text'
9740       allow_undefined_flag='${wl}-z,nodefs'
9741       archive_cmds_need_lc=no
9742       hardcode_shlibpath_var=no
9743       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9744       hardcode_libdir_separator=':'
9745       link_all_deplibs=yes
9746       export_dynamic_flag_spec='${wl}-Bexport'
9747       runpath_var='LD_RUN_PATH'
9748
9749       if test "$GCC" = yes; then
9750         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752       else
9753         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755       fi
9756       ;;
9757
9758     uts4*)
9759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_libdir_flag_spec='-L$libdir'
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     *)
9765       ld_shlibs=no
9766       ;;
9767     esac
9768
9769     if test x$host_vendor = xsni; then
9770       case $host in
9771       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9772         export_dynamic_flag_spec='${wl}-Blargedynsym'
9773         ;;
9774       esac
9775     fi
9776   fi
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9779 $as_echo "$ld_shlibs" >&6; }
9780 test "$ld_shlibs" = no && can_build_shared=no
9781
9782 with_gnu_ld=$with_gnu_ld
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798 #
9799 # Do we need to explicitly link libc?
9800 #
9801 case "x$archive_cmds_need_lc" in
9802 x|xyes)
9803   # Assume -lc should be added
9804   archive_cmds_need_lc=yes
9805
9806   if test "$enable_shared" = yes && test "$GCC" = yes; then
9807     case $archive_cmds in
9808     *'~'*)
9809       # FIXME: we may have to deal with multi-command sequences.
9810       ;;
9811     '$CC '*)
9812       # Test whether the compiler implicitly links with -lc since on some
9813       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9814       # to ld, don't add -lc before -lgcc.
9815       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9816 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9817 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   $RM conftest*
9821         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822
9823         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9824   (eval $ac_compile) 2>&5
9825   ac_status=$?
9826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9827   test $ac_status = 0; } 2>conftest.err; then
9828           soname=conftest
9829           lib=conftest
9830           libobjs=conftest.$ac_objext
9831           deplibs=
9832           wl=$lt_prog_compiler_wl
9833           pic_flag=$lt_prog_compiler_pic
9834           compiler_flags=-v
9835           linker_flags=-v
9836           verstring=
9837           output_objdir=.
9838           libname=conftest
9839           lt_save_allow_undefined_flag=$allow_undefined_flag
9840           allow_undefined_flag=
9841           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9842   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9843   ac_status=$?
9844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845   test $ac_status = 0; }
9846           then
9847             lt_cv_archive_cmds_need_lc=no
9848           else
9849             lt_cv_archive_cmds_need_lc=yes
9850           fi
9851           allow_undefined_flag=$lt_save_allow_undefined_flag
9852         else
9853           cat conftest.err 1>&5
9854         fi
9855         $RM conftest*
9856
9857 fi
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9859 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9860       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9861       ;;
9862     esac
9863   fi
9864   ;;
9865 esac
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10024 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10025
10026 if test "$GCC" = yes; then
10027   case $host_os in
10028     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10029     *) lt_awk_arg="/^libraries:/" ;;
10030   esac
10031   case $host_os in
10032     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10033     *) lt_sed_strip_eq="s,=/,/,g" ;;
10034   esac
10035   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10036   case $lt_search_path_spec in
10037   *\;*)
10038     # if the path contains ";" then we assume it to be the separator
10039     # otherwise default to the standard path separator (i.e. ":") - it is
10040     # assumed that no part of a normal pathname contains ";" but that should
10041     # okay in the real world where ";" in dirpaths is itself problematic.
10042     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10043     ;;
10044   *)
10045     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10046     ;;
10047   esac
10048   # Ok, now we have the path, separated by spaces, we can step through it
10049   # and add multilib dir if necessary.
10050   lt_tmp_lt_search_path_spec=
10051   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10052   for lt_sys_path in $lt_search_path_spec; do
10053     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10054       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10055     else
10056       test -d "$lt_sys_path" && \
10057         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10058     fi
10059   done
10060   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10061 BEGIN {RS=" "; FS="/|\n";} {
10062   lt_foo="";
10063   lt_count=0;
10064   for (lt_i = NF; lt_i > 0; lt_i--) {
10065     if ($lt_i != "" && $lt_i != ".") {
10066       if ($lt_i == "..") {
10067         lt_count++;
10068       } else {
10069         if (lt_count == 0) {
10070           lt_foo="/" $lt_i lt_foo;
10071         } else {
10072           lt_count--;
10073         }
10074       }
10075     }
10076   }
10077   if (lt_foo != "") { lt_freq[lt_foo]++; }
10078   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10079 }'`
10080   # AWK program above erroneously prepends '/' to C:/dos/paths
10081   # for these hosts.
10082   case $host_os in
10083     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10084       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10085   esac
10086   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10087 else
10088   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10089 fi
10090 library_names_spec=
10091 libname_spec='lib$name'
10092 soname_spec=
10093 shrext_cmds=".so"
10094 postinstall_cmds=
10095 postuninstall_cmds=
10096 finish_cmds=
10097 finish_eval=
10098 shlibpath_var=
10099 shlibpath_overrides_runpath=unknown
10100 version_type=none
10101 dynamic_linker="$host_os ld.so"
10102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10103 need_lib_prefix=unknown
10104 hardcode_into_libs=no
10105
10106 # when you set need_version to no, make sure it does not cause -set_version
10107 # flags to be left without arguments
10108 need_version=unknown
10109
10110 case $host_os in
10111 aix3*)
10112   version_type=linux
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10114   shlibpath_var=LIBPATH
10115
10116   # AIX 3 has no versioning support, so we append a major version to the name.
10117   soname_spec='${libname}${release}${shared_ext}$major'
10118   ;;
10119
10120 aix[4-9]*)
10121   version_type=linux
10122   need_lib_prefix=no
10123   need_version=no
10124   hardcode_into_libs=yes
10125   if test "$host_cpu" = ia64; then
10126     # AIX 5 supports IA64
10127     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10128     shlibpath_var=LD_LIBRARY_PATH
10129   else
10130     # With GCC up to 2.95.x, collect2 would create an import file
10131     # for dependence libraries.  The import file would start with
10132     # the line `#! .'.  This would cause the generated library to
10133     # depend on `.', always an invalid library.  This was fixed in
10134     # development snapshots of GCC prior to 3.0.
10135     case $host_os in
10136       aix4 | aix4.[01] | aix4.[01].*)
10137       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10138            echo ' yes '
10139            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10140         :
10141       else
10142         can_build_shared=no
10143       fi
10144       ;;
10145     esac
10146     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10147     # soname into executable. Probably we can add versioning support to
10148     # collect2, so additional links can be useful in future.
10149     if test "$aix_use_runtimelinking" = yes; then
10150       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10151       # instead of lib<name>.a to let people know that these are not
10152       # typical AIX shared libraries.
10153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154     else
10155       # We preserve .a as extension for shared libraries through AIX4.2
10156       # and later when we are not doing run time linking.
10157       library_names_spec='${libname}${release}.a $libname.a'
10158       soname_spec='${libname}${release}${shared_ext}$major'
10159     fi
10160     shlibpath_var=LIBPATH
10161   fi
10162   ;;
10163
10164 amigaos*)
10165   case $host_cpu in
10166   powerpc)
10167     # Since July 2007 AmigaOS4 officially supports .so libraries.
10168     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170     ;;
10171   m68k)
10172     library_names_spec='$libname.ixlibrary $libname.a'
10173     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10174     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'
10175     ;;
10176   esac
10177   ;;
10178
10179 beos*)
10180   library_names_spec='${libname}${shared_ext}'
10181   dynamic_linker="$host_os ld.so"
10182   shlibpath_var=LIBRARY_PATH
10183   ;;
10184
10185 bsdi[45]*)
10186   version_type=linux
10187   need_version=no
10188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189   soname_spec='${libname}${release}${shared_ext}$major'
10190   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10191   shlibpath_var=LD_LIBRARY_PATH
10192   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10193   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10194   # the default ld.so.conf also contains /usr/contrib/lib and
10195   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10196   # libtool to hard-code these into programs
10197   ;;
10198
10199 cygwin* | mingw* | pw32* | cegcc*)
10200   version_type=windows
10201   shrext_cmds=".dll"
10202   need_version=no
10203   need_lib_prefix=no
10204
10205   case $GCC,$host_os in
10206   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10207     library_names_spec='$libname.dll.a'
10208     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209     postinstall_cmds='base_file=`basename \${file}`~
10210       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10211       dldir=$destdir/`dirname \$dlpath`~
10212       test -d \$dldir || mkdir -p \$dldir~
10213       $install_prog $dir/$dlname \$dldir/$dlname~
10214       chmod a+x \$dldir/$dlname~
10215       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10216         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10217       fi'
10218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10219       dlpath=$dir/\$dldll~
10220        $RM \$dlpath'
10221     shlibpath_overrides_runpath=yes
10222
10223     case $host_os in
10224     cygwin*)
10225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10227
10228       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10229       ;;
10230     mingw* | cegcc*)
10231       # MinGW DLLs use traditional 'lib' prefix
10232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10233       ;;
10234     pw32*)
10235       # pw32 DLLs use 'pw' prefix rather than 'lib'
10236       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10237       ;;
10238     esac
10239     ;;
10240
10241   *)
10242     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10243     ;;
10244   esac
10245   dynamic_linker='Win32 ld.exe'
10246   # FIXME: first we should search . and the directory the executable is in
10247   shlibpath_var=PATH
10248   ;;
10249
10250 darwin* | rhapsody*)
10251   dynamic_linker="$host_os dyld"
10252   version_type=darwin
10253   need_lib_prefix=no
10254   need_version=no
10255   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10256   soname_spec='${libname}${release}${major}$shared_ext'
10257   shlibpath_overrides_runpath=yes
10258   shlibpath_var=DYLD_LIBRARY_PATH
10259   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10260
10261   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10262   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10263   ;;
10264
10265 dgux*)
10266   version_type=linux
10267   need_lib_prefix=no
10268   need_version=no
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   ;;
10273
10274 freebsd* | dragonfly*)
10275   # DragonFly does not have aout.  When/if they implement a new
10276   # versioning mechanism, adjust this.
10277   if test -x /usr/bin/objformat; then
10278     objformat=`/usr/bin/objformat`
10279   else
10280     case $host_os in
10281     freebsd[23].*) objformat=aout ;;
10282     *) objformat=elf ;;
10283     esac
10284   fi
10285   version_type=freebsd-$objformat
10286   case $version_type in
10287     freebsd-elf*)
10288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10289       need_version=no
10290       need_lib_prefix=no
10291       ;;
10292     freebsd-*)
10293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10294       need_version=yes
10295       ;;
10296   esac
10297   shlibpath_var=LD_LIBRARY_PATH
10298   case $host_os in
10299   freebsd2.*)
10300     shlibpath_overrides_runpath=yes
10301     ;;
10302   freebsd3.[01]* | freebsdelf3.[01]*)
10303     shlibpath_overrides_runpath=yes
10304     hardcode_into_libs=yes
10305     ;;
10306   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10307   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10308     shlibpath_overrides_runpath=no
10309     hardcode_into_libs=yes
10310     ;;
10311   *) # from 4.6 on, and DragonFly
10312     shlibpath_overrides_runpath=yes
10313     hardcode_into_libs=yes
10314     ;;
10315   esac
10316   ;;
10317
10318 gnu*)
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   hardcode_into_libs=yes
10326   ;;
10327
10328 haiku*)
10329   version_type=linux
10330   need_lib_prefix=no
10331   need_version=no
10332   dynamic_linker="$host_os runtime_loader"
10333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334   soname_spec='${libname}${release}${shared_ext}$major'
10335   shlibpath_var=LIBRARY_PATH
10336   shlibpath_overrides_runpath=yes
10337   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10338   hardcode_into_libs=yes
10339   ;;
10340
10341 hpux9* | hpux10* | hpux11*)
10342   # Give a soname corresponding to the major version so that dld.sl refuses to
10343   # link against other versions.
10344   version_type=sunos
10345   need_lib_prefix=no
10346   need_version=no
10347   case $host_cpu in
10348   ia64*)
10349     shrext_cmds='.so'
10350     hardcode_into_libs=yes
10351     dynamic_linker="$host_os dld.so"
10352     shlibpath_var=LD_LIBRARY_PATH
10353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355     soname_spec='${libname}${release}${shared_ext}$major'
10356     if test "X$HPUX_IA64_MODE" = X32; then
10357       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10358     else
10359       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10360     fi
10361     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10362     ;;
10363   hppa*64*)
10364     shrext_cmds='.sl'
10365     hardcode_into_libs=yes
10366     dynamic_linker="$host_os dld.sl"
10367     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370     soname_spec='${libname}${release}${shared_ext}$major'
10371     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10373     ;;
10374   *)
10375     shrext_cmds='.sl'
10376     dynamic_linker="$host_os dld.sl"
10377     shlibpath_var=SHLIB_PATH
10378     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380     soname_spec='${libname}${release}${shared_ext}$major'
10381     ;;
10382   esac
10383   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10384   postinstall_cmds='chmod 555 $lib'
10385   # or fails outright, so override atomically:
10386   install_override_mode=555
10387   ;;
10388
10389 interix[3-9]*)
10390   version_type=linux
10391   need_lib_prefix=no
10392   need_version=no
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   shlibpath_overrides_runpath=no
10398   hardcode_into_libs=yes
10399   ;;
10400
10401 irix5* | irix6* | nonstopux*)
10402   case $host_os in
10403     nonstopux*) version_type=nonstopux ;;
10404     *)
10405         if test "$lt_cv_prog_gnu_ld" = yes; then
10406                 version_type=linux
10407         else
10408                 version_type=irix
10409         fi ;;
10410   esac
10411   need_lib_prefix=no
10412   need_version=no
10413   soname_spec='${libname}${release}${shared_ext}$major'
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10415   case $host_os in
10416   irix5* | nonstopux*)
10417     libsuff= shlibsuff=
10418     ;;
10419   *)
10420     case $LD in # libtool.m4 will add one of these switches to LD
10421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10422       libsuff= shlibsuff= libmagic=32-bit;;
10423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10424       libsuff=32 shlibsuff=N32 libmagic=N32;;
10425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10427     *) libsuff= shlibsuff= libmagic=never-match;;
10428     esac
10429     ;;
10430   esac
10431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10432   shlibpath_overrides_runpath=no
10433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10435   hardcode_into_libs=yes
10436   ;;
10437
10438 # No shared lib support for Linux oldld, aout, or coff.
10439 linux*oldld* | linux*aout* | linux*coff*)
10440   dynamic_linker=no
10441   ;;
10442
10443 # This must be Linux ELF.
10444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10445   version_type=linux
10446   need_lib_prefix=no
10447   need_version=no
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449   soname_spec='${libname}${release}${shared_ext}$major'
10450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10451   shlibpath_var=LD_LIBRARY_PATH
10452   shlibpath_overrides_runpath=no
10453
10454   # Some binutils ld are patched to set DT_RUNPATH
10455   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10456   $as_echo_n "(cached) " >&6
10457 else
10458   lt_cv_shlibpath_overrides_runpath=no
10459     save_LDFLAGS=$LDFLAGS
10460     save_libdir=$libdir
10461     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10462          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465
10466 int
10467 main ()
10468 {
10469
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10476   lt_cv_shlibpath_overrides_runpath=yes
10477 fi
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext \
10480     conftest$ac_exeext conftest.$ac_ext
10481     LDFLAGS=$save_LDFLAGS
10482     libdir=$save_libdir
10483
10484 fi
10485
10486   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10487
10488   # This implies no fast_install, which is unacceptable.
10489   # Some rework will be needed to allow for fast_install
10490   # before this can be enabled.
10491   hardcode_into_libs=yes
10492
10493   # Append ld.so.conf contents to the search path
10494   if test -f /etc/ld.so.conf; then
10495     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' ' '`
10496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10497   fi
10498
10499   # We used to test for /lib/ld.so.1 and disable shared libraries on
10500   # powerpc, because MkLinux only supported shared libraries with the
10501   # GNU dynamic linker.  Since this was broken with cross compilers,
10502   # most powerpc-linux boxes support dynamic linking these days and
10503   # people can always --disable-shared, the test was removed, and we
10504   # assume the GNU/Linux dynamic linker is in use.
10505   dynamic_linker='GNU/Linux ld.so'
10506   ;;
10507
10508 netbsd*)
10509   version_type=sunos
10510   need_lib_prefix=no
10511   need_version=no
10512   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10514     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10515     dynamic_linker='NetBSD (a.out) ld.so'
10516   else
10517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10518     soname_spec='${libname}${release}${shared_ext}$major'
10519     dynamic_linker='NetBSD ld.elf_so'
10520   fi
10521   shlibpath_var=LD_LIBRARY_PATH
10522   shlibpath_overrides_runpath=yes
10523   hardcode_into_libs=yes
10524   ;;
10525
10526 newsos6)
10527   version_type=linux
10528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529   shlibpath_var=LD_LIBRARY_PATH
10530   shlibpath_overrides_runpath=yes
10531   ;;
10532
10533 *nto* | *qnx*)
10534   version_type=qnx
10535   need_lib_prefix=no
10536   need_version=no
10537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538   soname_spec='${libname}${release}${shared_ext}$major'
10539   shlibpath_var=LD_LIBRARY_PATH
10540   shlibpath_overrides_runpath=no
10541   hardcode_into_libs=yes
10542   dynamic_linker='ldqnx.so'
10543   ;;
10544
10545 openbsd*)
10546   version_type=sunos
10547   sys_lib_dlsearch_path_spec="/usr/lib"
10548   need_lib_prefix=no
10549   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10550   case $host_os in
10551     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10552     *)                          need_version=no  ;;
10553   esac
10554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10556   shlibpath_var=LD_LIBRARY_PATH
10557   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10558     case $host_os in
10559       openbsd2.[89] | openbsd2.[89].*)
10560         shlibpath_overrides_runpath=no
10561         ;;
10562       *)
10563         shlibpath_overrides_runpath=yes
10564         ;;
10565       esac
10566   else
10567     shlibpath_overrides_runpath=yes
10568   fi
10569   ;;
10570
10571 os2*)
10572   libname_spec='$name'
10573   shrext_cmds=".dll"
10574   need_lib_prefix=no
10575   library_names_spec='$libname${shared_ext} $libname.a'
10576   dynamic_linker='OS/2 ld.exe'
10577   shlibpath_var=LIBPATH
10578   ;;
10579
10580 osf3* | osf4* | osf5*)
10581   version_type=osf
10582   need_lib_prefix=no
10583   need_version=no
10584   soname_spec='${libname}${release}${shared_ext}$major'
10585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586   shlibpath_var=LD_LIBRARY_PATH
10587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10588   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10589   ;;
10590
10591 rdos*)
10592   dynamic_linker=no
10593   ;;
10594
10595 solaris*)
10596   version_type=linux
10597   need_lib_prefix=no
10598   need_version=no
10599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600   soname_spec='${libname}${release}${shared_ext}$major'
10601   shlibpath_var=LD_LIBRARY_PATH
10602   shlibpath_overrides_runpath=yes
10603   hardcode_into_libs=yes
10604   # ldd complains unless libraries are executable
10605   postinstall_cmds='chmod +x $lib'
10606   ;;
10607
10608 sunos4*)
10609   version_type=sunos
10610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10611   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10612   shlibpath_var=LD_LIBRARY_PATH
10613   shlibpath_overrides_runpath=yes
10614   if test "$with_gnu_ld" = yes; then
10615     need_lib_prefix=no
10616   fi
10617   need_version=yes
10618   ;;
10619
10620 sysv4 | sysv4.3*)
10621   version_type=linux
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   case $host_vendor in
10626     sni)
10627       shlibpath_overrides_runpath=no
10628       need_lib_prefix=no
10629       runpath_var=LD_RUN_PATH
10630       ;;
10631     siemens)
10632       need_lib_prefix=no
10633       ;;
10634     motorola)
10635       need_lib_prefix=no
10636       need_version=no
10637       shlibpath_overrides_runpath=no
10638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10639       ;;
10640   esac
10641   ;;
10642
10643 sysv4*MP*)
10644   if test -d /usr/nec ;then
10645     version_type=linux
10646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10647     soname_spec='$libname${shared_ext}.$major'
10648     shlibpath_var=LD_LIBRARY_PATH
10649   fi
10650   ;;
10651
10652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10653   version_type=freebsd-elf
10654   need_lib_prefix=no
10655   need_version=no
10656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10657   soname_spec='${libname}${release}${shared_ext}$major'
10658   shlibpath_var=LD_LIBRARY_PATH
10659   shlibpath_overrides_runpath=yes
10660   hardcode_into_libs=yes
10661   if test "$with_gnu_ld" = yes; then
10662     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10663   else
10664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10665     case $host_os in
10666       sco3.2v5*)
10667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10668         ;;
10669     esac
10670   fi
10671   sys_lib_dlsearch_path_spec='/usr/lib'
10672   ;;
10673
10674 tpf*)
10675   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10676   version_type=linux
10677   need_lib_prefix=no
10678   need_version=no
10679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680   shlibpath_var=LD_LIBRARY_PATH
10681   shlibpath_overrides_runpath=no
10682   hardcode_into_libs=yes
10683   ;;
10684
10685 uts4*)
10686   version_type=linux
10687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688   soname_spec='${libname}${release}${shared_ext}$major'
10689   shlibpath_var=LD_LIBRARY_PATH
10690   ;;
10691
10692 *)
10693   dynamic_linker=no
10694   ;;
10695 esac
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10697 $as_echo "$dynamic_linker" >&6; }
10698 test "$dynamic_linker" = no && can_build_shared=no
10699
10700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10701 if test "$GCC" = yes; then
10702   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10703 fi
10704
10705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10706   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10707 fi
10708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10709   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10710 fi
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10805 hardcode_action=
10806 if test -n "$hardcode_libdir_flag_spec" ||
10807    test -n "$runpath_var" ||
10808    test "X$hardcode_automatic" = "Xyes" ; then
10809
10810   # We can hardcode non-existent directories.
10811   if test "$hardcode_direct" != no &&
10812      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10813      # have to relink, otherwise we might link with an installed library
10814      # when we should be linking with a yet-to-be-installed one
10815      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10816      test "$hardcode_minus_L" != no; then
10817     # Linking always hardcodes the temporary library directory.
10818     hardcode_action=relink
10819   else
10820     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10821     hardcode_action=immediate
10822   fi
10823 else
10824   # We cannot hardcode anything, or else we can only hardcode existing
10825   # directories.
10826   hardcode_action=unsupported
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10829 $as_echo "$hardcode_action" >&6; }
10830
10831 if test "$hardcode_action" = relink ||
10832    test "$inherit_rpath" = yes; then
10833   # Fast installation is not supported
10834   enable_fast_install=no
10835 elif test "$shlibpath_overrides_runpath" = yes ||
10836      test "$enable_shared" = no; then
10837   # Fast installation is not necessary
10838   enable_fast_install=needless
10839 fi
10840
10841
10842
10843
10844
10845
10846   if test "x$enable_dlopen" != xyes; then
10847   enable_dlopen=unknown
10848   enable_dlopen_self=unknown
10849   enable_dlopen_self_static=unknown
10850 else
10851   lt_cv_dlopen=no
10852   lt_cv_dlopen_libs=
10853
10854   case $host_os in
10855   beos*)
10856     lt_cv_dlopen="load_add_on"
10857     lt_cv_dlopen_libs=
10858     lt_cv_dlopen_self=yes
10859     ;;
10860
10861   mingw* | pw32* | cegcc*)
10862     lt_cv_dlopen="LoadLibrary"
10863     lt_cv_dlopen_libs=
10864     ;;
10865
10866   cygwin*)
10867     lt_cv_dlopen="dlopen"
10868     lt_cv_dlopen_libs=
10869     ;;
10870
10871   darwin*)
10872   # if libdl is installed we need to link against it
10873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-ldl  $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h.  */
10882
10883 /* Override any GCC internal prototype to avoid an error.
10884    Use char because int might match the return type of a GCC
10885    builtin and then its argument prototype would still apply.  */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char dlopen ();
10890 int
10891 main ()
10892 {
10893 return dlopen ();
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899   ac_cv_lib_dl_dlopen=yes
10900 else
10901   ac_cv_lib_dl_dlopen=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904     conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10910   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10911 else
10912
10913     lt_cv_dlopen="dyld"
10914     lt_cv_dlopen_libs=
10915     lt_cv_dlopen_self=yes
10916
10917 fi
10918
10919     ;;
10920
10921   *)
10922     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10923 if test "x$ac_cv_func_shl_load" = x""yes; then :
10924   lt_cv_dlopen="shl_load"
10925 else
10926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-ldld  $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h.  */
10935
10936 /* Override any GCC internal prototype to avoid an error.
10937    Use char because int might match the return type of a GCC
10938    builtin and then its argument prototype would still apply.  */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char shl_load ();
10943 int
10944 main ()
10945 {
10946 return shl_load ();
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952   ac_cv_lib_dld_shl_load=yes
10953 else
10954   ac_cv_lib_dld_shl_load=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext \
10957     conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10963   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10964 else
10965   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10966 if test "x$ac_cv_func_dlopen" = x""yes; then :
10967   lt_cv_dlopen="dlopen"
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10972   $as_echo_n "(cached) " >&6
10973 else
10974   ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-ldl  $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h.  */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980    Use char because int might match the return type of a GCC
10981    builtin and then its argument prototype would still apply.  */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995   ac_cv_lib_dl_dlopen=yes
10996 else
10997   ac_cv_lib_dl_dlopen=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000     conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013   ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-lsvld  $LIBS"
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h.  */
11017
11018 /* Override any GCC internal prototype to avoid an error.
11019    Use char because int might match the return type of a GCC
11020    builtin and then its argument prototype would still apply.  */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char dlopen ();
11025 int
11026 main ()
11027 {
11028 return dlopen ();
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034   ac_cv_lib_svld_dlopen=yes
11035 else
11036   ac_cv_lib_svld_dlopen=no
11037 fi
11038 rm -f core conftest.err conftest.$ac_objext \
11039     conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11041 fi
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11046 else
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11050   $as_echo_n "(cached) " >&6
11051 else
11052   ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-ldld  $LIBS"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h.  */
11056
11057 /* Override any GCC internal prototype to avoid an error.
11058    Use char because int might match the return type of a GCC
11059    builtin and then its argument prototype would still apply.  */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char dld_link ();
11064 int
11065 main ()
11066 {
11067 return dld_link ();
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073   ac_cv_lib_dld_dld_link=yes
11074 else
11075   ac_cv_lib_dld_dld_link=no
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext \
11078     conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11084   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11085 fi
11086
11087
11088 fi
11089
11090
11091 fi
11092
11093
11094 fi
11095
11096
11097 fi
11098
11099
11100 fi
11101
11102     ;;
11103   esac
11104
11105   if test "x$lt_cv_dlopen" != xno; then
11106     enable_dlopen=yes
11107   else
11108     enable_dlopen=no
11109   fi
11110
11111   case $lt_cv_dlopen in
11112   dlopen)
11113     save_CPPFLAGS="$CPPFLAGS"
11114     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11115
11116     save_LDFLAGS="$LDFLAGS"
11117     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11118
11119     save_LIBS="$LIBS"
11120     LIBS="$lt_cv_dlopen_libs $LIBS"
11121
11122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11124 if test "${lt_cv_dlopen_self+set}" = set; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127           if test "$cross_compiling" = yes; then :
11128   lt_cv_dlopen_self=cross
11129 else
11130   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11131   lt_status=$lt_dlunknown
11132   cat > conftest.$ac_ext <<_LT_EOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135
11136 #if HAVE_DLFCN_H
11137 #include <dlfcn.h>
11138 #endif
11139
11140 #include <stdio.h>
11141
11142 #ifdef RTLD_GLOBAL
11143 #  define LT_DLGLOBAL           RTLD_GLOBAL
11144 #else
11145 #  ifdef DL_GLOBAL
11146 #    define LT_DLGLOBAL         DL_GLOBAL
11147 #  else
11148 #    define LT_DLGLOBAL         0
11149 #  endif
11150 #endif
11151
11152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11153    find out it does not work in some platform. */
11154 #ifndef LT_DLLAZY_OR_NOW
11155 #  ifdef RTLD_LAZY
11156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11157 #  else
11158 #    ifdef DL_LAZY
11159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11160 #    else
11161 #      ifdef RTLD_NOW
11162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11163 #      else
11164 #        ifdef DL_NOW
11165 #          define LT_DLLAZY_OR_NOW      DL_NOW
11166 #        else
11167 #          define LT_DLLAZY_OR_NOW      0
11168 #        endif
11169 #      endif
11170 #    endif
11171 #  endif
11172 #endif
11173
11174 /* When -fvisbility=hidden is used, assume the code has been annotated
11175    correspondingly for the symbols needed.  */
11176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11177 void fnord () __attribute__((visibility("default")));
11178 #endif
11179
11180 void fnord () { int i=42; }
11181 int main ()
11182 {
11183   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184   int status = $lt_dlunknown;
11185
11186   if (self)
11187     {
11188       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11189       else
11190         {
11191           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11192           else puts (dlerror ());
11193         }
11194       /* dlclose (self); */
11195     }
11196   else
11197     puts (dlerror ());
11198
11199   return status;
11200 }
11201 _LT_EOF
11202   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11203   (eval $ac_link) 2>&5
11204   ac_status=$?
11205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11206   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11207     (./conftest; exit; ) >&5 2>/dev/null
11208     lt_status=$?
11209     case x$lt_status in
11210       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11211       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11212       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11213     esac
11214   else :
11215     # compilation failed
11216     lt_cv_dlopen_self=no
11217   fi
11218 fi
11219 rm -fr conftest*
11220
11221
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11224 $as_echo "$lt_cv_dlopen_self" >&6; }
11225
11226     if test "x$lt_cv_dlopen_self" = xyes; then
11227       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11228       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11231   $as_echo_n "(cached) " >&6
11232 else
11233           if test "$cross_compiling" = yes; then :
11234   lt_cv_dlopen_self_static=cross
11235 else
11236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11237   lt_status=$lt_dlunknown
11238   cat > conftest.$ac_ext <<_LT_EOF
11239 #line 11239 "configure"
11240 #include "confdefs.h"
11241
11242 #if HAVE_DLFCN_H
11243 #include <dlfcn.h>
11244 #endif
11245
11246 #include <stdio.h>
11247
11248 #ifdef RTLD_GLOBAL
11249 #  define LT_DLGLOBAL           RTLD_GLOBAL
11250 #else
11251 #  ifdef DL_GLOBAL
11252 #    define LT_DLGLOBAL         DL_GLOBAL
11253 #  else
11254 #    define LT_DLGLOBAL         0
11255 #  endif
11256 #endif
11257
11258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11259    find out it does not work in some platform. */
11260 #ifndef LT_DLLAZY_OR_NOW
11261 #  ifdef RTLD_LAZY
11262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11263 #  else
11264 #    ifdef DL_LAZY
11265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11266 #    else
11267 #      ifdef RTLD_NOW
11268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11269 #      else
11270 #        ifdef DL_NOW
11271 #          define LT_DLLAZY_OR_NOW      DL_NOW
11272 #        else
11273 #          define LT_DLLAZY_OR_NOW      0
11274 #        endif
11275 #      endif
11276 #    endif
11277 #  endif
11278 #endif
11279
11280 /* When -fvisbility=hidden is used, assume the code has been annotated
11281    correspondingly for the symbols needed.  */
11282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11283 void fnord () __attribute__((visibility("default")));
11284 #endif
11285
11286 void fnord () { int i=42; }
11287 int main ()
11288 {
11289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11290   int status = $lt_dlunknown;
11291
11292   if (self)
11293     {
11294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11295       else
11296         {
11297           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11298           else puts (dlerror ());
11299         }
11300       /* dlclose (self); */
11301     }
11302   else
11303     puts (dlerror ());
11304
11305   return status;
11306 }
11307 _LT_EOF
11308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11309   (eval $ac_link) 2>&5
11310   ac_status=$?
11311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11313     (./conftest; exit; ) >&5 2>/dev/null
11314     lt_status=$?
11315     case x$lt_status in
11316       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11319     esac
11320   else :
11321     # compilation failed
11322     lt_cv_dlopen_self_static=no
11323   fi
11324 fi
11325 rm -fr conftest*
11326
11327
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11331     fi
11332
11333     CPPFLAGS="$save_CPPFLAGS"
11334     LDFLAGS="$save_LDFLAGS"
11335     LIBS="$save_LIBS"
11336     ;;
11337   esac
11338
11339   case $lt_cv_dlopen_self in
11340   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341   *) enable_dlopen_self=unknown ;;
11342   esac
11343
11344   case $lt_cv_dlopen_self_static in
11345   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346   *) enable_dlopen_self_static=unknown ;;
11347   esac
11348 fi
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366 striplib=
11367 old_striplib=
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 # FIXME - insert some real tests, host_os isn't really good enough
11377   case $host_os in
11378   darwin*)
11379     if test -n "$STRIP" ; then
11380       striplib="$STRIP -x"
11381       old_striplib="$STRIP -S"
11382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383 $as_echo "yes" >&6; }
11384     else
11385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387     fi
11388     ;;
11389   *)
11390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392     ;;
11393   esac
11394 fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407   # Report which library types will actually be built
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11411 $as_echo "$can_build_shared" >&6; }
11412
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11414 $as_echo_n "checking whether to build shared libraries... " >&6; }
11415   test "$can_build_shared" = "no" && enable_shared=no
11416
11417   # On AIX, shared libraries and static libraries use the same namespace, and
11418   # are all built from PIC.
11419   case $host_os in
11420   aix3*)
11421     test "$enable_shared" = yes && enable_static=no
11422     if test -n "$RANLIB"; then
11423       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424       postinstall_cmds='$RANLIB $lib'
11425     fi
11426     ;;
11427
11428   aix[4-9]*)
11429     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430       test "$enable_shared" = yes && enable_static=no
11431     fi
11432     ;;
11433   esac
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11435 $as_echo "$enable_shared" >&6; }
11436
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11438 $as_echo_n "checking whether to build static libraries... " >&6; }
11439   # Make sure either enable_shared or enable_static is yes.
11440   test "$enable_shared" = yes || enable_static=yes
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11442 $as_echo "$enable_static" >&6; }
11443
11444
11445
11446
11447 fi
11448 ac_ext=c
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
11454 CC="$lt_save_CC"
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468         ac_config_commands="$ac_config_commands libtool"
11469
11470
11471
11472
11473 # Only expand once:
11474
11475
11476
11477
11478 backtrace_supported=yes
11479
11480 if test -n "${with_target_subdir}"; then
11481   # We are compiling a GCC library.  We can assume that the unwind
11482   # library exists.
11483   BACKTRACE_FILE="backtrace.lo simple.lo"
11484 else
11485   ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11486 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11487   ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11488 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11489   BACKTRACE_FILE="backtrace.lo simple.lo"
11490 else
11491   BACKTRACE_FILE="nounwind.lo"
11492                     backtrace_supported=no
11493 fi
11494
11495 else
11496   BACKTRACE_FILE="nounwind.lo"
11497      backtrace_supported=no
11498 fi
11499
11500
11501 fi
11502
11503
11504 EXTRA_FLAGS=
11505 if test -n "${with_target_subdir}"; then
11506   EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11509 $as_echo_n "checking for -funwind-tables option... " >&6; }
11510 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   CFLAGS_hold="$CFLAGS"
11514      CFLAGS="$CFLAGS -funwind-tables"
11515      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h.  */
11517 static int f() { return 0; }
11518 int
11519 main ()
11520 {
11521 return f();
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527   libbacktrace_cv_c_unwind_tables=yes
11528 else
11529   libbacktrace_cv_c_unwind_tables=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532      CFLAGS="$CFLAGS_hold"
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11535 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11536   if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11537     EXTRA_FLAGS=-funwind-tables
11538   fi
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11540 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11541 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   CFLAGS_hold="$CFLAGS"
11545      CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548
11549 int
11550 main ()
11551 {
11552 return 0;
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_compile "$LINENO"; then :
11558   libbacktrace_cv_c_random_seed_string=yes
11559 else
11560   libbacktrace_cv_c_random_seed_string=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563      CFLAGS="$CFLAGS_hold"
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11566 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11567   if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11568     EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11569   fi
11570 fi
11571
11572
11573 ac_ext=c
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578
11579 WARN_FLAGS=
11580 save_CFLAGS="$CFLAGS"
11581 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11582                           -Wmissing-prototypes -Wold-style-definition \
11583                           -Wmissing-format-attribute -Wcast-qual; do
11584   # Do the check with the no- prefix removed since gcc silently
11585   # accepts any -Wno-* option on purpose
11586   case $real_option in
11587     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11588     *) option=$real_option ;;
11589   esac
11590   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11591
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11593 $as_echo_n "checking whether $CC supports $option... " >&6; }
11594 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   CFLAGS="$option"
11598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h.  */
11600
11601 int
11602 main ()
11603 {
11604
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"; then :
11610   eval "$as_acx_Woption=yes"
11611 else
11612   eval "$as_acx_Woption=no"
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615
11616 fi
11617 eval ac_res=\$$as_acx_Woption
11618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11619 $as_echo "$ac_res" >&6; }
11620   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11621   WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11622 fi
11623   done
11624 CFLAGS="$save_CFLAGS"
11625 ac_ext=c
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630
11631
11632
11633 if test -n "${with_target_subdir}"; then
11634   WARN_FLAGS="$WARN_FLAGS -Werror"
11635 fi
11636
11637
11638
11639 if test -n "${with_target_subdir}"; then
11640
11641
11642 # Check whether --with-system-libunwind was given.
11643 if test "${with_system_libunwind+set}" = set; then :
11644   withval=$with_system_libunwind;
11645 fi
11646
11647   # If system-libunwind was not specifically set, pick a default setting.
11648   if test x$with_system_libunwind = x; then
11649     case ${target} in
11650       ia64-*-hpux*) with_system_libunwind=yes ;;
11651       *) with_system_libunwind=no ;;
11652     esac
11653   fi
11654   # Based on system-libunwind and target, do we have ipinfo?
11655   if  test x$with_system_libunwind = xyes; then
11656     case ${target} in
11657       ia64-*-*) have_unwind_getipinfo=no ;;
11658       *) have_unwind_getipinfo=yes ;;
11659     esac
11660   else
11661     # Darwin before version 9 does not have _Unwind_GetIPInfo.
11662
11663     case ${target} in
11664       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11665       *) have_unwind_getipinfo=yes ;;
11666     esac
11667
11668   fi
11669
11670   if test x$have_unwind_getipinfo = xyes; then
11671
11672 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11673
11674   fi
11675
11676 else
11677   ac_save_CFFLAGS="$CFLAGS"
11678   CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11680 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683 #include "unwind.h"
11684         struct _Unwind_Context *context;
11685         int ip_before_insn = 0;
11686 int
11687 main ()
11688 {
11689 return _Unwind_GetIPInfo (context, &ip_before_insn);
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695   have_unwind_getipinfo=yes
11696 else
11697   have_unwind_getipinfo=no
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext \
11700     conftest$ac_exeext conftest.$ac_ext
11701   CFLAGS="$ac_save_CFLAGS"
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11703 $as_echo "$have_unwind_getipinfo" >&6; }
11704   if test "$have_unwind_getipinfo" = "yes"; then
11705
11706 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11707
11708   fi
11709 fi
11710
11711 # When building as a target library, shared libraries may want to link
11712 # this in.  We don't want to provide another shared library to
11713 # complicate dependencies.  Instead, we just compile with -fPIC.
11714 PIC_FLAG=
11715 if test -n "${with_target_subdir}"; then
11716   PIC_FLAG=-fPIC
11717 fi
11718 # Similarly, use -fPIC with --enable-host-shared:
11719 # Check whether --enable-host-shared was given.
11720 if test "${enable_host_shared+set}" = set; then :
11721   enableval=$enable_host_shared; PIC_FLAG=-fPIC
11722 fi
11723
11724
11725
11726 # Test for __sync support.
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11728 $as_echo_n "checking __sync extensions... " >&6; }
11729 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732   if test -n "${with_target_subdir}"; then
11733    libbacktrace_cv_sys_sync=yes
11734  else
11735    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h.  */
11737 int i;
11738 int
11739 main ()
11740 {
11741 __sync_bool_compare_and_swap (&i, i, i);
11742                        __sync_lock_test_and_set (&i, 1);
11743                        __sync_lock_release (&i);
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 if ac_fn_c_try_link "$LINENO"; then :
11749   libbacktrace_cv_sys_sync=yes
11750 else
11751   libbacktrace_cv_sys_sync=no
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext \
11754     conftest$ac_exeext conftest.$ac_ext
11755  fi
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11758 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11759 BACKTRACE_SUPPORTS_THREADS=0
11760 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11761   BACKTRACE_SUPPORTS_THREADS=1
11762
11763 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11764
11765 fi
11766
11767
11768 # Test for __atomic support.
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11770 $as_echo_n "checking __atomic extensions... " >&6; }
11771 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   if test -n "${with_target_subdir}"; then
11775    libbacktrace_cv_sys_atomic=yes
11776  else
11777    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h.  */
11779 int i;
11780 int
11781 main ()
11782 {
11783 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11784                        __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790   libbacktrace_cv_sys_atomic=yes
11791 else
11792   libbacktrace_cv_sys_atomic=no
11793 fi
11794 rm -f core conftest.err conftest.$ac_objext \
11795     conftest$ac_exeext conftest.$ac_ext
11796  fi
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
11799 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
11800 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
11801
11802 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
11803
11804 fi
11805
11806 # The library needs to be able to read the executable itself.  Compile
11807 # a file to determine the executable format.  The awk script
11808 # filetype.awk prints out the file type.
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
11810 $as_echo_n "checking output filetype... " >&6; }
11811 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
11812   $as_echo_n "(cached) " >&6
11813 else
11814   filetype=
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817 int i;
11818 int
11819 main ()
11820 {
11821 int j;
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_compile "$LINENO"; then :
11827   filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
11828 else
11829   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11831 as_fn_error "compiler failed
11832 See \`config.log' for more details." "$LINENO" 5; }
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 libbacktrace_cv_sys_filetype=$filetype
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
11838 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
11839
11840 # Match the file type to decide what files to compile.
11841 FORMAT_FILE=
11842 backtrace_supports_data=yes
11843 case "$libbacktrace_cv_sys_filetype" in
11844 elf*) FORMAT_FILE="elf.lo" ;;
11845 pecoff) FORMAT_FILE="pecoff.lo"
11846         backtrace_supports_data=no
11847         ;;
11848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
11849 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
11850    FORMAT_FILE="unknown.lo"
11851    backtrace_supported=no
11852    ;;
11853 esac
11854
11855
11856 # ELF defines.
11857 elfsize=
11858 case "$libbacktrace_cv_sys_filetype" in
11859 elf32) elfsize=32 ;;
11860 elf64) elfsize=64 ;;
11861 *)     elfsize=unused
11862 esac
11863
11864 cat >>confdefs.h <<_ACEOF
11865 #define BACKTRACE_ELF_SIZE $elfsize
11866 _ACEOF
11867
11868
11869 BACKTRACE_SUPPORTED=0
11870 if test "$backtrace_supported" = "yes"; then
11871   BACKTRACE_SUPPORTED=1
11872 fi
11873
11874
11875 BACKTRACE_SUPPORTS_DATA=0
11876 if test "$backtrace_supports_data" = "yes"; then
11877   BACKTRACE_SUPPORTS_DATA=1
11878 fi
11879
11880
11881
11882
11883 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
11884
11885 acx_cv_header_stdint=stddef.h
11886 acx_cv_header_stdint_kind="(already complete)"
11887 for i in stdint.h $inttype_headers; do
11888   unset ac_cv_type_uintptr_t
11889   unset ac_cv_type_uintmax_t
11890   unset ac_cv_type_int_least32_t
11891   unset ac_cv_type_int_fast32_t
11892   unset ac_cv_type_uint64_t
11893   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11894   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11895 #include <$i>
11896 "
11897 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11898   acx_cv_header_stdint=$i
11899 else
11900   continue
11901 fi
11902
11903   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11904 #include <$i>
11905 "
11906 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11907
11908 else
11909   acx_cv_header_stdint_kind="(mostly complete)"
11910 fi
11911
11912   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11913 #include <$i>
11914 "
11915 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11916
11917 else
11918   acx_cv_header_stdint_kind="(mostly complete)"
11919 fi
11920
11921   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11922 #include <$i>
11923 "
11924 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11925
11926 else
11927   acx_cv_header_stdint_kind="(mostly complete)"
11928 fi
11929
11930   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11931 #include <$i>
11932 "
11933 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11934
11935 else
11936   acx_cv_header_stdint_kind="(lacks uint64_t)"
11937 fi
11938
11939   break
11940 done
11941 if test "$acx_cv_header_stdint" = stddef.h; then
11942   acx_cv_header_stdint_kind="(lacks uintmax_t)"
11943   for i in stdint.h $inttype_headers; do
11944     unset ac_cv_type_uintptr_t
11945     unset ac_cv_type_uint32_t
11946     unset ac_cv_type_uint64_t
11947     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11948     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11949 #include <$i>
11950 "
11951 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11952   acx_cv_header_stdint=$i
11953 else
11954   continue
11955 fi
11956
11957     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11958 #include <$i>
11959 "
11960 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11961
11962 fi
11963
11964     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11965 #include <$i>
11966 "
11967 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11968
11969 fi
11970
11971     break
11972   done
11973 fi
11974 if test "$acx_cv_header_stdint" = stddef.h; then
11975   acx_cv_header_stdint_kind="(u_intXX_t style)"
11976   for i in sys/types.h $inttype_headers; do
11977     unset ac_cv_type_u_int32_t
11978     unset ac_cv_type_u_int64_t
11979     $as_echo_n "looking for u_intXX_t types in $i, " >&6
11980     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11981 #include <$i>
11982 "
11983 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11984   acx_cv_header_stdint=$i
11985 else
11986   continue
11987 fi
11988
11989     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11990 #include <$i>
11991 "
11992 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11993
11994 fi
11995
11996     break
11997   done
11998 fi
11999 if test "$acx_cv_header_stdint" = stddef.h; then
12000   acx_cv_header_stdint_kind="(using manual detection)"
12001 fi
12002
12003 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12004 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12005 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12006 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12007 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12008
12009 # ----------------- Summarize what we found so far
12010
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12012 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12013
12014 case `$as_basename -- gstdint.h ||
12015 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12016          Xgstdint.h : 'X\(//\)$' \| \
12017          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12018 $as_echo X/gstdint.h |
12019     sed '/^.*\/\([^/][^/]*\)\/*$/{
12020             s//\1/
12021             q
12022           }
12023           /^X\/\(\/\/\)$/{
12024             s//\1/
12025             q
12026           }
12027           /^X\/\(\/\).*/{
12028             s//\1/
12029             q
12030           }
12031           s/.*/./; q'` in
12032   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12033 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12034   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12035 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12036   *) ;;
12037 esac
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12040 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12041
12042 # ----------------- done included file, check C basic types --------
12043
12044 # Lacking an uintptr_t?  Test size of void *
12045 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12046   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12049 # This bug is HP SR number 8606223364.
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12051 $as_echo_n "checking size of void *... " >&6; }
12052 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12056
12057 else
12058   if test "$ac_cv_type_void_p" = yes; then
12059      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12061 { as_fn_set_status 77
12062 as_fn_error "cannot compute sizeof (void *)
12063 See \`config.log' for more details." "$LINENO" 5; }; }
12064    else
12065      ac_cv_sizeof_void_p=0
12066    fi
12067 fi
12068
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12071 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12072
12073
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12077 _ACEOF
12078
12079  ;;
12080 esac
12081
12082 # Lacking an uint64_t?  Test size of long
12083 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12084   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12087 # This bug is HP SR number 8606223364.
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12089 $as_echo_n "checking size of long... " >&6; }
12090 if test "${ac_cv_sizeof_long+set}" = set; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12094
12095 else
12096   if test "$ac_cv_type_long" = yes; then
12097      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12099 { as_fn_set_status 77
12100 as_fn_error "cannot compute sizeof (long)
12101 See \`config.log' for more details." "$LINENO" 5; }; }
12102    else
12103      ac_cv_sizeof_long=0
12104    fi
12105 fi
12106
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12109 $as_echo "$ac_cv_sizeof_long" >&6; }
12110
12111
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define SIZEOF_LONG $ac_cv_sizeof_long
12115 _ACEOF
12116
12117  ;;
12118 esac
12119
12120 if test $acx_cv_header_stdint = stddef.h; then
12121   # Lacking a good header?  Test size of everything and deduce all types.
12122   # The cast to long int works around a bug in the HP C Compiler
12123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12125 # This bug is HP SR number 8606223364.
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12127 $as_echo_n "checking size of int... " >&6; }
12128 if test "${ac_cv_sizeof_int+set}" = set; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12132
12133 else
12134   if test "$ac_cv_type_int" = yes; then
12135      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12137 { as_fn_set_status 77
12138 as_fn_error "cannot compute sizeof (int)
12139 See \`config.log' for more details." "$LINENO" 5; }; }
12140    else
12141      ac_cv_sizeof_int=0
12142    fi
12143 fi
12144
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12147 $as_echo "$ac_cv_sizeof_int" >&6; }
12148
12149
12150
12151 cat >>confdefs.h <<_ACEOF
12152 #define SIZEOF_INT $ac_cv_sizeof_int
12153 _ACEOF
12154
12155
12156   # The cast to long int works around a bug in the HP C Compiler
12157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12159 # This bug is HP SR number 8606223364.
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12161 $as_echo_n "checking size of short... " >&6; }
12162 if test "${ac_cv_sizeof_short+set}" = set; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12166
12167 else
12168   if test "$ac_cv_type_short" = yes; then
12169      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12171 { as_fn_set_status 77
12172 as_fn_error "cannot compute sizeof (short)
12173 See \`config.log' for more details." "$LINENO" 5; }; }
12174    else
12175      ac_cv_sizeof_short=0
12176    fi
12177 fi
12178
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12181 $as_echo "$ac_cv_sizeof_short" >&6; }
12182
12183
12184
12185 cat >>confdefs.h <<_ACEOF
12186 #define SIZEOF_SHORT $ac_cv_sizeof_short
12187 _ACEOF
12188
12189
12190   # The cast to long int works around a bug in the HP C Compiler
12191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12193 # This bug is HP SR number 8606223364.
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12195 $as_echo_n "checking size of char... " >&6; }
12196 if test "${ac_cv_sizeof_char+set}" = set; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12200
12201 else
12202   if test "$ac_cv_type_char" = yes; then
12203      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12205 { as_fn_set_status 77
12206 as_fn_error "cannot compute sizeof (char)
12207 See \`config.log' for more details." "$LINENO" 5; }; }
12208    else
12209      ac_cv_sizeof_char=0
12210    fi
12211 fi
12212
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12215 $as_echo "$ac_cv_sizeof_char" >&6; }
12216
12217
12218
12219 cat >>confdefs.h <<_ACEOF
12220 #define SIZEOF_CHAR $ac_cv_sizeof_char
12221 _ACEOF
12222
12223
12224
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12226 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12227   case "$ac_cv_sizeof_char" in
12228     1) acx_cv_type_int8_t=char ;;
12229     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12230   esac
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12232 $as_echo "$acx_cv_type_int8_t" >&6; }
12233
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12235 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12236   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12237     2:*) acx_cv_type_int16_t=int ;;
12238     *:2) acx_cv_type_int16_t=short ;;
12239     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12240   esac
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12242 $as_echo "$acx_cv_type_int16_t" >&6; }
12243
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12245 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12246   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12247     4:*) acx_cv_type_int32_t=int ;;
12248     *:4) acx_cv_type_int32_t=long ;;
12249     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12250   esac
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12252 $as_echo "$acx_cv_type_int32_t" >&6; }
12253 fi
12254
12255 # These tests are here to make the output prettier
12256
12257 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12258   case "$ac_cv_sizeof_long" in
12259     8) acx_cv_type_int64_t=long ;;
12260   esac
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12262 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12264 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12265 fi
12266
12267 # Now we can use the above types
12268
12269 if test "$ac_cv_type_uintptr_t" != yes; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12271 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12272   case $ac_cv_sizeof_void_p in
12273     2) acx_cv_type_intptr_t=int16_t ;;
12274     4) acx_cv_type_intptr_t=int32_t ;;
12275     8) acx_cv_type_intptr_t=int64_t ;;
12276     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12277   esac
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12279 $as_echo "$acx_cv_type_intptr_t" >&6; }
12280 fi
12281
12282 # ----------------- done all checks, emit header -------------
12283 ac_config_commands="$ac_config_commands gstdint.h"
12284
12285
12286
12287
12288 for ac_header in sys/mman.h
12289 do :
12290   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12291 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12292   cat >>confdefs.h <<_ACEOF
12293 #define HAVE_SYS_MMAN_H 1
12294 _ACEOF
12295
12296 fi
12297
12298 done
12299
12300 if test "$ac_cv_header_sys_mman_h" = "no"; then
12301   have_mmap=no
12302 else
12303   if test -n "${with_target_subdir}"; then
12304     # When built as a GCC target library, we can't do a link test.  We
12305     # simply assume that if we have mman.h, we have mmap.
12306     have_mmap=yes
12307     case "${host}" in
12308     spu-*-*)
12309         # The SPU does not have mmap, but it has a sys/mman.h header file
12310         # containing "mmap_eaddr" and the mmap flags, confusing the test.
12311         have_mmap=no ;;
12312     esac
12313   else
12314     ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12315 if test "x$ac_cv_func_mmap" = x""yes; then :
12316   have_mmap=yes
12317 else
12318   have_mmap=no
12319 fi
12320
12321   fi
12322 fi
12323 if test "$have_mmap" = "no"; then
12324   VIEW_FILE=read.lo
12325   ALLOC_FILE=alloc.lo
12326 else
12327   VIEW_FILE=mmapio.lo
12328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h.  */
12330
12331 #include <sys/mman.h>
12332 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12333   #error no MAP_ANONYMOUS
12334 #endif
12335
12336 _ACEOF
12337 if ac_fn_c_try_cpp "$LINENO"; then :
12338   ALLOC_FILE=mmap.lo
12339 else
12340   ALLOC_FILE=alloc.lo
12341 fi
12342 rm -f conftest.err conftest.$ac_ext
12343 fi
12344
12345
12346
12347 BACKTRACE_USES_MALLOC=0
12348 if test "$ALLOC_FILE" = "alloc.lo"; then
12349   BACKTRACE_USES_MALLOC=1
12350 fi
12351
12352
12353 # Check for dl_iterate_phdr.
12354 for ac_header in link.h
12355 do :
12356   ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12357 if test "x$ac_cv_header_link_h" = x""yes; then :
12358   cat >>confdefs.h <<_ACEOF
12359 #define HAVE_LINK_H 1
12360 _ACEOF
12361
12362 fi
12363
12364 done
12365
12366 if test "$ac_cv_header_link_h" = "no"; then
12367   have_dl_iterate_phdr=no
12368 else
12369   if test -n "${with_target_subdir}"; then
12370     # When built as a GCC target library, we can't do a link test.
12371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h.  */
12373 #include <link.h>
12374
12375 _ACEOF
12376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12377   $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12378   have_dl_iterate_phdr=yes
12379 else
12380   have_dl_iterate_phdr=no
12381 fi
12382 rm -f conftest*
12383
12384     case "${host}" in
12385     *-*-solaris2.10*)
12386         # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12387         # header file but is only in -ldl.
12388         have_dl_iterate_phdr=no ;;
12389     esac
12390   else
12391     ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12392 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12393   have_dl_iterate_phdr=yes
12394 else
12395   have_dl_iterate_phdr=no
12396 fi
12397
12398   fi
12399 fi
12400 if test "$have_dl_iterate_phdr" = "yes"; then
12401
12402 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12403
12404 fi
12405
12406 # Check for the fcntl function.
12407 if test -n "${with_target_subdir}"; then
12408    case "${host}" in
12409    *-*-mingw*) have_fcntl=no ;;
12410    *) have_fcntl=yes ;;
12411    esac
12412 else
12413   ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12414 if test "x$ac_cv_func_fcntl" = x""yes; then :
12415   have_fcntl=yes
12416 else
12417   have_fcntl=no
12418 fi
12419
12420 fi
12421 if test "$have_fcntl" = "yes"; then
12422
12423 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12424
12425 fi
12426
12427 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12428 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12429   ac_have_decl=1
12430 else
12431   ac_have_decl=0
12432 fi
12433
12434 cat >>confdefs.h <<_ACEOF
12435 #define HAVE_DECL_STRNLEN $ac_have_decl
12436 _ACEOF
12437
12438
12439 # Check for getexecname function.
12440 if test -n "${with_target_subdir}"; then
12441    case "${host}" in
12442    *-*-solaris2*) have_getexecname=yes ;;
12443    *) have_getexecname=no ;;
12444    esac
12445 else
12446   ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12447 if test "x$ac_cv_func_getexecname" = x""yes; then :
12448   have_getexecname=yes
12449 else
12450   have_getexecname=no
12451 fi
12452
12453 fi
12454 if test "$have_getexecname" = "yes"; then
12455
12456 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12457
12458 fi
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12461 $as_echo_n "checking whether tests can run... " >&6; }
12462 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   if test "$cross_compiling" = yes; then :
12466   libbacktrace_cv_sys_native=no
12467 else
12468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h.  */
12470
12471 int
12472 main ()
12473 {
12474 return 0;
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 if ac_fn_c_try_run "$LINENO"; then :
12480   libbacktrace_cv_sys_native=yes
12481 else
12482   libbacktrace_cv_sys_native=no
12483 fi
12484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12485   conftest.$ac_objext conftest.beam conftest.$ac_ext
12486 fi
12487
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12490 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12491  if test "$libbacktrace_cv_sys_native" = "yes"; then
12492   NATIVE_TRUE=
12493   NATIVE_FALSE='#'
12494 else
12495   NATIVE_TRUE='#'
12496   NATIVE_FALSE=
12497 fi
12498
12499
12500 if test "${multilib}" = "yes"; then
12501   multilib_arg="--enable-multilib"
12502 else
12503   multilib_arg=
12504 fi
12505
12506 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12507
12508
12509 # We need multilib support, but only if configuring for the target.
12510 ac_config_commands="$ac_config_commands default"
12511
12512
12513 cat >confcache <<\_ACEOF
12514 # This file is a shell script that caches the results of configure
12515 # tests run on this system so they can be shared between configure
12516 # scripts and configure runs, see configure's option --config-cache.
12517 # It is not useful on other systems.  If it contains results you don't
12518 # want to keep, you may remove or edit it.
12519 #
12520 # config.status only pays attention to the cache file if you give it
12521 # the --recheck option to rerun configure.
12522 #
12523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12525 # following values.
12526
12527 _ACEOF
12528
12529 # The following way of writing the cache mishandles newlines in values,
12530 # but we know of no workaround that is simple, portable, and efficient.
12531 # So, we kill variables containing newlines.
12532 # Ultrix sh set writes to stderr and can't be redirected directly,
12533 # and sets the high bit in the cache file unless we assign to the vars.
12534 (
12535   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12536     eval ac_val=\$$ac_var
12537     case $ac_val in #(
12538     *${as_nl}*)
12539       case $ac_var in #(
12540       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12542       esac
12543       case $ac_var in #(
12544       _ | IFS | as_nl) ;; #(
12545       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12546       *) { eval $ac_var=; unset $ac_var;} ;;
12547       esac ;;
12548     esac
12549   done
12550
12551   (set) 2>&1 |
12552     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12553     *${as_nl}ac_space=\ *)
12554       # `set' does not quote correctly, so add quotes: double-quote
12555       # substitution turns \\\\ into \\, and sed turns \\ into \.
12556       sed -n \
12557         "s/'/'\\\\''/g;
12558           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12559       ;; #(
12560     *)
12561       # `set' quotes correctly as required by POSIX, so do not add quotes.
12562       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12563       ;;
12564     esac |
12565     sort
12566 ) |
12567   sed '
12568      /^ac_cv_env_/b end
12569      t clear
12570      :clear
12571      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12572      t end
12573      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12574      :end' >>confcache
12575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12576   if test -w "$cache_file"; then
12577     test "x$cache_file" != "x/dev/null" &&
12578       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12579 $as_echo "$as_me: updating cache $cache_file" >&6;}
12580     cat confcache >$cache_file
12581   else
12582     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12584   fi
12585 fi
12586 rm -f confcache
12587
12588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12589 # Let make expand exec_prefix.
12590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12591
12592 DEFS=-DHAVE_CONFIG_H
12593
12594 ac_libobjs=
12595 ac_ltlibobjs=
12596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12597   # 1. Remove the extension, and $U if already installed.
12598   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12599   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12600   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12601   #    will be set to the directory where LIBOBJS objects are built.
12602   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12603   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12604 done
12605 LIBOBJS=$ac_libobjs
12606
12607 LTLIBOBJS=$ac_ltlibobjs
12608
12609
12610  if test -n "$EXEEXT"; then
12611   am__EXEEXT_TRUE=
12612   am__EXEEXT_FALSE='#'
12613 else
12614   am__EXEEXT_TRUE='#'
12615   am__EXEEXT_FALSE=
12616 fi
12617
12618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12619   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12621 fi
12622 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12623   as_fn_error "conditional \"NATIVE\" was never defined.
12624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12625 fi
12626
12627 : ${CONFIG_STATUS=./config.status}
12628 ac_write_fail=0
12629 ac_clean_files_save=$ac_clean_files
12630 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12632 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12633 as_write_fail=0
12634 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12635 #! $SHELL
12636 # Generated by $as_me.
12637 # Run this file to recreate the current configuration.
12638 # Compiler output produced by configure, useful for debugging
12639 # configure, is in config.log if it exists.
12640
12641 debug=false
12642 ac_cs_recheck=false
12643 ac_cs_silent=false
12644
12645 SHELL=\${CONFIG_SHELL-$SHELL}
12646 export SHELL
12647 _ASEOF
12648 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12649 ## -------------------- ##
12650 ## M4sh Initialization. ##
12651 ## -------------------- ##
12652
12653 # Be more Bourne compatible
12654 DUALCASE=1; export DUALCASE # for MKS sh
12655 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12656   emulate sh
12657   NULLCMD=:
12658   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12659   # is contrary to our usage.  Disable this feature.
12660   alias -g '${1+"$@"}'='"$@"'
12661   setopt NO_GLOB_SUBST
12662 else
12663   case `(set -o) 2>/dev/null` in #(
12664   *posix*) :
12665     set -o posix ;; #(
12666   *) :
12667      ;;
12668 esac
12669 fi
12670
12671
12672 as_nl='
12673 '
12674 export as_nl
12675 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12676 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12679 # Prefer a ksh shell builtin over an external printf program on Solaris,
12680 # but without wasting forks for bash or zsh.
12681 if test -z "$BASH_VERSION$ZSH_VERSION" \
12682     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12683   as_echo='print -r --'
12684   as_echo_n='print -rn --'
12685 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12686   as_echo='printf %s\n'
12687   as_echo_n='printf %s'
12688 else
12689   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12690     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12691     as_echo_n='/usr/ucb/echo -n'
12692   else
12693     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12694     as_echo_n_body='eval
12695       arg=$1;
12696       case $arg in #(
12697       *"$as_nl"*)
12698         expr "X$arg" : "X\\(.*\\)$as_nl";
12699         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12700       esac;
12701       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12702     '
12703     export as_echo_n_body
12704     as_echo_n='sh -c $as_echo_n_body as_echo'
12705   fi
12706   export as_echo_body
12707   as_echo='sh -c $as_echo_body as_echo'
12708 fi
12709
12710 # The user is always right.
12711 if test "${PATH_SEPARATOR+set}" != set; then
12712   PATH_SEPARATOR=:
12713   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12714     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12715       PATH_SEPARATOR=';'
12716   }
12717 fi
12718
12719
12720 # IFS
12721 # We need space, tab and new line, in precisely that order.  Quoting is
12722 # there to prevent editors from complaining about space-tab.
12723 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12724 # splitting by setting IFS to empty value.)
12725 IFS=" ""        $as_nl"
12726
12727 # Find who we are.  Look in the path if we contain no directory separator.
12728 case $0 in #((
12729   *[\\/]* ) as_myself=$0 ;;
12730   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731 for as_dir in $PATH
12732 do
12733   IFS=$as_save_IFS
12734   test -z "$as_dir" && as_dir=.
12735     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12736   done
12737 IFS=$as_save_IFS
12738
12739      ;;
12740 esac
12741 # We did not find ourselves, most probably we were run as `sh COMMAND'
12742 # in which case we are not to be found in the path.
12743 if test "x$as_myself" = x; then
12744   as_myself=$0
12745 fi
12746 if test ! -f "$as_myself"; then
12747   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12748   exit 1
12749 fi
12750
12751 # Unset variables that we do not need and which cause bugs (e.g. in
12752 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12753 # suppresses any "Segmentation fault" message there.  '((' could
12754 # trigger a bug in pdksh 5.2.14.
12755 for as_var in BASH_ENV ENV MAIL MAILPATH
12756 do eval test x\${$as_var+set} = xset \
12757   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12758 done
12759 PS1='$ '
12760 PS2='> '
12761 PS4='+ '
12762
12763 # NLS nuisances.
12764 LC_ALL=C
12765 export LC_ALL
12766 LANGUAGE=C
12767 export LANGUAGE
12768
12769 # CDPATH.
12770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12771
12772
12773 # as_fn_error ERROR [LINENO LOG_FD]
12774 # ---------------------------------
12775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12777 # script with status $?, using 1 if that was 0.
12778 as_fn_error ()
12779 {
12780   as_status=$?; test $as_status -eq 0 && as_status=1
12781   if test "$3"; then
12782     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12783     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12784   fi
12785   $as_echo "$as_me: error: $1" >&2
12786   as_fn_exit $as_status
12787 } # as_fn_error
12788
12789
12790 # as_fn_set_status STATUS
12791 # -----------------------
12792 # Set $? to STATUS, without forking.
12793 as_fn_set_status ()
12794 {
12795   return $1
12796 } # as_fn_set_status
12797
12798 # as_fn_exit STATUS
12799 # -----------------
12800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12801 as_fn_exit ()
12802 {
12803   set +e
12804   as_fn_set_status $1
12805   exit $1
12806 } # as_fn_exit
12807
12808 # as_fn_unset VAR
12809 # ---------------
12810 # Portably unset VAR.
12811 as_fn_unset ()
12812 {
12813   { eval $1=; unset $1;}
12814 }
12815 as_unset=as_fn_unset
12816 # as_fn_append VAR VALUE
12817 # ----------------------
12818 # Append the text in VALUE to the end of the definition contained in VAR. Take
12819 # advantage of any shell optimizations that allow amortized linear growth over
12820 # repeated appends, instead of the typical quadratic growth present in naive
12821 # implementations.
12822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12823   eval 'as_fn_append ()
12824   {
12825     eval $1+=\$2
12826   }'
12827 else
12828   as_fn_append ()
12829   {
12830     eval $1=\$$1\$2
12831   }
12832 fi # as_fn_append
12833
12834 # as_fn_arith ARG...
12835 # ------------------
12836 # Perform arithmetic evaluation on the ARGs, and store the result in the
12837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12838 # must be portable across $(()) and expr.
12839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12840   eval 'as_fn_arith ()
12841   {
12842     as_val=$(( $* ))
12843   }'
12844 else
12845   as_fn_arith ()
12846   {
12847     as_val=`expr "$@" || test $? -eq 1`
12848   }
12849 fi # as_fn_arith
12850
12851
12852 if expr a : '\(a\)' >/dev/null 2>&1 &&
12853    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12854   as_expr=expr
12855 else
12856   as_expr=false
12857 fi
12858
12859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12860   as_basename=basename
12861 else
12862   as_basename=false
12863 fi
12864
12865 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12866   as_dirname=dirname
12867 else
12868   as_dirname=false
12869 fi
12870
12871 as_me=`$as_basename -- "$0" ||
12872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12873          X"$0" : 'X\(//\)$' \| \
12874          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12875 $as_echo X/"$0" |
12876     sed '/^.*\/\([^/][^/]*\)\/*$/{
12877             s//\1/
12878             q
12879           }
12880           /^X\/\(\/\/\)$/{
12881             s//\1/
12882             q
12883           }
12884           /^X\/\(\/\).*/{
12885             s//\1/
12886             q
12887           }
12888           s/.*/./; q'`
12889
12890 # Avoid depending upon Character Ranges.
12891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12894 as_cr_digits='0123456789'
12895 as_cr_alnum=$as_cr_Letters$as_cr_digits
12896
12897 ECHO_C= ECHO_N= ECHO_T=
12898 case `echo -n x` in #(((((
12899 -n*)
12900   case `echo 'xy\c'` in
12901   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12902   xy)  ECHO_C='\c';;
12903   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12904        ECHO_T=' ';;
12905   esac;;
12906 *)
12907   ECHO_N='-n';;
12908 esac
12909
12910 rm -f conf$$ conf$$.exe conf$$.file
12911 if test -d conf$$.dir; then
12912   rm -f conf$$.dir/conf$$.file
12913 else
12914   rm -f conf$$.dir
12915   mkdir conf$$.dir 2>/dev/null
12916 fi
12917 if (echo >conf$$.file) 2>/dev/null; then
12918   if ln -s conf$$.file conf$$ 2>/dev/null; then
12919     as_ln_s='ln -s'
12920     # ... but there are two gotchas:
12921     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12922     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12923     # In both cases, we have to default to `cp -p'.
12924     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12925       as_ln_s='cp -p'
12926   elif ln conf$$.file conf$$ 2>/dev/null; then
12927     as_ln_s=ln
12928   else
12929     as_ln_s='cp -p'
12930   fi
12931 else
12932   as_ln_s='cp -p'
12933 fi
12934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12935 rmdir conf$$.dir 2>/dev/null
12936
12937
12938 # as_fn_mkdir_p
12939 # -------------
12940 # Create "$as_dir" as a directory, including parents if necessary.
12941 as_fn_mkdir_p ()
12942 {
12943
12944   case $as_dir in #(
12945   -*) as_dir=./$as_dir;;
12946   esac
12947   test -d "$as_dir" || eval $as_mkdir_p || {
12948     as_dirs=
12949     while :; do
12950       case $as_dir in #(
12951       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12952       *) as_qdir=$as_dir;;
12953       esac
12954       as_dirs="'$as_qdir' $as_dirs"
12955       as_dir=`$as_dirname -- "$as_dir" ||
12956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12957          X"$as_dir" : 'X\(//\)[^/]' \| \
12958          X"$as_dir" : 'X\(//\)$' \| \
12959          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12960 $as_echo X"$as_dir" |
12961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12962             s//\1/
12963             q
12964           }
12965           /^X\(\/\/\)[^/].*/{
12966             s//\1/
12967             q
12968           }
12969           /^X\(\/\/\)$/{
12970             s//\1/
12971             q
12972           }
12973           /^X\(\/\).*/{
12974             s//\1/
12975             q
12976           }
12977           s/.*/./; q'`
12978       test -d "$as_dir" && break
12979     done
12980     test -z "$as_dirs" || eval "mkdir $as_dirs"
12981   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12982
12983
12984 } # as_fn_mkdir_p
12985 if mkdir -p . 2>/dev/null; then
12986   as_mkdir_p='mkdir -p "$as_dir"'
12987 else
12988   test -d ./-p && rmdir ./-p
12989   as_mkdir_p=false
12990 fi
12991
12992 if test -x / >/dev/null 2>&1; then
12993   as_test_x='test -x'
12994 else
12995   if ls -dL / >/dev/null 2>&1; then
12996     as_ls_L_option=L
12997   else
12998     as_ls_L_option=
12999   fi
13000   as_test_x='
13001     eval sh -c '\''
13002       if test -d "$1"; then
13003         test -d "$1/.";
13004       else
13005         case $1 in #(
13006         -*)set "./$1";;
13007         esac;
13008         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13009         ???[sx]*):;;*)false;;esac;fi
13010     '\'' sh
13011   '
13012 fi
13013 as_executable_p=$as_test_x
13014
13015 # Sed expression to map a string onto a valid CPP name.
13016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13017
13018 # Sed expression to map a string onto a valid variable name.
13019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13020
13021
13022 exec 6>&1
13023 ## ----------------------------------- ##
13024 ## Main body of $CONFIG_STATUS script. ##
13025 ## ----------------------------------- ##
13026 _ASEOF
13027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13028
13029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13030 # Save the log message, to keep $0 and so on meaningful, and to
13031 # report actual input values of CONFIG_FILES etc. instead of their
13032 # values after options handling.
13033 ac_log="
13034 This file was extended by package-unused $as_me version-unused, which was
13035 generated by GNU Autoconf 2.64.  Invocation command line was
13036
13037   CONFIG_FILES    = $CONFIG_FILES
13038   CONFIG_HEADERS  = $CONFIG_HEADERS
13039   CONFIG_LINKS    = $CONFIG_LINKS
13040   CONFIG_COMMANDS = $CONFIG_COMMANDS
13041   $ $0 $@
13042
13043 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13044 "
13045
13046 _ACEOF
13047
13048 case $ac_config_files in *"
13049 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13050 esac
13051
13052 case $ac_config_headers in *"
13053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13054 esac
13055
13056
13057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13058 # Files that config.status was made for.
13059 config_files="$ac_config_files"
13060 config_headers="$ac_config_headers"
13061 config_commands="$ac_config_commands"
13062
13063 _ACEOF
13064
13065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066 ac_cs_usage="\
13067 \`$as_me' instantiates files and other configuration actions
13068 from templates according to the current configuration.  Unless the files
13069 and actions are specified as TAGs, all are instantiated by default.
13070
13071 Usage: $0 [OPTION]... [TAG]...
13072
13073   -h, --help       print this help, then exit
13074   -V, --version    print version number and configuration settings, then exit
13075   -q, --quiet, --silent
13076                    do not print progress messages
13077   -d, --debug      don't remove temporary files
13078       --recheck    update $as_me by reconfiguring in the same conditions
13079       --file=FILE[:TEMPLATE]
13080                    instantiate the configuration file FILE
13081       --header=FILE[:TEMPLATE]
13082                    instantiate the configuration header FILE
13083
13084 Configuration files:
13085 $config_files
13086
13087 Configuration headers:
13088 $config_headers
13089
13090 Configuration commands:
13091 $config_commands
13092
13093 Report bugs to the package provider."
13094
13095 _ACEOF
13096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097 ac_cs_version="\\
13098 package-unused config.status version-unused
13099 configured by $0, generated by GNU Autoconf 2.64,
13100   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13101
13102 Copyright (C) 2009 Free Software Foundation, Inc.
13103 This config.status script is free software; the Free Software Foundation
13104 gives unlimited permission to copy, distribute and modify it."
13105
13106 ac_pwd='$ac_pwd'
13107 srcdir='$srcdir'
13108 INSTALL='$INSTALL'
13109 MKDIR_P='$MKDIR_P'
13110 AWK='$AWK'
13111 test -n "\$AWK" || AWK=awk
13112 _ACEOF
13113
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115 # The default lists apply if the user does not specify any file.
13116 ac_need_defaults=:
13117 while test $# != 0
13118 do
13119   case $1 in
13120   --*=*)
13121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13122     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13123     ac_shift=:
13124     ;;
13125   *)
13126     ac_option=$1
13127     ac_optarg=$2
13128     ac_shift=shift
13129     ;;
13130   esac
13131
13132   case $ac_option in
13133   # Handling of the options.
13134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13135     ac_cs_recheck=: ;;
13136   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13137     $as_echo "$ac_cs_version"; exit ;;
13138   --debug | --debu | --deb | --de | --d | -d )
13139     debug=: ;;
13140   --file | --fil | --fi | --f )
13141     $ac_shift
13142     case $ac_optarg in
13143     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13144     esac
13145     as_fn_append CONFIG_FILES " '$ac_optarg'"
13146     ac_need_defaults=false;;
13147   --header | --heade | --head | --hea )
13148     $ac_shift
13149     case $ac_optarg in
13150     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13151     esac
13152     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13153     ac_need_defaults=false;;
13154   --he | --h)
13155     # Conflict between --help and --header
13156     as_fn_error "ambiguous option: \`$1'
13157 Try \`$0 --help' for more information.";;
13158   --help | --hel | -h )
13159     $as_echo "$ac_cs_usage"; exit ;;
13160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13162     ac_cs_silent=: ;;
13163
13164   # This is an error.
13165   -*) as_fn_error "unrecognized option: \`$1'
13166 Try \`$0 --help' for more information." ;;
13167
13168   *) as_fn_append ac_config_targets " $1"
13169      ac_need_defaults=false ;;
13170
13171   esac
13172   shift
13173 done
13174
13175 ac_configure_extra_args=
13176
13177 if $ac_cs_silent; then
13178   exec 6>/dev/null
13179   ac_configure_extra_args="$ac_configure_extra_args --silent"
13180 fi
13181
13182 _ACEOF
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 if \$ac_cs_recheck; then
13185   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13186   shift
13187   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13188   CONFIG_SHELL='$SHELL'
13189   export CONFIG_SHELL
13190   exec "\$@"
13191 fi
13192
13193 _ACEOF
13194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13195 exec 5>>config.log
13196 {
13197   echo
13198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13199 ## Running $as_me. ##
13200 _ASBOX
13201   $as_echo "$ac_log"
13202 } >&5
13203
13204 _ACEOF
13205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13206 #
13207 # INIT-COMMANDS
13208 #
13209
13210 srcdir="$srcdir"
13211 host="$host"
13212 target="$target"
13213 with_multisubdir="$with_multisubdir"
13214 with_multisrctop="$with_multisrctop"
13215 with_target_subdir="$with_target_subdir"
13216 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13217 multi_basedir="$multi_basedir"
13218 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13219 CC="$CC"
13220 CXX="$CXX"
13221 GFORTRAN="$GFORTRAN"
13222 GCJ="$GCJ"
13223
13224
13225 # The HP-UX ksh and POSIX shell print the target directory to stdout
13226 # if CDPATH is set.
13227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13228
13229 sed_quote_subst='$sed_quote_subst'
13230 double_quote_subst='$double_quote_subst'
13231 delay_variable_subst='$delay_variable_subst'
13232 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13233 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13234 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13235 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13236 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13237 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13238 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13239 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13240 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13241 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13242 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13243 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13244 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13245 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13246 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13247 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13248 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13249 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13250 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13251 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13252 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13253 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13254 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13255 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13256 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13257 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13258 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13259 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13266 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13280 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"`'
13281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13321 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13352
13353 LTCC='$LTCC'
13354 LTCFLAGS='$LTCFLAGS'
13355 compiler='$compiler_DEFAULT'
13356
13357 # A function that is used when there is no print builtin or printf.
13358 func_fallback_echo ()
13359 {
13360   eval 'cat <<_LTECHO_EOF
13361 \$1
13362 _LTECHO_EOF'
13363 }
13364
13365 # Quote evaled strings.
13366 for var in SHELL \
13367 ECHO \
13368 SED \
13369 GREP \
13370 EGREP \
13371 FGREP \
13372 LD \
13373 NM \
13374 LN_S \
13375 lt_SP2NL \
13376 lt_NL2SP \
13377 reload_flag \
13378 OBJDUMP \
13379 deplibs_check_method \
13380 file_magic_cmd \
13381 AR \
13382 AR_FLAGS \
13383 STRIP \
13384 RANLIB \
13385 CC \
13386 CFLAGS \
13387 compiler \
13388 lt_cv_sys_global_symbol_pipe \
13389 lt_cv_sys_global_symbol_to_cdecl \
13390 lt_cv_sys_global_symbol_to_c_name_address \
13391 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13392 lt_prog_compiler_no_builtin_flag \
13393 lt_prog_compiler_wl \
13394 lt_prog_compiler_pic \
13395 lt_prog_compiler_static \
13396 lt_cv_prog_compiler_c_o \
13397 need_locks \
13398 DSYMUTIL \
13399 NMEDIT \
13400 LIPO \
13401 OTOOL \
13402 OTOOL64 \
13403 shrext_cmds \
13404 export_dynamic_flag_spec \
13405 whole_archive_flag_spec \
13406 compiler_needs_object \
13407 with_gnu_ld \
13408 allow_undefined_flag \
13409 no_undefined_flag \
13410 hardcode_libdir_flag_spec \
13411 hardcode_libdir_flag_spec_ld \
13412 hardcode_libdir_separator \
13413 fix_srcfile_path \
13414 exclude_expsyms \
13415 include_expsyms \
13416 file_list_spec \
13417 variables_saved_for_relink \
13418 libname_spec \
13419 library_names_spec \
13420 soname_spec \
13421 install_override_mode \
13422 finish_eval \
13423 old_striplib \
13424 striplib; do
13425     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13426     *[\\\\\\\`\\"\\\$]*)
13427       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13428       ;;
13429     *)
13430       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13431       ;;
13432     esac
13433 done
13434
13435 # Double-quote double-evaled strings.
13436 for var in reload_cmds \
13437 old_postinstall_cmds \
13438 old_postuninstall_cmds \
13439 old_archive_cmds \
13440 extract_expsyms_cmds \
13441 old_archive_from_new_cmds \
13442 old_archive_from_expsyms_cmds \
13443 archive_cmds \
13444 archive_expsym_cmds \
13445 module_cmds \
13446 module_expsym_cmds \
13447 export_symbols_cmds \
13448 prelink_cmds \
13449 postinstall_cmds \
13450 postuninstall_cmds \
13451 finish_cmds \
13452 sys_lib_search_path_spec \
13453 sys_lib_dlsearch_path_spec; do
13454     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13455     *[\\\\\\\`\\"\\\$]*)
13456       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13457       ;;
13458     *)
13459       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13460       ;;
13461     esac
13462 done
13463
13464 ac_aux_dir='$ac_aux_dir'
13465 xsi_shell='$xsi_shell'
13466 lt_shell_append='$lt_shell_append'
13467
13468 # See if we are running on zsh, and set the options which allow our
13469 # commands through without removal of \ escapes INIT.
13470 if test -n "\${ZSH_VERSION+set}" ; then
13471    setopt NO_GLOB_SUBST
13472 fi
13473
13474
13475     PACKAGE='$PACKAGE'
13476     VERSION='$VERSION'
13477     TIMESTAMP='$TIMESTAMP'
13478     RM='$RM'
13479     ofile='$ofile'
13480
13481
13482
13483
13484 GCC="$GCC"
13485 CC="$CC"
13486 acx_cv_header_stdint="$acx_cv_header_stdint"
13487 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13488 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13489 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13490 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13491 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13492 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13493 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13494 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13495 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13496 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13497 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13498 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13499 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13500
13501
13502 # Variables needed in config.status (file generation) which aren't already
13503 # passed by autoconf.
13504 SUBDIRS="$SUBDIRS"
13505
13506
13507 _ACEOF
13508
13509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13510
13511 # Handling of arguments.
13512 for ac_config_target in $ac_config_targets
13513 do
13514   case $ac_config_target in
13515     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13516     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13517     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13518     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13519     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13520     "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13521     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13522
13523   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13524   esac
13525 done
13526
13527
13528 # If the user did not use the arguments to specify the items to instantiate,
13529 # then the envvar interface is used.  Set only those that are not.
13530 # We use the long form for the default assignment because of an extremely
13531 # bizarre bug on SunOS 4.1.3.
13532 if $ac_need_defaults; then
13533   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13534   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13535   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13536 fi
13537
13538 # Have a temporary directory for convenience.  Make it in the build tree
13539 # simply because there is no reason against having it here, and in addition,
13540 # creating and moving files from /tmp can sometimes cause problems.
13541 # Hook for its removal unless debugging.
13542 # Note that there is a small window in which the directory will not be cleaned:
13543 # after its creation but before its name has been assigned to `$tmp'.
13544 $debug ||
13545 {
13546   tmp=
13547   trap 'exit_status=$?
13548   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13549 ' 0
13550   trap 'as_fn_exit 1' 1 2 13 15
13551 }
13552 # Create a (secure) tmp directory for tmp files.
13553
13554 {
13555   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13556   test -n "$tmp" && test -d "$tmp"
13557 }  ||
13558 {
13559   tmp=./conf$$-$RANDOM
13560   (umask 077 && mkdir "$tmp")
13561 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13562
13563 # Set up the scripts for CONFIG_FILES section.
13564 # No need to generate them if there are no CONFIG_FILES.
13565 # This happens for instance with `./config.status config.h'.
13566 if test -n "$CONFIG_FILES"; then
13567
13568
13569 ac_cr=`echo X | tr X '\015'`
13570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13571 # But we know of no other shell where ac_cr would be empty at this
13572 # point, so we can use a bashism as a fallback.
13573 if test "x$ac_cr" = x; then
13574   eval ac_cr=\$\'\\r\'
13575 fi
13576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13578   ac_cs_awk_cr='\r'
13579 else
13580   ac_cs_awk_cr=$ac_cr
13581 fi
13582
13583 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13584 _ACEOF
13585
13586
13587 {
13588   echo "cat >conf$$subs.awk <<_ACEOF" &&
13589   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13590   echo "_ACEOF"
13591 } >conf$$subs.sh ||
13592   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13594 ac_delim='%!_!# '
13595 for ac_last_try in false false false false false :; do
13596   . ./conf$$subs.sh ||
13597     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13598
13599   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13600   if test $ac_delim_n = $ac_delim_num; then
13601     break
13602   elif $ac_last_try; then
13603     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13604   else
13605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13606   fi
13607 done
13608 rm -f conf$$subs.sh
13609
13610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13612 _ACEOF
13613 sed -n '
13614 h
13615 s/^/S["/; s/!.*/"]=/
13616 p
13617 g
13618 s/^[^!]*!//
13619 :repl
13620 t repl
13621 s/'"$ac_delim"'$//
13622 t delim
13623 :nl
13624 h
13625 s/\(.\{148\}\).*/\1/
13626 t more1
13627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13628 p
13629 n
13630 b repl
13631 :more1
13632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13633 p
13634 g
13635 s/.\{148\}//
13636 t nl
13637 :delim
13638 h
13639 s/\(.\{148\}\).*/\1/
13640 t more2
13641 s/["\\]/\\&/g; s/^/"/; s/$/"/
13642 p
13643 b
13644 :more2
13645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13646 p
13647 g
13648 s/.\{148\}//
13649 t delim
13650 ' <conf$$subs.awk | sed '
13651 /^[^""]/{
13652   N
13653   s/\n//
13654 }
13655 ' >>$CONFIG_STATUS || ac_write_fail=1
13656 rm -f conf$$subs.awk
13657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13658 _ACAWK
13659 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13660   for (key in S) S_is_set[key] = 1
13661   FS = "\a"
13662
13663 }
13664 {
13665   line = $ 0
13666   nfields = split(line, field, "@")
13667   substed = 0
13668   len = length(field[1])
13669   for (i = 2; i < nfields; i++) {
13670     key = field[i]
13671     keylen = length(key)
13672     if (S_is_set[key]) {
13673       value = S[key]
13674       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13675       len += length(value) + length(field[++i])
13676       substed = 1
13677     } else
13678       len += 1 + keylen
13679   }
13680
13681   print line
13682 }
13683
13684 _ACAWK
13685 _ACEOF
13686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13688   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13689 else
13690   cat
13691 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13692   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13693 _ACEOF
13694
13695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13697 # trailing colons and then remove the whole line if VPATH becomes empty
13698 # (actually we leave an empty line to preserve line numbers).
13699 if test "x$srcdir" = x.; then
13700   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13701 s/:*\$(srcdir):*/:/
13702 s/:*\${srcdir}:*/:/
13703 s/:*@srcdir@:*/:/
13704 s/^\([^=]*=[     ]*\):*/\1/
13705 s/:*$//
13706 s/^[^=]*=[       ]*$//
13707 }'
13708 fi
13709
13710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13711 fi # test -n "$CONFIG_FILES"
13712
13713 # Set up the scripts for CONFIG_HEADERS section.
13714 # No need to generate them if there are no CONFIG_HEADERS.
13715 # This happens for instance with `./config.status Makefile'.
13716 if test -n "$CONFIG_HEADERS"; then
13717 cat >"$tmp/defines.awk" <<\_ACAWK ||
13718 BEGIN {
13719 _ACEOF
13720
13721 # Transform confdefs.h into an awk script `defines.awk', embedded as
13722 # here-document in config.status, that substitutes the proper values into
13723 # config.h.in to produce config.h.
13724
13725 # Create a delimiter string that does not exist in confdefs.h, to ease
13726 # handling of long lines.
13727 ac_delim='%!_!# '
13728 for ac_last_try in false false :; do
13729   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13730   if test -z "$ac_t"; then
13731     break
13732   elif $ac_last_try; then
13733     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13734   else
13735     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13736   fi
13737 done
13738
13739 # For the awk script, D is an array of macro values keyed by name,
13740 # likewise P contains macro parameters if any.  Preserve backslash
13741 # newline sequences.
13742
13743 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13744 sed -n '
13745 s/.\{148\}/&'"$ac_delim"'/g
13746 t rset
13747 :rset
13748 s/^[     ]*#[    ]*define[       ][      ]*/ /
13749 t def
13750 d
13751 :def
13752 s/\\$//
13753 t bsnl
13754 s/["\\]/\\&/g
13755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13756 D["\1"]=" \3"/p
13757 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13758 d
13759 :bsnl
13760 s/["\\]/\\&/g
13761 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13762 D["\1"]=" \3\\\\\\n"\\/p
13763 t cont
13764 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13765 t cont
13766 d
13767 :cont
13768 n
13769 s/.\{148\}/&'"$ac_delim"'/g
13770 t clear
13771 :clear
13772 s/\\$//
13773 t bsnlc
13774 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13775 d
13776 :bsnlc
13777 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13778 b cont
13779 ' <confdefs.h | sed '
13780 s/'"$ac_delim"'/"\\\
13781 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13782
13783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13784   for (key in D) D_is_set[key] = 1
13785   FS = "\a"
13786 }
13787 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13788   line = \$ 0
13789   split(line, arg, " ")
13790   if (arg[1] == "#") {
13791     defundef = arg[2]
13792     mac1 = arg[3]
13793   } else {
13794     defundef = substr(arg[1], 2)
13795     mac1 = arg[2]
13796   }
13797   split(mac1, mac2, "(") #)
13798   macro = mac2[1]
13799   prefix = substr(line, 1, index(line, defundef) - 1)
13800   if (D_is_set[macro]) {
13801     # Preserve the white space surrounding the "#".
13802     print prefix "define", macro P[macro] D[macro]
13803     next
13804   } else {
13805     # Replace #undef with comments.  This is necessary, for example,
13806     # in the case of _POSIX_SOURCE, which is predefined and required
13807     # on some systems where configure will not decide to define it.
13808     if (defundef == "undef") {
13809       print "/*", prefix defundef, macro, "*/"
13810       next
13811     }
13812   }
13813 }
13814 { print }
13815 _ACAWK
13816 _ACEOF
13817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13819 fi # test -n "$CONFIG_HEADERS"
13820
13821
13822 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13823 shift
13824 for ac_tag
13825 do
13826   case $ac_tag in
13827   :[FHLC]) ac_mode=$ac_tag; continue;;
13828   esac
13829   case $ac_mode$ac_tag in
13830   :[FHL]*:*);;
13831   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13832   :[FH]-) ac_tag=-:-;;
13833   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13834   esac
13835   ac_save_IFS=$IFS
13836   IFS=:
13837   set x $ac_tag
13838   IFS=$ac_save_IFS
13839   shift
13840   ac_file=$1
13841   shift
13842
13843   case $ac_mode in
13844   :L) ac_source=$1;;
13845   :[FH])
13846     ac_file_inputs=
13847     for ac_f
13848     do
13849       case $ac_f in
13850       -) ac_f="$tmp/stdin";;
13851       *) # Look for the file first in the build tree, then in the source tree
13852          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13853          # because $ac_f cannot contain `:'.
13854          test -f "$ac_f" ||
13855            case $ac_f in
13856            [\\/$]*) false;;
13857            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13858            esac ||
13859            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13860       esac
13861       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13862       as_fn_append ac_file_inputs " '$ac_f'"
13863     done
13864
13865     # Let's still pretend it is `configure' which instantiates (i.e., don't
13866     # use $as_me), people would be surprised to read:
13867     #    /* config.h.  Generated by config.status.  */
13868     configure_input='Generated from '`
13869           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13870         `' by configure.'
13871     if test x"$ac_file" != x-; then
13872       configure_input="$ac_file.  $configure_input"
13873       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13874 $as_echo "$as_me: creating $ac_file" >&6;}
13875     fi
13876     # Neutralize special characters interpreted by sed in replacement strings.
13877     case $configure_input in #(
13878     *\&* | *\|* | *\\* )
13879        ac_sed_conf_input=`$as_echo "$configure_input" |
13880        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13881     *) ac_sed_conf_input=$configure_input;;
13882     esac
13883
13884     case $ac_tag in
13885     *:-:* | *:-) cat >"$tmp/stdin" \
13886       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13887     esac
13888     ;;
13889   esac
13890
13891   ac_dir=`$as_dirname -- "$ac_file" ||
13892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13893          X"$ac_file" : 'X\(//\)[^/]' \| \
13894          X"$ac_file" : 'X\(//\)$' \| \
13895          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13896 $as_echo X"$ac_file" |
13897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13898             s//\1/
13899             q
13900           }
13901           /^X\(\/\/\)[^/].*/{
13902             s//\1/
13903             q
13904           }
13905           /^X\(\/\/\)$/{
13906             s//\1/
13907             q
13908           }
13909           /^X\(\/\).*/{
13910             s//\1/
13911             q
13912           }
13913           s/.*/./; q'`
13914   as_dir="$ac_dir"; as_fn_mkdir_p
13915   ac_builddir=.
13916
13917 case "$ac_dir" in
13918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13919 *)
13920   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13921   # A ".." for each directory in $ac_dir_suffix.
13922   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13923   case $ac_top_builddir_sub in
13924   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13925   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13926   esac ;;
13927 esac
13928 ac_abs_top_builddir=$ac_pwd
13929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13930 # for backward compatibility:
13931 ac_top_builddir=$ac_top_build_prefix
13932
13933 case $srcdir in
13934   .)  # We are building in place.
13935     ac_srcdir=.
13936     ac_top_srcdir=$ac_top_builddir_sub
13937     ac_abs_top_srcdir=$ac_pwd ;;
13938   [\\/]* | ?:[\\/]* )  # Absolute name.
13939     ac_srcdir=$srcdir$ac_dir_suffix;
13940     ac_top_srcdir=$srcdir
13941     ac_abs_top_srcdir=$srcdir ;;
13942   *) # Relative name.
13943     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13944     ac_top_srcdir=$ac_top_build_prefix$srcdir
13945     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13946 esac
13947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13948
13949
13950   case $ac_mode in
13951   :F)
13952   #
13953   # CONFIG_FILE
13954   #
13955
13956   case $INSTALL in
13957   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13958   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13959   esac
13960   ac_MKDIR_P=$MKDIR_P
13961   case $MKDIR_P in
13962   [\\/$]* | ?:[\\/]* ) ;;
13963   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13964   esac
13965 _ACEOF
13966
13967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13968 # If the template does not know about datarootdir, expand it.
13969 # FIXME: This hack should be removed a few years after 2.60.
13970 ac_datarootdir_hack=; ac_datarootdir_seen=
13971 ac_sed_dataroot='
13972 /datarootdir/ {
13973   p
13974   q
13975 }
13976 /@datadir@/p
13977 /@docdir@/p
13978 /@infodir@/p
13979 /@localedir@/p
13980 /@mandir@/p'
13981 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13982 *datarootdir*) ac_datarootdir_seen=yes;;
13983 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13985 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13986 _ACEOF
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988   ac_datarootdir_hack='
13989   s&@datadir@&$datadir&g
13990   s&@docdir@&$docdir&g
13991   s&@infodir@&$infodir&g
13992   s&@localedir@&$localedir&g
13993   s&@mandir@&$mandir&g
13994   s&\\\${datarootdir}&$datarootdir&g' ;;
13995 esac
13996 _ACEOF
13997
13998 # Neutralize VPATH when `$srcdir' = `.'.
13999 # Shell code in configure.ac might set extrasub.
14000 # FIXME: do we really want to maintain this feature?
14001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002 ac_sed_extra="$ac_vpsub
14003 $extrasub
14004 _ACEOF
14005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14006 :t
14007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14008 s|@configure_input@|$ac_sed_conf_input|;t t
14009 s&@top_builddir@&$ac_top_builddir_sub&;t t
14010 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14011 s&@srcdir@&$ac_srcdir&;t t
14012 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14013 s&@top_srcdir@&$ac_top_srcdir&;t t
14014 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14015 s&@builddir@&$ac_builddir&;t t
14016 s&@abs_builddir@&$ac_abs_builddir&;t t
14017 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14018 s&@INSTALL@&$ac_INSTALL&;t t
14019 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14020 $ac_datarootdir_hack
14021 "
14022 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14023   || as_fn_error "could not create $ac_file" "$LINENO" 5
14024
14025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14026   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14027   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14029 which seems to be undefined.  Please make sure it is defined." >&5
14030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14031 which seems to be undefined.  Please make sure it is defined." >&2;}
14032
14033   rm -f "$tmp/stdin"
14034   case $ac_file in
14035   -) cat "$tmp/out" && rm -f "$tmp/out";;
14036   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14037   esac \
14038   || as_fn_error "could not create $ac_file" "$LINENO" 5
14039  ;;
14040   :H)
14041   #
14042   # CONFIG_HEADER
14043   #
14044   if test x"$ac_file" != x-; then
14045     {
14046       $as_echo "/* $configure_input  */" \
14047       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14048     } >"$tmp/config.h" \
14049       || as_fn_error "could not create $ac_file" "$LINENO" 5
14050     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14051       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14052 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14053     else
14054       rm -f "$ac_file"
14055       mv "$tmp/config.h" "$ac_file" \
14056         || as_fn_error "could not create $ac_file" "$LINENO" 5
14057     fi
14058   else
14059     $as_echo "/* $configure_input  */" \
14060       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14061       || as_fn_error "could not create -" "$LINENO" 5
14062   fi
14063 # Compute "$ac_file"'s index in $config_headers.
14064 _am_arg="$ac_file"
14065 _am_stamp_count=1
14066 for _am_header in $config_headers :; do
14067   case $_am_header in
14068     $_am_arg | $_am_arg:* )
14069       break ;;
14070     * )
14071       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14072   esac
14073 done
14074 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14075 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14076          X"$_am_arg" : 'X\(//\)[^/]' \| \
14077          X"$_am_arg" : 'X\(//\)$' \| \
14078          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14079 $as_echo X"$_am_arg" |
14080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14081             s//\1/
14082             q
14083           }
14084           /^X\(\/\/\)[^/].*/{
14085             s//\1/
14086             q
14087           }
14088           /^X\(\/\/\)$/{
14089             s//\1/
14090             q
14091           }
14092           /^X\(\/\).*/{
14093             s//\1/
14094             q
14095           }
14096           s/.*/./; q'`/stamp-h$_am_stamp_count
14097  ;;
14098
14099   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14100 $as_echo "$as_me: executing $ac_file commands" >&6;}
14101  ;;
14102   esac
14103
14104
14105   case $ac_file$ac_mode in
14106     "default-1":C)
14107 # Only add multilib support code if we just rebuilt the top-level
14108 # Makefile.
14109 case " $CONFIG_FILES " in
14110  *" Makefile "*)
14111    ac_file=Makefile . ${multi_basedir}/config-ml.in
14112    ;;
14113 esac ;;
14114     "libtool":C)
14115
14116     # See if we are running on zsh, and set the options which allow our
14117     # commands through without removal of \ escapes.
14118     if test -n "${ZSH_VERSION+set}" ; then
14119       setopt NO_GLOB_SUBST
14120     fi
14121
14122     cfgfile="${ofile}T"
14123     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14124     $RM "$cfgfile"
14125
14126     cat <<_LT_EOF >> "$cfgfile"
14127 #! $SHELL
14128
14129 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14130 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14131 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14132 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14133 #
14134 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14135 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14136 #   Written by Gordon Matzigkeit, 1996
14137 #
14138 #   This file is part of GNU Libtool.
14139 #
14140 # GNU Libtool is free software; you can redistribute it and/or
14141 # modify it under the terms of the GNU General Public License as
14142 # published by the Free Software Foundation; either version 2 of
14143 # the License, or (at your option) any later version.
14144 #
14145 # As a special exception to the GNU General Public License,
14146 # if you distribute this file as part of a program or library that
14147 # is built using GNU Libtool, you may include this file under the
14148 # same distribution terms that you use for the rest of that program.
14149 #
14150 # GNU Libtool is distributed in the hope that it will be useful,
14151 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14153 # GNU General Public License for more details.
14154 #
14155 # You should have received a copy of the GNU General Public License
14156 # along with GNU Libtool; see the file COPYING.  If not, a copy
14157 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14158 # obtained by writing to the Free Software Foundation, Inc.,
14159 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14160
14161
14162 # The names of the tagged configurations supported by this script.
14163 available_tags=""
14164
14165 # ### BEGIN LIBTOOL CONFIG
14166
14167 # Which release of libtool.m4 was used?
14168 macro_version=$macro_version
14169 macro_revision=$macro_revision
14170
14171 # Whether or not to build shared libraries.
14172 build_libtool_libs=$enable_shared
14173
14174 # Whether or not to build static libraries.
14175 build_old_libs=$enable_static
14176
14177 # What type of objects to build.
14178 pic_mode=$pic_mode
14179
14180 # Whether or not to optimize for fast installation.
14181 fast_install=$enable_fast_install
14182
14183 # Shell to use when invoking shell scripts.
14184 SHELL=$lt_SHELL
14185
14186 # An echo program that protects backslashes.
14187 ECHO=$lt_ECHO
14188
14189 # The host system.
14190 host_alias=$host_alias
14191 host=$host
14192 host_os=$host_os
14193
14194 # The build system.
14195 build_alias=$build_alias
14196 build=$build
14197 build_os=$build_os
14198
14199 # A sed program that does not truncate output.
14200 SED=$lt_SED
14201
14202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14203 Xsed="\$SED -e 1s/^X//"
14204
14205 # A grep program that handles long lines.
14206 GREP=$lt_GREP
14207
14208 # An ERE matcher.
14209 EGREP=$lt_EGREP
14210
14211 # A literal string matcher.
14212 FGREP=$lt_FGREP
14213
14214 # A BSD- or MS-compatible name lister.
14215 NM=$lt_NM
14216
14217 # Whether we need soft or hard links.
14218 LN_S=$lt_LN_S
14219
14220 # What is the maximum length of a command?
14221 max_cmd_len=$max_cmd_len
14222
14223 # Object file suffix (normally "o").
14224 objext=$ac_objext
14225
14226 # Executable file suffix (normally "").
14227 exeext=$exeext
14228
14229 # whether the shell understands "unset".
14230 lt_unset=$lt_unset
14231
14232 # turn spaces into newlines.
14233 SP2NL=$lt_lt_SP2NL
14234
14235 # turn newlines into spaces.
14236 NL2SP=$lt_lt_NL2SP
14237
14238 # An object symbol dumper.
14239 OBJDUMP=$lt_OBJDUMP
14240
14241 # Method to check whether dependent libraries are shared objects.
14242 deplibs_check_method=$lt_deplibs_check_method
14243
14244 # Command to use when deplibs_check_method == "file_magic".
14245 file_magic_cmd=$lt_file_magic_cmd
14246
14247 # The archiver.
14248 AR=$lt_AR
14249 AR_FLAGS=$lt_AR_FLAGS
14250
14251 # A symbol stripping program.
14252 STRIP=$lt_STRIP
14253
14254 # Commands used to install an old-style archive.
14255 RANLIB=$lt_RANLIB
14256 old_postinstall_cmds=$lt_old_postinstall_cmds
14257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14258
14259 # Whether to use a lock for old archive extraction.
14260 lock_old_archive_extraction=$lock_old_archive_extraction
14261
14262 # A C compiler.
14263 LTCC=$lt_CC
14264
14265 # LTCC compiler flags.
14266 LTCFLAGS=$lt_CFLAGS
14267
14268 # Take the output of nm and produce a listing of raw symbols and C names.
14269 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14270
14271 # Transform the output of nm in a proper C declaration.
14272 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14273
14274 # Transform the output of nm in a C name address pair.
14275 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14276
14277 # Transform the output of nm in a C name address pair when lib prefix is needed.
14278 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14279
14280 # The name of the directory that contains temporary libtool files.
14281 objdir=$objdir
14282
14283 # Used to examine libraries when file_magic_cmd begins with "file".
14284 MAGIC_CMD=$MAGIC_CMD
14285
14286 # Must we lock files when doing compilation?
14287 need_locks=$lt_need_locks
14288
14289 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14290 DSYMUTIL=$lt_DSYMUTIL
14291
14292 # Tool to change global to local symbols on Mac OS X.
14293 NMEDIT=$lt_NMEDIT
14294
14295 # Tool to manipulate fat objects and archives on Mac OS X.
14296 LIPO=$lt_LIPO
14297
14298 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14299 OTOOL=$lt_OTOOL
14300
14301 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14302 OTOOL64=$lt_OTOOL64
14303
14304 # Old archive suffix (normally "a").
14305 libext=$libext
14306
14307 # Shared library suffix (normally ".so").
14308 shrext_cmds=$lt_shrext_cmds
14309
14310 # The commands to extract the exported symbol list from a shared archive.
14311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14312
14313 # Variables whose values should be saved in libtool wrapper scripts and
14314 # restored at link time.
14315 variables_saved_for_relink=$lt_variables_saved_for_relink
14316
14317 # Do we need the "lib" prefix for modules?
14318 need_lib_prefix=$need_lib_prefix
14319
14320 # Do we need a version for libraries?
14321 need_version=$need_version
14322
14323 # Library versioning type.
14324 version_type=$version_type
14325
14326 # Shared library runtime path variable.
14327 runpath_var=$runpath_var
14328
14329 # Shared library path variable.
14330 shlibpath_var=$shlibpath_var
14331
14332 # Is shlibpath searched before the hard-coded library search path?
14333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14334
14335 # Format of library name prefix.
14336 libname_spec=$lt_libname_spec
14337
14338 # List of archive names.  First name is the real one, the rest are links.
14339 # The last name is the one that the linker finds with -lNAME
14340 library_names_spec=$lt_library_names_spec
14341
14342 # The coded name of the library, if different from the real name.
14343 soname_spec=$lt_soname_spec
14344
14345 # Permission mode override for installation of shared libraries.
14346 install_override_mode=$lt_install_override_mode
14347
14348 # Command to use after installation of a shared archive.
14349 postinstall_cmds=$lt_postinstall_cmds
14350
14351 # Command to use after uninstallation of a shared archive.
14352 postuninstall_cmds=$lt_postuninstall_cmds
14353
14354 # Commands used to finish a libtool library installation in a directory.
14355 finish_cmds=$lt_finish_cmds
14356
14357 # As "finish_cmds", except a single script fragment to be evaled but
14358 # not shown.
14359 finish_eval=$lt_finish_eval
14360
14361 # Whether we should hardcode library paths into libraries.
14362 hardcode_into_libs=$hardcode_into_libs
14363
14364 # Compile-time system search path for libraries.
14365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14366
14367 # Run-time system search path for libraries.
14368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14369
14370 # Whether dlopen is supported.
14371 dlopen_support=$enable_dlopen
14372
14373 # Whether dlopen of programs is supported.
14374 dlopen_self=$enable_dlopen_self
14375
14376 # Whether dlopen of statically linked programs is supported.
14377 dlopen_self_static=$enable_dlopen_self_static
14378
14379 # Commands to strip libraries.
14380 old_striplib=$lt_old_striplib
14381 striplib=$lt_striplib
14382
14383
14384 # The linker used to build libraries.
14385 LD=$lt_LD
14386
14387 # How to create reloadable object files.
14388 reload_flag=$lt_reload_flag
14389 reload_cmds=$lt_reload_cmds
14390
14391 # Commands used to build an old-style archive.
14392 old_archive_cmds=$lt_old_archive_cmds
14393
14394 # A language specific compiler.
14395 CC=$lt_compiler
14396
14397 # Is the compiler the GNU compiler?
14398 with_gcc=$GCC
14399
14400 # Compiler flag to turn off builtin functions.
14401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14402
14403 # How to pass a linker flag through the compiler.
14404 wl=$lt_lt_prog_compiler_wl
14405
14406 # Additional compiler flags for building library objects.
14407 pic_flag=$lt_lt_prog_compiler_pic
14408
14409 # Compiler flag to prevent dynamic linking.
14410 link_static_flag=$lt_lt_prog_compiler_static
14411
14412 # Does compiler simultaneously support -c and -o options?
14413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14414
14415 # Whether or not to add -lc for building shared libraries.
14416 build_libtool_need_lc=$archive_cmds_need_lc
14417
14418 # Whether or not to disallow shared libs when runtime libs are static.
14419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14420
14421 # Compiler flag to allow reflexive dlopens.
14422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14423
14424 # Compiler flag to generate shared objects directly from archives.
14425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14426
14427 # Whether the compiler copes with passing no objects directly.
14428 compiler_needs_object=$lt_compiler_needs_object
14429
14430 # Create an old-style archive from a shared archive.
14431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14432
14433 # Create a temporary old-style archive to link instead of a shared archive.
14434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14435
14436 # Commands used to build a shared archive.
14437 archive_cmds=$lt_archive_cmds
14438 archive_expsym_cmds=$lt_archive_expsym_cmds
14439
14440 # Commands used to build a loadable module if different from building
14441 # a shared archive.
14442 module_cmds=$lt_module_cmds
14443 module_expsym_cmds=$lt_module_expsym_cmds
14444
14445 # Whether we are building with GNU ld or not.
14446 with_gnu_ld=$lt_with_gnu_ld
14447
14448 # Flag that allows shared libraries with undefined symbols to be built.
14449 allow_undefined_flag=$lt_allow_undefined_flag
14450
14451 # Flag that enforces no undefined symbols.
14452 no_undefined_flag=$lt_no_undefined_flag
14453
14454 # Flag to hardcode \$libdir into a binary during linking.
14455 # This must work even if \$libdir does not exist
14456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14457
14458 # If ld is used when linking, flag to hardcode \$libdir into a binary
14459 # during linking.  This must work even if \$libdir does not exist.
14460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14461
14462 # Whether we need a single "-rpath" flag with a separated argument.
14463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14464
14465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14466 # DIR into the resulting binary.
14467 hardcode_direct=$hardcode_direct
14468
14469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14470 # DIR into the resulting binary and the resulting library dependency is
14471 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14472 # library is relocated.
14473 hardcode_direct_absolute=$hardcode_direct_absolute
14474
14475 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14476 # into the resulting binary.
14477 hardcode_minus_L=$hardcode_minus_L
14478
14479 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14480 # into the resulting binary.
14481 hardcode_shlibpath_var=$hardcode_shlibpath_var
14482
14483 # Set to "yes" if building a shared library automatically hardcodes DIR
14484 # into the library and all subsequent libraries and executables linked
14485 # against it.
14486 hardcode_automatic=$hardcode_automatic
14487
14488 # Set to yes if linker adds runtime paths of dependent libraries
14489 # to runtime path list.
14490 inherit_rpath=$inherit_rpath
14491
14492 # Whether libtool must link a program against all its dependency libraries.
14493 link_all_deplibs=$link_all_deplibs
14494
14495 # Fix the shell variable \$srcfile for the compiler.
14496 fix_srcfile_path=$lt_fix_srcfile_path
14497
14498 # Set to "yes" if exported symbols are required.
14499 always_export_symbols=$always_export_symbols
14500
14501 # The commands to list exported symbols.
14502 export_symbols_cmds=$lt_export_symbols_cmds
14503
14504 # Symbols that should not be listed in the preloaded symbols.
14505 exclude_expsyms=$lt_exclude_expsyms
14506
14507 # Symbols that must always be exported.
14508 include_expsyms=$lt_include_expsyms
14509
14510 # Commands necessary for linking programs (against libraries) with templates.
14511 prelink_cmds=$lt_prelink_cmds
14512
14513 # Specify filename containing input files.
14514 file_list_spec=$lt_file_list_spec
14515
14516 # How to hardcode a shared library path into an executable.
14517 hardcode_action=$hardcode_action
14518
14519 # ### END LIBTOOL CONFIG
14520
14521 _LT_EOF
14522
14523   case $host_os in
14524   aix3*)
14525     cat <<\_LT_EOF >> "$cfgfile"
14526 # AIX sometimes has problems with the GCC collect2 program.  For some
14527 # reason, if we set the COLLECT_NAMES environment variable, the problems
14528 # vanish in a puff of smoke.
14529 if test "X${COLLECT_NAMES+set}" != Xset; then
14530   COLLECT_NAMES=
14531   export COLLECT_NAMES
14532 fi
14533 _LT_EOF
14534     ;;
14535   esac
14536
14537
14538 ltmain="$ac_aux_dir/ltmain.sh"
14539
14540
14541   # We use sed instead of cat because bash on DJGPP gets confused if
14542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14543   # text mode, it properly converts lines to CR/LF.  This bash problem
14544   # is reportedly fixed, but why not run on old versions too?
14545   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14546     || (rm -f "$cfgfile"; exit 1)
14547
14548   case $xsi_shell in
14549   yes)
14550     cat << \_LT_EOF >> "$cfgfile"
14551
14552 # func_dirname file append nondir_replacement
14553 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14554 # otherwise set result to NONDIR_REPLACEMENT.
14555 func_dirname ()
14556 {
14557   case ${1} in
14558     */*) func_dirname_result="${1%/*}${2}" ;;
14559     *  ) func_dirname_result="${3}" ;;
14560   esac
14561 }
14562
14563 # func_basename file
14564 func_basename ()
14565 {
14566   func_basename_result="${1##*/}"
14567 }
14568
14569 # func_dirname_and_basename file append nondir_replacement
14570 # perform func_basename and func_dirname in a single function
14571 # call:
14572 #   dirname:  Compute the dirname of FILE.  If nonempty,
14573 #             add APPEND to the result, otherwise set result
14574 #             to NONDIR_REPLACEMENT.
14575 #             value returned in "$func_dirname_result"
14576 #   basename: Compute filename of FILE.
14577 #             value retuned in "$func_basename_result"
14578 # Implementation must be kept synchronized with func_dirname
14579 # and func_basename. For efficiency, we do not delegate to
14580 # those functions but instead duplicate the functionality here.
14581 func_dirname_and_basename ()
14582 {
14583   case ${1} in
14584     */*) func_dirname_result="${1%/*}${2}" ;;
14585     *  ) func_dirname_result="${3}" ;;
14586   esac
14587   func_basename_result="${1##*/}"
14588 }
14589
14590 # func_stripname prefix suffix name
14591 # strip PREFIX and SUFFIX off of NAME.
14592 # PREFIX and SUFFIX must not contain globbing or regex special
14593 # characters, hashes, percent signs, but SUFFIX may contain a leading
14594 # dot (in which case that matches only a dot).
14595 func_stripname ()
14596 {
14597   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14598   # positional parameters, so assign one to ordinary parameter first.
14599   func_stripname_result=${3}
14600   func_stripname_result=${func_stripname_result#"${1}"}
14601   func_stripname_result=${func_stripname_result%"${2}"}
14602 }
14603
14604 # func_opt_split
14605 func_opt_split ()
14606 {
14607   func_opt_split_opt=${1%%=*}
14608   func_opt_split_arg=${1#*=}
14609 }
14610
14611 # func_lo2o object
14612 func_lo2o ()
14613 {
14614   case ${1} in
14615     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14616     *)    func_lo2o_result=${1} ;;
14617   esac
14618 }
14619
14620 # func_xform libobj-or-source
14621 func_xform ()
14622 {
14623   func_xform_result=${1%.*}.lo
14624 }
14625
14626 # func_arith arithmetic-term...
14627 func_arith ()
14628 {
14629   func_arith_result=$(( $* ))
14630 }
14631
14632 # func_len string
14633 # STRING may not start with a hyphen.
14634 func_len ()
14635 {
14636   func_len_result=${#1}
14637 }
14638
14639 _LT_EOF
14640     ;;
14641   *) # Bourne compatible functions.
14642     cat << \_LT_EOF >> "$cfgfile"
14643
14644 # func_dirname file append nondir_replacement
14645 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14646 # otherwise set result to NONDIR_REPLACEMENT.
14647 func_dirname ()
14648 {
14649   # Extract subdirectory from the argument.
14650   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14651   if test "X$func_dirname_result" = "X${1}"; then
14652     func_dirname_result="${3}"
14653   else
14654     func_dirname_result="$func_dirname_result${2}"
14655   fi
14656 }
14657
14658 # func_basename file
14659 func_basename ()
14660 {
14661   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14662 }
14663
14664
14665 # func_stripname prefix suffix name
14666 # strip PREFIX and SUFFIX off of NAME.
14667 # PREFIX and SUFFIX must not contain globbing or regex special
14668 # characters, hashes, percent signs, but SUFFIX may contain a leading
14669 # dot (in which case that matches only a dot).
14670 # func_strip_suffix prefix name
14671 func_stripname ()
14672 {
14673   case ${2} in
14674     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14675     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14676   esac
14677 }
14678
14679 # sed scripts:
14680 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14681 my_sed_long_arg='1s/^-[^=]*=//'
14682
14683 # func_opt_split
14684 func_opt_split ()
14685 {
14686   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14687   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14688 }
14689
14690 # func_lo2o object
14691 func_lo2o ()
14692 {
14693   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14694 }
14695
14696 # func_xform libobj-or-source
14697 func_xform ()
14698 {
14699   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14700 }
14701
14702 # func_arith arithmetic-term...
14703 func_arith ()
14704 {
14705   func_arith_result=`expr "$@"`
14706 }
14707
14708 # func_len string
14709 # STRING may not start with a hyphen.
14710 func_len ()
14711 {
14712   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14713 }
14714
14715 _LT_EOF
14716 esac
14717
14718 case $lt_shell_append in
14719   yes)
14720     cat << \_LT_EOF >> "$cfgfile"
14721
14722 # func_append var value
14723 # Append VALUE to the end of shell variable VAR.
14724 func_append ()
14725 {
14726   eval "$1+=\$2"
14727 }
14728 _LT_EOF
14729     ;;
14730   *)
14731     cat << \_LT_EOF >> "$cfgfile"
14732
14733 # func_append var value
14734 # Append VALUE to the end of shell variable VAR.
14735 func_append ()
14736 {
14737   eval "$1=\$$1\$2"
14738 }
14739
14740 _LT_EOF
14741     ;;
14742   esac
14743
14744
14745   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14746     || (rm -f "$cfgfile"; exit 1)
14747
14748   mv -f "$cfgfile" "$ofile" ||
14749     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14750   chmod +x "$ofile"
14751
14752  ;;
14753     "gstdint.h":C)
14754 if test "$GCC" = yes; then
14755   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
14756 else
14757   echo "/* generated for $CC */" > tmp-stdint.h
14758 fi
14759
14760 sed 's/^ *//' >> tmp-stdint.h <<EOF
14761
14762   #ifndef GCC_GENERATED_STDINT_H
14763   #define GCC_GENERATED_STDINT_H 1
14764
14765   #include <sys/types.h>
14766 EOF
14767
14768 if test "$acx_cv_header_stdint" != stdint.h; then
14769   echo "#include <stddef.h>" >> tmp-stdint.h
14770 fi
14771 if test "$acx_cv_header_stdint" != stddef.h; then
14772   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
14773 fi
14774
14775 sed 's/^ *//' >> tmp-stdint.h <<EOF
14776   /* glibc uses these symbols as guards to prevent redefinitions.  */
14777   #ifdef __int8_t_defined
14778   #define _INT8_T
14779   #define _INT16_T
14780   #define _INT32_T
14781   #endif
14782   #ifdef __uint32_t_defined
14783   #define _UINT32_T
14784   #endif
14785
14786 EOF
14787
14788 # ----------------- done header, emit basic int types -------------
14789 if test "$acx_cv_header_stdint" = stddef.h; then
14790   sed 's/^ *//' >> tmp-stdint.h <<EOF
14791
14792     #ifndef _UINT8_T
14793     #define _UINT8_T
14794     #ifndef __uint8_t_defined
14795     #define __uint8_t_defined
14796     #ifndef uint8_t
14797     typedef unsigned $acx_cv_type_int8_t uint8_t;
14798     #endif
14799     #endif
14800     #endif
14801
14802     #ifndef _UINT16_T
14803     #define _UINT16_T
14804     #ifndef __uint16_t_defined
14805     #define __uint16_t_defined
14806     #ifndef uint16_t
14807     typedef unsigned $acx_cv_type_int16_t uint16_t;
14808     #endif
14809     #endif
14810     #endif
14811
14812     #ifndef _UINT32_T
14813     #define _UINT32_T
14814     #ifndef __uint32_t_defined
14815     #define __uint32_t_defined
14816     #ifndef uint32_t
14817     typedef unsigned $acx_cv_type_int32_t uint32_t;
14818     #endif
14819     #endif
14820     #endif
14821
14822     #ifndef _INT8_T
14823     #define _INT8_T
14824     #ifndef __int8_t_defined
14825     #define __int8_t_defined
14826     #ifndef int8_t
14827     typedef $acx_cv_type_int8_t int8_t;
14828     #endif
14829     #endif
14830     #endif
14831
14832     #ifndef _INT16_T
14833     #define _INT16_T
14834     #ifndef __int16_t_defined
14835     #define __int16_t_defined
14836     #ifndef int16_t
14837     typedef $acx_cv_type_int16_t int16_t;
14838     #endif
14839     #endif
14840     #endif
14841
14842     #ifndef _INT32_T
14843     #define _INT32_T
14844     #ifndef __int32_t_defined
14845     #define __int32_t_defined
14846     #ifndef int32_t
14847     typedef $acx_cv_type_int32_t int32_t;
14848     #endif
14849     #endif
14850     #endif
14851 EOF
14852 elif test "$ac_cv_type_u_int32_t" = yes; then
14853   sed 's/^ *//' >> tmp-stdint.h <<EOF
14854
14855     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
14856     #ifndef _INT8_T
14857     #define _INT8_T
14858     #endif
14859     #ifndef _INT16_T
14860     #define _INT16_T
14861     #endif
14862     #ifndef _INT32_T
14863     #define _INT32_T
14864     #endif
14865
14866     #ifndef _UINT8_T
14867     #define _UINT8_T
14868     #ifndef __uint8_t_defined
14869     #define __uint8_t_defined
14870     #ifndef uint8_t
14871     typedef u_int8_t uint8_t;
14872     #endif
14873     #endif
14874     #endif
14875
14876     #ifndef _UINT16_T
14877     #define _UINT16_T
14878     #ifndef __uint16_t_defined
14879     #define __uint16_t_defined
14880     #ifndef uint16_t
14881     typedef u_int16_t uint16_t;
14882     #endif
14883     #endif
14884     #endif
14885
14886     #ifndef _UINT32_T
14887     #define _UINT32_T
14888     #ifndef __uint32_t_defined
14889     #define __uint32_t_defined
14890     #ifndef uint32_t
14891     typedef u_int32_t uint32_t;
14892     #endif
14893     #endif
14894     #endif
14895 EOF
14896 else
14897   sed 's/^ *//' >> tmp-stdint.h <<EOF
14898
14899     /* Some systems have guard macros to prevent redefinitions, define them.  */
14900     #ifndef _INT8_T
14901     #define _INT8_T
14902     #endif
14903     #ifndef _INT16_T
14904     #define _INT16_T
14905     #endif
14906     #ifndef _INT32_T
14907     #define _INT32_T
14908     #endif
14909     #ifndef _UINT8_T
14910     #define _UINT8_T
14911     #endif
14912     #ifndef _UINT16_T
14913     #define _UINT16_T
14914     #endif
14915     #ifndef _UINT32_T
14916     #define _UINT32_T
14917     #endif
14918 EOF
14919 fi
14920
14921 # ------------- done basic int types, emit int64_t types ------------
14922 if test "$ac_cv_type_uint64_t" = yes; then
14923   sed 's/^ *//' >> tmp-stdint.h <<EOF
14924
14925     /* system headers have good uint64_t and int64_t */
14926     #ifndef _INT64_T
14927     #define _INT64_T
14928     #endif
14929     #ifndef _UINT64_T
14930     #define _UINT64_T
14931     #endif
14932 EOF
14933 elif test "$ac_cv_type_u_int64_t" = yes; then
14934   sed 's/^ *//' >> tmp-stdint.h <<EOF
14935
14936     /* system headers have an u_int64_t (and int64_t) */
14937     #ifndef _INT64_T
14938     #define _INT64_T
14939     #endif
14940     #ifndef _UINT64_T
14941     #define _UINT64_T
14942     #ifndef __uint64_t_defined
14943     #define __uint64_t_defined
14944     #ifndef uint64_t
14945     typedef u_int64_t uint64_t;
14946     #endif
14947     #endif
14948     #endif
14949 EOF
14950 elif test -n "$acx_cv_type_int64_t"; then
14951   sed 's/^ *//' >> tmp-stdint.h <<EOF
14952
14953     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
14954     #ifndef _INT64_T
14955     #define _INT64_T
14956     #ifndef int64_t
14957     typedef $acx_cv_type_int64_t int64_t;
14958     #endif
14959     #endif
14960     #ifndef _UINT64_T
14961     #define _UINT64_T
14962     #ifndef __uint64_t_defined
14963     #define __uint64_t_defined
14964     #ifndef uint64_t
14965     typedef unsigned $acx_cv_type_int64_t uint64_t;
14966     #endif
14967     #endif
14968     #endif
14969 EOF
14970 else
14971   sed 's/^ *//' >> tmp-stdint.h <<EOF
14972
14973     /* some common heuristics for int64_t, using compiler-specific tests */
14974     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
14975     #ifndef _INT64_T
14976     #define _INT64_T
14977     #ifndef __int64_t_defined
14978     #ifndef int64_t
14979     typedef long long int64_t;
14980     #endif
14981     #endif
14982     #endif
14983     #ifndef _UINT64_T
14984     #define _UINT64_T
14985     #ifndef uint64_t
14986     typedef unsigned long long uint64_t;
14987     #endif
14988     #endif
14989
14990     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
14991     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
14992        does not implement __extension__.  But that compiler doesn't define
14993        __GNUC_MINOR__.  */
14994     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
14995     # define __extension__
14996     # endif
14997
14998     # ifndef _INT64_T
14999     # define _INT64_T
15000     # ifndef int64_t
15001     __extension__ typedef long long int64_t;
15002     # endif
15003     # endif
15004     # ifndef _UINT64_T
15005     # define _UINT64_T
15006     # ifndef uint64_t
15007     __extension__ typedef unsigned long long uint64_t;
15008     # endif
15009     # endif
15010
15011     #elif !defined __STRICT_ANSI__
15012     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15013
15014     #  ifndef _INT64_T
15015     #  define _INT64_T
15016     #  ifndef int64_t
15017     typedef __int64 int64_t;
15018     #  endif
15019     #  endif
15020     #  ifndef _UINT64_T
15021     #  define _UINT64_T
15022     #  ifndef uint64_t
15023     typedef unsigned __int64 uint64_t;
15024     #  endif
15025     #  endif
15026     # endif /* compiler */
15027
15028     #endif /* ANSI version */
15029 EOF
15030 fi
15031
15032 # ------------- done int64_t types, emit intptr types ------------
15033 if test "$ac_cv_type_uintptr_t" != yes; then
15034   sed 's/^ *//' >> tmp-stdint.h <<EOF
15035
15036     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15037     #ifndef __uintptr_t_defined
15038     #ifndef uintptr_t
15039     typedef u$acx_cv_type_intptr_t uintptr_t;
15040     #endif
15041     #endif
15042     #ifndef __intptr_t_defined
15043     #ifndef intptr_t
15044     typedef $acx_cv_type_intptr_t  intptr_t;
15045     #endif
15046     #endif
15047 EOF
15048 fi
15049
15050 # ------------- done intptr types, emit int_least types ------------
15051 if test "$ac_cv_type_int_least32_t" != yes; then
15052   sed 's/^ *//' >> tmp-stdint.h <<EOF
15053
15054     /* Define int_least types */
15055     typedef int8_t     int_least8_t;
15056     typedef int16_t    int_least16_t;
15057     typedef int32_t    int_least32_t;
15058     #ifdef _INT64_T
15059     typedef int64_t    int_least64_t;
15060     #endif
15061
15062     typedef uint8_t    uint_least8_t;
15063     typedef uint16_t   uint_least16_t;
15064     typedef uint32_t   uint_least32_t;
15065     #ifdef _UINT64_T
15066     typedef uint64_t   uint_least64_t;
15067     #endif
15068 EOF
15069 fi
15070
15071 # ------------- done intptr types, emit int_fast types ------------
15072 if test "$ac_cv_type_int_fast32_t" != yes; then
15073       sed 's/^ *//' >> tmp-stdint.h <<EOF
15074
15075     /* Define int_fast types.  short is often slow */
15076     typedef int8_t       int_fast8_t;
15077     typedef int          int_fast16_t;
15078     typedef int32_t      int_fast32_t;
15079     #ifdef _INT64_T
15080     typedef int64_t      int_fast64_t;
15081     #endif
15082
15083     typedef uint8_t      uint_fast8_t;
15084     typedef unsigned int uint_fast16_t;
15085     typedef uint32_t     uint_fast32_t;
15086     #ifdef _UINT64_T
15087     typedef uint64_t     uint_fast64_t;
15088     #endif
15089 EOF
15090 fi
15091
15092 if test "$ac_cv_type_uintmax_t" != yes; then
15093   sed 's/^ *//' >> tmp-stdint.h <<EOF
15094
15095     /* Define intmax based on what we found */
15096     #ifndef intmax_t
15097     #ifdef _INT64_T
15098     typedef int64_t       intmax_t;
15099     #else
15100     typedef long          intmax_t;
15101     #endif
15102     #endif
15103     #ifndef uintmax_t
15104     #ifdef _UINT64_T
15105     typedef uint64_t      uintmax_t;
15106     #else
15107     typedef unsigned long uintmax_t;
15108     #endif
15109     #endif
15110 EOF
15111 fi
15112
15113 sed 's/^ *//' >> tmp-stdint.h <<EOF
15114
15115   #endif /* GCC_GENERATED_STDINT_H */
15116 EOF
15117
15118 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15119   rm -f tmp-stdint.h
15120 else
15121   mv -f tmp-stdint.h gstdint.h
15122 fi
15123
15124  ;;
15125     "default":C) if test -n "$CONFIG_FILES"; then
15126    if test -n "${with_target_subdir}"; then
15127      # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15128      # that multilib installs will end up installed in the correct place.
15129      # The testsuite needs it for multilib-aware ABI baseline files.
15130      # To work around this not being passed down from config-ml.in ->
15131      # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15132      # append it here.  Only modify Makefiles that have just been created.
15133      #
15134      # Also, get rid of this simulated-VPATH thing that automake does.
15135      cat > vpsed << \_EOF
15136   s!`test -f '$<' || echo '$(srcdir)/'`!!
15137 _EOF
15138      for i in $SUBDIRS; do
15139       case $CONFIG_FILES in
15140        *${i}/Makefile*)
15141          #echo "Adding MULTISUBDIR to $i/Makefile"
15142          sed -f vpsed $i/Makefile > tmp
15143          grep '^MULTISUBDIR =' Makefile >> tmp
15144          mv tmp $i/Makefile
15145          ;;
15146       esac
15147      done
15148      rm vpsed
15149    fi
15150  fi
15151  ;;
15152
15153   esac
15154 done # for ac_tag
15155
15156
15157 as_fn_exit 0
15158 _ACEOF
15159 ac_clean_files=$ac_clean_files_save
15160
15161 test $ac_write_fail = 0 ||
15162   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15163
15164
15165 # configure is writing to config.log, and then calls config.status.
15166 # config.status does its own redirection, appending to config.log.
15167 # Unfortunately, on DOS this fails, as config.log is still kept open
15168 # by configure, so config.status won't be able to write to it; its
15169 # output is simply discarded.  So we exec the FD to /dev/null,
15170 # effectively closing config.log, so it can be properly (re)opened and
15171 # appended to by config.status.  When coming back to configure, we
15172 # need to make the FD available again.
15173 if test "$no_create" != yes; then
15174   ac_cs_success=:
15175   ac_config_status_args=
15176   test "$silent" = yes &&
15177     ac_config_status_args="$ac_config_status_args --quiet"
15178   exec 5>/dev/null
15179   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15180   exec 5>>config.log
15181   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15182   # would make configure fail if this is the last instruction.
15183   $ac_cs_success || as_fn_exit $?
15184 fi
15185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15188 fi
15189