Imported Upstream version 1.1
[platform/upstream/libunwind.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libunwind 1.1.
4 #
5 # Report bugs to <libunwind-devel@nongnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and libunwind-devel@nongnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libunwind'
572 PACKAGE_TARNAME='libunwind'
573 PACKAGE_VERSION='1.1'
574 PACKAGE_STRING='libunwind 1.1'
575 PACKAGE_BUGREPORT='libunwind-devel@nongnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="src/mi/backtrace.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 DLLIB
620 enable_debug_frame
621 enable_cxx_exceptions
622 PKG_MAINTAINER
623 PKG_EXTRA
624 PKG_MINOR
625 PKG_MAJOR
626 LIBCRTS
627 LDFLAGS_STATIC_LIBCXA
628 ARCH
629 arch
630 build_arch
631 HAVE_LZMA_FALSE
632 HAVE_LZMA_TRUE
633 LIBLZMA
634 SUPPORT_CXX_EXCEPTIONS_FALSE
635 SUPPORT_CXX_EXCEPTIONS_TRUE
636 USE_DWARF_FALSE
637 USE_DWARF_TRUE
638 USE_ELFXX_FALSE
639 USE_ELFXX_TRUE
640 USE_ELF64_FALSE
641 USE_ELF64_TRUE
642 USE_ELF32_FALSE
643 USE_ELF32_TRUE
644 OS_FREEBSD_FALSE
645 OS_FREEBSD_TRUE
646 OS_HPUX_FALSE
647 OS_HPUX_TRUE
648 OS_LINUX_FALSE
649 OS_LINUX_TRUE
650 ARCH_SH_FALSE
651 ARCH_SH_TRUE
652 ARCH_PPC64_FALSE
653 ARCH_PPC64_TRUE
654 ARCH_PPC32_FALSE
655 ARCH_PPC32_TRUE
656 ARCH_X86_64_FALSE
657 ARCH_X86_64_TRUE
658 ARCH_X86_FALSE
659 ARCH_X86_TRUE
660 ARCH_MIPS_FALSE
661 ARCH_MIPS_TRUE
662 ARCH_HPPA_FALSE
663 ARCH_HPPA_TRUE
664 ARCH_IA64_FALSE
665 ARCH_IA64_TRUE
666 ARCH_ARM_FALSE
667 ARCH_ARM_TRUE
668 REMOTE_ONLY_FALSE
669 REMOTE_ONLY_TRUE
670 BUILD_COREDUMP_FALSE
671 BUILD_COREDUMP_TRUE
672 USE_ALTIVEC_FALSE
673 USE_ALTIVEC_TRUE
674 am__fastdepCCAS_FALSE
675 am__fastdepCCAS_TRUE
676 CCASDEPMODE
677 CCASFLAGS
678 CCAS
679 CXXCPP
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 ac_ct_AR
689 AR
690 DLLTOOL
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 LIBTOOL
702 am__fastdepCXX_FALSE
703 am__fastdepCXX_TRUE
704 CXXDEPMODE
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 MAINT
726 MAINTAINER_MODE_FALSE
727 MAINTAINER_MODE_TRUE
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_maintainer_mode
805 enable_dependency_tracking
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_coredump
814 enable_debug
815 enable_cxx_exceptions
816 enable_debug_frame
817 enable_block_signals
818 enable_conservative_checks
819 enable_msabi_support
820 enable_minidebuginfo
821 '
822       ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CXX
831 CXXFLAGS
832 CCC
833 CPP
834 CXXCPP
835 CCAS
836 CCASFLAGS'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891   # If the previous option needs an argument, assign it.
892   if test -n "$ac_prev"; then
893     eval $ac_prev=\$ac_option
894     ac_prev=
895     continue
896   fi
897
898   case $ac_option in
899   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900   *=)   ac_optarg= ;;
901   *)    ac_optarg=yes ;;
902   esac
903
904   # Accept the important Cygnus configure options, so we can diagnose typos.
905
906   case $ac_dashdash$ac_option in
907   --)
908     ac_dashdash=yes ;;
909
910   -bindir | --bindir | --bindi | --bind | --bin | --bi)
911     ac_prev=bindir ;;
912   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913     bindir=$ac_optarg ;;
914
915   -build | --build | --buil | --bui | --bu)
916     ac_prev=build_alias ;;
917   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918     build_alias=$ac_optarg ;;
919
920   -cache-file | --cache-file | --cache-fil | --cache-fi \
921   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922     ac_prev=cache_file ;;
923   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925     cache_file=$ac_optarg ;;
926
927   --config-cache | -C)
928     cache_file=config.cache ;;
929
930   -datadir | --datadir | --datadi | --datad)
931     ac_prev=datadir ;;
932   -datadir=* | --datadir=* | --datadi=* | --datad=*)
933     datadir=$ac_optarg ;;
934
935   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936   | --dataroo | --dataro | --datar)
937     ac_prev=datarootdir ;;
938   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940     datarootdir=$ac_optarg ;;
941
942   -disable-* | --disable-*)
943     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946       as_fn_error $? "invalid feature name: $ac_useropt"
947     ac_useropt_orig=$ac_useropt
948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949     case $ac_user_opts in
950       *"
951 "enable_$ac_useropt"
952 "*) ;;
953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954          ac_unrecognized_sep=', ';;
955     esac
956     eval enable_$ac_useropt=no ;;
957
958   -docdir | --docdir | --docdi | --doc | --do)
959     ac_prev=docdir ;;
960   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961     docdir=$ac_optarg ;;
962
963   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964     ac_prev=dvidir ;;
965   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966     dvidir=$ac_optarg ;;
967
968   -enable-* | --enable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       as_fn_error $? "invalid feature name: $ac_useropt"
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=\$ac_optarg ;;
983
984   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986   | --exec | --exe | --ex)
987     ac_prev=exec_prefix ;;
988   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990   | --exec=* | --exe=* | --ex=*)
991     exec_prefix=$ac_optarg ;;
992
993   -gas | --gas | --ga | --g)
994     # Obsolete; use --with-gas.
995     with_gas=yes ;;
996
997   -help | --help | --hel | --he | -h)
998     ac_init_help=long ;;
999   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000     ac_init_help=recursive ;;
1001   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002     ac_init_help=short ;;
1003
1004   -host | --host | --hos | --ho)
1005     ac_prev=host_alias ;;
1006   -host=* | --host=* | --hos=* | --ho=*)
1007     host_alias=$ac_optarg ;;
1008
1009   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010     ac_prev=htmldir ;;
1011   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012   | --ht=*)
1013     htmldir=$ac_optarg ;;
1014
1015   -includedir | --includedir | --includedi | --included | --include \
1016   | --includ | --inclu | --incl | --inc)
1017     ac_prev=includedir ;;
1018   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019   | --includ=* | --inclu=* | --incl=* | --inc=*)
1020     includedir=$ac_optarg ;;
1021
1022   -infodir | --infodir | --infodi | --infod | --info | --inf)
1023     ac_prev=infodir ;;
1024   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025     infodir=$ac_optarg ;;
1026
1027   -libdir | --libdir | --libdi | --libd)
1028     ac_prev=libdir ;;
1029   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030     libdir=$ac_optarg ;;
1031
1032   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033   | --libexe | --libex | --libe)
1034     ac_prev=libexecdir ;;
1035   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036   | --libexe=* | --libex=* | --libe=*)
1037     libexecdir=$ac_optarg ;;
1038
1039   -localedir | --localedir | --localedi | --localed | --locale)
1040     ac_prev=localedir ;;
1041   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042     localedir=$ac_optarg ;;
1043
1044   -localstatedir | --localstatedir | --localstatedi | --localstated \
1045   | --localstate | --localstat | --localsta | --localst | --locals)
1046     ac_prev=localstatedir ;;
1047   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049     localstatedir=$ac_optarg ;;
1050
1051   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052     ac_prev=mandir ;;
1053   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054     mandir=$ac_optarg ;;
1055
1056   -nfp | --nfp | --nf)
1057     # Obsolete; use --without-fp.
1058     with_fp=no ;;
1059
1060   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061   | --no-cr | --no-c | -n)
1062     no_create=yes ;;
1063
1064   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066     no_recursion=yes ;;
1067
1068   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070   | --oldin | --oldi | --old | --ol | --o)
1071     ac_prev=oldincludedir ;;
1072   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075     oldincludedir=$ac_optarg ;;
1076
1077   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078     ac_prev=prefix ;;
1079   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080     prefix=$ac_optarg ;;
1081
1082   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083   | --program-pre | --program-pr | --program-p)
1084     ac_prev=program_prefix ;;
1085   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087     program_prefix=$ac_optarg ;;
1088
1089   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090   | --program-suf | --program-su | --program-s)
1091     ac_prev=program_suffix ;;
1092   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094     program_suffix=$ac_optarg ;;
1095
1096   -program-transform-name | --program-transform-name \
1097   | --program-transform-nam | --program-transform-na \
1098   | --program-transform-n | --program-transform- \
1099   | --program-transform | --program-transfor \
1100   | --program-transfo | --program-transf \
1101   | --program-trans | --program-tran \
1102   | --progr-tra | --program-tr | --program-t)
1103     ac_prev=program_transform_name ;;
1104   -program-transform-name=* | --program-transform-name=* \
1105   | --program-transform-nam=* | --program-transform-na=* \
1106   | --program-transform-n=* | --program-transform-=* \
1107   | --program-transform=* | --program-transfor=* \
1108   | --program-transfo=* | --program-transf=* \
1109   | --program-trans=* | --program-tran=* \
1110   | --progr-tra=* | --program-tr=* | --program-t=*)
1111     program_transform_name=$ac_optarg ;;
1112
1113   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114     ac_prev=pdfdir ;;
1115   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116     pdfdir=$ac_optarg ;;
1117
1118   -psdir | --psdir | --psdi | --psd | --ps)
1119     ac_prev=psdir ;;
1120   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121     psdir=$ac_optarg ;;
1122
1123   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124   | -silent | --silent | --silen | --sile | --sil)
1125     silent=yes ;;
1126
1127   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128     ac_prev=sbindir ;;
1129   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130   | --sbi=* | --sb=*)
1131     sbindir=$ac_optarg ;;
1132
1133   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135   | --sharedst | --shareds | --shared | --share | --shar \
1136   | --sha | --sh)
1137     ac_prev=sharedstatedir ;;
1138   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141   | --sha=* | --sh=*)
1142     sharedstatedir=$ac_optarg ;;
1143
1144   -site | --site | --sit)
1145     ac_prev=site ;;
1146   -site=* | --site=* | --sit=*)
1147     site=$ac_optarg ;;
1148
1149   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150     ac_prev=srcdir ;;
1151   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152     srcdir=$ac_optarg ;;
1153
1154   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155   | --syscon | --sysco | --sysc | --sys | --sy)
1156     ac_prev=sysconfdir ;;
1157   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159     sysconfdir=$ac_optarg ;;
1160
1161   -target | --target | --targe | --targ | --tar | --ta | --t)
1162     ac_prev=target_alias ;;
1163   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164     target_alias=$ac_optarg ;;
1165
1166   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167     verbose=yes ;;
1168
1169   -version | --version | --versio | --versi | --vers | -V)
1170     ac_init_version=: ;;
1171
1172   -with-* | --with-*)
1173     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176       as_fn_error $? "invalid package name: $ac_useropt"
1177     ac_useropt_orig=$ac_useropt
1178     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179     case $ac_user_opts in
1180       *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184          ac_unrecognized_sep=', ';;
1185     esac
1186     eval with_$ac_useropt=\$ac_optarg ;;
1187
1188   -without-* | --without-*)
1189     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192       as_fn_error $? "invalid package name: $ac_useropt"
1193     ac_useropt_orig=$ac_useropt
1194     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195     case $ac_user_opts in
1196       *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200          ac_unrecognized_sep=', ';;
1201     esac
1202     eval with_$ac_useropt=no ;;
1203
1204   --x)
1205     # Obsolete; use --with-x.
1206     with_x=yes ;;
1207
1208   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209   | --x-incl | --x-inc | --x-in | --x-i)
1210     ac_prev=x_includes ;;
1211   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213     x_includes=$ac_optarg ;;
1214
1215   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217     ac_prev=x_libraries ;;
1218   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220     x_libraries=$ac_optarg ;;
1221
1222   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1224     ;;
1225
1226   *=*)
1227     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228     # Reject names that are not valid shell variable names.
1229     case $ac_envvar in #(
1230       '' | [0-9]* | *[!_$as_cr_alnum]* )
1231       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232     esac
1233     eval $ac_envvar=\$ac_optarg
1234     export $ac_envvar ;;
1235
1236   *)
1237     # FIXME: should be removed in autoconf 3.0.
1238     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242     ;;
1243
1244   esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249   as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253   case $enable_option_checking in
1254     no) ;;
1255     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257   esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262                 datadir sysconfdir sharedstatedir localstatedir includedir \
1263                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264                 libdir localedir mandir
1265 do
1266   eval ac_val=\$$ac_var
1267   # Remove trailing slashes.
1268   case $ac_val in
1269     */ )
1270       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271       eval $ac_var=\$ac_val;;
1272   esac
1273   # Be sure to have absolute directory names.
1274   case $ac_val in
1275     [\\/$]* | ?:[\\/]* )  continue;;
1276     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277   esac
1278   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used" >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures libunwind 1.1 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/libunwind]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444   --target=TARGET   configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449   case $ac_init_help in
1450      short | recursive ) echo "Configuration of libunwind 1.1:";;
1451    esac
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-option-checking  ignore unrecognized --enable/--with options
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --enable-maintainer-mode  enable make rules and dependencies not useful
1459                           (and sometimes confusing) to the casual installer
1460   --disable-dependency-tracking  speeds up one-time build
1461   --enable-dependency-tracking   do not reject slow dependency extractors
1462   --enable-shared[=PKGS]  build shared libraries [default=yes]
1463   --enable-static[=PKGS]  build static libraries [default=yes]
1464   --enable-fast-install[=PKGS]
1465                           optimize for fast installation [default=yes]
1466   --disable-libtool-lock  avoid locking (might break parallel builds)
1467   --enable-coredump       building libunwind-coredump library
1468   --enable-debug          turn on debug support (slows down execution)
1469   --enable-cxx-exceptions use libunwind to handle C++ exceptions
1470   --enable-debug-frame    Load the ".debug_frame" section if available
1471   --enable-block-signals  Block signals before performing mutex operations
1472   --enable-conservative-checks
1473                           Validate all memory addresses before use
1474   --enable-msabi-support  Enables support for Microsoft ABI extensions
1475   --enable-minidebuginfo  Enables support for LZMA-compressed symbol tables
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1481                           both]
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483   --with-sysroot=DIR Search for dependent libraries within DIR
1484                         (or the compiler's sysroot if not specified).
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   LIBS        libraries to pass to the linker, e.g. -l<library>
1492   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CXX         C++ compiler command
1495   CXXFLAGS    C++ compiler flags
1496   CPP         C preprocessor
1497   CXXCPP      C++ preprocessor
1498   CCAS        assembler compiler command (defaults to CC)
1499   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <libunwind-devel@nongnu.org>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" ||
1513       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514       continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 libunwind configure 1.1
1568 generated by GNU Autoconf 2.68
1569
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574   exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext
1588   if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_compile") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest.$ac_objext; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext
1626   if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_compile") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_cxx_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest.$ac_objext; then :
1645   ac_retval=0
1646 else
1647   $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650         ac_retval=1
1651 fi
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_cxx_try_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   rm -f conftest.$ac_objext conftest$ac_exeext
1664   if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_link") 2>conftest.err
1672   ac_status=$?
1673   if test -s conftest.err; then
1674     grep -v '^ *+' conftest.err >conftest.er1
1675     cat conftest.er1 >&5
1676     mv -f conftest.er1 conftest.err
1677   fi
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && {
1680          test -z "$ac_c_werror_flag" ||
1681          test ! -s conftest.err
1682        } && test -s conftest$ac_exeext && {
1683          test "$cross_compiling" = yes ||
1684          $as_test_x conftest$ac_exeext
1685        }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691         ac_retval=1
1692 fi
1693   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695   # interfere with the next link command; also delete a directory that is
1696   # left behind by Apple's compiler.  We do this before executing the actions.
1697   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699   as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721   eval "$3=yes"
1722 else
1723   eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } > conftest.i && {
1756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764     ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>&5
1786   ac_status=$?
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789   { { case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_try") 2>&5
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; }; }; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: program exited with status $ac_status" >&5
1802        $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805        ac_retval=$ac_status
1806 fi
1807   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 else
1824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831     which can conflict with char $2 (); below.
1832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833     <limits.h> exists even on freestanding compilers.  */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844    Use char because int might match the return type of a GCC
1845    builtin and then its argument prototype would still apply.  */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851     to always fail with ENOSYS.  Some functions are actually named
1852     something starting with __ and the normal name is an alias.  */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866   eval "$3=yes"
1867 else
1868   eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871     conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894   ac_status=$?
1895   if test -s conftest.err; then
1896     grep -v '^ *+' conftest.err >conftest.er1
1897     cat conftest.er1 >&5
1898     mv -f conftest.er1 conftest.err
1899   fi
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; } > conftest.i && {
1902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903          test ! -s conftest.err
1904        }; then :
1905   ac_retval=0
1906 else
1907   $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910     ac_retval=1
1911 fi
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_cxx_try_cpp
1916
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext conftest$ac_exeext
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_cxx_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest$ac_exeext && {
1943          test "$cross_compiling" = yes ||
1944          $as_test_x conftest$ac_exeext
1945        }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951         ac_retval=1
1952 fi
1953   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955   # interfere with the next link command; also delete a directory that is
1956   # left behind by Apple's compiler.  We do this before executing the actions.
1957   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_cxx_try_link
1962
1963 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_c_check_header_mongrel ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   if eval \${$3+:} false; then :
1972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975   $as_echo_n "(cached) " >&6
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981   # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   ac_header_compiler=yes
1991 else
1992   ac_header_compiler=no
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1997
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006   ac_header_preproc=yes
2007 else
2008   ac_header_preproc=no
2009 fi
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2013
2014 # So?  What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016   yes:no: )
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021     ;;
2022   no:yes:* )
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ----------------------------------------- ##
2034 ## Report this to libunwind-devel@nongnu.org ##
2035 ## ----------------------------------------- ##"
2036      ) | sed "s/^/$as_me: WARNING:     /" >&2
2037     ;;
2038 esac
2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042   $as_echo_n "(cached) " >&6
2043 else
2044   eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064   $as_echo_n "(cached) " >&6
2065 else
2066   eval "$3=no"
2067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof ($2))
2074          return 0;
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 if (sizeof (($2)))
2087             return 0;
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093
2094 else
2095   eval "$3=yes"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_type
2107
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2112 # computed
2113 ac_fn_c_compute_int ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   if test "$cross_compiling" = yes; then
2117     # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2125 test_array [0] = 0
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132   ac_lo=0 ac_mid=0
2133   while :; do
2134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0
2142
2143   ;
2144   return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148   ac_hi=$ac_mid; break
2149 else
2150   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151                         if test $ac_lo -le $ac_mid; then
2152                           ac_lo= ac_hi=
2153                           break
2154                         fi
2155                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158   done
2159 else
2160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) < 0)];
2167 test_array [0] = 0
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   ac_hi=-1 ac_mid=-1
2175   while :; do
2176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183 test_array [0] = 0
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190   ac_lo=$ac_mid; break
2191 else
2192   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193                         if test $ac_mid -le $ac_hi; then
2194                           ac_lo= ac_hi=
2195                           break
2196                         fi
2197                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200   done
2201 else
2202   ac_lo= ac_hi=
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 # Binary search between lo and hi bounds.
2208 while test "x$ac_lo" != "x$ac_hi"; do
2209   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h.  */
2212 $4
2213 int
2214 main ()
2215 {
2216 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217 test_array [0] = 0
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224   ac_hi=$ac_mid
2225 else
2226   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 done
2230 case $ac_lo in #((
2231 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2232 '') ac_retval=1 ;;
2233 esac
2234   else
2235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 static long int longval () { return $2; }
2239 static unsigned long int ulongval () { return $2; }
2240 #include <stdio.h>
2241 #include <stdlib.h>
2242 int
2243 main ()
2244 {
2245
2246   FILE *f = fopen ("conftest.val", "w");
2247   if (! f)
2248     return 1;
2249   if (($2) < 0)
2250     {
2251       long int i = longval ();
2252       if (i != ($2))
2253         return 1;
2254       fprintf (f, "%ld", i);
2255     }
2256   else
2257     {
2258       unsigned long int i = ulongval ();
2259       if (i != ($2))
2260         return 1;
2261       fprintf (f, "%lu", i);
2262     }
2263   /* Do not output a trailing newline, as this causes \r\n confusion
2264      on some platforms.  */
2265   return ferror (f) || fclose (f) != 0;
2266
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_c_try_run "$LINENO"; then :
2272   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2273 else
2274   ac_retval=1
2275 fi
2276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277   conftest.$ac_objext conftest.beam conftest.$ac_ext
2278 rm -f conftest.val
2279
2280   fi
2281   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282   as_fn_set_status $ac_retval
2283
2284 } # ac_fn_c_compute_int
2285
2286 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287 # ----------------------------------------------------
2288 # Tries to find if the field MEMBER exists in type AGGR, after including
2289 # INCLUDES, setting cache variable VAR accordingly.
2290 ac_fn_c_check_member ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2294 $as_echo_n "checking for $2.$3... " >&6; }
2295 if eval \${$4+:} false; then :
2296   $as_echo_n "(cached) " >&6
2297 else
2298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 $5
2301 int
2302 main ()
2303 {
2304 static $2 ac_aggr;
2305 if (ac_aggr.$3)
2306 return 0;
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312   eval "$4=yes"
2313 else
2314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $5
2317 int
2318 main ()
2319 {
2320 static $2 ac_aggr;
2321 if (sizeof ac_aggr.$3)
2322 return 0;
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328   eval "$4=yes"
2329 else
2330   eval "$4=no"
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 eval ac_res=\$$4
2337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340
2341 } # ac_fn_c_check_member
2342
2343 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2344 # ---------------------------------------------
2345 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2346 # accordingly.
2347 ac_fn_c_check_decl ()
2348 {
2349   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350   as_decl_name=`echo $2|sed 's/ *(.*//'`
2351   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2353 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2354 if eval \${$3+:} false; then :
2355   $as_echo_n "(cached) " >&6
2356 else
2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 $4
2360 int
2361 main ()
2362 {
2363 #ifndef $as_decl_name
2364 #ifdef __cplusplus
2365   (void) $as_decl_use;
2366 #else
2367   (void) $as_decl_name;
2368 #endif
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 if ac_fn_c_try_compile "$LINENO"; then :
2376   eval "$3=yes"
2377 else
2378   eval "$3=no"
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 fi
2382 eval ac_res=\$$3
2383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386
2387 } # ac_fn_c_check_decl
2388 cat >config.log <<_ACEOF
2389 This file contains any messages produced by compilers while
2390 running configure, to aid debugging if configure makes a mistake.
2391
2392 It was created by libunwind $as_me 1.1, which was
2393 generated by GNU Autoconf 2.68.  Invocation command line was
2394
2395   $ $0 $@
2396
2397 _ACEOF
2398 exec 5>>config.log
2399 {
2400 cat <<_ASUNAME
2401 ## --------- ##
2402 ## Platform. ##
2403 ## --------- ##
2404
2405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2410
2411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2412 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2413
2414 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2415 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2417 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2418 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2419 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2420 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2421
2422 _ASUNAME
2423
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429     $as_echo "PATH: $as_dir"
2430   done
2431 IFS=$as_save_IFS
2432
2433 } >&5
2434
2435 cat >&5 <<_ACEOF
2436
2437
2438 ## ----------- ##
2439 ## Core tests. ##
2440 ## ----------- ##
2441
2442 _ACEOF
2443
2444
2445 # Keep a trace of the command line.
2446 # Strip out --no-create and --no-recursion so they do not pile up.
2447 # Strip out --silent because we don't want to record it for future runs.
2448 # Also quote any args containing shell meta-characters.
2449 # Make two passes to allow for proper duplicate-argument suppression.
2450 ac_configure_args=
2451 ac_configure_args0=
2452 ac_configure_args1=
2453 ac_must_keep_next=false
2454 for ac_pass in 1 2
2455 do
2456   for ac_arg
2457   do
2458     case $ac_arg in
2459     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2460     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2461     | -silent | --silent | --silen | --sile | --sil)
2462       continue ;;
2463     *\'*)
2464       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2465     esac
2466     case $ac_pass in
2467     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2468     2)
2469       as_fn_append ac_configure_args1 " '$ac_arg'"
2470       if test $ac_must_keep_next = true; then
2471         ac_must_keep_next=false # Got value, back to normal.
2472       else
2473         case $ac_arg in
2474           *=* | --config-cache | -C | -disable-* | --disable-* \
2475           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2476           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2477           | -with-* | --with-* | -without-* | --without-* | --x)
2478             case "$ac_configure_args0 " in
2479               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2480             esac
2481             ;;
2482           -* ) ac_must_keep_next=true ;;
2483         esac
2484       fi
2485       as_fn_append ac_configure_args " '$ac_arg'"
2486       ;;
2487     esac
2488   done
2489 done
2490 { ac_configure_args0=; unset ac_configure_args0;}
2491 { ac_configure_args1=; unset ac_configure_args1;}
2492
2493 # When interrupted or exit'd, cleanup temporary files, and complete
2494 # config.log.  We remove comments because anyway the quotes in there
2495 # would cause problems or look ugly.
2496 # WARNING: Use '\'' to represent an apostrophe within the trap.
2497 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2498 trap 'exit_status=$?
2499   # Save into config.log some information that might help in debugging.
2500   {
2501     echo
2502
2503     $as_echo "## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##"
2506     echo
2507     # The following way of writing the cache mishandles newlines in values,
2508 (
2509   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2510     eval ac_val=\$$ac_var
2511     case $ac_val in #(
2512     *${as_nl}*)
2513       case $ac_var in #(
2514       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516       esac
2517       case $ac_var in #(
2518       _ | IFS | as_nl) ;; #(
2519       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2520       *) { eval $ac_var=; unset $ac_var;} ;;
2521       esac ;;
2522     esac
2523   done
2524   (set) 2>&1 |
2525     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2526     *${as_nl}ac_space=\ *)
2527       sed -n \
2528         "s/'\''/'\''\\\\'\'''\''/g;
2529           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530       ;; #(
2531     *)
2532       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2533       ;;
2534     esac |
2535     sort
2536 )
2537     echo
2538
2539     $as_echo "## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##"
2542     echo
2543     for ac_var in $ac_subst_vars
2544     do
2545       eval ac_val=\$$ac_var
2546       case $ac_val in
2547       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548       esac
2549       $as_echo "$ac_var='\''$ac_val'\''"
2550     done | sort
2551     echo
2552
2553     if test -n "$ac_subst_files"; then
2554       $as_echo "## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##"
2557       echo
2558       for ac_var in $ac_subst_files
2559       do
2560         eval ac_val=\$$ac_var
2561         case $ac_val in
2562         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563         esac
2564         $as_echo "$ac_var='\''$ac_val'\''"
2565       done | sort
2566       echo
2567     fi
2568
2569     if test -s confdefs.h; then
2570       $as_echo "## ----------- ##
2571 ## confdefs.h. ##
2572 ## ----------- ##"
2573       echo
2574       cat confdefs.h
2575       echo
2576     fi
2577     test "$ac_signal" != 0 &&
2578       $as_echo "$as_me: caught signal $ac_signal"
2579     $as_echo "$as_me: exit $exit_status"
2580   } >&5
2581   rm -f core *.core core.conftest.* &&
2582     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2583     exit $exit_status
2584 ' 0
2585 for ac_signal in 1 2 13 15; do
2586   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2587 done
2588 ac_signal=0
2589
2590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2591 rm -f -r conftest* confdefs.h
2592
2593 $as_echo "/* confdefs.h */" > confdefs.h
2594
2595 # Predefined preprocessor variables.
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_NAME "$PACKAGE_NAME"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_STRING "$PACKAGE_STRING"
2611 _ACEOF
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2615 _ACEOF
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_URL "$PACKAGE_URL"
2619 _ACEOF
2620
2621
2622 # Let the site file select an alternate cache file if it wants to.
2623 # Prefer an explicitly selected file to automatically selected ones.
2624 ac_site_file1=NONE
2625 ac_site_file2=NONE
2626 if test -n "$CONFIG_SITE"; then
2627   # We do not want a PATH search for config.site.
2628   case $CONFIG_SITE in #((
2629     -*)  ac_site_file1=./$CONFIG_SITE;;
2630     */*) ac_site_file1=$CONFIG_SITE;;
2631     *)   ac_site_file1=./$CONFIG_SITE;;
2632   esac
2633 elif test "x$prefix" != xNONE; then
2634   ac_site_file1=$prefix/share/config.site
2635   ac_site_file2=$prefix/etc/config.site
2636 else
2637   ac_site_file1=$ac_default_prefix/share/config.site
2638   ac_site_file2=$ac_default_prefix/etc/config.site
2639 fi
2640 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641 do
2642   test "x$ac_site_file" = xNONE && continue
2643   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646     sed 's/^/| /' "$ac_site_file" >&5
2647     . "$ac_site_file" \
2648       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $? "failed to load site script $ac_site_file
2651 See \`config.log' for more details" "$LINENO" 5; }
2652   fi
2653 done
2654
2655 if test -r "$cache_file"; then
2656   # Some versions of bash will fail to source /dev/null (special files
2657   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2658   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2660 $as_echo "$as_me: loading cache $cache_file" >&6;}
2661     case $cache_file in
2662       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2663       *)                      . "./$cache_file";;
2664     esac
2665   fi
2666 else
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2668 $as_echo "$as_me: creating cache $cache_file" >&6;}
2669   >$cache_file
2670 fi
2671
2672 # Check that the precious variables saved in the cache have kept the same
2673 # value.
2674 ac_cache_corrupted=false
2675 for ac_var in $ac_precious_vars; do
2676   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2677   eval ac_new_set=\$ac_env_${ac_var}_set
2678   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2679   eval ac_new_val=\$ac_env_${ac_var}_value
2680   case $ac_old_set,$ac_new_set in
2681     set,)
2682       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2684       ac_cache_corrupted=: ;;
2685     ,set)
2686       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2688       ac_cache_corrupted=: ;;
2689     ,);;
2690     *)
2691       if test "x$ac_old_val" != "x$ac_new_val"; then
2692         # differences in whitespace do not lead to failure.
2693         ac_old_val_w=`echo x $ac_old_val`
2694         ac_new_val_w=`echo x $ac_new_val`
2695         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2696           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2698           ac_cache_corrupted=:
2699         else
2700           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2702           eval $ac_var=\$ac_old_val
2703         fi
2704         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2705 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2706         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2707 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2708       fi;;
2709   esac
2710   # Pass precious variables to config.status.
2711   if test "$ac_new_set" = set; then
2712     case $ac_new_val in
2713     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2714     *) ac_arg=$ac_var=$ac_new_val ;;
2715     esac
2716     case " $ac_configure_args " in
2717       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2718       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2719     esac
2720   fi
2721 done
2722 if $ac_cache_corrupted; then
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2727   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2728 fi
2729 ## -------------------- ##
2730 ## Main body of script. ##
2731 ## -------------------- ##
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740
2741 ac_aux_dir=
2742 for ac_dir in config "$srcdir"/config; do
2743   if test -f "$ac_dir/install-sh"; then
2744     ac_aux_dir=$ac_dir
2745     ac_install_sh="$ac_aux_dir/install-sh -c"
2746     break
2747   elif test -f "$ac_dir/install.sh"; then
2748     ac_aux_dir=$ac_dir
2749     ac_install_sh="$ac_aux_dir/install.sh -c"
2750     break
2751   elif test -f "$ac_dir/shtool"; then
2752     ac_aux_dir=$ac_dir
2753     ac_install_sh="$ac_aux_dir/shtool install -c"
2754     break
2755   fi
2756 done
2757 if test -z "$ac_aux_dir"; then
2758   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2759 fi
2760
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2767 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2768
2769
2770 # Make sure we can run config.sub.
2771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if ${ac_cv_build+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2786
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789 $as_echo "$ac_cv_build" >&6; }
2790 case $ac_cv_build in
2791 *-*-*) ;;
2792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2793 esac
2794 build=$ac_cv_build
2795 ac_save_IFS=$IFS; IFS='-'
2796 set x $ac_cv_build
2797 shift
2798 build_cpu=$1
2799 build_vendor=$2
2800 shift; shift
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2803 build_os=$*
2804 IFS=$ac_save_IFS
2805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2806
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809 $as_echo_n "checking host system type... " >&6; }
2810 if ${ac_cv_host+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test "x$host_alias" = x; then
2814   ac_cv_host=$ac_cv_build
2815 else
2816   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2818 fi
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 $as_echo "$ac_cv_host" >&6; }
2823 case $ac_cv_host in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2826 esac
2827 host=$ac_cv_host
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_host
2830 shift
2831 host_cpu=$1
2832 host_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 host_os=$*
2837 IFS=$ac_save_IFS
2838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2842 $as_echo_n "checking target system type... " >&6; }
2843 if ${ac_cv_target+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test "x$target_alias" = x; then
2847   ac_cv_target=$ac_cv_host
2848 else
2849   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2850     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2851 fi
2852
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2855 $as_echo "$ac_cv_target" >&6; }
2856 case $ac_cv_target in
2857 *-*-*) ;;
2858 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2859 esac
2860 target=$ac_cv_target
2861 ac_save_IFS=$IFS; IFS='-'
2862 set x $ac_cv_target
2863 shift
2864 target_cpu=$1
2865 target_vendor=$2
2866 shift; shift
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2869 target_os=$*
2870 IFS=$ac_save_IFS
2871 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2872
2873
2874 # The aliases save the names the user supplied, while $host etc.
2875 # will get canonicalized.
2876 test -n "$target_alias" &&
2877   test "$program_prefix$program_suffix$program_transform_name" = \
2878     NONENONEs,x,x, &&
2879   program_prefix=${target_alias}-
2880 am__api_version='1.11'
2881
2882 # Find a good install program.  We prefer a C program (faster),
2883 # so one script is as good as another.  But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2888 # AIX /bin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907     # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in #((
2909   ./ | .// | /[cC]/* | \
2910   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2912   /usr/ucb/* ) ;;
2913   *)
2914     # OSF1 and SCO ODT 3.0 have their own names for install.
2915     # Don't use installbsd from OSF since it installs stuff as root
2916     # by default.
2917     for ac_prog in ginstall scoinst install; do
2918       for ac_exec_ext in '' $ac_executable_extensions; do
2919         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2920           if test $ac_prog = install &&
2921             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922             # AIX install.  It has an incompatible calling convention.
2923             :
2924           elif test $ac_prog = install &&
2925             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926             # program-specific install script used by HP pwplus--don't use.
2927             :
2928           else
2929             rm -rf conftest.one conftest.two conftest.dir
2930             echo one > conftest.one
2931             echo two > conftest.two
2932             mkdir conftest.dir
2933             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2934               test -s conftest.one && test -s conftest.two &&
2935               test -s conftest.dir/conftest.one &&
2936               test -s conftest.dir/conftest.two
2937             then
2938               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2939               break 3
2940             fi
2941           fi
2942         fi
2943       done
2944     done
2945     ;;
2946 esac
2947
2948   done
2949 IFS=$as_save_IFS
2950
2951 rm -rf conftest.one conftest.two conftest.dir
2952
2953 fi
2954   if test "${ac_cv_path_install+set}" = set; then
2955     INSTALL=$ac_cv_path_install
2956   else
2957     # As a last resort, use the slow shell script.  Don't cache a
2958     # value for INSTALL within a source directory, because that will
2959     # break other packages using the cache if that directory is
2960     # removed, or if the value is a relative name.
2961     INSTALL=$ac_install_sh
2962   fi
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2966
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2977 # Just in case
2978 sleep 1
2979 echo timestamp > conftest.file
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name.  Accept space and tab only in the latter.
2982 am_lf='
2983 '
2984 case `pwd` in
2985   *[\\\"\#\$\&\'\`$am_lf]*)
2986     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987 esac
2988 case $srcdir in
2989   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2990     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2991 esac
2992
2993 # Do `set' in a subshell so we don't clobber the current shell's
2994 # arguments.  Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2997 # directory).
2998 if (
2999    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000    if test "$*" = "X"; then
3001       # -L didn't work.
3002       set X `ls -t "$srcdir/configure" conftest.file`
3003    fi
3004    rm -f conftest.file
3005    if test "$*" != "X $srcdir/configure conftest.file" \
3006       && test "$*" != "X conftest.file $srcdir/configure"; then
3007
3008       # If neither matched, then we have a broken ls.  This can happen
3009       # if, for instance, CONFIG_SHELL is bash and it inherits a
3010       # broken ls alias from the environment.  This has actually
3011       # happened.  Such a system could not be considered "sane".
3012       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3014    fi
3015
3016    test "$2" = conftest.file
3017    )
3018 then
3019    # Ok.
3020    :
3021 else
3022    as_fn_error $? "newly created file is older than distributed files!
3023 Check your system clock" "$LINENO" 5
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3026 $as_echo "yes" >&6; }
3027 test "$program_prefix" != NONE &&
3028   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029 # Use a double $ so make ignores it.
3030 test "$program_suffix" != NONE &&
3031   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032 # Double any \ or $.
3033 # By default was `s,x,x', remove it if useless.
3034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3036
3037 # expand $ac_aux_dir to an absolute path
3038 am_aux_dir=`cd $ac_aux_dir && pwd`
3039
3040 if test x"${MISSING+set}" != xset; then
3041   case $am_aux_dir in
3042   *\ * | *\     *)
3043     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3044   *)
3045     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3046   esac
3047 fi
3048 # Use eval to expand $SHELL
3049 if eval "$MISSING --run true"; then
3050   am_missing_run="$MISSING --run "
3051 else
3052   am_missing_run=
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3054 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3055 fi
3056
3057 if test x"${install_sh}" != xset; then
3058   case $am_aux_dir in
3059   *\ * | *\     *)
3060     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3061   *)
3062     install_sh="\${SHELL} $am_aux_dir/install-sh"
3063   esac
3064 fi
3065
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'.  However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071   if test -n "$ac_tool_prefix"; then
3072   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_STRIP+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$STRIP"; then
3080   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 $as_echo "$STRIP" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$ac_cv_prog_STRIP"; then
3111   ac_ct_STRIP=$STRIP
3112   # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$ac_ct_STRIP"; then
3120   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_ac_ct_STRIP="strip"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140 if test -n "$ac_ct_STRIP"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142 $as_echo "$ac_ct_STRIP" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148   if test "x$ac_ct_STRIP" = x; then
3149     STRIP=":"
3150   else
3151     case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     STRIP=$ac_ct_STRIP
3158   fi
3159 else
3160   STRIP="$ac_cv_prog_STRIP"
3161 fi
3162
3163 fi
3164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3165
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169   if ${ac_cv_path_mkdir+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_prog in mkdir gmkdir; do
3178          for ac_exec_ext in '' $ac_executable_extensions; do
3179            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3180            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181              'mkdir (GNU coreutils) '* | \
3182              'mkdir (coreutils) '* | \
3183              'mkdir (fileutils) '4.1*)
3184                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185                break 3;;
3186            esac
3187          done
3188        done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193
3194   test -d ./--version && rmdir ./--version
3195   if test "${ac_cv_path_mkdir+set}" = set; then
3196     MKDIR_P="$ac_cv_path_mkdir -p"
3197   else
3198     # As a last resort, use the slow shell script.  Don't cache a
3199     # value for MKDIR_P within a source directory, because that will
3200     # break other packages using the cache if that directory is
3201     # removed, or if the value is a relative name.
3202     MKDIR_P="$ac_install_sh -d"
3203   fi
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 $as_echo "$MKDIR_P" >&6; }
3207
3208 mkdir_p="$MKDIR_P"
3209 case $mkdir_p in
3210   [\\/$]* | ?:[\\/]*) ;;
3211   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3212 esac
3213
3214 for ac_prog in gawk mawk nawk awk
3215 do
3216   # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_AWK+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   if test -n "$AWK"; then
3224   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233     ac_cv_prog_AWK="$ac_prog"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 AWK=$ac_cv_prog_AWK
3244 if test -n "$AWK"; then
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246 $as_echo "$AWK" >&6; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253   test -n "$AWK" && break
3254 done
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3258 set x ${MAKE-make}
3259 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3260 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   cat >conftest.make <<\_ACEOF
3264 SHELL = /bin/sh
3265 all:
3266         @echo '@@@%%%=$(MAKE)=@@@%%%'
3267 _ACEOF
3268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3270   *@@@%%%=?*=@@@%%%*)
3271     eval ac_cv_prog_make_${ac_make}_set=yes;;
3272   *)
3273     eval ac_cv_prog_make_${ac_make}_set=no;;
3274 esac
3275 rm -f conftest.make
3276 fi
3277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280   SET_MAKE=
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284   SET_MAKE="MAKE=${MAKE-make}"
3285 fi
3286
3287 rm -rf .tst 2>/dev/null
3288 mkdir .tst 2>/dev/null
3289 if test -d .tst; then
3290   am__leading_dot=.
3291 else
3292   am__leading_dot=_
3293 fi
3294 rmdir .tst 2>/dev/null
3295
3296 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3297   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3298   # is not polluted with repeated "-I."
3299   am__isrc=' -I$(srcdir)'
3300   # test to see if srcdir already configured
3301   if test -f $srcdir/config.status; then
3302     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3303   fi
3304 fi
3305
3306 # test whether we have cygpath
3307 if test -z "$CYGPATH_W"; then
3308   if (cygpath --version) >/dev/null 2>/dev/null; then
3309     CYGPATH_W='cygpath -w'
3310   else
3311     CYGPATH_W=echo
3312   fi
3313 fi
3314
3315
3316 # Define the identity of the package.
3317  PACKAGE='libunwind'
3318  VERSION='1.1'
3319
3320
3321 cat >>confdefs.h <<_ACEOF
3322 #define PACKAGE "$PACKAGE"
3323 _ACEOF
3324
3325
3326 cat >>confdefs.h <<_ACEOF
3327 #define VERSION "$VERSION"
3328 _ACEOF
3329
3330 # Some tools Automake needs.
3331
3332 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333
3334
3335 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336
3337
3338 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339
3340
3341 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342
3343
3344 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3345
3346 # We need awk for the "check" target.  The system "awk" is bad on
3347 # some platforms.
3348 # Always define AMTAR for backward compatibility.  Yes, it's still used
3349 # in the wild :-(  We should find a proper way to deprecate it ...
3350 AMTAR='$${TAR-tar}'
3351
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3353
3354
3355
3356
3357
3358
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361     # Check whether --enable-maintainer-mode was given.
3362 if test "${enable_maintainer_mode+set}" = set; then :
3363   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3364 else
3365   USE_MAINTAINER_MODE=no
3366 fi
3367
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3370    if test $USE_MAINTAINER_MODE = yes; then
3371   MAINTAINER_MODE_TRUE=
3372   MAINTAINER_MODE_FALSE='#'
3373 else
3374   MAINTAINER_MODE_TRUE='#'
3375   MAINTAINER_MODE_FALSE=
3376 fi
3377
3378   MAINT=$MAINTAINER_MODE_TRUE
3379
3380
3381 ac_config_headers="$ac_config_headers include/config.h"
3382
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 if test -n "$ac_tool_prefix"; then
3390   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   if test -n "$CC"; then
3398   ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405     for ac_exec_ext in '' $ac_executable_extensions; do
3406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412   done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 CC=$ac_cv_prog_CC
3418 if test -n "$CC"; then
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3421 else
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 fi
3425
3426
3427 fi
3428 if test -z "$ac_cv_prog_CC"; then
3429   ac_ct_CC=$CC
3430   # Extract the first word of "gcc", so it can be a program name with args.
3431 set dummy gcc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   if test -n "$ac_ct_CC"; then
3438   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_exec_ext in '' $ac_executable_extensions; do
3446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447     ac_cv_prog_ac_ct_CC="gcc"
3448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452   done
3453 IFS=$as_save_IFS
3454
3455 fi
3456 fi
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 $as_echo "$ac_ct_CC" >&6; }
3461 else
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 fi
3465
3466   if test "x$ac_ct_CC" = x; then
3467     CC=""
3468   else
3469     case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475     CC=$ac_ct_CC
3476   fi
3477 else
3478   CC="$ac_cv_prog_CC"
3479 fi
3480
3481 if test -z "$CC"; then
3482           if test -n "$ac_tool_prefix"; then
3483     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}cc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$CC"; then
3491   ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_CC="${ac_tool_prefix}cc"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520   fi
3521 fi
3522 if test -z "$CC"; then
3523   # Extract the first word of "cc", so it can be a program name with args.
3524 set dummy cc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$CC"; then
3531   ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533   ac_prog_rejected=no
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539     for ac_exec_ext in '' $ac_executable_extensions; do
3540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542        ac_prog_rejected=yes
3543        continue
3544      fi
3545     ac_cv_prog_CC="cc"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553 if test $ac_prog_rejected = yes; then
3554   # We found a bogon in the path, so make sure we never use it.
3555   set dummy $ac_cv_prog_CC
3556   shift
3557   if test $# != 0; then
3558     # We chose a different compiler from the bogus one.
3559     # However, it has the same basename, so the bogon will be chosen
3560     # first if we set CC to just the basename; use the full file name.
3561     shift
3562     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3563   fi
3564 fi
3565 fi
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$CC"; then
3579   if test -n "$ac_tool_prefix"; then
3580   for ac_prog in cl.exe
3581   do
3582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$CC"; then
3590   ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619     test -n "$CC" && break
3620   done
3621 fi
3622 if test -z "$CC"; then
3623   ac_ct_CC=$CC
3624   for ac_prog in cl.exe
3625 do
3626   # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$ac_ct_CC"; then
3634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643     ac_cv_prog_ac_ct_CC="$ac_prog"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3657 else
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662
3663   test -n "$ac_ct_CC" && break
3664 done
3665
3666   if test "x$ac_ct_CC" = x; then
3667     CC=""
3668   else
3669     case $cross_compiling:$ac_tool_warned in
3670 yes:)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3674 esac
3675     CC=$ac_ct_CC
3676   fi
3677 fi
3678
3679 fi
3680
3681
3682 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "no acceptable C compiler found in \$PATH
3685 See \`config.log' for more details" "$LINENO" 5; }
3686
3687 # Provide some information about the compiler.
3688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3689 set X $ac_compile
3690 ac_compiler=$2
3691 for ac_option in --version -v -V -qversion; do
3692   { { ac_try="$ac_compiler $ac_option >&5"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3700   ac_status=$?
3701   if test -s conftest.err; then
3702     sed '10a\
3703 ... rest of stderr output deleted ...
3704          10q' conftest.err >conftest.er1
3705     cat conftest.er1 >&5
3706   fi
3707   rm -f conftest.er1 conftest.err
3708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709   test $ac_status = 0; }
3710 done
3711
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h.  */
3714
3715 int
3716 main ()
3717 {
3718
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3727 # of exeext.
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3729 $as_echo_n "checking whether the C compiler works... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3731
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734
3735 ac_rmfiles=
3736 for ac_file in $ac_files
3737 do
3738   case $ac_file in
3739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741   esac
3742 done
3743 rm -f $ac_rmfiles
3744
3745 if { { ac_try="$ac_link_default"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_link_default") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }; then :
3756   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3760 # Autoconf.
3761 for ac_file in $ac_files ''
3762 do
3763   test -f "$ac_file" || continue
3764   case $ac_file in
3765     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3766         ;;
3767     [ab].out )
3768         # We found the default executable, but exeext='' is most
3769         # certainly right.
3770         break;;
3771     *.* )
3772         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3773         then :; else
3774            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775         fi
3776         # We set ac_cv_exeext here because the later test for it is not
3777         # safe: cross compilers may not add the suffix if given an `-o'
3778         # argument, so we may need to know it at that point already.
3779         # Even if this section looks crufty: it has the advantage of
3780         # actually working.
3781         break;;
3782     * )
3783         break;;
3784   esac
3785 done
3786 test "$ac_cv_exeext" = no && ac_cv_exeext=
3787
3788 else
3789   ac_file=''
3790 fi
3791 if test -z "$ac_file"; then :
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error 77 "C compiler cannot create executables
3800 See \`config.log' for more details" "$LINENO" 5; }
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3806 $as_echo_n "checking for C compiler default output file name... " >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808 $as_echo "$ac_file" >&6; }
3809 ac_exeext=$ac_cv_exeext
3810
3811 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814 $as_echo_n "checking for suffix of executables... " >&6; }
3815 if { { ac_try="$ac_link"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822   (eval "$ac_link") 2>&5
3823   ac_status=$?
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }; then :
3826   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3827 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3828 # work properly (i.e., refer to `conftest.exe'), while it won't with
3829 # `rm'.
3830 for ac_file in conftest.exe conftest conftest.*; do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3835           break;;
3836     * ) break;;
3837   esac
3838 done
3839 else
3840   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3843 See \`config.log' for more details" "$LINENO" 5; }
3844 fi
3845 rm -f conftest conftest$ac_cv_exeext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3847 $as_echo "$ac_cv_exeext" >&6; }
3848
3849 rm -f conftest.$ac_ext
3850 EXEEXT=$ac_cv_exeext
3851 ac_exeext=$EXEEXT
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854 #include <stdio.h>
3855 int
3856 main ()
3857 {
3858 FILE *f = fopen ("conftest.out", "w");
3859  return ferror (f) || fclose (f) != 0;
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 ac_clean_files="$ac_clean_files conftest.out"
3866 # Check that the compiler produces executables we can run.  If not, either
3867 # the compiler is broken, or we cross compile.
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3869 $as_echo_n "checking whether we are cross compiling... " >&6; }
3870 if test "$cross_compiling" != yes; then
3871   { { ac_try="$ac_link"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878   (eval "$ac_link") 2>&5
3879   ac_status=$?
3880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881   test $ac_status = 0; }
3882   if { ac_try='./conftest$ac_cv_exeext'
3883   { { case "(($ac_try" in
3884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885   *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889   (eval "$ac_try") 2>&5
3890   ac_status=$?
3891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892   test $ac_status = 0; }; }; then
3893     cross_compiling=no
3894   else
3895     if test "$cross_compiling" = maybe; then
3896         cross_compiling=yes
3897     else
3898         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "cannot run C compiled programs.
3901 If you meant to cross compile, use \`--host'.
3902 See \`config.log' for more details" "$LINENO" 5; }
3903     fi
3904   fi
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3908
3909 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912 $as_echo_n "checking for suffix of object files... " >&6; }
3913 if ${ac_cv_objext+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h.  */
3918
3919 int
3920 main ()
3921 {
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.o conftest.obj
3928 if { { ac_try="$ac_compile"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935   (eval "$ac_compile") 2>&5
3936   ac_status=$?
3937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938   test $ac_status = 0; }; then :
3939   for ac_file in conftest.o conftest.obj conftest.*; do
3940   test -f "$ac_file" || continue;
3941   case $ac_file in
3942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3944        break;;
3945   esac
3946 done
3947 else
3948   $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error $? "cannot compute suffix of object files: cannot compile
3954 See \`config.log' for more details" "$LINENO" 5; }
3955 fi
3956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 $as_echo "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3961 ac_objext=$OBJEXT
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964 if ${ac_cv_c_compiler_gnu+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973 #ifndef __GNUC__
3974        choke me
3975 #endif
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_compiler_gnu=yes
3983 else
3984   ac_compiler_gnu=no
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992 if test $ac_compiler_gnu = yes; then
3993   GCC=yes
3994 else
3995   GCC=
3996 fi
3997 ac_test_CFLAGS=${CFLAGS+set}
3998 ac_save_CFLAGS=$CFLAGS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4001 if ${ac_cv_prog_cc_g+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   ac_save_c_werror_flag=$ac_c_werror_flag
4005    ac_c_werror_flag=yes
4006    ac_cv_prog_cc_g=no
4007    CFLAGS="-g"
4008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h.  */
4010
4011 int
4012 main ()
4013 {
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020   ac_cv_prog_cc_g=yes
4021 else
4022   CFLAGS=""
4023       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h.  */
4025
4026 int
4027 main ()
4028 {
4029
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035
4036 else
4037   ac_c_werror_flag=$ac_save_c_werror_flag
4038          CFLAGS="-g"
4039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_cv_prog_cc_g=yes
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058    ac_c_werror_flag=$ac_save_c_werror_flag
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061 $as_echo "$ac_cv_prog_cc_g" >&6; }
4062 if test "$ac_test_CFLAGS" = set; then
4063   CFLAGS=$ac_save_CFLAGS
4064 elif test $ac_cv_prog_cc_g = yes; then
4065   if test "$GCC" = yes; then
4066     CFLAGS="-g -O2"
4067   else
4068     CFLAGS="-g"
4069   fi
4070 else
4071   if test "$GCC" = yes; then
4072     CFLAGS="-O2"
4073   else
4074     CFLAGS=
4075   fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079 if ${ac_cv_prog_cc_c89+:} false; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   ac_cv_prog_cc_c89=no
4083 ac_save_CC=$CC
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086 #include <stdarg.h>
4087 #include <stdio.h>
4088 #include <sys/types.h>
4089 #include <sys/stat.h>
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4094      char **p;
4095      int i;
4096 {
4097   return p[i];
4098 }
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4100 {
4101   char *s;
4102   va_list v;
4103   va_start (v,p);
4104   s = g (p, va_arg (v,int));
4105   va_end (v);
4106   return s;
4107 }
4108
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4110    function prototypes and stuff, but not '\xHH' hex character constants.
4111    These don't provoke an error unfortunately, instead are silently treated
4112    as 'x'.  The following induces an error, until -std is added to get
4113    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4114    array size at least.  It's necessary to write '\x00'==0 to get something
4115    that's true only with -std.  */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119    inside strings and character constants.  */
4120 #define FOO(x) 'x'
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 int argc;
4128 char **argv;
4129 int
4130 main ()
4131 {
4132 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 do
4140   CC="$ac_save_CC $ac_arg"
4141   if ac_fn_c_try_compile "$LINENO"; then :
4142   ac_cv_prog_cc_c89=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145   test "x$ac_cv_prog_cc_c89" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c89" in
4153   x)
4154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156   xno)
4157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159   *)
4160     CC="$CC $ac_cv_prog_cc_c89"
4161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 DEPDIR="${am__leading_dot}deps"
4174
4175 ac_config_commands="$ac_config_commands depfiles"
4176
4177
4178 am_make=${MAKE-make}
4179 cat > confinc << 'END'
4180 am__doit:
4181         @echo this is the am__doit target
4182 .PHONY: am__doit
4183 END
4184 # If we don't find an include directive, just comment out the code.
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4186 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4187 am__include="#"
4188 am__quote=
4189 _am_result=none
4190 # First try GNU make style include.
4191 echo "include confinc" > confmf
4192 # Ignore all kinds of additional output from `make'.
4193 case `$am_make -s -f confmf 2> /dev/null` in #(
4194 *the\ am__doit\ target*)
4195   am__include=include
4196   am__quote=
4197   _am_result=GNU
4198   ;;
4199 esac
4200 # Now try BSD make style include.
4201 if test "$am__include" = "#"; then
4202    echo '.include "confinc"' > confmf
4203    case `$am_make -s -f confmf 2> /dev/null` in #(
4204    *the\ am__doit\ target*)
4205      am__include=.include
4206      am__quote="\""
4207      _am_result=BSD
4208      ;;
4209    esac
4210 fi
4211
4212
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4214 $as_echo "$_am_result" >&6; }
4215 rm -f confinc confmf
4216
4217 # Check whether --enable-dependency-tracking was given.
4218 if test "${enable_dependency_tracking+set}" = set; then :
4219   enableval=$enable_dependency_tracking;
4220 fi
4221
4222 if test "x$enable_dependency_tracking" != xno; then
4223   am_depcomp="$ac_aux_dir/depcomp"
4224   AMDEPBACKSLASH='\'
4225   am__nodep='_no'
4226 fi
4227  if test "x$enable_dependency_tracking" != xno; then
4228   AMDEP_TRUE=
4229   AMDEP_FALSE='#'
4230 else
4231   AMDEP_TRUE='#'
4232   AMDEP_FALSE=
4233 fi
4234
4235
4236
4237 depcc="$CC"   am_compiler_list=
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4240 $as_echo_n "checking dependency style of $depcc... " >&6; }
4241 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4245   # We make a subdir and do the tests there.  Otherwise we can end up
4246   # making bogus files that we don't know about and never remove.  For
4247   # instance it was reported that on HP-UX the gcc test will end up
4248   # making a dummy file named `D' -- because `-MD' means `put the output
4249   # in D'.
4250   rm -rf conftest.dir
4251   mkdir conftest.dir
4252   # Copy depcomp to subdir because otherwise we won't find it if we're
4253   # using a relative directory.
4254   cp "$am_depcomp" conftest.dir
4255   cd conftest.dir
4256   # We will build objects and dependencies in a subdirectory because
4257   # it helps to detect inapplicable dependency modes.  For instance
4258   # both Tru64's cc and ICC support -MD to output dependencies as a
4259   # side effect of compilation, but ICC will put the dependencies in
4260   # the current directory while Tru64 will put them in the object
4261   # directory.
4262   mkdir sub
4263
4264   am_cv_CC_dependencies_compiler_type=none
4265   if test "$am_compiler_list" = ""; then
4266      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4267   fi
4268   am__universal=false
4269   case " $depcc " in #(
4270      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4271      esac
4272
4273   for depmode in $am_compiler_list; do
4274     # Setup a source with many dependencies, because some compilers
4275     # like to wrap large dependency lists on column 80 (with \), and
4276     # we should not choose a depcomp mode which is confused by this.
4277     #
4278     # We need to recreate these files for each test, as the compiler may
4279     # overwrite some of them when testing with obscure command lines.
4280     # This happens at least with the AIX C compiler.
4281     : > sub/conftest.c
4282     for i in 1 2 3 4 5 6; do
4283       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4284       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4285       # Solaris 8's {/usr,}/bin/sh.
4286       touch sub/conftst$i.h
4287     done
4288     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4289
4290     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4291     # mode.  It turns out that the SunPro C++ compiler does not properly
4292     # handle `-M -o', and we need to detect this.  Also, some Intel
4293     # versions had trouble with output in subdirs
4294     am__obj=sub/conftest.${OBJEXT-o}
4295     am__minus_obj="-o $am__obj"
4296     case $depmode in
4297     gcc)
4298       # This depmode causes a compiler race in universal mode.
4299       test "$am__universal" = false || continue
4300       ;;
4301     nosideeffect)
4302       # after this tag, mechanisms are not by side-effect, so they'll
4303       # only be used when explicitly requested
4304       if test "x$enable_dependency_tracking" = xyes; then
4305         continue
4306       else
4307         break
4308       fi
4309       ;;
4310     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4311       # This compiler won't grok `-c -o', but also, the minuso test has
4312       # not run yet.  These depmodes are late enough in the game, and
4313       # so weak that their functioning should not be impacted.
4314       am__obj=conftest.${OBJEXT-o}
4315       am__minus_obj=
4316       ;;
4317     none) break ;;
4318     esac
4319     if depmode=$depmode \
4320        source=sub/conftest.c object=$am__obj \
4321        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4322        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4323          >/dev/null 2>conftest.err &&
4324        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4325        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4326        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4327        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4328       # icc doesn't choke on unknown options, it will just issue warnings
4329       # or remarks (even with -Werror).  So we grep stderr for any message
4330       # that says an option was ignored or not supported.
4331       # When given -MP, icc 7.0 and 7.1 complain thusly:
4332       #   icc: Command line warning: ignoring option '-M'; no argument required
4333       # The diagnosis changed in icc 8.0:
4334       #   icc: Command line remark: option '-MP' not supported
4335       if (grep 'ignoring option' conftest.err ||
4336           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4337         am_cv_CC_dependencies_compiler_type=$depmode
4338         break
4339       fi
4340     fi
4341   done
4342
4343   cd ..
4344   rm -rf conftest.dir
4345 else
4346   am_cv_CC_dependencies_compiler_type=none
4347 fi
4348
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4352 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4353
4354  if
4355   test "x$enable_dependency_tracking" != xno \
4356   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4357   am__fastdepCC_TRUE=
4358   am__fastdepCC_FALSE='#'
4359 else
4360   am__fastdepCC_TRUE='#'
4361   am__fastdepCC_FALSE=
4362 fi
4363
4364
4365 ac_ext=cpp
4366 ac_cpp='$CXXCPP $CPPFLAGS'
4367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4370 if test -z "$CXX"; then
4371   if test -n "$CCC"; then
4372     CXX=$CCC
4373   else
4374     if test -n "$ac_tool_prefix"; then
4375   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4376   do
4377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_CXX+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -n "$CXX"; then
4385   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392     for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399   done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 CXX=$ac_cv_prog_CXX
4405 if test -n "$CXX"; then
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4407 $as_echo "$CXX" >&6; }
4408 else
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414     test -n "$CXX" && break
4415   done
4416 fi
4417 if test -z "$CXX"; then
4418   ac_ct_CXX=$CXX
4419   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4420 do
4421   # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -n "$ac_ct_CXX"; then
4429   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_ac_ct_CXX="$ac_prog"
4439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443   done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4449 if test -n "$ac_ct_CXX"; then
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4451 $as_echo "$ac_ct_CXX" >&6; }
4452 else
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458   test -n "$ac_ct_CXX" && break
4459 done
4460
4461   if test "x$ac_ct_CXX" = x; then
4462     CXX="g++"
4463   else
4464     case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4469 esac
4470     CXX=$ac_ct_CXX
4471   fi
4472 fi
4473
4474   fi
4475 fi
4476 # Provide some information about the compiler.
4477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4478 set X $ac_compile
4479 ac_compiler=$2
4480 for ac_option in --version -v -V -qversion; do
4481   { { ac_try="$ac_compiler $ac_option >&5"
4482 case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4489   ac_status=$?
4490   if test -s conftest.err; then
4491     sed '10a\
4492 ... rest of stderr output deleted ...
4493          10q' conftest.err >conftest.er1
4494     cat conftest.er1 >&5
4495   fi
4496   rm -f conftest.er1 conftest.err
4497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498   test $ac_status = 0; }
4499 done
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4502 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4503 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508
4509 int
4510 main ()
4511 {
4512 #ifndef __GNUC__
4513        choke me
4514 #endif
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4521   ac_compiler_gnu=yes
4522 else
4523   ac_compiler_gnu=no
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4530 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4531 if test $ac_compiler_gnu = yes; then
4532   GXX=yes
4533 else
4534   GXX=
4535 fi
4536 ac_test_CXXFLAGS=${CXXFLAGS+set}
4537 ac_save_CXXFLAGS=$CXXFLAGS
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4539 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4540 if ${ac_cv_prog_cxx_g+:} false; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4544    ac_cxx_werror_flag=yes
4545    ac_cv_prog_cxx_g=no
4546    CXXFLAGS="-g"
4547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549
4550 int
4551 main ()
4552 {
4553
4554   ;
4555   return 0;
4556 }
4557 _ACEOF
4558 if ac_fn_cxx_try_compile "$LINENO"; then :
4559   ac_cv_prog_cxx_g=yes
4560 else
4561   CXXFLAGS=""
4562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h.  */
4564
4565 int
4566 main ()
4567 {
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4574
4575 else
4576   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4577          CXXFLAGS="-g"
4578          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580
4581 int
4582 main ()
4583 {
4584
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590   ac_cv_prog_cxx_g=yes
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4600 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4601 if test "$ac_test_CXXFLAGS" = set; then
4602   CXXFLAGS=$ac_save_CXXFLAGS
4603 elif test $ac_cv_prog_cxx_g = yes; then
4604   if test "$GXX" = yes; then
4605     CXXFLAGS="-g -O2"
4606   else
4607     CXXFLAGS="-g"
4608   fi
4609 else
4610   if test "$GXX" = yes; then
4611     CXXFLAGS="-O2"
4612   else
4613     CXXFLAGS=
4614   fi
4615 fi
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621
4622 depcc="$CXX"  am_compiler_list=
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4625 $as_echo_n "checking dependency style of $depcc... " >&6; }
4626 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630   # We make a subdir and do the tests there.  Otherwise we can end up
4631   # making bogus files that we don't know about and never remove.  For
4632   # instance it was reported that on HP-UX the gcc test will end up
4633   # making a dummy file named `D' -- because `-MD' means `put the output
4634   # in D'.
4635   rm -rf conftest.dir
4636   mkdir conftest.dir
4637   # Copy depcomp to subdir because otherwise we won't find it if we're
4638   # using a relative directory.
4639   cp "$am_depcomp" conftest.dir
4640   cd conftest.dir
4641   # We will build objects and dependencies in a subdirectory because
4642   # it helps to detect inapplicable dependency modes.  For instance
4643   # both Tru64's cc and ICC support -MD to output dependencies as a
4644   # side effect of compilation, but ICC will put the dependencies in
4645   # the current directory while Tru64 will put them in the object
4646   # directory.
4647   mkdir sub
4648
4649   am_cv_CXX_dependencies_compiler_type=none
4650   if test "$am_compiler_list" = ""; then
4651      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652   fi
4653   am__universal=false
4654   case " $depcc " in #(
4655      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4656      esac
4657
4658   for depmode in $am_compiler_list; do
4659     # Setup a source with many dependencies, because some compilers
4660     # like to wrap large dependency lists on column 80 (with \), and
4661     # we should not choose a depcomp mode which is confused by this.
4662     #
4663     # We need to recreate these files for each test, as the compiler may
4664     # overwrite some of them when testing with obscure command lines.
4665     # This happens at least with the AIX C compiler.
4666     : > sub/conftest.c
4667     for i in 1 2 3 4 5 6; do
4668       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670       # Solaris 8's {/usr,}/bin/sh.
4671       touch sub/conftst$i.h
4672     done
4673     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4676     # mode.  It turns out that the SunPro C++ compiler does not properly
4677     # handle `-M -o', and we need to detect this.  Also, some Intel
4678     # versions had trouble with output in subdirs
4679     am__obj=sub/conftest.${OBJEXT-o}
4680     am__minus_obj="-o $am__obj"
4681     case $depmode in
4682     gcc)
4683       # This depmode causes a compiler race in universal mode.
4684       test "$am__universal" = false || continue
4685       ;;
4686     nosideeffect)
4687       # after this tag, mechanisms are not by side-effect, so they'll
4688       # only be used when explicitly requested
4689       if test "x$enable_dependency_tracking" = xyes; then
4690         continue
4691       else
4692         break
4693       fi
4694       ;;
4695     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696       # This compiler won't grok `-c -o', but also, the minuso test has
4697       # not run yet.  These depmodes are late enough in the game, and
4698       # so weak that their functioning should not be impacted.
4699       am__obj=conftest.${OBJEXT-o}
4700       am__minus_obj=
4701       ;;
4702     none) break ;;
4703     esac
4704     if depmode=$depmode \
4705        source=sub/conftest.c object=$am__obj \
4706        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708          >/dev/null 2>conftest.err &&
4709        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713       # icc doesn't choke on unknown options, it will just issue warnings
4714       # or remarks (even with -Werror).  So we grep stderr for any message
4715       # that says an option was ignored or not supported.
4716       # When given -MP, icc 7.0 and 7.1 complain thusly:
4717       #   icc: Command line warning: ignoring option '-M'; no argument required
4718       # The diagnosis changed in icc 8.0:
4719       #   icc: Command line remark: option '-MP' not supported
4720       if (grep 'ignoring option' conftest.err ||
4721           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722         am_cv_CXX_dependencies_compiler_type=$depmode
4723         break
4724       fi
4725     fi
4726   done
4727
4728   cd ..
4729   rm -rf conftest.dir
4730 else
4731   am_cv_CXX_dependencies_compiler_type=none
4732 fi
4733
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4736 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4737 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4738
4739  if
4740   test "x$enable_dependency_tracking" != xno \
4741   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4742   am__fastdepCXX_TRUE=
4743   am__fastdepCXX_FALSE='#'
4744 else
4745   am__fastdepCXX_TRUE='#'
4746   am__fastdepCXX_FALSE=
4747 fi
4748
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4753 set x ${MAKE-make}
4754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4755 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   cat >conftest.make <<\_ACEOF
4759 SHELL = /bin/sh
4760 all:
4761         @echo '@@@%%%=$(MAKE)=@@@%%%'
4762 _ACEOF
4763 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4765   *@@@%%%=?*=@@@%%%*)
4766     eval ac_cv_prog_make_${ac_make}_set=yes;;
4767   *)
4768     eval ac_cv_prog_make_${ac_make}_set=no;;
4769 esac
4770 rm -f conftest.make
4771 fi
4772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774 $as_echo "yes" >&6; }
4775   SET_MAKE=
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779   SET_MAKE="MAKE=${MAKE-make}"
4780 fi
4781
4782 case `pwd` in
4783   *\ * | *\     *)
4784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4785 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4786 esac
4787
4788
4789
4790 macro_version='2.4.2'
4791 macro_revision='1.3337'
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 ltmain="$ac_aux_dir/ltmain.sh"
4806
4807 # Backslashify metacharacters that are still active within
4808 # double-quoted strings.
4809 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4810
4811 # Same as above, but do not quote variable references.
4812 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4813
4814 # Sed substitution to delay expansion of an escaped shell variable in a
4815 # double_quote_subst'ed string.
4816 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4817
4818 # Sed substitution to delay expansion of an escaped single quote.
4819 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4820
4821 # Sed substitution to avoid accidental globbing in evaled expressions
4822 no_glob_subst='s/\*/\\\*/g'
4823
4824 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4826 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4829 $as_echo_n "checking how to print strings... " >&6; }
4830 # Test print first, because it will be a builtin if present.
4831 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4832    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4833   ECHO='print -r --'
4834 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4835   ECHO='printf %s\n'
4836 else
4837   # Use this function as a fallback that always works.
4838   func_fallback_echo ()
4839   {
4840     eval 'cat <<_LTECHO_EOF
4841 $1
4842 _LTECHO_EOF'
4843   }
4844   ECHO='func_fallback_echo'
4845 fi
4846
4847 # func_echo_all arg...
4848 # Invoke $ECHO with all args, space-separated.
4849 func_echo_all ()
4850 {
4851     $ECHO ""
4852 }
4853
4854 case "$ECHO" in
4855   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4856 $as_echo "printf" >&6; } ;;
4857   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4858 $as_echo "print -r" >&6; } ;;
4859   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4860 $as_echo "cat" >&6; } ;;
4861 esac
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4877 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4878 if ${ac_cv_path_SED+:} false; then :
4879   $as_echo_n "(cached) " >&6
4880 else
4881             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4882      for ac_i in 1 2 3 4 5 6 7; do
4883        ac_script="$ac_script$as_nl$ac_script"
4884      done
4885      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4886      { ac_script=; unset ac_script;}
4887      if test -z "$SED"; then
4888   ac_path_SED_found=false
4889   # Loop through the user's path and test for each of PROGNAME-LIST
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_prog in sed gsed; do
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4898       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4899 # Check for GNU ac_path_SED and select it if it is found.
4900   # Check for GNU $ac_path_SED
4901 case `"$ac_path_SED" --version 2>&1` in
4902 *GNU*)
4903   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4904 *)
4905   ac_count=0
4906   $as_echo_n 0123456789 >"conftest.in"
4907   while :
4908   do
4909     cat "conftest.in" "conftest.in" >"conftest.tmp"
4910     mv "conftest.tmp" "conftest.in"
4911     cp "conftest.in" "conftest.nl"
4912     $as_echo '' >> "conftest.nl"
4913     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915     as_fn_arith $ac_count + 1 && ac_count=$as_val
4916     if test $ac_count -gt ${ac_path_SED_max-0}; then
4917       # Best one so far, save it but keep looking for a better one
4918       ac_cv_path_SED="$ac_path_SED"
4919       ac_path_SED_max=$ac_count
4920     fi
4921     # 10*(2^10) chars as input seems more than enough
4922     test $ac_count -gt 10 && break
4923   done
4924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 esac
4926
4927       $ac_path_SED_found && break 3
4928     done
4929   done
4930   done
4931 IFS=$as_save_IFS
4932   if test -z "$ac_cv_path_SED"; then
4933     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4934   fi
4935 else
4936   ac_cv_path_SED=$SED
4937 fi
4938
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941 $as_echo "$ac_cv_path_SED" >&6; }
4942  SED="$ac_cv_path_SED"
4943   rm -f conftest.sed
4944
4945 test -z "$SED" && SED=sed
4946 Xsed="$SED -e 1s/^X//"
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4959 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4960 if ${ac_cv_path_GREP+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -z "$GREP"; then
4964   ac_path_GREP_found=false
4965   # Loop through the user's path and test for each of PROGNAME-LIST
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_prog in grep ggrep; do
4972     for ac_exec_ext in '' $ac_executable_extensions; do
4973       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4974       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4975 # Check for GNU ac_path_GREP and select it if it is found.
4976   # Check for GNU $ac_path_GREP
4977 case `"$ac_path_GREP" --version 2>&1` in
4978 *GNU*)
4979   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4980 *)
4981   ac_count=0
4982   $as_echo_n 0123456789 >"conftest.in"
4983   while :
4984   do
4985     cat "conftest.in" "conftest.in" >"conftest.tmp"
4986     mv "conftest.tmp" "conftest.in"
4987     cp "conftest.in" "conftest.nl"
4988     $as_echo 'GREP' >> "conftest.nl"
4989     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991     as_fn_arith $ac_count + 1 && ac_count=$as_val
4992     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4993       # Best one so far, save it but keep looking for a better one
4994       ac_cv_path_GREP="$ac_path_GREP"
4995       ac_path_GREP_max=$ac_count
4996     fi
4997     # 10*(2^10) chars as input seems more than enough
4998     test $ac_count -gt 10 && break
4999   done
5000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5001 esac
5002
5003       $ac_path_GREP_found && break 3
5004     done
5005   done
5006   done
5007 IFS=$as_save_IFS
5008   if test -z "$ac_cv_path_GREP"; then
5009     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5010   fi
5011 else
5012   ac_cv_path_GREP=$GREP
5013 fi
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5017 $as_echo "$ac_cv_path_GREP" >&6; }
5018  GREP="$ac_cv_path_GREP"
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5022 $as_echo_n "checking for egrep... " >&6; }
5023 if ${ac_cv_path_EGREP+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5027    then ac_cv_path_EGREP="$GREP -E"
5028    else
5029      if test -z "$EGREP"; then
5030   ac_path_EGREP_found=false
5031   # Loop through the user's path and test for each of PROGNAME-LIST
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_prog in egrep; do
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5040       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5041 # Check for GNU ac_path_EGREP and select it if it is found.
5042   # Check for GNU $ac_path_EGREP
5043 case `"$ac_path_EGREP" --version 2>&1` in
5044 *GNU*)
5045   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5046 *)
5047   ac_count=0
5048   $as_echo_n 0123456789 >"conftest.in"
5049   while :
5050   do
5051     cat "conftest.in" "conftest.in" >"conftest.tmp"
5052     mv "conftest.tmp" "conftest.in"
5053     cp "conftest.in" "conftest.nl"
5054     $as_echo 'EGREP' >> "conftest.nl"
5055     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5056     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5057     as_fn_arith $ac_count + 1 && ac_count=$as_val
5058     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5059       # Best one so far, save it but keep looking for a better one
5060       ac_cv_path_EGREP="$ac_path_EGREP"
5061       ac_path_EGREP_max=$ac_count
5062     fi
5063     # 10*(2^10) chars as input seems more than enough
5064     test $ac_count -gt 10 && break
5065   done
5066   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5067 esac
5068
5069       $ac_path_EGREP_found && break 3
5070     done
5071   done
5072   done
5073 IFS=$as_save_IFS
5074   if test -z "$ac_cv_path_EGREP"; then
5075     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5076   fi
5077 else
5078   ac_cv_path_EGREP=$EGREP
5079 fi
5080
5081    fi
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5084 $as_echo "$ac_cv_path_EGREP" >&6; }
5085  EGREP="$ac_cv_path_EGREP"
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5089 $as_echo_n "checking for fgrep... " >&6; }
5090 if ${ac_cv_path_FGREP+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5094    then ac_cv_path_FGREP="$GREP -F"
5095    else
5096      if test -z "$FGREP"; then
5097   ac_path_FGREP_found=false
5098   # Loop through the user's path and test for each of PROGNAME-LIST
5099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_prog in fgrep; do
5105     for ac_exec_ext in '' $ac_executable_extensions; do
5106       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5107       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5108 # Check for GNU ac_path_FGREP and select it if it is found.
5109   # Check for GNU $ac_path_FGREP
5110 case `"$ac_path_FGREP" --version 2>&1` in
5111 *GNU*)
5112   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5113 *)
5114   ac_count=0
5115   $as_echo_n 0123456789 >"conftest.in"
5116   while :
5117   do
5118     cat "conftest.in" "conftest.in" >"conftest.tmp"
5119     mv "conftest.tmp" "conftest.in"
5120     cp "conftest.in" "conftest.nl"
5121     $as_echo 'FGREP' >> "conftest.nl"
5122     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124     as_fn_arith $ac_count + 1 && ac_count=$as_val
5125     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5126       # Best one so far, save it but keep looking for a better one
5127       ac_cv_path_FGREP="$ac_path_FGREP"
5128       ac_path_FGREP_max=$ac_count
5129     fi
5130     # 10*(2^10) chars as input seems more than enough
5131     test $ac_count -gt 10 && break
5132   done
5133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134 esac
5135
5136       $ac_path_FGREP_found && break 3
5137     done
5138   done
5139   done
5140 IFS=$as_save_IFS
5141   if test -z "$ac_cv_path_FGREP"; then
5142     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5143   fi
5144 else
5145   ac_cv_path_FGREP=$FGREP
5146 fi
5147
5148    fi
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5151 $as_echo "$ac_cv_path_FGREP" >&6; }
5152  FGREP="$ac_cv_path_FGREP"
5153
5154
5155 test -z "$GREP" && GREP=grep
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 # Check whether --with-gnu-ld was given.
5176 if test "${with_gnu_ld+set}" = set; then :
5177   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5178 else
5179   with_gnu_ld=no
5180 fi
5181
5182 ac_prog=ld
5183 if test "$GCC" = yes; then
5184   # Check if gcc -print-prog-name=ld gives a path.
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5186 $as_echo_n "checking for ld used by $CC... " >&6; }
5187   case $host in
5188   *-*-mingw*)
5189     # gcc leaves a trailing carriage return which upsets mingw
5190     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5191   *)
5192     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5193   esac
5194   case $ac_prog in
5195     # Accept absolute paths.
5196     [\\/]* | ?:[\\/]*)
5197       re_direlt='/[^/][^/]*/\.\./'
5198       # Canonicalize the pathname of ld
5199       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5200       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5201         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5202       done
5203       test -z "$LD" && LD="$ac_prog"
5204       ;;
5205   "")
5206     # If it fails, then pretend we aren't using GCC.
5207     ac_prog=ld
5208     ;;
5209   *)
5210     # If it is relative, then search for the first ld in PATH.
5211     with_gnu_ld=unknown
5212     ;;
5213   esac
5214 elif test "$with_gnu_ld" = yes; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5216 $as_echo_n "checking for GNU ld... " >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5219 $as_echo_n "checking for non-GNU ld... " >&6; }
5220 fi
5221 if ${lt_cv_path_LD+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   if test -z "$LD"; then
5225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226   for ac_dir in $PATH; do
5227     IFS="$lt_save_ifs"
5228     test -z "$ac_dir" && ac_dir=.
5229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230       lt_cv_path_LD="$ac_dir/$ac_prog"
5231       # Check to see if the program is GNU ld.  I'd rather use --version,
5232       # but apparently some variants of GNU ld only accept -v.
5233       # Break only if it was the GNU/non-GNU ld that we prefer.
5234       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235       *GNU* | *'with BFD'*)
5236         test "$with_gnu_ld" != no && break
5237         ;;
5238       *)
5239         test "$with_gnu_ld" != yes && break
5240         ;;
5241       esac
5242     fi
5243   done
5244   IFS="$lt_save_ifs"
5245 else
5246   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5247 fi
5248 fi
5249
5250 LD="$lt_cv_path_LD"
5251 if test -n "$LD"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5253 $as_echo "$LD" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5261 if ${lt_cv_prog_gnu_ld+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5265 case `$LD -v 2>&1 </dev/null` in
5266 *GNU* | *'with BFD'*)
5267   lt_cv_prog_gnu_ld=yes
5268   ;;
5269 *)
5270   lt_cv_prog_gnu_ld=no
5271   ;;
5272 esac
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5276 with_gnu_ld=$lt_cv_prog_gnu_ld
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5288 if ${lt_cv_path_NM+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   if test -n "$NM"; then
5292   # Let the user override the test.
5293   lt_cv_path_NM="$NM"
5294 else
5295   lt_nm_to_check="${ac_tool_prefix}nm"
5296   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5297     lt_nm_to_check="$lt_nm_to_check nm"
5298   fi
5299   for lt_tmp_nm in $lt_nm_to_check; do
5300     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5302       IFS="$lt_save_ifs"
5303       test -z "$ac_dir" && ac_dir=.
5304       tmp_nm="$ac_dir/$lt_tmp_nm"
5305       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5306         # Check to see if the nm accepts a BSD-compat flag.
5307         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5308         #   nm: unknown option "B" ignored
5309         # Tru64's nm complains that /dev/null is an invalid object file
5310         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5311         */dev/null* | *'Invalid file or object type'*)
5312           lt_cv_path_NM="$tmp_nm -B"
5313           break
5314           ;;
5315         *)
5316           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5317           */dev/null*)
5318             lt_cv_path_NM="$tmp_nm -p"
5319             break
5320             ;;
5321           *)
5322             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5323             continue # so that we can try to find one that supports BSD flags
5324             ;;
5325           esac
5326           ;;
5327         esac
5328       fi
5329     done
5330     IFS="$lt_save_ifs"
5331   done
5332   : ${lt_cv_path_NM=no}
5333 fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5336 $as_echo "$lt_cv_path_NM" >&6; }
5337 if test "$lt_cv_path_NM" != "no"; then
5338   NM="$lt_cv_path_NM"
5339 else
5340   # Didn't find any BSD compatible name lister, look for dumpbin.
5341   if test -n "$DUMPBIN"; then :
5342     # Let the user override the test.
5343   else
5344     if test -n "$ac_tool_prefix"; then
5345   for ac_prog in dumpbin "link -dump"
5346   do
5347     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_DUMPBIN+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   if test -n "$DUMPBIN"; then
5355   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362     for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369   done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 DUMPBIN=$ac_cv_prog_DUMPBIN
5375 if test -n "$DUMPBIN"; then
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5377 $as_echo "$DUMPBIN" >&6; }
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384     test -n "$DUMPBIN" && break
5385   done
5386 fi
5387 if test -z "$DUMPBIN"; then
5388   ac_ct_DUMPBIN=$DUMPBIN
5389   for ac_prog in dumpbin "link -dump"
5390 do
5391   # Extract the first word of "$ac_prog", so it can be a program name with args.
5392 set dummy $ac_prog; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   if test -n "$ac_ct_DUMPBIN"; then
5399   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5419 if test -n "$ac_ct_DUMPBIN"; then
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5421 $as_echo "$ac_ct_DUMPBIN" >&6; }
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427
5428   test -n "$ac_ct_DUMPBIN" && break
5429 done
5430
5431   if test "x$ac_ct_DUMPBIN" = x; then
5432     DUMPBIN=":"
5433   else
5434     case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440     DUMPBIN=$ac_ct_DUMPBIN
5441   fi
5442 fi
5443
5444     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5445     *COFF*)
5446       DUMPBIN="$DUMPBIN -symbols"
5447       ;;
5448     *)
5449       DUMPBIN=:
5450       ;;
5451     esac
5452   fi
5453
5454   if test "$DUMPBIN" != ":"; then
5455     NM="$DUMPBIN"
5456   fi
5457 fi
5458 test -z "$NM" && NM=nm
5459
5460
5461
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5467 if ${lt_cv_nm_interface+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   lt_cv_nm_interface="BSD nm"
5471   echo "int some_variable = 0;" > conftest.$ac_ext
5472   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5473   (eval "$ac_compile" 2>conftest.err)
5474   cat conftest.err >&5
5475   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5476   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5477   cat conftest.err >&5
5478   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5479   cat conftest.out >&5
5480   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5481     lt_cv_nm_interface="MS dumpbin"
5482   fi
5483   rm -f conftest*
5484 fi
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5486 $as_echo "$lt_cv_nm_interface" >&6; }
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5489 $as_echo_n "checking whether ln -s works... " >&6; }
5490 LN_S=$as_ln_s
5491 if test "$LN_S" = "ln -s"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5496 $as_echo "no, using $LN_S" >&6; }
5497 fi
5498
5499 # find the maximum length of command line arguments
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5501 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5502 if ${lt_cv_sys_max_cmd_len+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505     i=0
5506   teststring="ABCD"
5507
5508   case $build_os in
5509   msdosdjgpp*)
5510     # On DJGPP, this test can blow up pretty badly due to problems in libc
5511     # (any single argument exceeding 2000 bytes causes a buffer overrun
5512     # during glob expansion).  Even if it were fixed, the result of this
5513     # check would be larger than it should be.
5514     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5515     ;;
5516
5517   gnu*)
5518     # Under GNU Hurd, this test is not required because there is
5519     # no limit to the length of command line arguments.
5520     # Libtool will interpret -1 as no limit whatsoever
5521     lt_cv_sys_max_cmd_len=-1;
5522     ;;
5523
5524   cygwin* | mingw* | cegcc*)
5525     # On Win9x/ME, this test blows up -- it succeeds, but takes
5526     # about 5 minutes as the teststring grows exponentially.
5527     # Worse, since 9x/ME are not pre-emptively multitasking,
5528     # you end up with a "frozen" computer, even though with patience
5529     # the test eventually succeeds (with a max line length of 256k).
5530     # Instead, let's just punt: use the minimum linelength reported by
5531     # all of the supported platforms: 8192 (on NT/2K/XP).
5532     lt_cv_sys_max_cmd_len=8192;
5533     ;;
5534
5535   mint*)
5536     # On MiNT this can take a long time and run out of memory.
5537     lt_cv_sys_max_cmd_len=8192;
5538     ;;
5539
5540   amigaos*)
5541     # On AmigaOS with pdksh, this test takes hours, literally.
5542     # So we just punt and use a minimum line length of 8192.
5543     lt_cv_sys_max_cmd_len=8192;
5544     ;;
5545
5546   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5547     # This has been around since 386BSD, at least.  Likely further.
5548     if test -x /sbin/sysctl; then
5549       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5550     elif test -x /usr/sbin/sysctl; then
5551       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5552     else
5553       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5554     fi
5555     # And add a safety zone
5556     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5557     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5558     ;;
5559
5560   interix*)
5561     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5562     lt_cv_sys_max_cmd_len=196608
5563     ;;
5564
5565   os2*)
5566     # The test takes a long time on OS/2.
5567     lt_cv_sys_max_cmd_len=8192
5568     ;;
5569
5570   osf*)
5571     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573     # nice to cause kernel panics so lets avoid the loop below.
5574     # First set a reasonable default.
5575     lt_cv_sys_max_cmd_len=16384
5576     #
5577     if test -x /sbin/sysconfig; then
5578       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5580       esac
5581     fi
5582     ;;
5583   sco3.2v5*)
5584     lt_cv_sys_max_cmd_len=102400
5585     ;;
5586   sysv5* | sco5v6* | sysv4.2uw2*)
5587     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5588     if test -n "$kargmax"; then
5589       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5590     else
5591       lt_cv_sys_max_cmd_len=32768
5592     fi
5593     ;;
5594   *)
5595     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5596     if test -n "$lt_cv_sys_max_cmd_len"; then
5597       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5599     else
5600       # Make teststring a little bigger before we do anything with it.
5601       # a 1K string should be a reasonable start.
5602       for i in 1 2 3 4 5 6 7 8 ; do
5603         teststring=$teststring$teststring
5604       done
5605       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606       # If test is not a shell built-in, we'll probably end up computing a
5607       # maximum length that is only half of the actual maximum length, but
5608       # we can't tell.
5609       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5610                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611               test $i != 17 # 1/2 MB should be enough
5612       do
5613         i=`expr $i + 1`
5614         teststring=$teststring$teststring
5615       done
5616       # Only check the string length outside the loop.
5617       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5618       teststring=
5619       # Add a significant safety factor because C++ compilers can tack on
5620       # massive amounts of additional arguments before passing them to the
5621       # linker.  It appears as though 1/2 is a usable value.
5622       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5623     fi
5624     ;;
5625   esac
5626
5627 fi
5628
5629 if test -n $lt_cv_sys_max_cmd_len ; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5635 fi
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5637
5638
5639
5640
5641
5642
5643 : ${CP="cp -f"}
5644 : ${MV="mv -f"}
5645 : ${RM="rm -f"}
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5648 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5649 # Try some XSI features
5650 xsi_shell=no
5651 ( _lt_dummy="a/b/c"
5652   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5653       = c,a/b,b/c, \
5654     && eval 'test $(( 1 + 1 )) -eq 2 \
5655     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5656   && xsi_shell=yes
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5658 $as_echo "$xsi_shell" >&6; }
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5662 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5663 lt_shell_append=no
5664 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5665     >/dev/null 2>&1 \
5666   && lt_shell_append=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5668 $as_echo "$lt_shell_append" >&6; }
5669
5670
5671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5672   lt_unset=unset
5673 else
5674   lt_unset=false
5675 fi
5676
5677
5678
5679
5680
5681 # test EBCDIC or ASCII
5682 case `echo X|tr X '\101'` in
5683  A) # ASCII based system
5684     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5685   lt_SP2NL='tr \040 \012'
5686   lt_NL2SP='tr \015\012 \040\040'
5687   ;;
5688  *) # EBCDIC based system
5689   lt_SP2NL='tr \100 \n'
5690   lt_NL2SP='tr \r\n \100\100'
5691   ;;
5692 esac
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5703 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5704 if ${lt_cv_to_host_file_cmd+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   case $host in
5708   *-*-mingw* )
5709     case $build in
5710       *-*-mingw* ) # actually msys
5711         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5712         ;;
5713       *-*-cygwin* )
5714         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5715         ;;
5716       * ) # otherwise, assume *nix
5717         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5718         ;;
5719     esac
5720     ;;
5721   *-*-cygwin* )
5722     case $build in
5723       *-*-mingw* ) # actually msys
5724         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5725         ;;
5726       *-*-cygwin* )
5727         lt_cv_to_host_file_cmd=func_convert_file_noop
5728         ;;
5729       * ) # otherwise, assume *nix
5730         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5731         ;;
5732     esac
5733     ;;
5734   * ) # unhandled hosts (and "normal" native builds)
5735     lt_cv_to_host_file_cmd=func_convert_file_noop
5736     ;;
5737 esac
5738
5739 fi
5740
5741 to_host_file_cmd=$lt_cv_to_host_file_cmd
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5743 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5750 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5751 if ${lt_cv_to_tool_file_cmd+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   #assume ordinary cross tools, or native build.
5755 lt_cv_to_tool_file_cmd=func_convert_file_noop
5756 case $host in
5757   *-*-mingw* )
5758     case $build in
5759       *-*-mingw* ) # actually msys
5760         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5761         ;;
5762     esac
5763     ;;
5764 esac
5765
5766 fi
5767
5768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5770 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5771
5772
5773
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5778 if ${lt_cv_ld_reload_flag+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   lt_cv_ld_reload_flag='-r'
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5785 reload_flag=$lt_cv_ld_reload_flag
5786 case $reload_flag in
5787 "" | " "*) ;;
5788 *) reload_flag=" $reload_flag" ;;
5789 esac
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 case $host_os in
5792   cygwin* | mingw* | pw32* | cegcc*)
5793     if test "$GCC" != yes; then
5794       reload_cmds=false
5795     fi
5796     ;;
5797   darwin*)
5798     if test "$GCC" = yes; then
5799       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5800     else
5801       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5802     fi
5803     ;;
5804 esac
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 if test -n "$ac_tool_prefix"; then
5815   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_OBJDUMP+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   if test -n "$OBJDUMP"; then
5823   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837   done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 OBJDUMP=$ac_cv_prog_OBJDUMP
5843 if test -n "$OBJDUMP"; then
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5845 $as_echo "$OBJDUMP" >&6; }
5846 else
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_OBJDUMP"; then
5854   ac_ct_OBJDUMP=$OBJDUMP
5855   # Extract the first word of "objdump", so it can be a program name with args.
5856 set dummy objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -n "$ac_ct_OBJDUMP"; then
5863   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5883 if test -n "$ac_ct_OBJDUMP"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5885 $as_echo "$ac_ct_OBJDUMP" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891   if test "x$ac_ct_OBJDUMP" = x; then
5892     OBJDUMP="false"
5893   else
5894     case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900     OBJDUMP=$ac_ct_OBJDUMP
5901   fi
5902 else
5903   OBJDUMP="$ac_cv_prog_OBJDUMP"
5904 fi
5905
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5918 if ${lt_cv_deplibs_check_method+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [[regex]]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given extended regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5934
5935 case $host_os in
5936 aix[4-9]*)
5937   lt_cv_deplibs_check_method=pass_all
5938   ;;
5939
5940 beos*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 bsdi[45]*)
5945   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946   lt_cv_file_magic_cmd='/usr/bin/file -L'
5947   lt_cv_file_magic_test_file=/shlib/libc.so
5948   ;;
5949
5950 cygwin*)
5951   # func_win32_libid is a shell function defined in ltmain.sh
5952   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5953   lt_cv_file_magic_cmd='func_win32_libid'
5954   ;;
5955
5956 mingw* | pw32*)
5957   # Base MSYS/MinGW do not provide the 'file' command needed by
5958   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5959   # unless we find 'file', for example because we are cross-compiling.
5960   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5961   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5962     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963     lt_cv_file_magic_cmd='func_win32_libid'
5964   else
5965     # Keep this pattern in sync with the one in func_win32_libid.
5966     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5967     lt_cv_file_magic_cmd='$OBJDUMP -f'
5968   fi
5969   ;;
5970
5971 cegcc*)
5972   # use the weaker test based on 'objdump'. See mingw*.
5973   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974   lt_cv_file_magic_cmd='$OBJDUMP -f'
5975   ;;
5976
5977 darwin* | rhapsody*)
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980
5981 freebsd* | dragonfly*)
5982   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5983     case $host_cpu in
5984     i*86 )
5985       # Not sure whether the presence of OpenBSD here was a mistake.
5986       # Let's accept both of them until this is cleared up.
5987       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988       lt_cv_file_magic_cmd=/usr/bin/file
5989       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5990       ;;
5991     esac
5992   else
5993     lt_cv_deplibs_check_method=pass_all
5994   fi
5995   ;;
5996
5997 gnu*)
5998   lt_cv_deplibs_check_method=pass_all
5999   ;;
6000
6001 haiku*)
6002   lt_cv_deplibs_check_method=pass_all
6003   ;;
6004
6005 hpux10.20* | hpux11*)
6006   lt_cv_file_magic_cmd=/usr/bin/file
6007   case $host_cpu in
6008   ia64*)
6009     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6011     ;;
6012   hppa*64*)
6013     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]'
6014     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6015     ;;
6016   *)
6017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6019     ;;
6020   esac
6021   ;;
6022
6023 interix[3-9]*)
6024   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6026   ;;
6027
6028 irix5* | irix6* | nonstopux*)
6029   case $LD in
6030   *-32|*"-32 ") libmagic=32-bit;;
6031   *-n32|*"-n32 ") libmagic=N32;;
6032   *-64|*"-64 ") libmagic=64-bit;;
6033   *) libmagic=never-match;;
6034   esac
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037
6038 # This must be glibc/ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6040   lt_cv_deplibs_check_method=pass_all
6041   ;;
6042
6043 netbsd* | netbsdelf*-gnu)
6044   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6046   else
6047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6048   fi
6049   ;;
6050
6051 newos6*)
6052   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053   lt_cv_file_magic_cmd=/usr/bin/file
6054   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6055   ;;
6056
6057 *nto* | *qnx*)
6058   lt_cv_deplibs_check_method=pass_all
6059   ;;
6060
6061 openbsd*)
6062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6064   else
6065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6066   fi
6067   ;;
6068
6069 osf3* | osf4* | osf5*)
6070   lt_cv_deplibs_check_method=pass_all
6071   ;;
6072
6073 rdos*)
6074   lt_cv_deplibs_check_method=pass_all
6075   ;;
6076
6077 solaris*)
6078   lt_cv_deplibs_check_method=pass_all
6079   ;;
6080
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082   lt_cv_deplibs_check_method=pass_all
6083   ;;
6084
6085 sysv4 | sysv4.3*)
6086   case $host_vendor in
6087   motorola)
6088     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]'
6089     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6090     ;;
6091   ncr)
6092     lt_cv_deplibs_check_method=pass_all
6093     ;;
6094   sequent)
6095     lt_cv_file_magic_cmd='/bin/file'
6096     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6097     ;;
6098   sni)
6099     lt_cv_file_magic_cmd='/bin/file'
6100     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101     lt_cv_file_magic_test_file=/lib/libc.so
6102     ;;
6103   siemens)
6104     lt_cv_deplibs_check_method=pass_all
6105     ;;
6106   pc)
6107     lt_cv_deplibs_check_method=pass_all
6108     ;;
6109   esac
6110   ;;
6111
6112 tpf*)
6113   lt_cv_deplibs_check_method=pass_all
6114   ;;
6115 esac
6116
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6120
6121 file_magic_glob=
6122 want_nocaseglob=no
6123 if test "$build" = "$host"; then
6124   case $host_os in
6125   mingw* | pw32*)
6126     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6127       want_nocaseglob=yes
6128     else
6129       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6130     fi
6131     ;;
6132   esac
6133 fi
6134
6135 file_magic_cmd=$lt_cv_file_magic_cmd
6136 deplibs_check_method=$lt_cv_deplibs_check_method
6137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 if test -n "$ac_tool_prefix"; then
6161   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_DLLTOOL+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$DLLTOOL"; then
6169   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 DLLTOOL=$ac_cv_prog_DLLTOOL
6189 if test -n "$DLLTOOL"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6191 $as_echo "$DLLTOOL" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_DLLTOOL"; then
6200   ac_ct_DLLTOOL=$DLLTOOL
6201   # Extract the first word of "dlltool", so it can be a program name with args.
6202 set dummy dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$ac_ct_DLLTOOL"; then
6209   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6229 if test -n "$ac_ct_DLLTOOL"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6231 $as_echo "$ac_ct_DLLTOOL" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237   if test "x$ac_ct_DLLTOOL" = x; then
6238     DLLTOOL="false"
6239   else
6240     case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246     DLLTOOL=$ac_ct_DLLTOOL
6247   fi
6248 else
6249   DLLTOOL="$ac_cv_prog_DLLTOOL"
6250 fi
6251
6252 test -z "$DLLTOOL" && DLLTOOL=dlltool
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6264 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6265 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   lt_cv_sharedlib_from_linklib_cmd='unknown'
6269
6270 case $host_os in
6271 cygwin* | mingw* | pw32* | cegcc*)
6272   # two different shell functions defined in ltmain.sh
6273   # decide which to use based on capabilities of $DLLTOOL
6274   case `$DLLTOOL --help 2>&1` in
6275   *--identify-strict*)
6276     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6277     ;;
6278   *)
6279     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6280     ;;
6281   esac
6282   ;;
6283 *)
6284   # fallback: assume linklib IS sharedlib
6285   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6286   ;;
6287 esac
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6291 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6292 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6293 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6294
6295
6296
6297
6298
6299
6300
6301
6302 if test -n "$ac_tool_prefix"; then
6303   for ac_prog in ar
6304   do
6305     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AR+:} false; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   if test -n "$AR"; then
6313   ac_cv_prog_AR="$AR" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320     for ac_exec_ext in '' $ac_executable_extensions; do
6321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327   done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 AR=$ac_cv_prog_AR
6333 if test -n "$AR"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335 $as_echo "$AR" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342     test -n "$AR" && break
6343   done
6344 fi
6345 if test -z "$AR"; then
6346   ac_ct_AR=$AR
6347   for ac_prog in ar
6348 do
6349   # Extract the first word of "$ac_prog", so it can be a program name with args.
6350 set dummy $ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$ac_ct_AR"; then
6357   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_prog_ac_ct_AR="$ac_prog"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379 $as_echo "$ac_ct_AR" >&6; }
6380 else
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386   test -n "$ac_ct_AR" && break
6387 done
6388
6389   if test "x$ac_ct_AR" = x; then
6390     AR="false"
6391   else
6392     case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398     AR=$ac_ct_AR
6399   fi
6400 fi
6401
6402 : ${AR=ar}
6403 : ${AR_FLAGS=cru}
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6416 $as_echo_n "checking for archiver @FILE support... " >&6; }
6417 if ${lt_cv_ar_at_file+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   lt_cv_ar_at_file=no
6421    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h.  */
6423
6424 int
6425 main ()
6426 {
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433   echo conftest.$ac_objext > conftest.lst
6434       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6435       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6436   (eval $lt_ar_try) 2>&5
6437   ac_status=$?
6438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439   test $ac_status = 0; }
6440       if test "$ac_status" -eq 0; then
6441         # Ensure the archiver fails upon bogus file names.
6442         rm -f conftest.$ac_objext libconftest.a
6443         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444   (eval $lt_ar_try) 2>&5
6445   ac_status=$?
6446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447   test $ac_status = 0; }
6448         if test "$ac_status" -ne 0; then
6449           lt_cv_ar_at_file=@
6450         fi
6451       fi
6452       rm -f conftest.* libconftest.a
6453
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6459 $as_echo "$lt_cv_ar_at_file" >&6; }
6460
6461 if test "x$lt_cv_ar_at_file" = xno; then
6462   archiver_list_spec=
6463 else
6464   archiver_list_spec=$lt_cv_ar_at_file
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473 if test -n "$ac_tool_prefix"; then
6474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}strip; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_STRIP+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$STRIP"; then
6482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 STRIP=$ac_cv_prog_STRIP
6502 if test -n "$STRIP"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6504 $as_echo "$STRIP" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_STRIP"; then
6513   ac_ct_STRIP=$STRIP
6514   # Extract the first word of "strip", so it can be a program name with args.
6515 set dummy strip; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$ac_ct_STRIP"; then
6522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_prog_ac_ct_STRIP="strip"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6542 if test -n "$ac_ct_STRIP"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6544 $as_echo "$ac_ct_STRIP" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550   if test "x$ac_ct_STRIP" = x; then
6551     STRIP=":"
6552   else
6553     case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559     STRIP=$ac_ct_STRIP
6560   fi
6561 else
6562   STRIP="$ac_cv_prog_STRIP"
6563 fi
6564
6565 test -z "$STRIP" && STRIP=:
6566
6567
6568
6569
6570
6571
6572 if test -n "$ac_tool_prefix"; then
6573   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_RANLIB+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   if test -n "$RANLIB"; then
6581   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588     for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595   done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6603 $as_echo "$RANLIB" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609
6610 fi
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612   ac_ct_RANLIB=$RANLIB
6613   # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   if test -n "$ac_ct_RANLIB"; then
6621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628     for ac_exec_ext in '' $ac_executable_extensions; do
6629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630     ac_cv_prog_ac_ct_RANLIB="ranlib"
6631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635   done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6643 $as_echo "$ac_ct_RANLIB" >&6; }
6644 else
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649   if test "x$ac_ct_RANLIB" = x; then
6650     RANLIB=":"
6651   else
6652     case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6657 esac
6658     RANLIB=$ac_ct_RANLIB
6659   fi
6660 else
6661   RANLIB="$ac_cv_prog_RANLIB"
6662 fi
6663
6664 test -z "$RANLIB" && RANLIB=:
6665
6666
6667
6668
6669
6670
6671 # Determine commands to create old-style static archives.
6672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6673 old_postinstall_cmds='chmod 644 $oldlib'
6674 old_postuninstall_cmds=
6675
6676 if test -n "$RANLIB"; then
6677   case $host_os in
6678   openbsd*)
6679     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6680     ;;
6681   *)
6682     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6683     ;;
6684   esac
6685   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6686 fi
6687
6688 case $host_os in
6689   darwin*)
6690     lock_old_archive_extraction=yes ;;
6691   *)
6692     lock_old_archive_extraction=no ;;
6693 esac
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 # If no C compiler was specified, use CC.
6734 LTCC=${LTCC-"$CC"}
6735
6736 # If no C compiler flags were specified, use CFLAGS.
6737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6738
6739 # Allow CC to be a program name with arguments.
6740 compiler=$CC
6741
6742
6743 # Check for command to grab the raw symbol name followed by C symbol from nm.
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6745 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6746 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749
6750 # These are sane defaults that work on at least a few old systems.
6751 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6752
6753 # Character class describing NM global symbol codes.
6754 symcode='[BCDEGRST]'
6755
6756 # Regexp to match symbols that can be accessed directly from C.
6757 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6758
6759 # Define system-specific variables.
6760 case $host_os in
6761 aix*)
6762   symcode='[BCDT]'
6763   ;;
6764 cygwin* | mingw* | pw32* | cegcc*)
6765   symcode='[ABCDGISTW]'
6766   ;;
6767 hpux*)
6768   if test "$host_cpu" = ia64; then
6769     symcode='[ABCDEGRST]'
6770   fi
6771   ;;
6772 irix* | nonstopux*)
6773   symcode='[BCDEGRST]'
6774   ;;
6775 osf*)
6776   symcode='[BCDEGQRST]'
6777   ;;
6778 solaris*)
6779   symcode='[BDRT]'
6780   ;;
6781 sco3.2v5*)
6782   symcode='[DT]'
6783   ;;
6784 sysv4.2uw2*)
6785   symcode='[DT]'
6786   ;;
6787 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6788   symcode='[ABDT]'
6789   ;;
6790 sysv4)
6791   symcode='[DFNSTU]'
6792   ;;
6793 esac
6794
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798   symcode='[ABCDGIRSTW]' ;;
6799 esac
6800
6801 # Transform an extracted symbol line into a proper C declaration.
6802 # Some systems (esp. on ia64) link data and code symbols differently,
6803 # so use this general approach.
6804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6805
6806 # Transform an extracted symbol line into symbol name and symbol address
6807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6808 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'"
6809
6810 # Handle CRLF in mingw tool chain
6811 opt_cr=
6812 case $build_os in
6813 mingw*)
6814   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6815   ;;
6816 esac
6817
6818 # Try without a prefix underscore, then with it.
6819 for ac_symprfx in "" "_"; do
6820
6821   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6822   symxfrm="\\1 $ac_symprfx\\2 \\2"
6823
6824   # Write the raw and C identifiers.
6825   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6826     # Fake it for dumpbin and say T for any non-static function
6827     # and D for any global variable.
6828     # Also find C++ and __fastcall symbols from MSVC++,
6829     # which start with @ or ?.
6830     lt_cv_sys_global_symbol_pipe="$AWK '"\
6831 "     {last_section=section; section=\$ 3};"\
6832 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6833 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6834 "     \$ 0!~/External *\|/{next};"\
6835 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6836 "     {if(hide[section]) next};"\
6837 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6838 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6839 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6840 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6841 "     ' prfx=^$ac_symprfx"
6842   else
6843     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6844   fi
6845   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6846
6847   # Check to see that the pipe works correctly.
6848   pipe_works=no
6849
6850   rm -f conftest*
6851   cat > conftest.$ac_ext <<_LT_EOF
6852 #ifdef __cplusplus
6853 extern "C" {
6854 #endif
6855 char nm_test_var;
6856 void nm_test_func(void);
6857 void nm_test_func(void){}
6858 #ifdef __cplusplus
6859 }
6860 #endif
6861 int main(){nm_test_var='a';nm_test_func();return(0);}
6862 _LT_EOF
6863
6864   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865   (eval $ac_compile) 2>&5
6866   ac_status=$?
6867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868   test $ac_status = 0; }; then
6869     # Now try to grab the symbols.
6870     nlist=conftest.nm
6871     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6872   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; } && test -s "$nlist"; then
6876       # Try sorting and uniquifying the output.
6877       if sort "$nlist" | uniq > "$nlist"T; then
6878         mv -f "$nlist"T "$nlist"
6879       else
6880         rm -f "$nlist"T
6881       fi
6882
6883       # Make sure that we snagged all the symbols we need.
6884       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6885         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6886           cat <<_LT_EOF > conftest.$ac_ext
6887 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6888 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6889 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6890    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6891 # define LT_DLSYM_CONST
6892 #elif defined(__osf__)
6893 /* This system does not cope well with relocations in const data.  */
6894 # define LT_DLSYM_CONST
6895 #else
6896 # define LT_DLSYM_CONST const
6897 #endif
6898
6899 #ifdef __cplusplus
6900 extern "C" {
6901 #endif
6902
6903 _LT_EOF
6904           # Now generate the symbol file.
6905           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6906
6907           cat <<_LT_EOF >> conftest.$ac_ext
6908
6909 /* The mapping between symbol names and symbols.  */
6910 LT_DLSYM_CONST struct {
6911   const char *name;
6912   void       *address;
6913 }
6914 lt__PROGRAM__LTX_preloaded_symbols[] =
6915 {
6916   { "@PROGRAM@", (void *) 0 },
6917 _LT_EOF
6918           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6919           cat <<\_LT_EOF >> conftest.$ac_ext
6920   {0, (void *) 0}
6921 };
6922
6923 /* This works around a problem in FreeBSD linker */
6924 #ifdef FREEBSD_WORKAROUND
6925 static const void *lt_preloaded_setup() {
6926   return lt__PROGRAM__LTX_preloaded_symbols;
6927 }
6928 #endif
6929
6930 #ifdef __cplusplus
6931 }
6932 #endif
6933 _LT_EOF
6934           # Now try linking the two files.
6935           mv conftest.$ac_objext conftstm.$ac_objext
6936           lt_globsym_save_LIBS=$LIBS
6937           lt_globsym_save_CFLAGS=$CFLAGS
6938           LIBS="conftstm.$ac_objext"
6939           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6940           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6941   (eval $ac_link) 2>&5
6942   ac_status=$?
6943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6945             pipe_works=yes
6946           fi
6947           LIBS=$lt_globsym_save_LIBS
6948           CFLAGS=$lt_globsym_save_CFLAGS
6949         else
6950           echo "cannot find nm_test_func in $nlist" >&5
6951         fi
6952       else
6953         echo "cannot find nm_test_var in $nlist" >&5
6954       fi
6955     else
6956       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6957     fi
6958   else
6959     echo "$progname: failed program was:" >&5
6960     cat conftest.$ac_ext >&5
6961   fi
6962   rm -rf conftest* conftst*
6963
6964   # Do not use the global_symbol_pipe unless it works.
6965   if test "$pipe_works" = yes; then
6966     break
6967   else
6968     lt_cv_sys_global_symbol_pipe=
6969   fi
6970 done
6971
6972 fi
6973
6974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6975   lt_cv_sys_global_symbol_to_cdecl=
6976 fi
6977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6979 $as_echo "failed" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6982 $as_echo "ok" >&6; }
6983 fi
6984
6985 # Response file support.
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987   nm_file_list_spec='@'
6988 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6989   nm_file_list_spec='@'
6990 fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7019 $as_echo_n "checking for sysroot... " >&6; }
7020
7021 # Check whether --with-sysroot was given.
7022 if test "${with_sysroot+set}" = set; then :
7023   withval=$with_sysroot;
7024 else
7025   with_sysroot=no
7026 fi
7027
7028
7029 lt_sysroot=
7030 case ${with_sysroot} in #(
7031  yes)
7032    if test "$GCC" = yes; then
7033      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7034    fi
7035    ;; #(
7036  /*)
7037    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7038    ;; #(
7039  no|'')
7040    ;; #(
7041  *)
7042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7043 $as_echo "${with_sysroot}" >&6; }
7044    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7045    ;;
7046 esac
7047
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7049 $as_echo "${lt_sysroot:-no}" >&6; }
7050
7051
7052
7053
7054
7055 # Check whether --enable-libtool-lock was given.
7056 if test "${enable_libtool_lock+set}" = set; then :
7057   enableval=$enable_libtool_lock;
7058 fi
7059
7060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7061
7062 # Some flags need to be propagated to the compiler or linker for good
7063 # libtool support.
7064 case $host in
7065 ia64-*-hpux*)
7066   # Find out which ABI we are using.
7067   echo 'int i;' > conftest.$ac_ext
7068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072   test $ac_status = 0; }; then
7073     case `/usr/bin/file conftest.$ac_objext` in
7074       *ELF-32*)
7075         HPUX_IA64_MODE="32"
7076         ;;
7077       *ELF-64*)
7078         HPUX_IA64_MODE="64"
7079         ;;
7080     esac
7081   fi
7082   rm -rf conftest*
7083   ;;
7084 *-*-irix6*)
7085   # Find out which ABI we are using.
7086   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091   test $ac_status = 0; }; then
7092     if test "$lt_cv_prog_gnu_ld" = yes; then
7093       case `/usr/bin/file conftest.$ac_objext` in
7094         *32-bit*)
7095           LD="${LD-ld} -melf32bsmip"
7096           ;;
7097         *N32*)
7098           LD="${LD-ld} -melf32bmipn32"
7099           ;;
7100         *64-bit*)
7101           LD="${LD-ld} -melf64bmip"
7102         ;;
7103       esac
7104     else
7105       case `/usr/bin/file conftest.$ac_objext` in
7106         *32-bit*)
7107           LD="${LD-ld} -32"
7108           ;;
7109         *N32*)
7110           LD="${LD-ld} -n32"
7111           ;;
7112         *64-bit*)
7113           LD="${LD-ld} -64"
7114           ;;
7115       esac
7116     fi
7117   fi
7118   rm -rf conftest*
7119   ;;
7120
7121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7123   # Find out which ABI we are using.
7124   echo 'int i;' > conftest.$ac_ext
7125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129   test $ac_status = 0; }; then
7130     case `/usr/bin/file conftest.o` in
7131       *32-bit*)
7132         case $host in
7133           x86_64-*kfreebsd*-gnu)
7134             LD="${LD-ld} -m elf_i386_fbsd"
7135             ;;
7136           x86_64-*linux*)
7137             LD="${LD-ld} -m elf_i386"
7138             ;;
7139           ppc64-*linux*|powerpc64-*linux*)
7140             LD="${LD-ld} -m elf32ppclinux"
7141             ;;
7142           s390x-*linux*)
7143             LD="${LD-ld} -m elf_s390"
7144             ;;
7145           sparc64-*linux*)
7146             LD="${LD-ld} -m elf32_sparc"
7147             ;;
7148         esac
7149         ;;
7150       *64-bit*)
7151         case $host in
7152           x86_64-*kfreebsd*-gnu)
7153             LD="${LD-ld} -m elf_x86_64_fbsd"
7154             ;;
7155           x86_64-*linux*)
7156             LD="${LD-ld} -m elf_x86_64"
7157             ;;
7158           ppc*-*linux*|powerpc*-*linux*)
7159             LD="${LD-ld} -m elf64ppc"
7160             ;;
7161           s390*-*linux*|s390*-*tpf*)
7162             LD="${LD-ld} -m elf64_s390"
7163             ;;
7164           sparc*-*linux*)
7165             LD="${LD-ld} -m elf64_sparc"
7166             ;;
7167         esac
7168         ;;
7169     esac
7170   fi
7171   rm -rf conftest*
7172   ;;
7173
7174 *-*-sco3.2v5*)
7175   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7176   SAVE_CFLAGS="$CFLAGS"
7177   CFLAGS="$CFLAGS -belf"
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7179 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7180 if ${lt_cv_cc_needs_belf+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191
7192 int
7193 main ()
7194 {
7195
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"; then :
7201   lt_cv_cc_needs_belf=yes
7202 else
7203   lt_cv_cc_needs_belf=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext \
7206     conftest$ac_exeext conftest.$ac_ext
7207      ac_ext=c
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7216   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7217     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7218     CFLAGS="$SAVE_CFLAGS"
7219   fi
7220   ;;
7221 *-*solaris*)
7222   # Find out which ABI we are using.
7223   echo 'int i;' > conftest.$ac_ext
7224   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225   (eval $ac_compile) 2>&5
7226   ac_status=$?
7227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228   test $ac_status = 0; }; then
7229     case `/usr/bin/file conftest.o` in
7230     *64-bit*)
7231       case $lt_cv_prog_gnu_ld in
7232       yes*)
7233         case $host in
7234         i?86-*-solaris*)
7235           LD="${LD-ld} -m elf_x86_64"
7236           ;;
7237         sparc*-*-solaris*)
7238           LD="${LD-ld} -m elf64_sparc"
7239           ;;
7240         esac
7241         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7242         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7243           LD="${LD-ld}_sol2"
7244         fi
7245         ;;
7246       *)
7247         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7248           LD="${LD-ld} -64"
7249         fi
7250         ;;
7251       esac
7252       ;;
7253     esac
7254   fi
7255   rm -rf conftest*
7256   ;;
7257 esac
7258
7259 need_locks="$enable_libtool_lock"
7260
7261 if test -n "$ac_tool_prefix"; then
7262   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}mt; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$MANIFEST_TOOL"; then
7270   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277     for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284   done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7290 if test -n "$MANIFEST_TOOL"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7292 $as_echo "$MANIFEST_TOOL" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298
7299 fi
7300 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7301   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7302   # Extract the first word of "mt", so it can be a program name with args.
7303 set dummy mt; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$ac_ct_MANIFEST_TOOL"; then
7310   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7330 if test -n "$ac_ct_MANIFEST_TOOL"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7332 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7339     MANIFEST_TOOL=":"
7340   else
7341     case $cross_compiling:$ac_tool_warned in
7342 yes:)
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7346 esac
7347     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7348   fi
7349 else
7350   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7351 fi
7352
7353 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7355 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7356 if ${lt_cv_path_mainfest_tool+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   lt_cv_path_mainfest_tool=no
7360   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7361   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7362   cat conftest.err >&5
7363   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7364     lt_cv_path_mainfest_tool=yes
7365   fi
7366   rm -f conftest*
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7369 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7370 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7371   MANIFEST_TOOL=:
7372 fi
7373
7374
7375
7376
7377
7378
7379   case $host_os in
7380     rhapsody* | darwin*)
7381     if test -n "$ac_tool_prefix"; then
7382   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   if test -n "$DSYMUTIL"; then
7390   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7410 if test -n "$DSYMUTIL"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7412 $as_echo "$DSYMUTIL" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418
7419 fi
7420 if test -z "$ac_cv_prog_DSYMUTIL"; then
7421   ac_ct_DSYMUTIL=$DSYMUTIL
7422   # Extract the first word of "dsymutil", so it can be a program name with args.
7423 set dummy dsymutil; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   if test -n "$ac_ct_DSYMUTIL"; then
7430   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7450 if test -n "$ac_ct_DSYMUTIL"; then
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7452 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7453 else
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458   if test "x$ac_ct_DSYMUTIL" = x; then
7459     DSYMUTIL=":"
7460   else
7461     case $cross_compiling:$ac_tool_warned in
7462 yes:)
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7466 esac
7467     DSYMUTIL=$ac_ct_DSYMUTIL
7468   fi
7469 else
7470   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7471 fi
7472
7473     if test -n "$ac_tool_prefix"; then
7474   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_NMEDIT+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$NMEDIT"; then
7482   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 NMEDIT=$ac_cv_prog_NMEDIT
7502 if test -n "$NMEDIT"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7504 $as_echo "$NMEDIT" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_NMEDIT"; then
7513   ac_ct_NMEDIT=$NMEDIT
7514   # Extract the first word of "nmedit", so it can be a program name with args.
7515 set dummy nmedit; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_NMEDIT"; then
7522   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7542 if test -n "$ac_ct_NMEDIT"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7544 $as_echo "$ac_ct_NMEDIT" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550   if test "x$ac_ct_NMEDIT" = x; then
7551     NMEDIT=":"
7552   else
7553     case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559     NMEDIT=$ac_ct_NMEDIT
7560   fi
7561 else
7562   NMEDIT="$ac_cv_prog_NMEDIT"
7563 fi
7564
7565     if test -n "$ac_tool_prefix"; then
7566   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_LIPO+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test -n "$LIPO"; then
7574   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581     for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588   done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 LIPO=$ac_cv_prog_LIPO
7594 if test -n "$LIPO"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7596 $as_echo "$LIPO" >&6; }
7597 else
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603 fi
7604 if test -z "$ac_cv_prog_LIPO"; then
7605   ac_ct_LIPO=$LIPO
7606   # Extract the first word of "lipo", so it can be a program name with args.
7607 set dummy lipo; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7611   $as_echo_n "(cached) " >&6
7612 else
7613   if test -n "$ac_ct_LIPO"; then
7614   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619   IFS=$as_save_IFS
7620   test -z "$as_dir" && as_dir=.
7621     for ac_exec_ext in '' $ac_executable_extensions; do
7622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623     ac_cv_prog_ac_ct_LIPO="lipo"
7624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625     break 2
7626   fi
7627 done
7628   done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7634 if test -n "$ac_ct_LIPO"; then
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7636 $as_echo "$ac_ct_LIPO" >&6; }
7637 else
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642   if test "x$ac_ct_LIPO" = x; then
7643     LIPO=":"
7644   else
7645     case $cross_compiling:$ac_tool_warned in
7646 yes:)
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7650 esac
7651     LIPO=$ac_ct_LIPO
7652   fi
7653 else
7654   LIPO="$ac_cv_prog_LIPO"
7655 fi
7656
7657     if test -n "$ac_tool_prefix"; then
7658   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}otool; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_OTOOL+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$OTOOL"; then
7666   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 OTOOL=$ac_cv_prog_OTOOL
7686 if test -n "$OTOOL"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7688 $as_echo "$OTOOL" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_OTOOL"; then
7697   ac_ct_OTOOL=$OTOOL
7698   # Extract the first word of "otool", so it can be a program name with args.
7699 set dummy otool; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$ac_ct_OTOOL"; then
7706   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_prog_ac_ct_OTOOL="otool"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7726 if test -n "$ac_ct_OTOOL"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7728 $as_echo "$ac_ct_OTOOL" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734   if test "x$ac_ct_OTOOL" = x; then
7735     OTOOL=":"
7736   else
7737     case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743     OTOOL=$ac_ct_OTOOL
7744   fi
7745 else
7746   OTOOL="$ac_cv_prog_OTOOL"
7747 fi
7748
7749     if test -n "$ac_tool_prefix"; then
7750   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_OTOOL64+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   if test -n "$OTOOL64"; then
7758   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765     for ac_exec_ext in '' $ac_executable_extensions; do
7766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769     break 2
7770   fi
7771 done
7772   done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 OTOOL64=$ac_cv_prog_OTOOL64
7778 if test -n "$OTOOL64"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7780 $as_echo "$OTOOL64" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_OTOOL64"; then
7789   ac_ct_OTOOL64=$OTOOL64
7790   # Extract the first word of "otool64", so it can be a program name with args.
7791 set dummy otool64; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   if test -n "$ac_ct_OTOOL64"; then
7798   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807     ac_cv_prog_ac_ct_OTOOL64="otool64"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7818 if test -n "$ac_ct_OTOOL64"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7820 $as_echo "$ac_ct_OTOOL64" >&6; }
7821 else
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826   if test "x$ac_ct_OTOOL64" = x; then
7827     OTOOL64=":"
7828   else
7829     case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835     OTOOL64=$ac_ct_OTOOL64
7836   fi
7837 else
7838   OTOOL64="$ac_cv_prog_OTOOL64"
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7868 $as_echo_n "checking for -single_module linker flag... " >&6; }
7869 if ${lt_cv_apple_cc_single_mod+:} false; then :
7870   $as_echo_n "(cached) " >&6
7871 else
7872   lt_cv_apple_cc_single_mod=no
7873       if test -z "${LT_MULTI_MODULE}"; then
7874         # By default we will add the -single_module flag. You can override
7875         # by either setting the environment variable LT_MULTI_MODULE
7876         # non-empty at configure time, or by adding -multi_module to the
7877         # link flags.
7878         rm -rf libconftest.dylib*
7879         echo "int foo(void){return 1;}" > conftest.c
7880         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7881 -dynamiclib -Wl,-single_module conftest.c" >&5
7882         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7884         _lt_result=$?
7885         # If there is a non-empty error log, and "single_module"
7886         # appears in it, assume the flag caused a linker warning
7887         if test -s conftest.err && $GREP single_module conftest.err; then
7888           cat conftest.err >&5
7889         # Otherwise, if the output was created with a 0 exit code from
7890         # the compiler, it worked.
7891         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7892           lt_cv_apple_cc_single_mod=yes
7893         else
7894           cat conftest.err >&5
7895         fi
7896         rm -rf libconftest.dylib*
7897         rm -f conftest.*
7898       fi
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7901 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7902
7903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7905 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   lt_cv_ld_exported_symbols_list=no
7909       save_LDFLAGS=$LDFLAGS
7910       echo "_main" > conftest.sym
7911       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7912       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924   lt_cv_ld_exported_symbols_list=yes
7925 else
7926   lt_cv_ld_exported_symbols_list=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929     conftest$ac_exeext conftest.$ac_ext
7930         LDFLAGS="$save_LDFLAGS"
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7934 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7935
7936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7937 $as_echo_n "checking for -force_load linker flag... " >&6; }
7938 if ${lt_cv_ld_force_load+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   lt_cv_ld_force_load=no
7942       cat > conftest.c << _LT_EOF
7943 int forced_loaded() { return 2;}
7944 _LT_EOF
7945       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7946       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7947       echo "$AR cru libconftest.a conftest.o" >&5
7948       $AR cru libconftest.a conftest.o 2>&5
7949       echo "$RANLIB libconftest.a" >&5
7950       $RANLIB libconftest.a 2>&5
7951       cat > conftest.c << _LT_EOF
7952 int main() { return 0;}
7953 _LT_EOF
7954       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7955       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7956       _lt_result=$?
7957       if test -s conftest.err && $GREP force_load conftest.err; then
7958         cat conftest.err >&5
7959       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7960         lt_cv_ld_force_load=yes
7961       else
7962         cat conftest.err >&5
7963       fi
7964         rm -f conftest.err libconftest.a conftest conftest.c
7965         rm -rf conftest.dSYM
7966
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7969 $as_echo "$lt_cv_ld_force_load" >&6; }
7970     case $host_os in
7971     rhapsody* | darwin1.[012])
7972       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7973     darwin1.*)
7974       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975     darwin*) # darwin 5.x on
7976       # if running on 10.5 or later, the deployment target defaults
7977       # to the OS version, if on x86, and 10.4, the deployment
7978       # target defaults to 10.4. Don't you love it?
7979       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7980         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7981           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7982         10.[012]*)
7983           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7984         10.*)
7985           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7986       esac
7987     ;;
7988   esac
7989     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7990       _lt_dar_single_mod='$single_module'
7991     fi
7992     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7993       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7994     else
7995       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7996     fi
7997     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7998       _lt_dsymutil='~$DSYMUTIL $lib || :'
7999     else
8000       _lt_dsymutil=
8001     fi
8002     ;;
8003   esac
8004
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8012 # On Suns, sometimes $CPP names a directory.
8013 if test -n "$CPP" && test -d "$CPP"; then
8014   CPP=
8015 fi
8016 if test -z "$CPP"; then
8017   if ${ac_cv_prog_CPP+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020       # Double quotes because CPP needs to be expanded
8021     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8022     do
8023       ac_preproc_ok=false
8024 for ac_c_preproc_warn_flag in '' yes
8025 do
8026   # Use a header file that comes with gcc, so configuring glibc
8027   # with a fresh cross-compiler works.
8028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029   # <limits.h> exists even on freestanding compilers.
8030   # On the NeXT, cc -E runs the code through the compiler's parser,
8031   # not just through cpp. "Syntax error" is here to catch this case.
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034 #ifdef __STDC__
8035 # include <limits.h>
8036 #else
8037 # include <assert.h>
8038 #endif
8039                      Syntax error
8040 _ACEOF
8041 if ac_fn_c_try_cpp "$LINENO"; then :
8042
8043 else
8044   # Broken: fails on valid input.
8045 continue
8046 fi
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8048
8049   # OK, works on sane cases.  Now check whether nonexistent headers
8050   # can be detected and how.
8051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h.  */
8053 #include <ac_nonexistent.h>
8054 _ACEOF
8055 if ac_fn_c_try_cpp "$LINENO"; then :
8056   # Broken: success on invalid input.
8057 continue
8058 else
8059   # Passes both tests.
8060 ac_preproc_ok=:
8061 break
8062 fi
8063 rm -f conftest.err conftest.i conftest.$ac_ext
8064
8065 done
8066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8067 rm -f conftest.i conftest.err conftest.$ac_ext
8068 if $ac_preproc_ok; then :
8069   break
8070 fi
8071
8072     done
8073     ac_cv_prog_CPP=$CPP
8074
8075 fi
8076   CPP=$ac_cv_prog_CPP
8077 else
8078   ac_cv_prog_CPP=$CPP
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8081 $as_echo "$CPP" >&6; }
8082 ac_preproc_ok=false
8083 for ac_c_preproc_warn_flag in '' yes
8084 do
8085   # Use a header file that comes with gcc, so configuring glibc
8086   # with a fresh cross-compiler works.
8087   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088   # <limits.h> exists even on freestanding compilers.
8089   # On the NeXT, cc -E runs the code through the compiler's parser,
8090   # not just through cpp. "Syntax error" is here to catch this case.
8091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h.  */
8093 #ifdef __STDC__
8094 # include <limits.h>
8095 #else
8096 # include <assert.h>
8097 #endif
8098                      Syntax error
8099 _ACEOF
8100 if ac_fn_c_try_cpp "$LINENO"; then :
8101
8102 else
8103   # Broken: fails on valid input.
8104 continue
8105 fi
8106 rm -f conftest.err conftest.i conftest.$ac_ext
8107
8108   # OK, works on sane cases.  Now check whether nonexistent headers
8109   # can be detected and how.
8110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h.  */
8112 #include <ac_nonexistent.h>
8113 _ACEOF
8114 if ac_fn_c_try_cpp "$LINENO"; then :
8115   # Broken: success on invalid input.
8116 continue
8117 else
8118   # Passes both tests.
8119 ac_preproc_ok=:
8120 break
8121 fi
8122 rm -f conftest.err conftest.i conftest.$ac_ext
8123
8124 done
8125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8126 rm -f conftest.i conftest.err conftest.$ac_ext
8127 if $ac_preproc_ok; then :
8128
8129 else
8130   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8133 See \`config.log' for more details" "$LINENO" 5; }
8134 fi
8135
8136 ac_ext=c
8137 ac_cpp='$CPP $CPPFLAGS'
8138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8144 $as_echo_n "checking for ANSI C header files... " >&6; }
8145 if ${ac_cv_header_stdc+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 #include <stdlib.h>
8151 #include <stdarg.h>
8152 #include <string.h>
8153 #include <float.h>
8154
8155 int
8156 main ()
8157 {
8158
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164   ac_cv_header_stdc=yes
8165 else
8166   ac_cv_header_stdc=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169
8170 if test $ac_cv_header_stdc = yes; then
8171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h.  */
8174 #include <string.h>
8175
8176 _ACEOF
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178   $EGREP "memchr" >/dev/null 2>&1; then :
8179
8180 else
8181   ac_cv_header_stdc=no
8182 fi
8183 rm -f conftest*
8184
8185 fi
8186
8187 if test $ac_cv_header_stdc = yes; then
8188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h.  */
8191 #include <stdlib.h>
8192
8193 _ACEOF
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195   $EGREP "free" >/dev/null 2>&1; then :
8196
8197 else
8198   ac_cv_header_stdc=no
8199 fi
8200 rm -f conftest*
8201
8202 fi
8203
8204 if test $ac_cv_header_stdc = yes; then
8205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206   if test "$cross_compiling" = yes; then :
8207   :
8208 else
8209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h.  */
8211 #include <ctype.h>
8212 #include <stdlib.h>
8213 #if ((' ' & 0x0FF) == 0x020)
8214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8216 #else
8217 # define ISLOWER(c) \
8218                    (('a' <= (c) && (c) <= 'i') \
8219                      || ('j' <= (c) && (c) <= 'r') \
8220                      || ('s' <= (c) && (c) <= 'z'))
8221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8222 #endif
8223
8224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8225 int
8226 main ()
8227 {
8228   int i;
8229   for (i = 0; i < 256; i++)
8230     if (XOR (islower (i), ISLOWER (i))
8231         || toupper (i) != TOUPPER (i))
8232       return 2;
8233   return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_run "$LINENO"; then :
8237
8238 else
8239   ac_cv_header_stdc=no
8240 fi
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242   conftest.$ac_objext conftest.beam conftest.$ac_ext
8243 fi
8244
8245 fi
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8248 $as_echo "$ac_cv_header_stdc" >&6; }
8249 if test $ac_cv_header_stdc = yes; then
8250
8251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8252
8253 fi
8254
8255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8257                   inttypes.h stdint.h unistd.h
8258 do :
8259   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8261 "
8262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8263   cat >>confdefs.h <<_ACEOF
8264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8266
8267 fi
8268
8269 done
8270
8271
8272 for ac_header in dlfcn.h
8273 do :
8274   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8275 "
8276 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8277   cat >>confdefs.h <<_ACEOF
8278 #define HAVE_DLFCN_H 1
8279 _ACEOF
8280
8281 fi
8282
8283 done
8284
8285
8286
8287
8288 func_stripname_cnf ()
8289 {
8290   case ${2} in
8291   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8292   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8293   esac
8294 } # func_stripname_cnf
8295
8296
8297
8298
8299
8300 # Set options
8301
8302
8303
8304         enable_dlopen=no
8305
8306
8307   enable_win32_dll=no
8308
8309
8310             # Check whether --enable-shared was given.
8311 if test "${enable_shared+set}" = set; then :
8312   enableval=$enable_shared; p=${PACKAGE-default}
8313     case $enableval in
8314     yes) enable_shared=yes ;;
8315     no) enable_shared=no ;;
8316     *)
8317       enable_shared=no
8318       # Look at the argument we got.  We use all the common list separators.
8319       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320       for pkg in $enableval; do
8321         IFS="$lt_save_ifs"
8322         if test "X$pkg" = "X$p"; then
8323           enable_shared=yes
8324         fi
8325       done
8326       IFS="$lt_save_ifs"
8327       ;;
8328     esac
8329 else
8330   enable_shared=yes
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341   # Check whether --enable-static was given.
8342 if test "${enable_static+set}" = set; then :
8343   enableval=$enable_static; p=${PACKAGE-default}
8344     case $enableval in
8345     yes) enable_static=yes ;;
8346     no) enable_static=no ;;
8347     *)
8348      enable_static=no
8349       # Look at the argument we got.  We use all the common list separators.
8350       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351       for pkg in $enableval; do
8352         IFS="$lt_save_ifs"
8353         if test "X$pkg" = "X$p"; then
8354           enable_static=yes
8355         fi
8356       done
8357       IFS="$lt_save_ifs"
8358       ;;
8359     esac
8360 else
8361   enable_static=yes
8362 fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 # Check whether --with-pic was given.
8374 if test "${with_pic+set}" = set; then :
8375   withval=$with_pic; lt_p=${PACKAGE-default}
8376     case $withval in
8377     yes|no) pic_mode=$withval ;;
8378     *)
8379       pic_mode=default
8380       # Look at the argument we got.  We use all the common list separators.
8381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382       for lt_pkg in $withval; do
8383         IFS="$lt_save_ifs"
8384         if test "X$lt_pkg" = "X$lt_p"; then
8385           pic_mode=yes
8386         fi
8387       done
8388       IFS="$lt_save_ifs"
8389       ;;
8390     esac
8391 else
8392   pic_mode=default
8393 fi
8394
8395
8396 test -z "$pic_mode" && pic_mode=default
8397
8398
8399
8400
8401
8402
8403
8404   # Check whether --enable-fast-install was given.
8405 if test "${enable_fast_install+set}" = set; then :
8406   enableval=$enable_fast_install; p=${PACKAGE-default}
8407     case $enableval in
8408     yes) enable_fast_install=yes ;;
8409     no) enable_fast_install=no ;;
8410     *)
8411       enable_fast_install=no
8412       # Look at the argument we got.  We use all the common list separators.
8413       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414       for pkg in $enableval; do
8415         IFS="$lt_save_ifs"
8416         if test "X$pkg" = "X$p"; then
8417           enable_fast_install=yes
8418         fi
8419       done
8420       IFS="$lt_save_ifs"
8421       ;;
8422     esac
8423 else
8424   enable_fast_install=yes
8425 fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 # This can be used to rebuild libtool when needed
8438 LIBTOOL_DEPS="$ltmain"
8439
8440 # Always use our own libtool.
8441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472 test -z "$LN_S" && LN_S="ln -s"
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 if test -n "${ZSH_VERSION+set}" ; then
8488    setopt NO_GLOB_SUBST
8489 fi
8490
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8492 $as_echo_n "checking for objdir... " >&6; }
8493 if ${lt_cv_objdir+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   rm -f .libs 2>/dev/null
8497 mkdir .libs 2>/dev/null
8498 if test -d .libs; then
8499   lt_cv_objdir=.libs
8500 else
8501   # MS-DOS does not allow filenames that begin with a dot.
8502   lt_cv_objdir=_libs
8503 fi
8504 rmdir .libs 2>/dev/null
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8507 $as_echo "$lt_cv_objdir" >&6; }
8508 objdir=$lt_cv_objdir
8509
8510
8511
8512
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define LT_OBJDIR "$lt_cv_objdir/"
8516 _ACEOF
8517
8518
8519
8520
8521 case $host_os in
8522 aix3*)
8523   # AIX sometimes has problems with the GCC collect2 program.  For some
8524   # reason, if we set the COLLECT_NAMES environment variable, the problems
8525   # vanish in a puff of smoke.
8526   if test "X${COLLECT_NAMES+set}" != Xset; then
8527     COLLECT_NAMES=
8528     export COLLECT_NAMES
8529   fi
8530   ;;
8531 esac
8532
8533 # Global variables:
8534 ofile=libtool
8535 can_build_shared=yes
8536
8537 # All known linkers require a `.a' archive for static linking (except MSVC,
8538 # which needs '.lib').
8539 libext=a
8540
8541 with_gnu_ld="$lt_cv_prog_gnu_ld"
8542
8543 old_CC="$CC"
8544 old_CFLAGS="$CFLAGS"
8545
8546 # Set sane defaults for various variables
8547 test -z "$CC" && CC=cc
8548 test -z "$LTCC" && LTCC=$CC
8549 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550 test -z "$LD" && LD=ld
8551 test -z "$ac_objext" && ac_objext=o
8552
8553 for cc_temp in $compiler""; do
8554   case $cc_temp in
8555     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8556     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8557     \-*) ;;
8558     *) break;;
8559   esac
8560 done
8561 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8562
8563
8564 # Only perform the check for file, if the check method requires it
8565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8566 case $deplibs_check_method in
8567 file_magic*)
8568   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8570 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   case $MAGIC_CMD in
8575 [\\/*] |  ?:[\\/]*)
8576   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8577   ;;
8578 *)
8579   lt_save_MAGIC_CMD="$MAGIC_CMD"
8580   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8581   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582   for ac_dir in $ac_dummy; do
8583     IFS="$lt_save_ifs"
8584     test -z "$ac_dir" && ac_dir=.
8585     if test -f $ac_dir/${ac_tool_prefix}file; then
8586       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8587       if test -n "$file_magic_test_file"; then
8588         case $deplibs_check_method in
8589         "file_magic "*)
8590           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8592           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593             $EGREP "$file_magic_regex" > /dev/null; then
8594             :
8595           else
8596             cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such.  This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem.  Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8606
8607 _LT_EOF
8608           fi ;;
8609         esac
8610       fi
8611       break
8612     fi
8613   done
8614   IFS="$lt_save_ifs"
8615   MAGIC_CMD="$lt_save_MAGIC_CMD"
8616   ;;
8617 esac
8618 fi
8619
8620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8621 if test -n "$MAGIC_CMD"; then
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8624 else
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630
8631
8632
8633 if test -z "$lt_cv_path_MAGIC_CMD"; then
8634   if test -n "$ac_tool_prefix"; then
8635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8636 $as_echo_n "checking for file... " >&6; }
8637 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   case $MAGIC_CMD in
8641 [\\/*] |  ?:[\\/]*)
8642   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643   ;;
8644 *)
8645   lt_save_MAGIC_CMD="$MAGIC_CMD"
8646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648   for ac_dir in $ac_dummy; do
8649     IFS="$lt_save_ifs"
8650     test -z "$ac_dir" && ac_dir=.
8651     if test -f $ac_dir/file; then
8652       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8653       if test -n "$file_magic_test_file"; then
8654         case $deplibs_check_method in
8655         "file_magic "*)
8656           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659             $EGREP "$file_magic_regex" > /dev/null; then
8660             :
8661           else
8662             cat <<_LT_EOF 1>&2
8663
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such.  This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem.  Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8672
8673 _LT_EOF
8674           fi ;;
8675         esac
8676       fi
8677       break
8678     fi
8679   done
8680   IFS="$lt_save_ifs"
8681   MAGIC_CMD="$lt_save_MAGIC_CMD"
8682   ;;
8683 esac
8684 fi
8685
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689 $as_echo "$MAGIC_CMD" >&6; }
8690 else
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694
8695
8696   else
8697     MAGIC_CMD=:
8698   fi
8699 fi
8700
8701   fi
8702   ;;
8703 esac
8704
8705 # Use C for the default configuration in the libtool script
8706
8707 lt_save_CC="$CC"
8708 ac_ext=c
8709 ac_cpp='$CPP $CPPFLAGS'
8710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8713
8714
8715 # Source file extension for C test sources.
8716 ac_ext=c
8717
8718 # Object file extension for compiled C test sources.
8719 objext=o
8720 objext=$objext
8721
8722 # Code to be used in simple compile tests
8723 lt_simple_compile_test_code="int some_variable = 0;"
8724
8725 # Code to be used in simple link tests
8726 lt_simple_link_test_code='int main(){return(0);}'
8727
8728
8729
8730
8731
8732
8733
8734 # If no C compiler was specified, use CC.
8735 LTCC=${LTCC-"$CC"}
8736
8737 # If no C compiler flags were specified, use CFLAGS.
8738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8739
8740 # Allow CC to be a program name with arguments.
8741 compiler=$CC
8742
8743 # Save the default compiler, since it gets overwritten when the other
8744 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8745 compiler_DEFAULT=$CC
8746
8747 # save warnings/boilerplate of simple test code
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8750 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_compiler_boilerplate=`cat conftest.err`
8752 $RM conftest*
8753
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8756 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_linker_boilerplate=`cat conftest.err`
8758 $RM -r conftest*
8759
8760
8761 if test -n "$compiler"; then
8762
8763 lt_prog_compiler_no_builtin_flag=
8764
8765 if test "$GCC" = yes; then
8766   case $cc_basename in
8767   nvcc*)
8768     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8769   *)
8770     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8771   esac
8772
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8774 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8775 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8776   $as_echo_n "(cached) " >&6
8777 else
8778   lt_cv_prog_compiler_rtti_exceptions=no
8779    ac_outfile=conftest.$ac_objext
8780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8781    lt_compiler_flag="-fno-rtti -fno-exceptions"
8782    # Insert the option either (1) after the last *FLAGS variable, or
8783    # (2) before a word containing "conftest.", or (3) at the end.
8784    # Note that $ac_compile itself does not contain backslashes and begins
8785    # with a dollar sign (not a hyphen), so the echo should work correctly.
8786    # The option is referenced via a variable to avoid confusing sed.
8787    lt_compile=`echo "$ac_compile" | $SED \
8788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8790    -e 's:$: $lt_compiler_flag:'`
8791    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8792    (eval "$lt_compile" 2>conftest.err)
8793    ac_status=$?
8794    cat conftest.err >&5
8795    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796    if (exit $ac_status) && test -s "$ac_outfile"; then
8797      # The compiler can only warn and ignore the option if not recognized
8798      # So say no if there are warnings other than the usual output.
8799      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8800      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8801      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8802        lt_cv_prog_compiler_rtti_exceptions=yes
8803      fi
8804    fi
8805    $RM conftest*
8806
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8809 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8810
8811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8812     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8813 else
8814     :
8815 fi
8816
8817 fi
8818
8819
8820
8821
8822
8823
8824   lt_prog_compiler_wl=
8825 lt_prog_compiler_pic=
8826 lt_prog_compiler_static=
8827
8828
8829   if test "$GCC" = yes; then
8830     lt_prog_compiler_wl='-Wl,'
8831     lt_prog_compiler_static='-static'
8832
8833     case $host_os in
8834       aix*)
8835       # All AIX code is PIC.
8836       if test "$host_cpu" = ia64; then
8837         # AIX 5 now supports IA64 processor
8838         lt_prog_compiler_static='-Bstatic'
8839       fi
8840       ;;
8841
8842     amigaos*)
8843       case $host_cpu in
8844       powerpc)
8845             # see comment about AmigaOS4 .so support
8846             lt_prog_compiler_pic='-fPIC'
8847         ;;
8848       m68k)
8849             # FIXME: we need at least 68020 code to build shared libraries, but
8850             # adding the `-m68020' flag to GCC prevents building anything better,
8851             # like `-m68040'.
8852             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8853         ;;
8854       esac
8855       ;;
8856
8857     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8858       # PIC is the default for these OSes.
8859       ;;
8860
8861     mingw* | cygwin* | pw32* | os2* | cegcc*)
8862       # This hack is so that the source file can tell whether it is being
8863       # built for inclusion in a dll (and should export symbols for example).
8864       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8865       # (--disable-auto-import) libraries
8866       lt_prog_compiler_pic='-DDLL_EXPORT'
8867       ;;
8868
8869     darwin* | rhapsody*)
8870       # PIC is the default on this platform
8871       # Common symbols not allowed in MH_DYLIB files
8872       lt_prog_compiler_pic='-fno-common'
8873       ;;
8874
8875     haiku*)
8876       # PIC is the default for Haiku.
8877       # The "-static" flag exists, but is broken.
8878       lt_prog_compiler_static=
8879       ;;
8880
8881     hpux*)
8882       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8883       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8884       # sets the default TLS model and affects inlining.
8885       case $host_cpu in
8886       hppa*64*)
8887         # +Z the default
8888         ;;
8889       *)
8890         lt_prog_compiler_pic='-fPIC'
8891         ;;
8892       esac
8893       ;;
8894
8895     interix[3-9]*)
8896       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8897       # Instead, we relocate shared libraries at runtime.
8898       ;;
8899
8900     msdosdjgpp*)
8901       # Just because we use GCC doesn't mean we suddenly get shared libraries
8902       # on systems that don't support them.
8903       lt_prog_compiler_can_build_shared=no
8904       enable_shared=no
8905       ;;
8906
8907     *nto* | *qnx*)
8908       # QNX uses GNU C++, but need to define -shared option too, otherwise
8909       # it will coredump.
8910       lt_prog_compiler_pic='-fPIC -shared'
8911       ;;
8912
8913     sysv4*MP*)
8914       if test -d /usr/nec; then
8915         lt_prog_compiler_pic=-Kconform_pic
8916       fi
8917       ;;
8918
8919     *)
8920       lt_prog_compiler_pic='-fPIC'
8921       ;;
8922     esac
8923
8924     case $cc_basename in
8925     nvcc*) # Cuda Compiler Driver 2.2
8926       lt_prog_compiler_wl='-Xlinker '
8927       if test -n "$lt_prog_compiler_pic"; then
8928         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8929       fi
8930       ;;
8931     esac
8932   else
8933     # PORTME Check for flag to pass linker flags through the system compiler.
8934     case $host_os in
8935     aix*)
8936       lt_prog_compiler_wl='-Wl,'
8937       if test "$host_cpu" = ia64; then
8938         # AIX 5 now supports IA64 processor
8939         lt_prog_compiler_static='-Bstatic'
8940       else
8941         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8942       fi
8943       ;;
8944
8945     mingw* | cygwin* | pw32* | os2* | cegcc*)
8946       # This hack is so that the source file can tell whether it is being
8947       # built for inclusion in a dll (and should export symbols for example).
8948       lt_prog_compiler_pic='-DDLL_EXPORT'
8949       ;;
8950
8951     hpux9* | hpux10* | hpux11*)
8952       lt_prog_compiler_wl='-Wl,'
8953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8954       # not for PA HP-UX.
8955       case $host_cpu in
8956       hppa*64*|ia64*)
8957         # +Z the default
8958         ;;
8959       *)
8960         lt_prog_compiler_pic='+Z'
8961         ;;
8962       esac
8963       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8964       lt_prog_compiler_static='${wl}-a ${wl}archive'
8965       ;;
8966
8967     irix5* | irix6* | nonstopux*)
8968       lt_prog_compiler_wl='-Wl,'
8969       # PIC (with -KPIC) is the default.
8970       lt_prog_compiler_static='-non_shared'
8971       ;;
8972
8973     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8974       case $cc_basename in
8975       # old Intel for x86_64 which still supported -KPIC.
8976       ecc*)
8977         lt_prog_compiler_wl='-Wl,'
8978         lt_prog_compiler_pic='-KPIC'
8979         lt_prog_compiler_static='-static'
8980         ;;
8981       # icc used to be incompatible with GCC.
8982       # ICC 10 doesn't accept -KPIC any more.
8983       icc* | ifort*)
8984         lt_prog_compiler_wl='-Wl,'
8985         lt_prog_compiler_pic='-fPIC'
8986         lt_prog_compiler_static='-static'
8987         ;;
8988       # Lahey Fortran 8.1.
8989       lf95*)
8990         lt_prog_compiler_wl='-Wl,'
8991         lt_prog_compiler_pic='--shared'
8992         lt_prog_compiler_static='--static'
8993         ;;
8994       nagfor*)
8995         # NAG Fortran compiler
8996         lt_prog_compiler_wl='-Wl,-Wl,,'
8997         lt_prog_compiler_pic='-PIC'
8998         lt_prog_compiler_static='-Bstatic'
8999         ;;
9000       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9001         # Portland Group compilers (*not* the Pentium gcc compiler,
9002         # which looks to be a dead project)
9003         lt_prog_compiler_wl='-Wl,'
9004         lt_prog_compiler_pic='-fpic'
9005         lt_prog_compiler_static='-Bstatic'
9006         ;;
9007       ccc*)
9008         lt_prog_compiler_wl='-Wl,'
9009         # All Alpha code is PIC.
9010         lt_prog_compiler_static='-non_shared'
9011         ;;
9012       xl* | bgxl* | bgf* | mpixl*)
9013         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9014         lt_prog_compiler_wl='-Wl,'
9015         lt_prog_compiler_pic='-qpic'
9016         lt_prog_compiler_static='-qstaticlink'
9017         ;;
9018       *)
9019         case `$CC -V 2>&1 | sed 5q` in
9020         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9021           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9022           lt_prog_compiler_pic='-KPIC'
9023           lt_prog_compiler_static='-Bstatic'
9024           lt_prog_compiler_wl=''
9025           ;;
9026         *Sun\ F* | *Sun*Fortran*)
9027           lt_prog_compiler_pic='-KPIC'
9028           lt_prog_compiler_static='-Bstatic'
9029           lt_prog_compiler_wl='-Qoption ld '
9030           ;;
9031         *Sun\ C*)
9032           # Sun C 5.9
9033           lt_prog_compiler_pic='-KPIC'
9034           lt_prog_compiler_static='-Bstatic'
9035           lt_prog_compiler_wl='-Wl,'
9036           ;;
9037         *Intel*\ [CF]*Compiler*)
9038           lt_prog_compiler_wl='-Wl,'
9039           lt_prog_compiler_pic='-fPIC'
9040           lt_prog_compiler_static='-static'
9041           ;;
9042         *Portland\ Group*)
9043           lt_prog_compiler_wl='-Wl,'
9044           lt_prog_compiler_pic='-fpic'
9045           lt_prog_compiler_static='-Bstatic'
9046           ;;
9047         esac
9048         ;;
9049       esac
9050       ;;
9051
9052     newsos6)
9053       lt_prog_compiler_pic='-KPIC'
9054       lt_prog_compiler_static='-Bstatic'
9055       ;;
9056
9057     *nto* | *qnx*)
9058       # QNX uses GNU C++, but need to define -shared option too, otherwise
9059       # it will coredump.
9060       lt_prog_compiler_pic='-fPIC -shared'
9061       ;;
9062
9063     osf3* | osf4* | osf5*)
9064       lt_prog_compiler_wl='-Wl,'
9065       # All OSF/1 code is PIC.
9066       lt_prog_compiler_static='-non_shared'
9067       ;;
9068
9069     rdos*)
9070       lt_prog_compiler_static='-non_shared'
9071       ;;
9072
9073     solaris*)
9074       lt_prog_compiler_pic='-KPIC'
9075       lt_prog_compiler_static='-Bstatic'
9076       case $cc_basename in
9077       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9078         lt_prog_compiler_wl='-Qoption ld ';;
9079       *)
9080         lt_prog_compiler_wl='-Wl,';;
9081       esac
9082       ;;
9083
9084     sunos4*)
9085       lt_prog_compiler_wl='-Qoption ld '
9086       lt_prog_compiler_pic='-PIC'
9087       lt_prog_compiler_static='-Bstatic'
9088       ;;
9089
9090     sysv4 | sysv4.2uw2* | sysv4.3*)
9091       lt_prog_compiler_wl='-Wl,'
9092       lt_prog_compiler_pic='-KPIC'
9093       lt_prog_compiler_static='-Bstatic'
9094       ;;
9095
9096     sysv4*MP*)
9097       if test -d /usr/nec ;then
9098         lt_prog_compiler_pic='-Kconform_pic'
9099         lt_prog_compiler_static='-Bstatic'
9100       fi
9101       ;;
9102
9103     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9104       lt_prog_compiler_wl='-Wl,'
9105       lt_prog_compiler_pic='-KPIC'
9106       lt_prog_compiler_static='-Bstatic'
9107       ;;
9108
9109     unicos*)
9110       lt_prog_compiler_wl='-Wl,'
9111       lt_prog_compiler_can_build_shared=no
9112       ;;
9113
9114     uts4*)
9115       lt_prog_compiler_pic='-pic'
9116       lt_prog_compiler_static='-Bstatic'
9117       ;;
9118
9119     *)
9120       lt_prog_compiler_can_build_shared=no
9121       ;;
9122     esac
9123   fi
9124
9125 case $host_os in
9126   # For platforms which do not support PIC, -DPIC is meaningless:
9127   *djgpp*)
9128     lt_prog_compiler_pic=
9129     ;;
9130   *)
9131     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9132     ;;
9133 esac
9134
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9137 if ${lt_cv_prog_compiler_pic+:} false; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9143 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9144 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9145
9146 #
9147 # Check to make sure the PIC flag actually works.
9148 #
9149 if test -n "$lt_prog_compiler_pic"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9152 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   lt_cv_prog_compiler_pic_works=no
9156    ac_outfile=conftest.$ac_objext
9157    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9159    # Insert the option either (1) after the last *FLAGS variable, or
9160    # (2) before a word containing "conftest.", or (3) at the end.
9161    # Note that $ac_compile itself does not contain backslashes and begins
9162    # with a dollar sign (not a hyphen), so the echo should work correctly.
9163    # The option is referenced via a variable to avoid confusing sed.
9164    lt_compile=`echo "$ac_compile" | $SED \
9165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9167    -e 's:$: $lt_compiler_flag:'`
9168    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9169    (eval "$lt_compile" 2>conftest.err)
9170    ac_status=$?
9171    cat conftest.err >&5
9172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173    if (exit $ac_status) && test -s "$ac_outfile"; then
9174      # The compiler can only warn and ignore the option if not recognized
9175      # So say no if there are warnings other than the usual output.
9176      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9177      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9178      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9179        lt_cv_prog_compiler_pic_works=yes
9180      fi
9181    fi
9182    $RM conftest*
9183
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9187
9188 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9189     case $lt_prog_compiler_pic in
9190      "" | " "*) ;;
9191      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9192      esac
9193 else
9194     lt_prog_compiler_pic=
9195      lt_prog_compiler_can_build_shared=no
9196 fi
9197
9198 fi
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 #
9211 # Check to make sure the static flag actually works.
9212 #
9213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9215 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9216 if ${lt_cv_prog_compiler_static_works+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   lt_cv_prog_compiler_static_works=no
9220    save_LDFLAGS="$LDFLAGS"
9221    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9222    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9223    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9224      # The linker can only warn and ignore the option if not recognized
9225      # So say no if there are warnings
9226      if test -s conftest.err; then
9227        # Append any errors to the config.log.
9228        cat conftest.err 1>&5
9229        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9230        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231        if diff conftest.exp conftest.er2 >/dev/null; then
9232          lt_cv_prog_compiler_static_works=yes
9233        fi
9234      else
9235        lt_cv_prog_compiler_static_works=yes
9236      fi
9237    fi
9238    $RM -r conftest*
9239    LDFLAGS="$save_LDFLAGS"
9240
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9243 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9244
9245 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9246     :
9247 else
9248     lt_prog_compiler_static=
9249 fi
9250
9251
9252
9253
9254
9255
9256
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9259 if ${lt_cv_prog_compiler_c_o+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_prog_compiler_c_o=no
9263    $RM -r conftest 2>/dev/null
9264    mkdir conftest
9265    cd conftest
9266    mkdir out
9267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9268
9269    lt_compiler_flag="-o out/conftest2.$ac_objext"
9270    # Insert the option either (1) after the last *FLAGS variable, or
9271    # (2) before a word containing "conftest.", or (3) at the end.
9272    # Note that $ac_compile itself does not contain backslashes and begins
9273    # with a dollar sign (not a hyphen), so the echo should work correctly.
9274    lt_compile=`echo "$ac_compile" | $SED \
9275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9277    -e 's:$: $lt_compiler_flag:'`
9278    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9279    (eval "$lt_compile" 2>out/conftest.err)
9280    ac_status=$?
9281    cat out/conftest.err >&5
9282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9284    then
9285      # The compiler can only warn and ignore the option if not recognized
9286      # So say no if there are warnings
9287      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9290        lt_cv_prog_compiler_c_o=yes
9291      fi
9292    fi
9293    chmod u+w . 2>&5
9294    $RM conftest*
9295    # SGI C++ compiler will create directory out/ii_files/ for
9296    # template instantiation
9297    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9298    $RM out/* && rmdir out
9299    cd ..
9300    $RM -r conftest
9301    $RM conftest*
9302
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9306
9307
9308
9309
9310
9311
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9314 if ${lt_cv_prog_compiler_c_o+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   lt_cv_prog_compiler_c_o=no
9318    $RM -r conftest 2>/dev/null
9319    mkdir conftest
9320    cd conftest
9321    mkdir out
9322    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9323
9324    lt_compiler_flag="-o out/conftest2.$ac_objext"
9325    # Insert the option either (1) after the last *FLAGS variable, or
9326    # (2) before a word containing "conftest.", or (3) at the end.
9327    # Note that $ac_compile itself does not contain backslashes and begins
9328    # with a dollar sign (not a hyphen), so the echo should work correctly.
9329    lt_compile=`echo "$ac_compile" | $SED \
9330    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332    -e 's:$: $lt_compiler_flag:'`
9333    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9334    (eval "$lt_compile" 2>out/conftest.err)
9335    ac_status=$?
9336    cat out/conftest.err >&5
9337    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9339    then
9340      # The compiler can only warn and ignore the option if not recognized
9341      # So say no if there are warnings
9342      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9343      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9344      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9345        lt_cv_prog_compiler_c_o=yes
9346      fi
9347    fi
9348    chmod u+w . 2>&5
9349    $RM conftest*
9350    # SGI C++ compiler will create directory out/ii_files/ for
9351    # template instantiation
9352    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9353    $RM out/* && rmdir out
9354    cd ..
9355    $RM -r conftest
9356    $RM conftest*
9357
9358 fi
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9361
9362
9363
9364
9365 hard_links="nottested"
9366 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9367   # do not overwrite the value of need_locks provided by the user
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9369 $as_echo_n "checking if we can lock with hard links... " >&6; }
9370   hard_links=yes
9371   $RM conftest*
9372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9373   touch conftest.a
9374   ln conftest.a conftest.b 2>&5 || hard_links=no
9375   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9377 $as_echo "$hard_links" >&6; }
9378   if test "$hard_links" = no; then
9379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9381     need_locks=warn
9382   fi
9383 else
9384   need_locks=no
9385 fi
9386
9387
9388
9389
9390
9391
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9394
9395   runpath_var=
9396   allow_undefined_flag=
9397   always_export_symbols=no
9398   archive_cmds=
9399   archive_expsym_cmds=
9400   compiler_needs_object=no
9401   enable_shared_with_static_runtimes=no
9402   export_dynamic_flag_spec=
9403   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9404   hardcode_automatic=no
9405   hardcode_direct=no
9406   hardcode_direct_absolute=no
9407   hardcode_libdir_flag_spec=
9408   hardcode_libdir_separator=
9409   hardcode_minus_L=no
9410   hardcode_shlibpath_var=unsupported
9411   inherit_rpath=no
9412   link_all_deplibs=unknown
9413   module_cmds=
9414   module_expsym_cmds=
9415   old_archive_from_new_cmds=
9416   old_archive_from_expsyms_cmds=
9417   thread_safe_flag_spec=
9418   whole_archive_flag_spec=
9419   # include_expsyms should be a list of space-separated symbols to be *always*
9420   # included in the symbol list
9421   include_expsyms=
9422   # exclude_expsyms can be an extended regexp of symbols to exclude
9423   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9424   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9425   # as well as any symbol that contains `d'.
9426   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9427   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9428   # platforms (ab)use it in PIC code, but their linkers get confused if
9429   # the symbol is explicitly referenced.  Since portable code cannot
9430   # rely on this symbol name, it's probably fine to never include it in
9431   # preloaded symbol tables.
9432   # Exclude shared library initialization/finalization symbols.
9433   extract_expsyms_cmds=
9434
9435   case $host_os in
9436   cygwin* | mingw* | pw32* | cegcc*)
9437     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9438     # When not using gcc, we currently assume that we are using
9439     # Microsoft Visual C++.
9440     if test "$GCC" != yes; then
9441       with_gnu_ld=no
9442     fi
9443     ;;
9444   interix*)
9445     # we just hope/assume this is gcc and not c89 (= MSVC++)
9446     with_gnu_ld=yes
9447     ;;
9448   openbsd*)
9449     with_gnu_ld=no
9450     ;;
9451   linux* | k*bsd*-gnu | gnu*)
9452     link_all_deplibs=no
9453     ;;
9454   esac
9455
9456   ld_shlibs=yes
9457
9458   # On some targets, GNU ld is compatible enough with the native linker
9459   # that we're better off using the native interface for both.
9460   lt_use_gnu_ld_interface=no
9461   if test "$with_gnu_ld" = yes; then
9462     case $host_os in
9463       aix*)
9464         # The AIX port of GNU ld has always aspired to compatibility
9465         # with the native linker.  However, as the warning in the GNU ld
9466         # block says, versions before 2.19.5* couldn't really create working
9467         # shared libraries, regardless of the interface used.
9468         case `$LD -v 2>&1` in
9469           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9470           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9471           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9472           *)
9473             lt_use_gnu_ld_interface=yes
9474             ;;
9475         esac
9476         ;;
9477       *)
9478         lt_use_gnu_ld_interface=yes
9479         ;;
9480     esac
9481   fi
9482
9483   if test "$lt_use_gnu_ld_interface" = yes; then
9484     # If archive_cmds runs LD, not CC, wlarc should be empty
9485     wlarc='${wl}'
9486
9487     # Set some defaults for GNU ld with shared library support. These
9488     # are reset later if shared libraries are not supported. Putting them
9489     # here allows them to be overridden if necessary.
9490     runpath_var=LD_RUN_PATH
9491     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492     export_dynamic_flag_spec='${wl}--export-dynamic'
9493     # ancient GNU ld didn't support --whole-archive et. al.
9494     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9495       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9496     else
9497       whole_archive_flag_spec=
9498     fi
9499     supports_anon_versioning=no
9500     case `$LD -v 2>&1` in
9501       *GNU\ gold*) supports_anon_versioning=yes ;;
9502       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9503       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9504       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9505       *\ 2.11.*) ;; # other 2.11 versions
9506       *) supports_anon_versioning=yes ;;
9507     esac
9508
9509     # See if GNU ld supports shared libraries.
9510     case $host_os in
9511     aix[3-9]*)
9512       # On AIX/PPC, the GNU linker is very broken
9513       if test "$host_cpu" != ia64; then
9514         ld_shlibs=no
9515         cat <<_LT_EOF 1>&2
9516
9517 *** Warning: the GNU linker, at least up to release 2.19, is reported
9518 *** to be unable to reliably create shared libraries on AIX.
9519 *** Therefore, libtool is disabling shared libraries support.  If you
9520 *** really care for shared libraries, you may want to install binutils
9521 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9522 *** You will then need to restart the configuration process.
9523
9524 _LT_EOF
9525       fi
9526       ;;
9527
9528     amigaos*)
9529       case $host_cpu in
9530       powerpc)
9531             # see comment about AmigaOS4 .so support
9532             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533             archive_expsym_cmds=''
9534         ;;
9535       m68k)
9536             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)'
9537             hardcode_libdir_flag_spec='-L$libdir'
9538             hardcode_minus_L=yes
9539         ;;
9540       esac
9541       ;;
9542
9543     beos*)
9544       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545         allow_undefined_flag=unsupported
9546         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9547         # support --undefined.  This deserves some investigation.  FIXME
9548         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549       else
9550         ld_shlibs=no
9551       fi
9552       ;;
9553
9554     cygwin* | mingw* | pw32* | cegcc*)
9555       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9556       # as there is no search path for DLLs.
9557       hardcode_libdir_flag_spec='-L$libdir'
9558       export_dynamic_flag_spec='${wl}--export-all-symbols'
9559       allow_undefined_flag=unsupported
9560       always_export_symbols=no
9561       enable_shared_with_static_runtimes=yes
9562       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9563       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9564
9565       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9566         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9567         # If the export-symbols file already is a .def file (1st line
9568         # is EXPORTS), use it as is; otherwise, prepend...
9569         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9570           cp $export_symbols $output_objdir/$soname.def;
9571         else
9572           echo EXPORTS > $output_objdir/$soname.def;
9573           cat $export_symbols >> $output_objdir/$soname.def;
9574         fi~
9575         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9576       else
9577         ld_shlibs=no
9578       fi
9579       ;;
9580
9581     haiku*)
9582       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583       link_all_deplibs=yes
9584       ;;
9585
9586     interix[3-9]*)
9587       hardcode_direct=no
9588       hardcode_shlibpath_var=no
9589       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590       export_dynamic_flag_spec='${wl}-E'
9591       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9592       # Instead, shared libraries are loaded at an image base (0x10000000 by
9593       # default) and relocated if they conflict, which is a slow very memory
9594       # consuming and fragmenting process.  To avoid this, we pick a random,
9595       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9596       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9597       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9598       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'
9599       ;;
9600
9601     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9602       tmp_diet=no
9603       if test "$host_os" = linux-dietlibc; then
9604         case $cc_basename in
9605           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9606         esac
9607       fi
9608       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9609          && test "$tmp_diet" = no
9610       then
9611         tmp_addflag=' $pic_flag'
9612         tmp_sharedflag='-shared'
9613         case $cc_basename,$host_cpu in
9614         pgcc*)                          # Portland Group C compiler
9615           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'
9616           tmp_addflag=' $pic_flag'
9617           ;;
9618         pgf77* | pgf90* | pgf95* | pgfortran*)
9619                                         # Portland Group f77 and f90 compilers
9620           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'
9621           tmp_addflag=' $pic_flag -Mnomain' ;;
9622         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9623           tmp_addflag=' -i_dynamic' ;;
9624         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9625           tmp_addflag=' -i_dynamic -nofor_main' ;;
9626         ifc* | ifort*)                  # Intel Fortran compiler
9627           tmp_addflag=' -nofor_main' ;;
9628         lf95*)                          # Lahey Fortran 8.1
9629           whole_archive_flag_spec=
9630           tmp_sharedflag='--shared' ;;
9631         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9632           tmp_sharedflag='-qmkshrobj'
9633           tmp_addflag= ;;
9634         nvcc*)  # Cuda Compiler Driver 2.2
9635           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'
9636           compiler_needs_object=yes
9637           ;;
9638         esac
9639         case `$CC -V 2>&1 | sed 5q` in
9640         *Sun\ C*)                       # Sun C 5.9
9641           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'
9642           compiler_needs_object=yes
9643           tmp_sharedflag='-G' ;;
9644         *Sun\ F*)                       # Sun Fortran 8.3
9645           tmp_sharedflag='-G' ;;
9646         esac
9647         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648
9649         if test "x$supports_anon_versioning" = xyes; then
9650           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9651             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9652             echo "local: *; };" >> $output_objdir/$libname.ver~
9653             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9654         fi
9655
9656         case $cc_basename in
9657         xlf* | bgf* | bgxlf* | mpixlf*)
9658           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9659           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9660           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9662           if test "x$supports_anon_versioning" = xyes; then
9663             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9664               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9665               echo "local: *; };" >> $output_objdir/$libname.ver~
9666               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9667           fi
9668           ;;
9669         esac
9670       else
9671         ld_shlibs=no
9672       fi
9673       ;;
9674
9675     netbsd* | netbsdelf*-gnu)
9676       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9677         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9678         wlarc=
9679       else
9680         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682       fi
9683       ;;
9684
9685     solaris*)
9686       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9687         ld_shlibs=no
9688         cat <<_LT_EOF 1>&2
9689
9690 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9691 *** create shared libraries on Solaris systems.  Therefore, libtool
9692 *** is disabling shared libraries support.  We urge you to upgrade GNU
9693 *** binutils to release 2.9.1 or newer.  Another option is to modify
9694 *** your PATH or compiler configuration so that the native linker is
9695 *** used, and then restart.
9696
9697 _LT_EOF
9698       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9699         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9701       else
9702         ld_shlibs=no
9703       fi
9704       ;;
9705
9706     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9707       case `$LD -v 2>&1` in
9708         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9709         ld_shlibs=no
9710         cat <<_LT_EOF 1>&2
9711
9712 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9713 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9714 *** is disabling shared libraries support.  We urge you to upgrade GNU
9715 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9716 *** your PATH or compiler configuration so that the native linker is
9717 *** used, and then restart.
9718
9719 _LT_EOF
9720         ;;
9721         *)
9722           # For security reasons, it is highly recommended that you always
9723           # use absolute paths for naming shared libraries, and exclude the
9724           # DT_RUNPATH tag from executables and libraries.  But doing so
9725           # requires that you compile everything twice, which is a pain.
9726           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9730           else
9731             ld_shlibs=no
9732           fi
9733         ;;
9734       esac
9735       ;;
9736
9737     sunos4*)
9738       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9739       wlarc=
9740       hardcode_direct=yes
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     *)
9745       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9748       else
9749         ld_shlibs=no
9750       fi
9751       ;;
9752     esac
9753
9754     if test "$ld_shlibs" = no; then
9755       runpath_var=
9756       hardcode_libdir_flag_spec=
9757       export_dynamic_flag_spec=
9758       whole_archive_flag_spec=
9759     fi
9760   else
9761     # PORTME fill in a description of your system's linker (not GNU ld)
9762     case $host_os in
9763     aix3*)
9764       allow_undefined_flag=unsupported
9765       always_export_symbols=yes
9766       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'
9767       # Note: this linker hardcodes the directories in LIBPATH if there
9768       # are no directories specified by -L.
9769       hardcode_minus_L=yes
9770       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9771         # Neither direct hardcoding nor static linking is supported with a
9772         # broken collect2.
9773         hardcode_direct=unsupported
9774       fi
9775       ;;
9776
9777     aix[4-9]*)
9778       if test "$host_cpu" = ia64; then
9779         # On IA64, the linker does run time linking by default, so we don't
9780         # have to do anything special.
9781         aix_use_runtimelinking=no
9782         exp_sym_flag='-Bexport'
9783         no_entry_flag=""
9784       else
9785         # If we're using GNU nm, then we don't want the "-C" option.
9786         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9787         # Also, AIX nm treats weak defined symbols like other global
9788         # defined symbols, whereas GNU nm marks them as "W".
9789         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9790           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'
9791         else
9792           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'
9793         fi
9794         aix_use_runtimelinking=no
9795
9796         # Test if we are trying to use run time linking or normal
9797         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9798         # need to do runtime linking.
9799         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800           for ld_flag in $LDFLAGS; do
9801           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9802             aix_use_runtimelinking=yes
9803             break
9804           fi
9805           done
9806           ;;
9807         esac
9808
9809         exp_sym_flag='-bexport'
9810         no_entry_flag='-bnoentry'
9811       fi
9812
9813       # When large executables or shared objects are built, AIX ld can
9814       # have problems creating the table of contents.  If linking a library
9815       # or program results in "error TOC overflow" add -mminimal-toc to
9816       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9817       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9818
9819       archive_cmds=''
9820       hardcode_direct=yes
9821       hardcode_direct_absolute=yes
9822       hardcode_libdir_separator=':'
9823       link_all_deplibs=yes
9824       file_list_spec='${wl}-f,'
9825
9826       if test "$GCC" = yes; then
9827         case $host_os in aix4.[012]|aix4.[012].*)
9828         # We only want to do this on AIX 4.2 and lower, the check
9829         # below for broken collect2 doesn't work under 4.3+
9830           collect2name=`${CC} -print-prog-name=collect2`
9831           if test -f "$collect2name" &&
9832            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9833           then
9834           # We have reworked collect2
9835           :
9836           else
9837           # We have old collect2
9838           hardcode_direct=unsupported
9839           # It fails to find uninstalled libraries when the uninstalled
9840           # path is not listed in the libpath.  Setting hardcode_minus_L
9841           # to unsupported forces relinking
9842           hardcode_minus_L=yes
9843           hardcode_libdir_flag_spec='-L$libdir'
9844           hardcode_libdir_separator=
9845           fi
9846           ;;
9847         esac
9848         shared_flag='-shared'
9849         if test "$aix_use_runtimelinking" = yes; then
9850           shared_flag="$shared_flag "'${wl}-G'
9851         fi
9852         link_all_deplibs=no
9853       else
9854         # not using gcc
9855         if test "$host_cpu" = ia64; then
9856         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857         # chokes on -Wl,-G. The following line is correct:
9858           shared_flag='-G'
9859         else
9860           if test "$aix_use_runtimelinking" = yes; then
9861             shared_flag='${wl}-G'
9862           else
9863             shared_flag='${wl}-bM:SRE'
9864           fi
9865         fi
9866       fi
9867
9868       export_dynamic_flag_spec='${wl}-bexpall'
9869       # It seems that -bexpall does not export symbols beginning with
9870       # underscore (_), so it is better to generate a list of symbols to export.
9871       always_export_symbols=yes
9872       if test "$aix_use_runtimelinking" = yes; then
9873         # Warning - without using the other runtime loading flags (-brtl),
9874         # -berok will link without error, but may produce a broken library.
9875         allow_undefined_flag='-berok'
9876         # Determine the default libpath from the value encoded in an
9877         # empty executable.
9878         if test "${lt_cv_aix_libpath+set}" = set; then
9879   aix_libpath=$lt_cv_aix_libpath
9880 else
9881   if ${lt_cv_aix_libpath_+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h.  */
9886
9887 int
9888 main ()
9889 {
9890
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896
9897   lt_aix_libpath_sed='
9898       /Import File Strings/,/^$/ {
9899           /^0/ {
9900               s/^0  *\([^ ]*\) *$/\1/
9901               p
9902           }
9903       }'
9904   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905   # Check for a 64-bit object if we didn't find anything.
9906   if test -z "$lt_cv_aix_libpath_"; then
9907     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908   fi
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext \
9911     conftest$ac_exeext conftest.$ac_ext
9912   if test -z "$lt_cv_aix_libpath_"; then
9913     lt_cv_aix_libpath_="/usr/lib:/lib"
9914   fi
9915
9916 fi
9917
9918   aix_libpath=$lt_cv_aix_libpath_
9919 fi
9920
9921         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9922         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"
9923       else
9924         if test "$host_cpu" = ia64; then
9925           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9926           allow_undefined_flag="-z nodefs"
9927           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"
9928         else
9929          # Determine the default libpath from the value encoded in an
9930          # empty executable.
9931          if test "${lt_cv_aix_libpath+set}" = set; then
9932   aix_libpath=$lt_cv_aix_libpath
9933 else
9934   if ${lt_cv_aix_libpath_+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h.  */
9939
9940 int
9941 main ()
9942 {
9943
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"; then :
9949
9950   lt_aix_libpath_sed='
9951       /Import File Strings/,/^$/ {
9952           /^0/ {
9953               s/^0  *\([^ ]*\) *$/\1/
9954               p
9955           }
9956       }'
9957   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958   # Check for a 64-bit object if we didn't find anything.
9959   if test -z "$lt_cv_aix_libpath_"; then
9960     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961   fi
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964     conftest$ac_exeext conftest.$ac_ext
9965   if test -z "$lt_cv_aix_libpath_"; then
9966     lt_cv_aix_libpath_="/usr/lib:/lib"
9967   fi
9968
9969 fi
9970
9971   aix_libpath=$lt_cv_aix_libpath_
9972 fi
9973
9974          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9975           # Warning - without using the other run time loading flags,
9976           # -berok will link without error, but may produce a broken library.
9977           no_undefined_flag=' ${wl}-bernotok'
9978           allow_undefined_flag=' ${wl}-berok'
9979           if test "$with_gnu_ld" = yes; then
9980             # We only use this code for GNU lds that support --whole-archive.
9981             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9982           else
9983             # Exported symbols can be pulled into shared objects from archives
9984             whole_archive_flag_spec='$convenience'
9985           fi
9986           archive_cmds_need_lc=yes
9987           # This is similar to how AIX traditionally builds its shared libraries.
9988           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'
9989         fi
9990       fi
9991       ;;
9992
9993     amigaos*)
9994       case $host_cpu in
9995       powerpc)
9996             # see comment about AmigaOS4 .so support
9997             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998             archive_expsym_cmds=''
9999         ;;
10000       m68k)
10001             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)'
10002             hardcode_libdir_flag_spec='-L$libdir'
10003             hardcode_minus_L=yes
10004         ;;
10005       esac
10006       ;;
10007
10008     bsdi[45]*)
10009       export_dynamic_flag_spec=-rdynamic
10010       ;;
10011
10012     cygwin* | mingw* | pw32* | cegcc*)
10013       # When not using gcc, we currently assume that we are using
10014       # Microsoft Visual C++.
10015       # hardcode_libdir_flag_spec is actually meaningless, as there is
10016       # no search path for DLLs.
10017       case $cc_basename in
10018       cl*)
10019         # Native MSVC
10020         hardcode_libdir_flag_spec=' '
10021         allow_undefined_flag=unsupported
10022         always_export_symbols=yes
10023         file_list_spec='@'
10024         # Tell ltmain to make .lib files, not .a files.
10025         libext=lib
10026         # Tell ltmain to make .dll files, not .so files.
10027         shrext_cmds=".dll"
10028         # FIXME: Setting linknames here is a bad hack.
10029         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10030         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10031             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10032           else
10033             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10034           fi~
10035           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10036           linknames='
10037         # The linker will not automatically build a static lib if we build a DLL.
10038         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10039         enable_shared_with_static_runtimes=yes
10040         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10041         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10042         # Don't use ranlib
10043         old_postinstall_cmds='chmod 644 $oldlib'
10044         postlink_cmds='lt_outputfile="@OUTPUT@"~
10045           lt_tool_outputfile="@TOOL_OUTPUT@"~
10046           case $lt_outputfile in
10047             *.exe|*.EXE) ;;
10048             *)
10049               lt_outputfile="$lt_outputfile.exe"
10050               lt_tool_outputfile="$lt_tool_outputfile.exe"
10051               ;;
10052           esac~
10053           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10054             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10055             $RM "$lt_outputfile.manifest";
10056           fi'
10057         ;;
10058       *)
10059         # Assume MSVC wrapper
10060         hardcode_libdir_flag_spec=' '
10061         allow_undefined_flag=unsupported
10062         # Tell ltmain to make .lib files, not .a files.
10063         libext=lib
10064         # Tell ltmain to make .dll files, not .so files.
10065         shrext_cmds=".dll"
10066         # FIXME: Setting linknames here is a bad hack.
10067         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10068         # The linker will automatically build a .lib file if we build a DLL.
10069         old_archive_from_new_cmds='true'
10070         # FIXME: Should let the user specify the lib program.
10071         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10072         enable_shared_with_static_runtimes=yes
10073         ;;
10074       esac
10075       ;;
10076
10077     darwin* | rhapsody*)
10078
10079
10080   archive_cmds_need_lc=no
10081   hardcode_direct=no
10082   hardcode_automatic=yes
10083   hardcode_shlibpath_var=unsupported
10084   if test "$lt_cv_ld_force_load" = "yes"; then
10085     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\"`'
10086
10087   else
10088     whole_archive_flag_spec=''
10089   fi
10090   link_all_deplibs=yes
10091   allow_undefined_flag="$_lt_dar_allow_undefined"
10092   case $cc_basename in
10093      ifort*) _lt_dar_can_shared=yes ;;
10094      *) _lt_dar_can_shared=$GCC ;;
10095   esac
10096   if test "$_lt_dar_can_shared" = "yes"; then
10097     output_verbose_link_cmd=func_echo_all
10098     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10099     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10100     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}"
10101     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}"
10102
10103   else
10104   ld_shlibs=no
10105   fi
10106
10107       ;;
10108
10109     dgux*)
10110       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111       hardcode_libdir_flag_spec='-L$libdir'
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10116     # support.  Future versions do this automatically, but an explicit c++rt0.o
10117     # does not break anything, and helps significantly (at the cost of a little
10118     # extra space).
10119     freebsd2.2*)
10120       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10121       hardcode_libdir_flag_spec='-R$libdir'
10122       hardcode_direct=yes
10123       hardcode_shlibpath_var=no
10124       ;;
10125
10126     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10127     freebsd2.*)
10128       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10129       hardcode_direct=yes
10130       hardcode_minus_L=yes
10131       hardcode_shlibpath_var=no
10132       ;;
10133
10134     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10135     freebsd* | dragonfly*)
10136       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10137       hardcode_libdir_flag_spec='-R$libdir'
10138       hardcode_direct=yes
10139       hardcode_shlibpath_var=no
10140       ;;
10141
10142     hpux9*)
10143       if test "$GCC" = yes; then
10144         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10145       else
10146         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'
10147       fi
10148       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10149       hardcode_libdir_separator=:
10150       hardcode_direct=yes
10151
10152       # hardcode_minus_L: Not really in the search PATH,
10153       # but as the default location of the library.
10154       hardcode_minus_L=yes
10155       export_dynamic_flag_spec='${wl}-E'
10156       ;;
10157
10158     hpux10*)
10159       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10160         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10161       else
10162         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10163       fi
10164       if test "$with_gnu_ld" = no; then
10165         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10166         hardcode_libdir_separator=:
10167         hardcode_direct=yes
10168         hardcode_direct_absolute=yes
10169         export_dynamic_flag_spec='${wl}-E'
10170         # hardcode_minus_L: Not really in the search PATH,
10171         # but as the default location of the library.
10172         hardcode_minus_L=yes
10173       fi
10174       ;;
10175
10176     hpux11*)
10177       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10178         case $host_cpu in
10179         hppa*64*)
10180           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10181           ;;
10182         ia64*)
10183           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10184           ;;
10185         *)
10186           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10187           ;;
10188         esac
10189       else
10190         case $host_cpu in
10191         hppa*64*)
10192           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193           ;;
10194         ia64*)
10195           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10196           ;;
10197         *)
10198
10199           # Older versions of the 11.00 compiler do not understand -b yet
10200           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10201           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10202 $as_echo_n "checking if $CC understands -b... " >&6; }
10203 if ${lt_cv_prog_compiler__b+:} false; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   lt_cv_prog_compiler__b=no
10207    save_LDFLAGS="$LDFLAGS"
10208    LDFLAGS="$LDFLAGS -b"
10209    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10210    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10211      # The linker can only warn and ignore the option if not recognized
10212      # So say no if there are warnings
10213      if test -s conftest.err; then
10214        # Append any errors to the config.log.
10215        cat conftest.err 1>&5
10216        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10217        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10218        if diff conftest.exp conftest.er2 >/dev/null; then
10219          lt_cv_prog_compiler__b=yes
10220        fi
10221      else
10222        lt_cv_prog_compiler__b=yes
10223      fi
10224    fi
10225    $RM -r conftest*
10226    LDFLAGS="$save_LDFLAGS"
10227
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10230 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10231
10232 if test x"$lt_cv_prog_compiler__b" = xyes; then
10233     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10234 else
10235     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10236 fi
10237
10238           ;;
10239         esac
10240       fi
10241       if test "$with_gnu_ld" = no; then
10242         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243         hardcode_libdir_separator=:
10244
10245         case $host_cpu in
10246         hppa*64*|ia64*)
10247           hardcode_direct=no
10248           hardcode_shlibpath_var=no
10249           ;;
10250         *)
10251           hardcode_direct=yes
10252           hardcode_direct_absolute=yes
10253           export_dynamic_flag_spec='${wl}-E'
10254
10255           # hardcode_minus_L: Not really in the search PATH,
10256           # but as the default location of the library.
10257           hardcode_minus_L=yes
10258           ;;
10259         esac
10260       fi
10261       ;;
10262
10263     irix5* | irix6* | nonstopux*)
10264       if test "$GCC" = yes; then
10265         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10266         # Try to use the -exported_symbol ld option, if it does not
10267         # work, assume that -exports_file does not work either and
10268         # implicitly export all symbols.
10269         # This should be the same for all languages, so no per-tag cache variable.
10270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10271 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10272 if ${lt_cv_irix_exported_symbol+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   save_LDFLAGS="$LDFLAGS"
10276            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10277            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h.  */
10279 int foo (void) { return 0; }
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"; then :
10282   lt_cv_irix_exported_symbol=yes
10283 else
10284   lt_cv_irix_exported_symbol=no
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext \
10287     conftest$ac_exeext conftest.$ac_ext
10288            LDFLAGS="$save_LDFLAGS"
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10291 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10292         if test "$lt_cv_irix_exported_symbol" = yes; then
10293           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10294         fi
10295       else
10296         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'
10297         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'
10298       fi
10299       archive_cmds_need_lc='no'
10300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301       hardcode_libdir_separator=:
10302       inherit_rpath=yes
10303       link_all_deplibs=yes
10304       ;;
10305
10306     netbsd* | netbsdelf*-gnu)
10307       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10308         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10309       else
10310         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10311       fi
10312       hardcode_libdir_flag_spec='-R$libdir'
10313       hardcode_direct=yes
10314       hardcode_shlibpath_var=no
10315       ;;
10316
10317     newsos6)
10318       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319       hardcode_direct=yes
10320       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10321       hardcode_libdir_separator=:
10322       hardcode_shlibpath_var=no
10323       ;;
10324
10325     *nto* | *qnx*)
10326       ;;
10327
10328     openbsd*)
10329       if test -f /usr/libexec/ld.so; then
10330         hardcode_direct=yes
10331         hardcode_shlibpath_var=no
10332         hardcode_direct_absolute=yes
10333         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10334           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10335           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10336           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10337           export_dynamic_flag_spec='${wl}-E'
10338         else
10339           case $host_os in
10340            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10341              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10342              hardcode_libdir_flag_spec='-R$libdir'
10343              ;;
10344            *)
10345              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10346              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10347              ;;
10348           esac
10349         fi
10350       else
10351         ld_shlibs=no
10352       fi
10353       ;;
10354
10355     os2*)
10356       hardcode_libdir_flag_spec='-L$libdir'
10357       hardcode_minus_L=yes
10358       allow_undefined_flag=unsupported
10359       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'
10360       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10361       ;;
10362
10363     osf3*)
10364       if test "$GCC" = yes; then
10365         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10366         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'
10367       else
10368         allow_undefined_flag=' -expect_unresolved \*'
10369         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'
10370       fi
10371       archive_cmds_need_lc='no'
10372       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373       hardcode_libdir_separator=:
10374       ;;
10375
10376     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10377       if test "$GCC" = yes; then
10378         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10379         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10380         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381       else
10382         allow_undefined_flag=' -expect_unresolved \*'
10383         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'
10384         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~
10385         $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'
10386
10387         # Both c and cxx compiler support -rpath directly
10388         hardcode_libdir_flag_spec='-rpath $libdir'
10389       fi
10390       archive_cmds_need_lc='no'
10391       hardcode_libdir_separator=:
10392       ;;
10393
10394     solaris*)
10395       no_undefined_flag=' -z defs'
10396       if test "$GCC" = yes; then
10397         wlarc='${wl}'
10398         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10399         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10400           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10401       else
10402         case `$CC -V 2>&1` in
10403         *"Compilers 5.0"*)
10404           wlarc=''
10405           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10407           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10408           ;;
10409         *)
10410           wlarc='${wl}'
10411           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10412           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10413           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10414           ;;
10415         esac
10416       fi
10417       hardcode_libdir_flag_spec='-R$libdir'
10418       hardcode_shlibpath_var=no
10419       case $host_os in
10420       solaris2.[0-5] | solaris2.[0-5].*) ;;
10421       *)
10422         # The compiler driver will combine and reorder linker options,
10423         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10424         # but is careful enough not to reorder.
10425         # Supported since Solaris 2.6 (maybe 2.5.1?)
10426         if test "$GCC" = yes; then
10427           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10428         else
10429           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10430         fi
10431         ;;
10432       esac
10433       link_all_deplibs=yes
10434       ;;
10435
10436     sunos4*)
10437       if test "x$host_vendor" = xsequent; then
10438         # Use $CC to link under sequent, because it throws in some extra .o
10439         # files that make .init and .fini sections work.
10440         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10441       else
10442         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10443       fi
10444       hardcode_libdir_flag_spec='-L$libdir'
10445       hardcode_direct=yes
10446       hardcode_minus_L=yes
10447       hardcode_shlibpath_var=no
10448       ;;
10449
10450     sysv4)
10451       case $host_vendor in
10452         sni)
10453           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454           hardcode_direct=yes # is this really true???
10455         ;;
10456         siemens)
10457           ## LD is ld it makes a PLAMLIB
10458           ## CC just makes a GrossModule.
10459           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10460           reload_cmds='$CC -r -o $output$reload_objs'
10461           hardcode_direct=no
10462         ;;
10463         motorola)
10464           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10465           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10466         ;;
10467       esac
10468       runpath_var='LD_RUN_PATH'
10469       hardcode_shlibpath_var=no
10470       ;;
10471
10472     sysv4.3*)
10473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474       hardcode_shlibpath_var=no
10475       export_dynamic_flag_spec='-Bexport'
10476       ;;
10477
10478     sysv4*MP*)
10479       if test -d /usr/nec; then
10480         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481         hardcode_shlibpath_var=no
10482         runpath_var=LD_RUN_PATH
10483         hardcode_runpath_var=yes
10484         ld_shlibs=yes
10485       fi
10486       ;;
10487
10488     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10489       no_undefined_flag='${wl}-z,text'
10490       archive_cmds_need_lc=no
10491       hardcode_shlibpath_var=no
10492       runpath_var='LD_RUN_PATH'
10493
10494       if test "$GCC" = yes; then
10495         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10497       else
10498         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500       fi
10501       ;;
10502
10503     sysv5* | sco3.2v5* | sco5v6*)
10504       # Note: We can NOT use -z defs as we might desire, because we do not
10505       # link with -lc, and that would cause any symbols used from libc to
10506       # always be unresolved, which means just about no library would
10507       # ever link correctly.  If we're not using GNU ld we use -z text
10508       # though, which does catch some bad symbols but isn't as heavy-handed
10509       # as -z defs.
10510       no_undefined_flag='${wl}-z,text'
10511       allow_undefined_flag='${wl}-z,nodefs'
10512       archive_cmds_need_lc=no
10513       hardcode_shlibpath_var=no
10514       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10515       hardcode_libdir_separator=':'
10516       link_all_deplibs=yes
10517       export_dynamic_flag_spec='${wl}-Bexport'
10518       runpath_var='LD_RUN_PATH'
10519
10520       if test "$GCC" = yes; then
10521         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10523       else
10524         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526       fi
10527       ;;
10528
10529     uts4*)
10530       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531       hardcode_libdir_flag_spec='-L$libdir'
10532       hardcode_shlibpath_var=no
10533       ;;
10534
10535     *)
10536       ld_shlibs=no
10537       ;;
10538     esac
10539
10540     if test x$host_vendor = xsni; then
10541       case $host in
10542       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10543         export_dynamic_flag_spec='${wl}-Blargedynsym'
10544         ;;
10545       esac
10546     fi
10547   fi
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10550 $as_echo "$ld_shlibs" >&6; }
10551 test "$ld_shlibs" = no && can_build_shared=no
10552
10553 with_gnu_ld=$with_gnu_ld
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 #
10570 # Do we need to explicitly link libc?
10571 #
10572 case "x$archive_cmds_need_lc" in
10573 x|xyes)
10574   # Assume -lc should be added
10575   archive_cmds_need_lc=yes
10576
10577   if test "$enable_shared" = yes && test "$GCC" = yes; then
10578     case $archive_cmds in
10579     *'~'*)
10580       # FIXME: we may have to deal with multi-command sequences.
10581       ;;
10582     '$CC '*)
10583       # Test whether the compiler implicitly links with -lc since on some
10584       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10585       # to ld, don't add -lc before -lgcc.
10586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10587 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10588 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591   $RM conftest*
10592         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10593
10594         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10595   (eval $ac_compile) 2>&5
10596   ac_status=$?
10597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598   test $ac_status = 0; } 2>conftest.err; then
10599           soname=conftest
10600           lib=conftest
10601           libobjs=conftest.$ac_objext
10602           deplibs=
10603           wl=$lt_prog_compiler_wl
10604           pic_flag=$lt_prog_compiler_pic
10605           compiler_flags=-v
10606           linker_flags=-v
10607           verstring=
10608           output_objdir=.
10609           libname=conftest
10610           lt_save_allow_undefined_flag=$allow_undefined_flag
10611           allow_undefined_flag=
10612           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10613   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10614   ac_status=$?
10615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616   test $ac_status = 0; }
10617           then
10618             lt_cv_archive_cmds_need_lc=no
10619           else
10620             lt_cv_archive_cmds_need_lc=yes
10621           fi
10622           allow_undefined_flag=$lt_save_allow_undefined_flag
10623         else
10624           cat conftest.err 1>&5
10625         fi
10626         $RM conftest*
10627
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10630 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10631       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10632       ;;
10633     esac
10634   fi
10635   ;;
10636 esac
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10790 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10791
10792 if test "$GCC" = yes; then
10793   case $host_os in
10794     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10795     *) lt_awk_arg="/^libraries:/" ;;
10796   esac
10797   case $host_os in
10798     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10799     *) lt_sed_strip_eq="s,=/,/,g" ;;
10800   esac
10801   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10802   case $lt_search_path_spec in
10803   *\;*)
10804     # if the path contains ";" then we assume it to be the separator
10805     # otherwise default to the standard path separator (i.e. ":") - it is
10806     # assumed that no part of a normal pathname contains ";" but that should
10807     # okay in the real world where ";" in dirpaths is itself problematic.
10808     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10809     ;;
10810   *)
10811     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10812     ;;
10813   esac
10814   # Ok, now we have the path, separated by spaces, we can step through it
10815   # and add multilib dir if necessary.
10816   lt_tmp_lt_search_path_spec=
10817   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10818   for lt_sys_path in $lt_search_path_spec; do
10819     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10820       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10821     else
10822       test -d "$lt_sys_path" && \
10823         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10824     fi
10825   done
10826   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10827 BEGIN {RS=" "; FS="/|\n";} {
10828   lt_foo="";
10829   lt_count=0;
10830   for (lt_i = NF; lt_i > 0; lt_i--) {
10831     if ($lt_i != "" && $lt_i != ".") {
10832       if ($lt_i == "..") {
10833         lt_count++;
10834       } else {
10835         if (lt_count == 0) {
10836           lt_foo="/" $lt_i lt_foo;
10837         } else {
10838           lt_count--;
10839         }
10840       }
10841     }
10842   }
10843   if (lt_foo != "") { lt_freq[lt_foo]++; }
10844   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10845 }'`
10846   # AWK program above erroneously prepends '/' to C:/dos/paths
10847   # for these hosts.
10848   case $host_os in
10849     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10850       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10851   esac
10852   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10853 else
10854   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10855 fi
10856 library_names_spec=
10857 libname_spec='lib$name'
10858 soname_spec=
10859 shrext_cmds=".so"
10860 postinstall_cmds=
10861 postuninstall_cmds=
10862 finish_cmds=
10863 finish_eval=
10864 shlibpath_var=
10865 shlibpath_overrides_runpath=unknown
10866 version_type=none
10867 dynamic_linker="$host_os ld.so"
10868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10869 need_lib_prefix=unknown
10870 hardcode_into_libs=no
10871
10872 # when you set need_version to no, make sure it does not cause -set_version
10873 # flags to be left without arguments
10874 need_version=unknown
10875
10876 case $host_os in
10877 aix3*)
10878   version_type=linux # correct to gnu/linux during the next big refactor
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10880   shlibpath_var=LIBPATH
10881
10882   # AIX 3 has no versioning support, so we append a major version to the name.
10883   soname_spec='${libname}${release}${shared_ext}$major'
10884   ;;
10885
10886 aix[4-9]*)
10887   version_type=linux # correct to gnu/linux during the next big refactor
10888   need_lib_prefix=no
10889   need_version=no
10890   hardcode_into_libs=yes
10891   if test "$host_cpu" = ia64; then
10892     # AIX 5 supports IA64
10893     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10894     shlibpath_var=LD_LIBRARY_PATH
10895   else
10896     # With GCC up to 2.95.x, collect2 would create an import file
10897     # for dependence libraries.  The import file would start with
10898     # the line `#! .'.  This would cause the generated library to
10899     # depend on `.', always an invalid library.  This was fixed in
10900     # development snapshots of GCC prior to 3.0.
10901     case $host_os in
10902       aix4 | aix4.[01] | aix4.[01].*)
10903       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10904            echo ' yes '
10905            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10906         :
10907       else
10908         can_build_shared=no
10909       fi
10910       ;;
10911     esac
10912     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10913     # soname into executable. Probably we can add versioning support to
10914     # collect2, so additional links can be useful in future.
10915     if test "$aix_use_runtimelinking" = yes; then
10916       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10917       # instead of lib<name>.a to let people know that these are not
10918       # typical AIX shared libraries.
10919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920     else
10921       # We preserve .a as extension for shared libraries through AIX4.2
10922       # and later when we are not doing run time linking.
10923       library_names_spec='${libname}${release}.a $libname.a'
10924       soname_spec='${libname}${release}${shared_ext}$major'
10925     fi
10926     shlibpath_var=LIBPATH
10927   fi
10928   ;;
10929
10930 amigaos*)
10931   case $host_cpu in
10932   powerpc)
10933     # Since July 2007 AmigaOS4 officially supports .so libraries.
10934     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936     ;;
10937   m68k)
10938     library_names_spec='$libname.ixlibrary $libname.a'
10939     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10940     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'
10941     ;;
10942   esac
10943   ;;
10944
10945 beos*)
10946   library_names_spec='${libname}${shared_ext}'
10947   dynamic_linker="$host_os ld.so"
10948   shlibpath_var=LIBRARY_PATH
10949   ;;
10950
10951 bsdi[45]*)
10952   version_type=linux # correct to gnu/linux during the next big refactor
10953   need_version=no
10954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955   soname_spec='${libname}${release}${shared_ext}$major'
10956   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10957   shlibpath_var=LD_LIBRARY_PATH
10958   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10959   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10960   # the default ld.so.conf also contains /usr/contrib/lib and
10961   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10962   # libtool to hard-code these into programs
10963   ;;
10964
10965 cygwin* | mingw* | pw32* | cegcc*)
10966   version_type=windows
10967   shrext_cmds=".dll"
10968   need_version=no
10969   need_lib_prefix=no
10970
10971   case $GCC,$cc_basename in
10972   yes,*)
10973     # gcc
10974     library_names_spec='$libname.dll.a'
10975     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10976     postinstall_cmds='base_file=`basename \${file}`~
10977       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10978       dldir=$destdir/`dirname \$dlpath`~
10979       test -d \$dldir || mkdir -p \$dldir~
10980       $install_prog $dir/$dlname \$dldir/$dlname~
10981       chmod a+x \$dldir/$dlname~
10982       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10983         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10984       fi'
10985     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10986       dlpath=$dir/\$dldll~
10987        $RM \$dlpath'
10988     shlibpath_overrides_runpath=yes
10989
10990     case $host_os in
10991     cygwin*)
10992       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10993       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10994
10995       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10996       ;;
10997     mingw* | cegcc*)
10998       # MinGW DLLs use traditional 'lib' prefix
10999       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11000       ;;
11001     pw32*)
11002       # pw32 DLLs use 'pw' prefix rather than 'lib'
11003       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11004       ;;
11005     esac
11006     dynamic_linker='Win32 ld.exe'
11007     ;;
11008
11009   *,cl*)
11010     # Native MSVC
11011     libname_spec='$name'
11012     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11013     library_names_spec='${libname}.dll.lib'
11014
11015     case $build_os in
11016     mingw*)
11017       sys_lib_search_path_spec=
11018       lt_save_ifs=$IFS
11019       IFS=';'
11020       for lt_path in $LIB
11021       do
11022         IFS=$lt_save_ifs
11023         # Let DOS variable expansion print the short 8.3 style file name.
11024         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11025         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11026       done
11027       IFS=$lt_save_ifs
11028       # Convert to MSYS style.
11029       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11030       ;;
11031     cygwin*)
11032       # Convert to unix form, then to dos form, then back to unix form
11033       # but this time dos style (no spaces!) so that the unix form looks
11034       # like /cygdrive/c/PROGRA~1:/cygdr...
11035       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11036       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11037       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11038       ;;
11039     *)
11040       sys_lib_search_path_spec="$LIB"
11041       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11042         # It is most probably a Windows format PATH.
11043         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11044       else
11045         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11046       fi
11047       # FIXME: find the short name or the path components, as spaces are
11048       # common. (e.g. "Program Files" -> "PROGRA~1")
11049       ;;
11050     esac
11051
11052     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11053     postinstall_cmds='base_file=`basename \${file}`~
11054       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11055       dldir=$destdir/`dirname \$dlpath`~
11056       test -d \$dldir || mkdir -p \$dldir~
11057       $install_prog $dir/$dlname \$dldir/$dlname'
11058     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11059       dlpath=$dir/\$dldll~
11060        $RM \$dlpath'
11061     shlibpath_overrides_runpath=yes
11062     dynamic_linker='Win32 link.exe'
11063     ;;
11064
11065   *)
11066     # Assume MSVC wrapper
11067     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11068     dynamic_linker='Win32 ld.exe'
11069     ;;
11070   esac
11071   # FIXME: first we should search . and the directory the executable is in
11072   shlibpath_var=PATH
11073   ;;
11074
11075 darwin* | rhapsody*)
11076   dynamic_linker="$host_os dyld"
11077   version_type=darwin
11078   need_lib_prefix=no
11079   need_version=no
11080   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11081   soname_spec='${libname}${release}${major}$shared_ext'
11082   shlibpath_overrides_runpath=yes
11083   shlibpath_var=DYLD_LIBRARY_PATH
11084   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11085
11086   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11087   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11088   ;;
11089
11090 dgux*)
11091   version_type=linux # correct to gnu/linux during the next big refactor
11092   need_lib_prefix=no
11093   need_version=no
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   ;;
11098
11099 freebsd* | dragonfly*)
11100   # DragonFly does not have aout.  When/if they implement a new
11101   # versioning mechanism, adjust this.
11102   if test -x /usr/bin/objformat; then
11103     objformat=`/usr/bin/objformat`
11104   else
11105     case $host_os in
11106     freebsd[23].*) objformat=aout ;;
11107     *) objformat=elf ;;
11108     esac
11109   fi
11110   version_type=freebsd-$objformat
11111   case $version_type in
11112     freebsd-elf*)
11113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11114       need_version=no
11115       need_lib_prefix=no
11116       ;;
11117     freebsd-*)
11118       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11119       need_version=yes
11120       ;;
11121   esac
11122   shlibpath_var=LD_LIBRARY_PATH
11123   case $host_os in
11124   freebsd2.*)
11125     shlibpath_overrides_runpath=yes
11126     ;;
11127   freebsd3.[01]* | freebsdelf3.[01]*)
11128     shlibpath_overrides_runpath=yes
11129     hardcode_into_libs=yes
11130     ;;
11131   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11132   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11133     shlibpath_overrides_runpath=no
11134     hardcode_into_libs=yes
11135     ;;
11136   *) # from 4.6 on, and DragonFly
11137     shlibpath_overrides_runpath=yes
11138     hardcode_into_libs=yes
11139     ;;
11140   esac
11141   ;;
11142
11143 gnu*)
11144   version_type=linux # correct to gnu/linux during the next big refactor
11145   need_lib_prefix=no
11146   need_version=no
11147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11148   soname_spec='${libname}${release}${shared_ext}$major'
11149   shlibpath_var=LD_LIBRARY_PATH
11150   shlibpath_overrides_runpath=no
11151   hardcode_into_libs=yes
11152   ;;
11153
11154 haiku*)
11155   version_type=linux # correct to gnu/linux during the next big refactor
11156   need_lib_prefix=no
11157   need_version=no
11158   dynamic_linker="$host_os runtime_loader"
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160   soname_spec='${libname}${release}${shared_ext}$major'
11161   shlibpath_var=LIBRARY_PATH
11162   shlibpath_overrides_runpath=yes
11163   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11164   hardcode_into_libs=yes
11165   ;;
11166
11167 hpux9* | hpux10* | hpux11*)
11168   # Give a soname corresponding to the major version so that dld.sl refuses to
11169   # link against other versions.
11170   version_type=sunos
11171   need_lib_prefix=no
11172   need_version=no
11173   case $host_cpu in
11174   ia64*)
11175     shrext_cmds='.so'
11176     hardcode_into_libs=yes
11177     dynamic_linker="$host_os dld.so"
11178     shlibpath_var=LD_LIBRARY_PATH
11179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181     soname_spec='${libname}${release}${shared_ext}$major'
11182     if test "X$HPUX_IA64_MODE" = X32; then
11183       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11184     else
11185       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11186     fi
11187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188     ;;
11189   hppa*64*)
11190     shrext_cmds='.sl'
11191     hardcode_into_libs=yes
11192     dynamic_linker="$host_os dld.sl"
11193     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196     soname_spec='${libname}${release}${shared_ext}$major'
11197     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11198     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11199     ;;
11200   *)
11201     shrext_cmds='.sl'
11202     dynamic_linker="$host_os dld.sl"
11203     shlibpath_var=SHLIB_PATH
11204     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206     soname_spec='${libname}${release}${shared_ext}$major'
11207     ;;
11208   esac
11209   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11210   postinstall_cmds='chmod 555 $lib'
11211   # or fails outright, so override atomically:
11212   install_override_mode=555
11213   ;;
11214
11215 interix[3-9]*)
11216   version_type=linux # correct to gnu/linux during the next big refactor
11217   need_lib_prefix=no
11218   need_version=no
11219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11220   soname_spec='${libname}${release}${shared_ext}$major'
11221   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11222   shlibpath_var=LD_LIBRARY_PATH
11223   shlibpath_overrides_runpath=no
11224   hardcode_into_libs=yes
11225   ;;
11226
11227 irix5* | irix6* | nonstopux*)
11228   case $host_os in
11229     nonstopux*) version_type=nonstopux ;;
11230     *)
11231         if test "$lt_cv_prog_gnu_ld" = yes; then
11232                 version_type=linux # correct to gnu/linux during the next big refactor
11233         else
11234                 version_type=irix
11235         fi ;;
11236   esac
11237   need_lib_prefix=no
11238   need_version=no
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11241   case $host_os in
11242   irix5* | nonstopux*)
11243     libsuff= shlibsuff=
11244     ;;
11245   *)
11246     case $LD in # libtool.m4 will add one of these switches to LD
11247     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248       libsuff= shlibsuff= libmagic=32-bit;;
11249     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250       libsuff=32 shlibsuff=N32 libmagic=N32;;
11251     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253     *) libsuff= shlibsuff= libmagic=never-match;;
11254     esac
11255     ;;
11256   esac
11257   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258   shlibpath_overrides_runpath=no
11259   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11260   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11266   dynamic_linker=no
11267   ;;
11268
11269 # This must be glibc/ELF.
11270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11271   version_type=linux # correct to gnu/linux during the next big refactor
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=no
11279
11280   # Some binutils ld are patched to set DT_RUNPATH
11281   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11282   $as_echo_n "(cached) " >&6
11283 else
11284   lt_cv_shlibpath_overrides_runpath=no
11285     save_LDFLAGS=$LDFLAGS
11286     save_libdir=$libdir
11287     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11288          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h.  */
11291
11292 int
11293 main ()
11294 {
11295
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11302   lt_cv_shlibpath_overrides_runpath=yes
11303 fi
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext \
11306     conftest$ac_exeext conftest.$ac_ext
11307     LDFLAGS=$save_LDFLAGS
11308     libdir=$save_libdir
11309
11310 fi
11311
11312   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11313
11314   # This implies no fast_install, which is unacceptable.
11315   # Some rework will be needed to allow for fast_install
11316   # before this can be enabled.
11317   hardcode_into_libs=yes
11318
11319   # Append ld.so.conf contents to the search path
11320   if test -f /etc/ld.so.conf; then
11321     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' ' '`
11322     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11323   fi
11324
11325   # We used to test for /lib/ld.so.1 and disable shared libraries on
11326   # powerpc, because MkLinux only supported shared libraries with the
11327   # GNU dynamic linker.  Since this was broken with cross compilers,
11328   # most powerpc-linux boxes support dynamic linking these days and
11329   # people can always --disable-shared, the test was removed, and we
11330   # assume the GNU/Linux dynamic linker is in use.
11331   dynamic_linker='GNU/Linux ld.so'
11332   ;;
11333
11334 netbsdelf*-gnu)
11335   version_type=linux
11336   need_lib_prefix=no
11337   need_version=no
11338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339   soname_spec='${libname}${release}${shared_ext}$major'
11340   shlibpath_var=LD_LIBRARY_PATH
11341   shlibpath_overrides_runpath=no
11342   hardcode_into_libs=yes
11343   dynamic_linker='NetBSD ld.elf_so'
11344   ;;
11345
11346 netbsd*)
11347   version_type=sunos
11348   need_lib_prefix=no
11349   need_version=no
11350   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353     dynamic_linker='NetBSD (a.out) ld.so'
11354   else
11355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11356     soname_spec='${libname}${release}${shared_ext}$major'
11357     dynamic_linker='NetBSD ld.elf_so'
11358   fi
11359   shlibpath_var=LD_LIBRARY_PATH
11360   shlibpath_overrides_runpath=yes
11361   hardcode_into_libs=yes
11362   ;;
11363
11364 newsos6)
11365   version_type=linux # correct to gnu/linux during the next big refactor
11366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=yes
11369   ;;
11370
11371 *nto* | *qnx*)
11372   version_type=qnx
11373   need_lib_prefix=no
11374   need_version=no
11375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376   soname_spec='${libname}${release}${shared_ext}$major'
11377   shlibpath_var=LD_LIBRARY_PATH
11378   shlibpath_overrides_runpath=no
11379   hardcode_into_libs=yes
11380   dynamic_linker='ldqnx.so'
11381   ;;
11382
11383 openbsd*)
11384   version_type=sunos
11385   sys_lib_dlsearch_path_spec="/usr/lib"
11386   need_lib_prefix=no
11387   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11388   case $host_os in
11389     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11390     *)                          need_version=no  ;;
11391   esac
11392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11396     case $host_os in
11397       openbsd2.[89] | openbsd2.[89].*)
11398         shlibpath_overrides_runpath=no
11399         ;;
11400       *)
11401         shlibpath_overrides_runpath=yes
11402         ;;
11403       esac
11404   else
11405     shlibpath_overrides_runpath=yes
11406   fi
11407   ;;
11408
11409 os2*)
11410   libname_spec='$name'
11411   shrext_cmds=".dll"
11412   need_lib_prefix=no
11413   library_names_spec='$libname${shared_ext} $libname.a'
11414   dynamic_linker='OS/2 ld.exe'
11415   shlibpath_var=LIBPATH
11416   ;;
11417
11418 osf3* | osf4* | osf5*)
11419   version_type=osf
11420   need_lib_prefix=no
11421   need_version=no
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11427   ;;
11428
11429 rdos*)
11430   dynamic_linker=no
11431   ;;
11432
11433 solaris*)
11434   version_type=linux # correct to gnu/linux during the next big refactor
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=yes
11441   hardcode_into_libs=yes
11442   # ldd complains unless libraries are executable
11443   postinstall_cmds='chmod +x $lib'
11444   ;;
11445
11446 sunos4*)
11447   version_type=sunos
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   if test "$with_gnu_ld" = yes; then
11453     need_lib_prefix=no
11454   fi
11455   need_version=yes
11456   ;;
11457
11458 sysv4 | sysv4.3*)
11459   version_type=linux # correct to gnu/linux during the next big refactor
11460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461   soname_spec='${libname}${release}${shared_ext}$major'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   case $host_vendor in
11464     sni)
11465       shlibpath_overrides_runpath=no
11466       need_lib_prefix=no
11467       runpath_var=LD_RUN_PATH
11468       ;;
11469     siemens)
11470       need_lib_prefix=no
11471       ;;
11472     motorola)
11473       need_lib_prefix=no
11474       need_version=no
11475       shlibpath_overrides_runpath=no
11476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11477       ;;
11478   esac
11479   ;;
11480
11481 sysv4*MP*)
11482   if test -d /usr/nec ;then
11483     version_type=linux # correct to gnu/linux during the next big refactor
11484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11485     soname_spec='$libname${shared_ext}.$major'
11486     shlibpath_var=LD_LIBRARY_PATH
11487   fi
11488   ;;
11489
11490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491   version_type=freebsd-elf
11492   need_lib_prefix=no
11493   need_version=no
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11495   soname_spec='${libname}${release}${shared_ext}$major'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   shlibpath_overrides_runpath=yes
11498   hardcode_into_libs=yes
11499   if test "$with_gnu_ld" = yes; then
11500     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11501   else
11502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11503     case $host_os in
11504       sco3.2v5*)
11505         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11506         ;;
11507     esac
11508   fi
11509   sys_lib_dlsearch_path_spec='/usr/lib'
11510   ;;
11511
11512 tpf*)
11513   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=no
11520   hardcode_into_libs=yes
11521   ;;
11522
11523 uts4*)
11524   version_type=linux # correct to gnu/linux during the next big refactor
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526   soname_spec='${libname}${release}${shared_ext}$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   ;;
11529
11530 *)
11531   dynamic_linker=no
11532   ;;
11533 esac
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535 $as_echo "$dynamic_linker" >&6; }
11536 test "$dynamic_linker" = no && can_build_shared=no
11537
11538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 if test "$GCC" = yes; then
11540   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11541 fi
11542
11543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11544   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11545 fi
11546 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11547   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11548 fi
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11643 hardcode_action=
11644 if test -n "$hardcode_libdir_flag_spec" ||
11645    test -n "$runpath_var" ||
11646    test "X$hardcode_automatic" = "Xyes" ; then
11647
11648   # We can hardcode non-existent directories.
11649   if test "$hardcode_direct" != no &&
11650      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11651      # have to relink, otherwise we might link with an installed library
11652      # when we should be linking with a yet-to-be-installed one
11653      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11654      test "$hardcode_minus_L" != no; then
11655     # Linking always hardcodes the temporary library directory.
11656     hardcode_action=relink
11657   else
11658     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11659     hardcode_action=immediate
11660   fi
11661 else
11662   # We cannot hardcode anything, or else we can only hardcode existing
11663   # directories.
11664   hardcode_action=unsupported
11665 fi
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11667 $as_echo "$hardcode_action" >&6; }
11668
11669 if test "$hardcode_action" = relink ||
11670    test "$inherit_rpath" = yes; then
11671   # Fast installation is not supported
11672   enable_fast_install=no
11673 elif test "$shlibpath_overrides_runpath" = yes ||
11674      test "$enable_shared" = no; then
11675   # Fast installation is not necessary
11676   enable_fast_install=needless
11677 fi
11678
11679
11680
11681
11682
11683
11684   if test "x$enable_dlopen" != xyes; then
11685   enable_dlopen=unknown
11686   enable_dlopen_self=unknown
11687   enable_dlopen_self_static=unknown
11688 else
11689   lt_cv_dlopen=no
11690   lt_cv_dlopen_libs=
11691
11692   case $host_os in
11693   beos*)
11694     lt_cv_dlopen="load_add_on"
11695     lt_cv_dlopen_libs=
11696     lt_cv_dlopen_self=yes
11697     ;;
11698
11699   mingw* | pw32* | cegcc*)
11700     lt_cv_dlopen="LoadLibrary"
11701     lt_cv_dlopen_libs=
11702     ;;
11703
11704   cygwin*)
11705     lt_cv_dlopen="dlopen"
11706     lt_cv_dlopen_libs=
11707     ;;
11708
11709   darwin*)
11710   # if libdl is installed we need to link against it
11711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11713 if ${ac_cv_lib_dl_dlopen+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-ldl  $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h.  */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722    Use char because int might match the return type of a GCC
11723    builtin and then its argument prototype would still apply.  */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char dlopen ();
11728 int
11729 main ()
11730 {
11731 return dlopen ();
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737   ac_cv_lib_dl_dlopen=yes
11738 else
11739   ac_cv_lib_dl_dlopen=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742     conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11749 else
11750
11751     lt_cv_dlopen="dyld"
11752     lt_cv_dlopen_libs=
11753     lt_cv_dlopen_self=yes
11754
11755 fi
11756
11757     ;;
11758
11759   *)
11760     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11761 if test "x$ac_cv_func_shl_load" = xyes; then :
11762   lt_cv_dlopen="shl_load"
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11765 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11766 if ${ac_cv_lib_dld_shl_load+:} false; then :
11767   $as_echo_n "(cached) " >&6
11768 else
11769   ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-ldld  $LIBS"
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h.  */
11773
11774 /* Override any GCC internal prototype to avoid an error.
11775    Use char because int might match the return type of a GCC
11776    builtin and then its argument prototype would still apply.  */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char shl_load ();
11781 int
11782 main ()
11783 {
11784 return shl_load ();
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790   ac_cv_lib_dld_shl_load=yes
11791 else
11792   ac_cv_lib_dld_shl_load=no
11793 fi
11794 rm -f core conftest.err conftest.$ac_objext \
11795     conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11799 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11800 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11801   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11802 else
11803   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11804 if test "x$ac_cv_func_dlopen" = xyes; then :
11805   lt_cv_dlopen="dlopen"
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11809 if ${ac_cv_lib_dl_dlopen+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   ac_check_lib_save_LIBS=$LIBS
11813 LIBS="-ldl  $LIBS"
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h.  */
11816
11817 /* Override any GCC internal prototype to avoid an error.
11818    Use char because int might match the return type of a GCC
11819    builtin and then its argument prototype would still apply.  */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 char dlopen ();
11824 int
11825 main ()
11826 {
11827 return dlopen ();
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_c_try_link "$LINENO"; then :
11833   ac_cv_lib_dl_dlopen=yes
11834 else
11835   ac_cv_lib_dl_dlopen=no
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext \
11838     conftest$ac_exeext conftest.$ac_ext
11839 LIBS=$ac_check_lib_save_LIBS
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11844   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11845 else
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11847 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11848 if ${ac_cv_lib_svld_dlopen+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-lsvld  $LIBS"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h.  */
11855
11856 /* Override any GCC internal prototype to avoid an error.
11857    Use char because int might match the return type of a GCC
11858    builtin and then its argument prototype would still apply.  */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 char dlopen ();
11863 int
11864 main ()
11865 {
11866 return dlopen ();
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872   ac_cv_lib_svld_dlopen=yes
11873 else
11874   ac_cv_lib_svld_dlopen=no
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877     conftest$ac_exeext conftest.$ac_ext
11878 LIBS=$ac_check_lib_save_LIBS
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11881 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11882 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11883   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11884 else
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11886 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11887 if ${ac_cv_lib_dld_dld_link+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-ldld  $LIBS"
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h.  */
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896    Use char because int might match the return type of a GCC
11897    builtin and then its argument prototype would still apply.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char dld_link ();
11902 int
11903 main ()
11904 {
11905 return dld_link ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_link "$LINENO"; then :
11911   ac_cv_lib_dld_dld_link=yes
11912 else
11913   ac_cv_lib_dld_dld_link=no
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext \
11916     conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11920 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11921 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11922   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11923 fi
11924
11925
11926 fi
11927
11928
11929 fi
11930
11931
11932 fi
11933
11934
11935 fi
11936
11937
11938 fi
11939
11940     ;;
11941   esac
11942
11943   if test "x$lt_cv_dlopen" != xno; then
11944     enable_dlopen=yes
11945   else
11946     enable_dlopen=no
11947   fi
11948
11949   case $lt_cv_dlopen in
11950   dlopen)
11951     save_CPPFLAGS="$CPPFLAGS"
11952     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11953
11954     save_LDFLAGS="$LDFLAGS"
11955     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11956
11957     save_LIBS="$LIBS"
11958     LIBS="$lt_cv_dlopen_libs $LIBS"
11959
11960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11961 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11962 if ${lt_cv_dlopen_self+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965           if test "$cross_compiling" = yes; then :
11966   lt_cv_dlopen_self=cross
11967 else
11968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11969   lt_status=$lt_dlunknown
11970   cat > conftest.$ac_ext <<_LT_EOF
11971 #line $LINENO "configure"
11972 #include "confdefs.h"
11973
11974 #if HAVE_DLFCN_H
11975 #include <dlfcn.h>
11976 #endif
11977
11978 #include <stdio.h>
11979
11980 #ifdef RTLD_GLOBAL
11981 #  define LT_DLGLOBAL           RTLD_GLOBAL
11982 #else
11983 #  ifdef DL_GLOBAL
11984 #    define LT_DLGLOBAL         DL_GLOBAL
11985 #  else
11986 #    define LT_DLGLOBAL         0
11987 #  endif
11988 #endif
11989
11990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11991    find out it does not work in some platform. */
11992 #ifndef LT_DLLAZY_OR_NOW
11993 #  ifdef RTLD_LAZY
11994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11995 #  else
11996 #    ifdef DL_LAZY
11997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11998 #    else
11999 #      ifdef RTLD_NOW
12000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12001 #      else
12002 #        ifdef DL_NOW
12003 #          define LT_DLLAZY_OR_NOW      DL_NOW
12004 #        else
12005 #          define LT_DLLAZY_OR_NOW      0
12006 #        endif
12007 #      endif
12008 #    endif
12009 #  endif
12010 #endif
12011
12012 /* When -fvisbility=hidden is used, assume the code has been annotated
12013    correspondingly for the symbols needed.  */
12014 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12015 int fnord () __attribute__((visibility("default")));
12016 #endif
12017
12018 int fnord () { return 42; }
12019 int main ()
12020 {
12021   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12022   int status = $lt_dlunknown;
12023
12024   if (self)
12025     {
12026       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12027       else
12028         {
12029           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12030           else puts (dlerror ());
12031         }
12032       /* dlclose (self); */
12033     }
12034   else
12035     puts (dlerror ());
12036
12037   return status;
12038 }
12039 _LT_EOF
12040   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12041   (eval $ac_link) 2>&5
12042   ac_status=$?
12043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12044   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12045     (./conftest; exit; ) >&5 2>/dev/null
12046     lt_status=$?
12047     case x$lt_status in
12048       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12049       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12050       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12051     esac
12052   else :
12053     # compilation failed
12054     lt_cv_dlopen_self=no
12055   fi
12056 fi
12057 rm -fr conftest*
12058
12059
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12062 $as_echo "$lt_cv_dlopen_self" >&6; }
12063
12064     if test "x$lt_cv_dlopen_self" = xyes; then
12065       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12067 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12068 if ${lt_cv_dlopen_self_static+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071           if test "$cross_compiling" = yes; then :
12072   lt_cv_dlopen_self_static=cross
12073 else
12074   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12075   lt_status=$lt_dlunknown
12076   cat > conftest.$ac_ext <<_LT_EOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12079
12080 #if HAVE_DLFCN_H
12081 #include <dlfcn.h>
12082 #endif
12083
12084 #include <stdio.h>
12085
12086 #ifdef RTLD_GLOBAL
12087 #  define LT_DLGLOBAL           RTLD_GLOBAL
12088 #else
12089 #  ifdef DL_GLOBAL
12090 #    define LT_DLGLOBAL         DL_GLOBAL
12091 #  else
12092 #    define LT_DLGLOBAL         0
12093 #  endif
12094 #endif
12095
12096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12097    find out it does not work in some platform. */
12098 #ifndef LT_DLLAZY_OR_NOW
12099 #  ifdef RTLD_LAZY
12100 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12101 #  else
12102 #    ifdef DL_LAZY
12103 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12104 #    else
12105 #      ifdef RTLD_NOW
12106 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12107 #      else
12108 #        ifdef DL_NOW
12109 #          define LT_DLLAZY_OR_NOW      DL_NOW
12110 #        else
12111 #          define LT_DLLAZY_OR_NOW      0
12112 #        endif
12113 #      endif
12114 #    endif
12115 #  endif
12116 #endif
12117
12118 /* When -fvisbility=hidden is used, assume the code has been annotated
12119    correspondingly for the symbols needed.  */
12120 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12121 int fnord () __attribute__((visibility("default")));
12122 #endif
12123
12124 int fnord () { return 42; }
12125 int main ()
12126 {
12127   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12128   int status = $lt_dlunknown;
12129
12130   if (self)
12131     {
12132       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12133       else
12134         {
12135           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12136           else puts (dlerror ());
12137         }
12138       /* dlclose (self); */
12139     }
12140   else
12141     puts (dlerror ());
12142
12143   return status;
12144 }
12145 _LT_EOF
12146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12147   (eval $ac_link) 2>&5
12148   ac_status=$?
12149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12150   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12151     (./conftest; exit; ) >&5 2>/dev/null
12152     lt_status=$?
12153     case x$lt_status in
12154       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12155       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12156       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12157     esac
12158   else :
12159     # compilation failed
12160     lt_cv_dlopen_self_static=no
12161   fi
12162 fi
12163 rm -fr conftest*
12164
12165
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12169     fi
12170
12171     CPPFLAGS="$save_CPPFLAGS"
12172     LDFLAGS="$save_LDFLAGS"
12173     LIBS="$save_LIBS"
12174     ;;
12175   esac
12176
12177   case $lt_cv_dlopen_self in
12178   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12179   *) enable_dlopen_self=unknown ;;
12180   esac
12181
12182   case $lt_cv_dlopen_self_static in
12183   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12184   *) enable_dlopen_self_static=unknown ;;
12185   esac
12186 fi
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204 striplib=
12205 old_striplib=
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12209   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12210   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 $as_echo "yes" >&6; }
12213 else
12214 # FIXME - insert some real tests, host_os isn't really good enough
12215   case $host_os in
12216   darwin*)
12217     if test -n "$STRIP" ; then
12218       striplib="$STRIP -x"
12219       old_striplib="$STRIP -S"
12220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12222     else
12223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225     fi
12226     ;;
12227   *)
12228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230     ;;
12231   esac
12232 fi
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245   # Report which library types will actually be built
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12249 $as_echo "$can_build_shared" >&6; }
12250
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12252 $as_echo_n "checking whether to build shared libraries... " >&6; }
12253   test "$can_build_shared" = "no" && enable_shared=no
12254
12255   # On AIX, shared libraries and static libraries use the same namespace, and
12256   # are all built from PIC.
12257   case $host_os in
12258   aix3*)
12259     test "$enable_shared" = yes && enable_static=no
12260     if test -n "$RANLIB"; then
12261       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12262       postinstall_cmds='$RANLIB $lib'
12263     fi
12264     ;;
12265
12266   aix[4-9]*)
12267     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12268       test "$enable_shared" = yes && enable_static=no
12269     fi
12270     ;;
12271   esac
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12273 $as_echo "$enable_shared" >&6; }
12274
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12276 $as_echo_n "checking whether to build static libraries... " >&6; }
12277   # Make sure either enable_shared or enable_static is yes.
12278   test "$enable_shared" = yes || enable_static=yes
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12280 $as_echo "$enable_static" >&6; }
12281
12282
12283
12284
12285 fi
12286 ac_ext=c
12287 ac_cpp='$CPP $CPPFLAGS'
12288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12291
12292 CC="$lt_save_CC"
12293
12294       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12295     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12296     (test "X$CXX" != "Xg++"))) ; then
12297   ac_ext=cpp
12298 ac_cpp='$CXXCPP $CPPFLAGS'
12299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12303 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12304 if test -z "$CXXCPP"; then
12305   if ${ac_cv_prog_CXXCPP+:} false; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308       # Double quotes because CXXCPP needs to be expanded
12309     for CXXCPP in "$CXX -E" "/lib/cpp"
12310     do
12311       ac_preproc_ok=false
12312 for ac_cxx_preproc_warn_flag in '' yes
12313 do
12314   # Use a header file that comes with gcc, so configuring glibc
12315   # with a fresh cross-compiler works.
12316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317   # <limits.h> exists even on freestanding compilers.
12318   # On the NeXT, cc -E runs the code through the compiler's parser,
12319   # not just through cpp. "Syntax error" is here to catch this case.
12320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h.  */
12322 #ifdef __STDC__
12323 # include <limits.h>
12324 #else
12325 # include <assert.h>
12326 #endif
12327                      Syntax error
12328 _ACEOF
12329 if ac_fn_cxx_try_cpp "$LINENO"; then :
12330
12331 else
12332   # Broken: fails on valid input.
12333 continue
12334 fi
12335 rm -f conftest.err conftest.i conftest.$ac_ext
12336
12337   # OK, works on sane cases.  Now check whether nonexistent headers
12338   # can be detected and how.
12339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h.  */
12341 #include <ac_nonexistent.h>
12342 _ACEOF
12343 if ac_fn_cxx_try_cpp "$LINENO"; then :
12344   # Broken: success on invalid input.
12345 continue
12346 else
12347   # Passes both tests.
12348 ac_preproc_ok=:
12349 break
12350 fi
12351 rm -f conftest.err conftest.i conftest.$ac_ext
12352
12353 done
12354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12355 rm -f conftest.i conftest.err conftest.$ac_ext
12356 if $ac_preproc_ok; then :
12357   break
12358 fi
12359
12360     done
12361     ac_cv_prog_CXXCPP=$CXXCPP
12362
12363 fi
12364   CXXCPP=$ac_cv_prog_CXXCPP
12365 else
12366   ac_cv_prog_CXXCPP=$CXXCPP
12367 fi
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12369 $as_echo "$CXXCPP" >&6; }
12370 ac_preproc_ok=false
12371 for ac_cxx_preproc_warn_flag in '' yes
12372 do
12373   # Use a header file that comes with gcc, so configuring glibc
12374   # with a fresh cross-compiler works.
12375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12376   # <limits.h> exists even on freestanding compilers.
12377   # On the NeXT, cc -E runs the code through the compiler's parser,
12378   # not just through cpp. "Syntax error" is here to catch this case.
12379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h.  */
12381 #ifdef __STDC__
12382 # include <limits.h>
12383 #else
12384 # include <assert.h>
12385 #endif
12386                      Syntax error
12387 _ACEOF
12388 if ac_fn_cxx_try_cpp "$LINENO"; then :
12389
12390 else
12391   # Broken: fails on valid input.
12392 continue
12393 fi
12394 rm -f conftest.err conftest.i conftest.$ac_ext
12395
12396   # OK, works on sane cases.  Now check whether nonexistent headers
12397   # can be detected and how.
12398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h.  */
12400 #include <ac_nonexistent.h>
12401 _ACEOF
12402 if ac_fn_cxx_try_cpp "$LINENO"; then :
12403   # Broken: success on invalid input.
12404 continue
12405 else
12406   # Passes both tests.
12407 ac_preproc_ok=:
12408 break
12409 fi
12410 rm -f conftest.err conftest.i conftest.$ac_ext
12411
12412 done
12413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12414 rm -f conftest.i conftest.err conftest.$ac_ext
12415 if $ac_preproc_ok; then :
12416
12417 else
12418   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12420 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12421 See \`config.log' for more details" "$LINENO" 5; }
12422 fi
12423
12424 ac_ext=c
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
12430 else
12431   _lt_caught_CXX_error=yes
12432 fi
12433
12434 ac_ext=cpp
12435 ac_cpp='$CXXCPP $CPPFLAGS'
12436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12439
12440 archive_cmds_need_lc_CXX=no
12441 allow_undefined_flag_CXX=
12442 always_export_symbols_CXX=no
12443 archive_expsym_cmds_CXX=
12444 compiler_needs_object_CXX=no
12445 export_dynamic_flag_spec_CXX=
12446 hardcode_direct_CXX=no
12447 hardcode_direct_absolute_CXX=no
12448 hardcode_libdir_flag_spec_CXX=
12449 hardcode_libdir_separator_CXX=
12450 hardcode_minus_L_CXX=no
12451 hardcode_shlibpath_var_CXX=unsupported
12452 hardcode_automatic_CXX=no
12453 inherit_rpath_CXX=no
12454 module_cmds_CXX=
12455 module_expsym_cmds_CXX=
12456 link_all_deplibs_CXX=unknown
12457 old_archive_cmds_CXX=$old_archive_cmds
12458 reload_flag_CXX=$reload_flag
12459 reload_cmds_CXX=$reload_cmds
12460 no_undefined_flag_CXX=
12461 whole_archive_flag_spec_CXX=
12462 enable_shared_with_static_runtimes_CXX=no
12463
12464 # Source file extension for C++ test sources.
12465 ac_ext=cpp
12466
12467 # Object file extension for compiled C++ test sources.
12468 objext=o
12469 objext_CXX=$objext
12470
12471 # No sense in running all these tests if we already determined that
12472 # the CXX compiler isn't working.  Some variables (like enable_shared)
12473 # are currently assumed to apply to all compilers on this platform,
12474 # and will be corrupted by setting them based on a non-working compiler.
12475 if test "$_lt_caught_CXX_error" != yes; then
12476   # Code to be used in simple compile tests
12477   lt_simple_compile_test_code="int some_variable = 0;"
12478
12479   # Code to be used in simple link tests
12480   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12481
12482   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12483
12484
12485
12486
12487
12488
12489 # If no C compiler was specified, use CC.
12490 LTCC=${LTCC-"$CC"}
12491
12492 # If no C compiler flags were specified, use CFLAGS.
12493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12494
12495 # Allow CC to be a program name with arguments.
12496 compiler=$CC
12497
12498
12499   # save warnings/boilerplate of simple test code
12500   ac_outfile=conftest.$ac_objext
12501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12503 _lt_compiler_boilerplate=`cat conftest.err`
12504 $RM conftest*
12505
12506   ac_outfile=conftest.$ac_objext
12507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12509 _lt_linker_boilerplate=`cat conftest.err`
12510 $RM -r conftest*
12511
12512
12513   # Allow CC to be a program name with arguments.
12514   lt_save_CC=$CC
12515   lt_save_CFLAGS=$CFLAGS
12516   lt_save_LD=$LD
12517   lt_save_GCC=$GCC
12518   GCC=$GXX
12519   lt_save_with_gnu_ld=$with_gnu_ld
12520   lt_save_path_LD=$lt_cv_path_LD
12521   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12522     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12523   else
12524     $as_unset lt_cv_prog_gnu_ld
12525   fi
12526   if test -n "${lt_cv_path_LDCXX+set}"; then
12527     lt_cv_path_LD=$lt_cv_path_LDCXX
12528   else
12529     $as_unset lt_cv_path_LD
12530   fi
12531   test -z "${LDCXX+set}" || LD=$LDCXX
12532   CC=${CXX-"c++"}
12533   CFLAGS=$CXXFLAGS
12534   compiler=$CC
12535   compiler_CXX=$CC
12536   for cc_temp in $compiler""; do
12537   case $cc_temp in
12538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12540     \-*) ;;
12541     *) break;;
12542   esac
12543 done
12544 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12545
12546
12547   if test -n "$compiler"; then
12548     # We don't want -fno-exception when compiling C++ code, so set the
12549     # no_builtin_flag separately
12550     if test "$GXX" = yes; then
12551       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12552     else
12553       lt_prog_compiler_no_builtin_flag_CXX=
12554     fi
12555
12556     if test "$GXX" = yes; then
12557       # Set up default GNU C++ configuration
12558
12559
12560
12561 # Check whether --with-gnu-ld was given.
12562 if test "${with_gnu_ld+set}" = set; then :
12563   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12564 else
12565   with_gnu_ld=no
12566 fi
12567
12568 ac_prog=ld
12569 if test "$GCC" = yes; then
12570   # Check if gcc -print-prog-name=ld gives a path.
12571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12572 $as_echo_n "checking for ld used by $CC... " >&6; }
12573   case $host in
12574   *-*-mingw*)
12575     # gcc leaves a trailing carriage return which upsets mingw
12576     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12577   *)
12578     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12579   esac
12580   case $ac_prog in
12581     # Accept absolute paths.
12582     [\\/]* | ?:[\\/]*)
12583       re_direlt='/[^/][^/]*/\.\./'
12584       # Canonicalize the pathname of ld
12585       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12586       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12587         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12588       done
12589       test -z "$LD" && LD="$ac_prog"
12590       ;;
12591   "")
12592     # If it fails, then pretend we aren't using GCC.
12593     ac_prog=ld
12594     ;;
12595   *)
12596     # If it is relative, then search for the first ld in PATH.
12597     with_gnu_ld=unknown
12598     ;;
12599   esac
12600 elif test "$with_gnu_ld" = yes; then
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12602 $as_echo_n "checking for GNU ld... " >&6; }
12603 else
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12605 $as_echo_n "checking for non-GNU ld... " >&6; }
12606 fi
12607 if ${lt_cv_path_LD+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   if test -z "$LD"; then
12611   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12612   for ac_dir in $PATH; do
12613     IFS="$lt_save_ifs"
12614     test -z "$ac_dir" && ac_dir=.
12615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12616       lt_cv_path_LD="$ac_dir/$ac_prog"
12617       # Check to see if the program is GNU ld.  I'd rather use --version,
12618       # but apparently some variants of GNU ld only accept -v.
12619       # Break only if it was the GNU/non-GNU ld that we prefer.
12620       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12621       *GNU* | *'with BFD'*)
12622         test "$with_gnu_ld" != no && break
12623         ;;
12624       *)
12625         test "$with_gnu_ld" != yes && break
12626         ;;
12627       esac
12628     fi
12629   done
12630   IFS="$lt_save_ifs"
12631 else
12632   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12633 fi
12634 fi
12635
12636 LD="$lt_cv_path_LD"
12637 if test -n "$LD"; then
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12639 $as_echo "$LD" >&6; }
12640 else
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12643 fi
12644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12647 if ${lt_cv_prog_gnu_ld+:} false; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12651 case `$LD -v 2>&1 </dev/null` in
12652 *GNU* | *'with BFD'*)
12653   lt_cv_prog_gnu_ld=yes
12654   ;;
12655 *)
12656   lt_cv_prog_gnu_ld=no
12657   ;;
12658 esac
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12662 with_gnu_ld=$lt_cv_prog_gnu_ld
12663
12664
12665
12666
12667
12668
12669
12670       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12671       # archiving commands below assume that GNU ld is being used.
12672       if test "$with_gnu_ld" = yes; then
12673         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12675
12676         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12677         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12678
12679         # If archive_cmds runs LD, not CC, wlarc should be empty
12680         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12681         #     investigate it a little bit more. (MM)
12682         wlarc='${wl}'
12683
12684         # ancient GNU ld didn't support --whole-archive et. al.
12685         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12686           $GREP 'no-whole-archive' > /dev/null; then
12687           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12688         else
12689           whole_archive_flag_spec_CXX=
12690         fi
12691       else
12692         with_gnu_ld=no
12693         wlarc=
12694
12695         # A generic and very simple default shared library creation
12696         # command for GNU C++ for the case where it uses the native
12697         # linker, instead of GNU ld.  If possible, this setting should
12698         # overridden to take advantage of the native linker features on
12699         # the platform it is being used on.
12700         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12701       fi
12702
12703       # Commands to make compiler produce verbose output that lists
12704       # what "hidden" libraries, object files and flags are used when
12705       # linking a shared library.
12706       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12707
12708     else
12709       GXX=no
12710       with_gnu_ld=no
12711       wlarc=
12712     fi
12713
12714     # PORTME: fill in a description of your system's C++ link characteristics
12715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12717     ld_shlibs_CXX=yes
12718     case $host_os in
12719       aix3*)
12720         # FIXME: insert proper C++ library support
12721         ld_shlibs_CXX=no
12722         ;;
12723       aix[4-9]*)
12724         if test "$host_cpu" = ia64; then
12725           # On IA64, the linker does run time linking by default, so we don't
12726           # have to do anything special.
12727           aix_use_runtimelinking=no
12728           exp_sym_flag='-Bexport'
12729           no_entry_flag=""
12730         else
12731           aix_use_runtimelinking=no
12732
12733           # Test if we are trying to use run time linking or normal
12734           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12735           # need to do runtime linking.
12736           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12737             for ld_flag in $LDFLAGS; do
12738               case $ld_flag in
12739               *-brtl*)
12740                 aix_use_runtimelinking=yes
12741                 break
12742                 ;;
12743               esac
12744             done
12745             ;;
12746           esac
12747
12748           exp_sym_flag='-bexport'
12749           no_entry_flag='-bnoentry'
12750         fi
12751
12752         # When large executables or shared objects are built, AIX ld can
12753         # have problems creating the table of contents.  If linking a library
12754         # or program results in "error TOC overflow" add -mminimal-toc to
12755         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12756         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12757
12758         archive_cmds_CXX=''
12759         hardcode_direct_CXX=yes
12760         hardcode_direct_absolute_CXX=yes
12761         hardcode_libdir_separator_CXX=':'
12762         link_all_deplibs_CXX=yes
12763         file_list_spec_CXX='${wl}-f,'
12764
12765         if test "$GXX" = yes; then
12766           case $host_os in aix4.[012]|aix4.[012].*)
12767           # We only want to do this on AIX 4.2 and lower, the check
12768           # below for broken collect2 doesn't work under 4.3+
12769           collect2name=`${CC} -print-prog-name=collect2`
12770           if test -f "$collect2name" &&
12771              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12772           then
12773             # We have reworked collect2
12774             :
12775           else
12776             # We have old collect2
12777             hardcode_direct_CXX=unsupported
12778             # It fails to find uninstalled libraries when the uninstalled
12779             # path is not listed in the libpath.  Setting hardcode_minus_L
12780             # to unsupported forces relinking
12781             hardcode_minus_L_CXX=yes
12782             hardcode_libdir_flag_spec_CXX='-L$libdir'
12783             hardcode_libdir_separator_CXX=
12784           fi
12785           esac
12786           shared_flag='-shared'
12787           if test "$aix_use_runtimelinking" = yes; then
12788             shared_flag="$shared_flag "'${wl}-G'
12789           fi
12790         else
12791           # not using gcc
12792           if test "$host_cpu" = ia64; then
12793           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12794           # chokes on -Wl,-G. The following line is correct:
12795           shared_flag='-G'
12796           else
12797             if test "$aix_use_runtimelinking" = yes; then
12798               shared_flag='${wl}-G'
12799             else
12800               shared_flag='${wl}-bM:SRE'
12801             fi
12802           fi
12803         fi
12804
12805         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12806         # It seems that -bexpall does not export symbols beginning with
12807         # underscore (_), so it is better to generate a list of symbols to
12808         # export.
12809         always_export_symbols_CXX=yes
12810         if test "$aix_use_runtimelinking" = yes; then
12811           # Warning - without using the other runtime loading flags (-brtl),
12812           # -berok will link without error, but may produce a broken library.
12813           allow_undefined_flag_CXX='-berok'
12814           # Determine the default libpath from the value encoded in an empty
12815           # executable.
12816           if test "${lt_cv_aix_libpath+set}" = set; then
12817   aix_libpath=$lt_cv_aix_libpath
12818 else
12819   if ${lt_cv_aix_libpath__CXX+:} false; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824
12825 int
12826 main ()
12827 {
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_cxx_try_link "$LINENO"; then :
12834
12835   lt_aix_libpath_sed='
12836       /Import File Strings/,/^$/ {
12837           /^0/ {
12838               s/^0  *\([^ ]*\) *$/\1/
12839               p
12840           }
12841       }'
12842   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843   # Check for a 64-bit object if we didn't find anything.
12844   if test -z "$lt_cv_aix_libpath__CXX"; then
12845     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12846   fi
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext \
12849     conftest$ac_exeext conftest.$ac_ext
12850   if test -z "$lt_cv_aix_libpath__CXX"; then
12851     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12852   fi
12853
12854 fi
12855
12856   aix_libpath=$lt_cv_aix_libpath__CXX
12857 fi
12858
12859           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12860
12861           archive_expsym_cmds_CXX='$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"
12862         else
12863           if test "$host_cpu" = ia64; then
12864             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12865             allow_undefined_flag_CXX="-z nodefs"
12866             archive_expsym_cmds_CXX="\$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"
12867           else
12868             # Determine the default libpath from the value encoded in an
12869             # empty executable.
12870             if test "${lt_cv_aix_libpath+set}" = set; then
12871   aix_libpath=$lt_cv_aix_libpath
12872 else
12873   if ${lt_cv_aix_libpath__CXX+:} false; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_cxx_try_link "$LINENO"; then :
12888
12889   lt_aix_libpath_sed='
12890       /Import File Strings/,/^$/ {
12891           /^0/ {
12892               s/^0  *\([^ ]*\) *$/\1/
12893               p
12894           }
12895       }'
12896   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12897   # Check for a 64-bit object if we didn't find anything.
12898   if test -z "$lt_cv_aix_libpath__CXX"; then
12899     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12900   fi
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext \
12903     conftest$ac_exeext conftest.$ac_ext
12904   if test -z "$lt_cv_aix_libpath__CXX"; then
12905     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12906   fi
12907
12908 fi
12909
12910   aix_libpath=$lt_cv_aix_libpath__CXX
12911 fi
12912
12913             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12914             # Warning - without using the other run time loading flags,
12915             # -berok will link without error, but may produce a broken library.
12916             no_undefined_flag_CXX=' ${wl}-bernotok'
12917             allow_undefined_flag_CXX=' ${wl}-berok'
12918             if test "$with_gnu_ld" = yes; then
12919               # We only use this code for GNU lds that support --whole-archive.
12920               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12921             else
12922               # Exported symbols can be pulled into shared objects from archives
12923               whole_archive_flag_spec_CXX='$convenience'
12924             fi
12925             archive_cmds_need_lc_CXX=yes
12926             # This is similar to how AIX traditionally builds its shared
12927             # libraries.
12928             archive_expsym_cmds_CXX="\$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'
12929           fi
12930         fi
12931         ;;
12932
12933       beos*)
12934         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12935           allow_undefined_flag_CXX=unsupported
12936           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12937           # support --undefined.  This deserves some investigation.  FIXME
12938           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12939         else
12940           ld_shlibs_CXX=no
12941         fi
12942         ;;
12943
12944       chorus*)
12945         case $cc_basename in
12946           *)
12947           # FIXME: insert proper C++ library support
12948           ld_shlibs_CXX=no
12949           ;;
12950         esac
12951         ;;
12952
12953       cygwin* | mingw* | pw32* | cegcc*)
12954         case $GXX,$cc_basename in
12955         ,cl* | no,cl*)
12956           # Native MSVC
12957           # hardcode_libdir_flag_spec is actually meaningless, as there is
12958           # no search path for DLLs.
12959           hardcode_libdir_flag_spec_CXX=' '
12960           allow_undefined_flag_CXX=unsupported
12961           always_export_symbols_CXX=yes
12962           file_list_spec_CXX='@'
12963           # Tell ltmain to make .lib files, not .a files.
12964           libext=lib
12965           # Tell ltmain to make .dll files, not .so files.
12966           shrext_cmds=".dll"
12967           # FIXME: Setting linknames here is a bad hack.
12968           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12969           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12971             else
12972               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12973             fi~
12974             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12975             linknames='
12976           # The linker will not automatically build a static lib if we build a DLL.
12977           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12978           enable_shared_with_static_runtimes_CXX=yes
12979           # Don't use ranlib
12980           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12981           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12982             lt_tool_outputfile="@TOOL_OUTPUT@"~
12983             case $lt_outputfile in
12984               *.exe|*.EXE) ;;
12985               *)
12986                 lt_outputfile="$lt_outputfile.exe"
12987                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12988                 ;;
12989             esac~
12990             func_to_tool_file "$lt_outputfile"~
12991             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12992               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12993               $RM "$lt_outputfile.manifest";
12994             fi'
12995           ;;
12996         *)
12997           # g++
12998           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12999           # as there is no search path for DLLs.
13000           hardcode_libdir_flag_spec_CXX='-L$libdir'
13001           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13002           allow_undefined_flag_CXX=unsupported
13003           always_export_symbols_CXX=no
13004           enable_shared_with_static_runtimes_CXX=yes
13005
13006           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13007             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13008             # If the export-symbols file already is a .def file (1st line
13009             # is EXPORTS), use it as is; otherwise, prepend...
13010             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13011               cp $export_symbols $output_objdir/$soname.def;
13012             else
13013               echo EXPORTS > $output_objdir/$soname.def;
13014               cat $export_symbols >> $output_objdir/$soname.def;
13015             fi~
13016             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13017           else
13018             ld_shlibs_CXX=no
13019           fi
13020           ;;
13021         esac
13022         ;;
13023       darwin* | rhapsody*)
13024
13025
13026   archive_cmds_need_lc_CXX=no
13027   hardcode_direct_CXX=no
13028   hardcode_automatic_CXX=yes
13029   hardcode_shlibpath_var_CXX=unsupported
13030   if test "$lt_cv_ld_force_load" = "yes"; then
13031     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13032
13033   else
13034     whole_archive_flag_spec_CXX=''
13035   fi
13036   link_all_deplibs_CXX=yes
13037   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13038   case $cc_basename in
13039      ifort*) _lt_dar_can_shared=yes ;;
13040      *) _lt_dar_can_shared=$GCC ;;
13041   esac
13042   if test "$_lt_dar_can_shared" = "yes"; then
13043     output_verbose_link_cmd=func_echo_all
13044     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13045     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13046     archive_expsym_cmds_CXX="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}"
13047     module_expsym_cmds_CXX="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}"
13048        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13049       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13050       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13051     fi
13052
13053   else
13054   ld_shlibs_CXX=no
13055   fi
13056
13057         ;;
13058
13059       dgux*)
13060         case $cc_basename in
13061           ec++*)
13062             # FIXME: insert proper C++ library support
13063             ld_shlibs_CXX=no
13064             ;;
13065           ghcx*)
13066             # Green Hills C++ Compiler
13067             # FIXME: insert proper C++ library support
13068             ld_shlibs_CXX=no
13069             ;;
13070           *)
13071             # FIXME: insert proper C++ library support
13072             ld_shlibs_CXX=no
13073             ;;
13074         esac
13075         ;;
13076
13077       freebsd2.*)
13078         # C++ shared libraries reported to be fairly broken before
13079         # switch to ELF
13080         ld_shlibs_CXX=no
13081         ;;
13082
13083       freebsd-elf*)
13084         archive_cmds_need_lc_CXX=no
13085         ;;
13086
13087       freebsd* | dragonfly*)
13088         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13089         # conventions
13090         ld_shlibs_CXX=yes
13091         ;;
13092
13093       gnu*)
13094         ;;
13095
13096       haiku*)
13097         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098         link_all_deplibs_CXX=yes
13099         ;;
13100
13101       hpux9*)
13102         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13103         hardcode_libdir_separator_CXX=:
13104         export_dynamic_flag_spec_CXX='${wl}-E'
13105         hardcode_direct_CXX=yes
13106         hardcode_minus_L_CXX=yes # Not in the search PATH,
13107                                              # but as the default
13108                                              # location of the library.
13109
13110         case $cc_basename in
13111           CC*)
13112             # FIXME: insert proper C++ library support
13113             ld_shlibs_CXX=no
13114             ;;
13115           aCC*)
13116             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13117             # Commands to make compiler produce verbose output that lists
13118             # what "hidden" libraries, object files and flags are used when
13119             # linking a shared library.
13120             #
13121             # There doesn't appear to be a way to prevent this compiler from
13122             # explicitly linking system object files so we need to strip them
13123             # from the output so that they don't get included in the library
13124             # dependencies.
13125             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13126             ;;
13127           *)
13128             if test "$GXX" = yes; then
13129               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13130             else
13131               # FIXME: insert proper C++ library support
13132               ld_shlibs_CXX=no
13133             fi
13134             ;;
13135         esac
13136         ;;
13137
13138       hpux10*|hpux11*)
13139         if test $with_gnu_ld = no; then
13140           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13141           hardcode_libdir_separator_CXX=:
13142
13143           case $host_cpu in
13144             hppa*64*|ia64*)
13145               ;;
13146             *)
13147               export_dynamic_flag_spec_CXX='${wl}-E'
13148               ;;
13149           esac
13150         fi
13151         case $host_cpu in
13152           hppa*64*|ia64*)
13153             hardcode_direct_CXX=no
13154             hardcode_shlibpath_var_CXX=no
13155             ;;
13156           *)
13157             hardcode_direct_CXX=yes
13158             hardcode_direct_absolute_CXX=yes
13159             hardcode_minus_L_CXX=yes # Not in the search PATH,
13160                                                  # but as the default
13161                                                  # location of the library.
13162             ;;
13163         esac
13164
13165         case $cc_basename in
13166           CC*)
13167             # FIXME: insert proper C++ library support
13168             ld_shlibs_CXX=no
13169             ;;
13170           aCC*)
13171             case $host_cpu in
13172               hppa*64*)
13173                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13174                 ;;
13175               ia64*)
13176                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177                 ;;
13178               *)
13179                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180                 ;;
13181             esac
13182             # Commands to make compiler produce verbose output that lists
13183             # what "hidden" libraries, object files and flags are used when
13184             # linking a shared library.
13185             #
13186             # There doesn't appear to be a way to prevent this compiler from
13187             # explicitly linking system object files so we need to strip them
13188             # from the output so that they don't get included in the library
13189             # dependencies.
13190             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13191             ;;
13192           *)
13193             if test "$GXX" = yes; then
13194               if test $with_gnu_ld = no; then
13195                 case $host_cpu in
13196                   hppa*64*)
13197                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198                     ;;
13199                   ia64*)
13200                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201                     ;;
13202                   *)
13203                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13204                     ;;
13205                 esac
13206               fi
13207             else
13208               # FIXME: insert proper C++ library support
13209               ld_shlibs_CXX=no
13210             fi
13211             ;;
13212         esac
13213         ;;
13214
13215       interix[3-9]*)
13216         hardcode_direct_CXX=no
13217         hardcode_shlibpath_var_CXX=no
13218         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13219         export_dynamic_flag_spec_CXX='${wl}-E'
13220         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13221         # Instead, shared libraries are loaded at an image base (0x10000000 by
13222         # default) and relocated if they conflict, which is a slow very memory
13223         # consuming and fragmenting process.  To avoid this, we pick a random,
13224         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13225         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13226         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13227         archive_expsym_cmds_CXX='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'
13228         ;;
13229       irix5* | irix6*)
13230         case $cc_basename in
13231           CC*)
13232             # SGI C++
13233             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13234
13235             # Archives containing C++ object files must be created using
13236             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13237             # necessary to make sure instantiated templates are included
13238             # in the archive.
13239             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13240             ;;
13241           *)
13242             if test "$GXX" = yes; then
13243               if test "$with_gnu_ld" = no; then
13244                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13245               else
13246                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13247               fi
13248             fi
13249             link_all_deplibs_CXX=yes
13250             ;;
13251         esac
13252         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13253         hardcode_libdir_separator_CXX=:
13254         inherit_rpath_CXX=yes
13255         ;;
13256
13257       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13258         case $cc_basename in
13259           KCC*)
13260             # Kuck and Associates, Inc. (KAI) C++ Compiler
13261
13262             # KCC will only create a shared library if the output file
13263             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13264             # to its proper name (with version) after linking.
13265             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13266             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13267             # Commands to make compiler produce verbose output that lists
13268             # what "hidden" libraries, object files and flags are used when
13269             # linking a shared library.
13270             #
13271             # There doesn't appear to be a way to prevent this compiler from
13272             # explicitly linking system object files so we need to strip them
13273             # from the output so that they don't get included in the library
13274             # dependencies.
13275             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13276
13277             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13278             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13279
13280             # Archives containing C++ object files must be created using
13281             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13282             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13283             ;;
13284           icpc* | ecpc* )
13285             # Intel C++
13286             with_gnu_ld=yes
13287             # version 8.0 and above of icpc choke on multiply defined symbols
13288             # if we add $predep_objects and $postdep_objects, however 7.1 and
13289             # earlier do not add the objects themselves.
13290             case `$CC -V 2>&1` in
13291               *"Version 7."*)
13292                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294                 ;;
13295               *)  # Version 8.0 or newer
13296                 tmp_idyn=
13297                 case $host_cpu in
13298                   ia64*) tmp_idyn=' -i_dynamic';;
13299                 esac
13300                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302                 ;;
13303             esac
13304             archive_cmds_need_lc_CXX=no
13305             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13307             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13308             ;;
13309           pgCC* | pgcpp*)
13310             # Portland Group C++ compiler
13311             case `$CC -V` in
13312             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13313               prelink_cmds_CXX='tpldir=Template.dir~
13314                 rm -rf $tpldir~
13315                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13316                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13317               old_archive_cmds_CXX='tpldir=Template.dir~
13318                 rm -rf $tpldir~
13319                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13320                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13321                 $RANLIB $oldlib'
13322               archive_cmds_CXX='tpldir=Template.dir~
13323                 rm -rf $tpldir~
13324                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13325                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13326               archive_expsym_cmds_CXX='tpldir=Template.dir~
13327                 rm -rf $tpldir~
13328                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13329                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13330               ;;
13331             *) # Version 6 and above use weak symbols
13332               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13333               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13334               ;;
13335             esac
13336
13337             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13338             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13339             whole_archive_flag_spec_CXX='${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'
13340             ;;
13341           cxx*)
13342             # Compaq C++
13343             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13344             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13345
13346             runpath_var=LD_RUN_PATH
13347             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13348             hardcode_libdir_separator_CXX=:
13349
13350             # Commands to make compiler produce verbose output that lists
13351             # what "hidden" libraries, object files and flags are used when
13352             # linking a shared library.
13353             #
13354             # There doesn't appear to be a way to prevent this compiler from
13355             # explicitly linking system object files so we need to strip them
13356             # from the output so that they don't get included in the library
13357             # dependencies.
13358             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13359             ;;
13360           xl* | mpixl* | bgxl*)
13361             # IBM XL 8.0 on PPC, with GNU ld
13362             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13363             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13364             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365             if test "x$supports_anon_versioning" = xyes; then
13366               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13367                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13368                 echo "local: *; };" >> $output_objdir/$libname.ver~
13369                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13370             fi
13371             ;;
13372           *)
13373             case `$CC -V 2>&1 | sed 5q` in
13374             *Sun\ C*)
13375               # Sun C++ 5.9
13376               no_undefined_flag_CXX=' -zdefs'
13377               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13379               hardcode_libdir_flag_spec_CXX='-R$libdir'
13380               whole_archive_flag_spec_CXX='${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'
13381               compiler_needs_object_CXX=yes
13382
13383               # Not sure whether something based on
13384               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13385               # would be better.
13386               output_verbose_link_cmd='func_echo_all'
13387
13388               # Archives containing C++ object files must be created using
13389               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13390               # necessary to make sure instantiated templates are included
13391               # in the archive.
13392               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13393               ;;
13394             esac
13395             ;;
13396         esac
13397         ;;
13398
13399       lynxos*)
13400         # FIXME: insert proper C++ library support
13401         ld_shlibs_CXX=no
13402         ;;
13403
13404       m88k*)
13405         # FIXME: insert proper C++ library support
13406         ld_shlibs_CXX=no
13407         ;;
13408
13409       mvs*)
13410         case $cc_basename in
13411           cxx*)
13412             # FIXME: insert proper C++ library support
13413             ld_shlibs_CXX=no
13414             ;;
13415           *)
13416             # FIXME: insert proper C++ library support
13417             ld_shlibs_CXX=no
13418             ;;
13419         esac
13420         ;;
13421
13422       netbsd*)
13423         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13424           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13425           wlarc=
13426           hardcode_libdir_flag_spec_CXX='-R$libdir'
13427           hardcode_direct_CXX=yes
13428           hardcode_shlibpath_var_CXX=no
13429         fi
13430         # Workaround some broken pre-1.5 toolchains
13431         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13432         ;;
13433
13434       *nto* | *qnx*)
13435         ld_shlibs_CXX=yes
13436         ;;
13437
13438       openbsd2*)
13439         # C++ shared libraries are fairly broken
13440         ld_shlibs_CXX=no
13441         ;;
13442
13443       openbsd*)
13444         if test -f /usr/libexec/ld.so; then
13445           hardcode_direct_CXX=yes
13446           hardcode_shlibpath_var_CXX=no
13447           hardcode_direct_absolute_CXX=yes
13448           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13449           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13451             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13452             export_dynamic_flag_spec_CXX='${wl}-E'
13453             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13454           fi
13455           output_verbose_link_cmd=func_echo_all
13456         else
13457           ld_shlibs_CXX=no
13458         fi
13459         ;;
13460
13461       osf3* | osf4* | osf5*)
13462         case $cc_basename in
13463           KCC*)
13464             # Kuck and Associates, Inc. (KAI) C++ Compiler
13465
13466             # KCC will only create a shared library if the output file
13467             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13468             # to its proper name (with version) after linking.
13469             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13470
13471             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472             hardcode_libdir_separator_CXX=:
13473
13474             # Archives containing C++ object files must be created using
13475             # the KAI C++ compiler.
13476             case $host in
13477               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13478               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13479             esac
13480             ;;
13481           RCC*)
13482             # Rational C++ 2.4.1
13483             # FIXME: insert proper C++ library support
13484             ld_shlibs_CXX=no
13485             ;;
13486           cxx*)
13487             case $host in
13488               osf3*)
13489                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13490                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13491                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13492                 ;;
13493               *)
13494                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13495                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13496                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13497                   echo "-hidden">> $lib.exp~
13498                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13499                   $RM $lib.exp'
13500                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13501                 ;;
13502             esac
13503
13504             hardcode_libdir_separator_CXX=:
13505
13506             # Commands to make compiler produce verbose output that lists
13507             # what "hidden" libraries, object files and flags are used when
13508             # linking a shared library.
13509             #
13510             # There doesn't appear to be a way to prevent this compiler from
13511             # explicitly linking system object files so we need to strip them
13512             # from the output so that they don't get included in the library
13513             # dependencies.
13514             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13515             ;;
13516           *)
13517             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13518               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13519               case $host in
13520                 osf3*)
13521                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13522                   ;;
13523                 *)
13524                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13525                   ;;
13526               esac
13527
13528               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13529               hardcode_libdir_separator_CXX=:
13530
13531               # Commands to make compiler produce verbose output that lists
13532               # what "hidden" libraries, object files and flags are used when
13533               # linking a shared library.
13534               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13535
13536             else
13537               # FIXME: insert proper C++ library support
13538               ld_shlibs_CXX=no
13539             fi
13540             ;;
13541         esac
13542         ;;
13543
13544       psos*)
13545         # FIXME: insert proper C++ library support
13546         ld_shlibs_CXX=no
13547         ;;
13548
13549       sunos4*)
13550         case $cc_basename in
13551           CC*)
13552             # Sun C++ 4.x
13553             # FIXME: insert proper C++ library support
13554             ld_shlibs_CXX=no
13555             ;;
13556           lcc*)
13557             # Lucid
13558             # FIXME: insert proper C++ library support
13559             ld_shlibs_CXX=no
13560             ;;
13561           *)
13562             # FIXME: insert proper C++ library support
13563             ld_shlibs_CXX=no
13564             ;;
13565         esac
13566         ;;
13567
13568       solaris*)
13569         case $cc_basename in
13570           CC* | sunCC*)
13571             # Sun C++ 4.2, 5.x and Centerline C++
13572             archive_cmds_need_lc_CXX=yes
13573             no_undefined_flag_CXX=' -zdefs'
13574             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13575             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13576               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13577
13578             hardcode_libdir_flag_spec_CXX='-R$libdir'
13579             hardcode_shlibpath_var_CXX=no
13580             case $host_os in
13581               solaris2.[0-5] | solaris2.[0-5].*) ;;
13582               *)
13583                 # The compiler driver will combine and reorder linker options,
13584                 # but understands `-z linker_flag'.
13585                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13586                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13587                 ;;
13588             esac
13589             link_all_deplibs_CXX=yes
13590
13591             output_verbose_link_cmd='func_echo_all'
13592
13593             # Archives containing C++ object files must be created using
13594             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13595             # necessary to make sure instantiated templates are included
13596             # in the archive.
13597             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13598             ;;
13599           gcx*)
13600             # Green Hills C++ Compiler
13601             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602
13603             # The C++ compiler must be used to create the archive.
13604             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13605             ;;
13606           *)
13607             # GNU C++ compiler with Solaris linker
13608             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13609               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13610               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13611                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13612                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13613                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13614
13615                 # Commands to make compiler produce verbose output that lists
13616                 # what "hidden" libraries, object files and flags are used when
13617                 # linking a shared library.
13618                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13619               else
13620                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13621                 # platform.
13622                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13623                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13624                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13625
13626                 # Commands to make compiler produce verbose output that lists
13627                 # what "hidden" libraries, object files and flags are used when
13628                 # linking a shared library.
13629                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13630               fi
13631
13632               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13633               case $host_os in
13634                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13635                 *)
13636                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13637                   ;;
13638               esac
13639             fi
13640             ;;
13641         esac
13642         ;;
13643
13644     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13645       no_undefined_flag_CXX='${wl}-z,text'
13646       archive_cmds_need_lc_CXX=no
13647       hardcode_shlibpath_var_CXX=no
13648       runpath_var='LD_RUN_PATH'
13649
13650       case $cc_basename in
13651         CC*)
13652           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654           ;;
13655         *)
13656           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658           ;;
13659       esac
13660       ;;
13661
13662       sysv5* | sco3.2v5* | sco5v6*)
13663         # Note: We can NOT use -z defs as we might desire, because we do not
13664         # link with -lc, and that would cause any symbols used from libc to
13665         # always be unresolved, which means just about no library would
13666         # ever link correctly.  If we're not using GNU ld we use -z text
13667         # though, which does catch some bad symbols but isn't as heavy-handed
13668         # as -z defs.
13669         no_undefined_flag_CXX='${wl}-z,text'
13670         allow_undefined_flag_CXX='${wl}-z,nodefs'
13671         archive_cmds_need_lc_CXX=no
13672         hardcode_shlibpath_var_CXX=no
13673         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13674         hardcode_libdir_separator_CXX=':'
13675         link_all_deplibs_CXX=yes
13676         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13677         runpath_var='LD_RUN_PATH'
13678
13679         case $cc_basename in
13680           CC*)
13681             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13684               '"$old_archive_cmds_CXX"
13685             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13686               '"$reload_cmds_CXX"
13687             ;;
13688           *)
13689             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13690             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13691             ;;
13692         esac
13693       ;;
13694
13695       tandem*)
13696         case $cc_basename in
13697           NCC*)
13698             # NonStop-UX NCC 3.20
13699             # FIXME: insert proper C++ library support
13700             ld_shlibs_CXX=no
13701             ;;
13702           *)
13703             # FIXME: insert proper C++ library support
13704             ld_shlibs_CXX=no
13705             ;;
13706         esac
13707         ;;
13708
13709       vxworks*)
13710         # FIXME: insert proper C++ library support
13711         ld_shlibs_CXX=no
13712         ;;
13713
13714       *)
13715         # FIXME: insert proper C++ library support
13716         ld_shlibs_CXX=no
13717         ;;
13718     esac
13719
13720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13721 $as_echo "$ld_shlibs_CXX" >&6; }
13722     test "$ld_shlibs_CXX" = no && can_build_shared=no
13723
13724     GCC_CXX="$GXX"
13725     LD_CXX="$LD"
13726
13727     ## CAVEAT EMPTOR:
13728     ## There is no encapsulation within the following macros, do not change
13729     ## the running order or otherwise move them around unless you know exactly
13730     ## what you are doing...
13731     # Dependencies to place before and after the object being linked:
13732 predep_objects_CXX=
13733 postdep_objects_CXX=
13734 predeps_CXX=
13735 postdeps_CXX=
13736 compiler_lib_search_path_CXX=
13737
13738 cat > conftest.$ac_ext <<_LT_EOF
13739 class Foo
13740 {
13741 public:
13742   Foo (void) { a = 0; }
13743 private:
13744   int a;
13745 };
13746 _LT_EOF
13747
13748
13749 _lt_libdeps_save_CFLAGS=$CFLAGS
13750 case "$CC $CFLAGS " in #(
13751 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13752 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13753 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13754 esac
13755
13756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13757   (eval $ac_compile) 2>&5
13758   ac_status=$?
13759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13760   test $ac_status = 0; }; then
13761   # Parse the compiler output and extract the necessary
13762   # objects, libraries and library flags.
13763
13764   # Sentinel used to keep track of whether or not we are before
13765   # the conftest object file.
13766   pre_test_object_deps_done=no
13767
13768   for p in `eval "$output_verbose_link_cmd"`; do
13769     case ${prev}${p} in
13770
13771     -L* | -R* | -l*)
13772        # Some compilers place space between "-{L,R}" and the path.
13773        # Remove the space.
13774        if test $p = "-L" ||
13775           test $p = "-R"; then
13776          prev=$p
13777          continue
13778        fi
13779
13780        # Expand the sysroot to ease extracting the directories later.
13781        if test -z "$prev"; then
13782          case $p in
13783          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13784          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13785          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13786          esac
13787        fi
13788        case $p in
13789        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13790        esac
13791        if test "$pre_test_object_deps_done" = no; then
13792          case ${prev} in
13793          -L | -R)
13794            # Internal compiler library paths should come after those
13795            # provided the user.  The postdeps already come after the
13796            # user supplied libs so there is no need to process them.
13797            if test -z "$compiler_lib_search_path_CXX"; then
13798              compiler_lib_search_path_CXX="${prev}${p}"
13799            else
13800              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13801            fi
13802            ;;
13803          # The "-l" case would never come before the object being
13804          # linked, so don't bother handling this case.
13805          esac
13806        else
13807          if test -z "$postdeps_CXX"; then
13808            postdeps_CXX="${prev}${p}"
13809          else
13810            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13811          fi
13812        fi
13813        prev=
13814        ;;
13815
13816     *.lto.$objext) ;; # Ignore GCC LTO objects
13817     *.$objext)
13818        # This assumes that the test object file only shows up
13819        # once in the compiler output.
13820        if test "$p" = "conftest.$objext"; then
13821          pre_test_object_deps_done=yes
13822          continue
13823        fi
13824
13825        if test "$pre_test_object_deps_done" = no; then
13826          if test -z "$predep_objects_CXX"; then
13827            predep_objects_CXX="$p"
13828          else
13829            predep_objects_CXX="$predep_objects_CXX $p"
13830          fi
13831        else
13832          if test -z "$postdep_objects_CXX"; then
13833            postdep_objects_CXX="$p"
13834          else
13835            postdep_objects_CXX="$postdep_objects_CXX $p"
13836          fi
13837        fi
13838        ;;
13839
13840     *) ;; # Ignore the rest.
13841
13842     esac
13843   done
13844
13845   # Clean up.
13846   rm -f a.out a.exe
13847 else
13848   echo "libtool.m4: error: problem compiling CXX test program"
13849 fi
13850
13851 $RM -f confest.$objext
13852 CFLAGS=$_lt_libdeps_save_CFLAGS
13853
13854 # PORTME: override above test on systems where it is broken
13855 case $host_os in
13856 interix[3-9]*)
13857   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13858   # hack all around it, let's just trust "g++" to DTRT.
13859   predep_objects_CXX=
13860   postdep_objects_CXX=
13861   postdeps_CXX=
13862   ;;
13863
13864 linux*)
13865   case `$CC -V 2>&1 | sed 5q` in
13866   *Sun\ C*)
13867     # Sun C++ 5.9
13868
13869     # The more standards-conforming stlport4 library is
13870     # incompatible with the Cstd library. Avoid specifying
13871     # it if it's in CXXFLAGS. Ignore libCrun as
13872     # -library=stlport4 depends on it.
13873     case " $CXX $CXXFLAGS " in
13874     *" -library=stlport4 "*)
13875       solaris_use_stlport4=yes
13876       ;;
13877     esac
13878
13879     if test "$solaris_use_stlport4" != yes; then
13880       postdeps_CXX='-library=Cstd -library=Crun'
13881     fi
13882     ;;
13883   esac
13884   ;;
13885
13886 solaris*)
13887   case $cc_basename in
13888   CC* | sunCC*)
13889     # The more standards-conforming stlport4 library is
13890     # incompatible with the Cstd library. Avoid specifying
13891     # it if it's in CXXFLAGS. Ignore libCrun as
13892     # -library=stlport4 depends on it.
13893     case " $CXX $CXXFLAGS " in
13894     *" -library=stlport4 "*)
13895       solaris_use_stlport4=yes
13896       ;;
13897     esac
13898
13899     # Adding this requires a known-good setup of shared libraries for
13900     # Sun compiler versions before 5.6, else PIC objects from an old
13901     # archive will be linked into the output, leading to subtle bugs.
13902     if test "$solaris_use_stlport4" != yes; then
13903       postdeps_CXX='-library=Cstd -library=Crun'
13904     fi
13905     ;;
13906   esac
13907   ;;
13908 esac
13909
13910
13911 case " $postdeps_CXX " in
13912 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13913 esac
13914  compiler_lib_search_dirs_CXX=
13915 if test -n "${compiler_lib_search_path_CXX}"; then
13916  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13917 fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949     lt_prog_compiler_wl_CXX=
13950 lt_prog_compiler_pic_CXX=
13951 lt_prog_compiler_static_CXX=
13952
13953
13954   # C++ specific cases for pic, static, wl, etc.
13955   if test "$GXX" = yes; then
13956     lt_prog_compiler_wl_CXX='-Wl,'
13957     lt_prog_compiler_static_CXX='-static'
13958
13959     case $host_os in
13960     aix*)
13961       # All AIX code is PIC.
13962       if test "$host_cpu" = ia64; then
13963         # AIX 5 now supports IA64 processor
13964         lt_prog_compiler_static_CXX='-Bstatic'
13965       fi
13966       ;;
13967
13968     amigaos*)
13969       case $host_cpu in
13970       powerpc)
13971             # see comment about AmigaOS4 .so support
13972             lt_prog_compiler_pic_CXX='-fPIC'
13973         ;;
13974       m68k)
13975             # FIXME: we need at least 68020 code to build shared libraries, but
13976             # adding the `-m68020' flag to GCC prevents building anything better,
13977             # like `-m68040'.
13978             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13979         ;;
13980       esac
13981       ;;
13982
13983     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13984       # PIC is the default for these OSes.
13985       ;;
13986     mingw* | cygwin* | os2* | pw32* | cegcc*)
13987       # This hack is so that the source file can tell whether it is being
13988       # built for inclusion in a dll (and should export symbols for example).
13989       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13990       # (--disable-auto-import) libraries
13991       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13992       ;;
13993     darwin* | rhapsody*)
13994       # PIC is the default on this platform
13995       # Common symbols not allowed in MH_DYLIB files
13996       lt_prog_compiler_pic_CXX='-fno-common'
13997       ;;
13998     *djgpp*)
13999       # DJGPP does not support shared libraries at all
14000       lt_prog_compiler_pic_CXX=
14001       ;;
14002     haiku*)
14003       # PIC is the default for Haiku.
14004       # The "-static" flag exists, but is broken.
14005       lt_prog_compiler_static_CXX=
14006       ;;
14007     interix[3-9]*)
14008       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14009       # Instead, we relocate shared libraries at runtime.
14010       ;;
14011     sysv4*MP*)
14012       if test -d /usr/nec; then
14013         lt_prog_compiler_pic_CXX=-Kconform_pic
14014       fi
14015       ;;
14016     hpux*)
14017       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14018       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14019       # sets the default TLS model and affects inlining.
14020       case $host_cpu in
14021       hppa*64*)
14022         ;;
14023       *)
14024         lt_prog_compiler_pic_CXX='-fPIC'
14025         ;;
14026       esac
14027       ;;
14028     *qnx* | *nto*)
14029       # QNX uses GNU C++, but need to define -shared option too, otherwise
14030       # it will coredump.
14031       lt_prog_compiler_pic_CXX='-fPIC -shared'
14032       ;;
14033     *)
14034       lt_prog_compiler_pic_CXX='-fPIC'
14035       ;;
14036     esac
14037   else
14038     case $host_os in
14039       aix[4-9]*)
14040         # All AIX code is PIC.
14041         if test "$host_cpu" = ia64; then
14042           # AIX 5 now supports IA64 processor
14043           lt_prog_compiler_static_CXX='-Bstatic'
14044         else
14045           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14046         fi
14047         ;;
14048       chorus*)
14049         case $cc_basename in
14050         cxch68*)
14051           # Green Hills C++ Compiler
14052           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14053           ;;
14054         esac
14055         ;;
14056       mingw* | cygwin* | os2* | pw32* | cegcc*)
14057         # This hack is so that the source file can tell whether it is being
14058         # built for inclusion in a dll (and should export symbols for example).
14059         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14060         ;;
14061       dgux*)
14062         case $cc_basename in
14063           ec++*)
14064             lt_prog_compiler_pic_CXX='-KPIC'
14065             ;;
14066           ghcx*)
14067             # Green Hills C++ Compiler
14068             lt_prog_compiler_pic_CXX='-pic'
14069             ;;
14070           *)
14071             ;;
14072         esac
14073         ;;
14074       freebsd* | dragonfly*)
14075         # FreeBSD uses GNU C++
14076         ;;
14077       hpux9* | hpux10* | hpux11*)
14078         case $cc_basename in
14079           CC*)
14080             lt_prog_compiler_wl_CXX='-Wl,'
14081             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14082             if test "$host_cpu" != ia64; then
14083               lt_prog_compiler_pic_CXX='+Z'
14084             fi
14085             ;;
14086           aCC*)
14087             lt_prog_compiler_wl_CXX='-Wl,'
14088             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14089             case $host_cpu in
14090             hppa*64*|ia64*)
14091               # +Z the default
14092               ;;
14093             *)
14094               lt_prog_compiler_pic_CXX='+Z'
14095               ;;
14096             esac
14097             ;;
14098           *)
14099             ;;
14100         esac
14101         ;;
14102       interix*)
14103         # This is c89, which is MS Visual C++ (no shared libs)
14104         # Anyone wants to do a port?
14105         ;;
14106       irix5* | irix6* | nonstopux*)
14107         case $cc_basename in
14108           CC*)
14109             lt_prog_compiler_wl_CXX='-Wl,'
14110             lt_prog_compiler_static_CXX='-non_shared'
14111             # CC pic flag -KPIC is the default.
14112             ;;
14113           *)
14114             ;;
14115         esac
14116         ;;
14117       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14118         case $cc_basename in
14119           KCC*)
14120             # KAI C++ Compiler
14121             lt_prog_compiler_wl_CXX='--backend -Wl,'
14122             lt_prog_compiler_pic_CXX='-fPIC'
14123             ;;
14124           ecpc* )
14125             # old Intel C++ for x86_64 which still supported -KPIC.
14126             lt_prog_compiler_wl_CXX='-Wl,'
14127             lt_prog_compiler_pic_CXX='-KPIC'
14128             lt_prog_compiler_static_CXX='-static'
14129             ;;
14130           icpc* )
14131             # Intel C++, used to be incompatible with GCC.
14132             # ICC 10 doesn't accept -KPIC any more.
14133             lt_prog_compiler_wl_CXX='-Wl,'
14134             lt_prog_compiler_pic_CXX='-fPIC'
14135             lt_prog_compiler_static_CXX='-static'
14136             ;;
14137           pgCC* | pgcpp*)
14138             # Portland Group C++ compiler
14139             lt_prog_compiler_wl_CXX='-Wl,'
14140             lt_prog_compiler_pic_CXX='-fpic'
14141             lt_prog_compiler_static_CXX='-Bstatic'
14142             ;;
14143           cxx*)
14144             # Compaq C++
14145             # Make sure the PIC flag is empty.  It appears that all Alpha
14146             # Linux and Compaq Tru64 Unix objects are PIC.
14147             lt_prog_compiler_pic_CXX=
14148             lt_prog_compiler_static_CXX='-non_shared'
14149             ;;
14150           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14151             # IBM XL 8.0, 9.0 on PPC and BlueGene
14152             lt_prog_compiler_wl_CXX='-Wl,'
14153             lt_prog_compiler_pic_CXX='-qpic'
14154             lt_prog_compiler_static_CXX='-qstaticlink'
14155             ;;
14156           *)
14157             case `$CC -V 2>&1 | sed 5q` in
14158             *Sun\ C*)
14159               # Sun C++ 5.9
14160               lt_prog_compiler_pic_CXX='-KPIC'
14161               lt_prog_compiler_static_CXX='-Bstatic'
14162               lt_prog_compiler_wl_CXX='-Qoption ld '
14163               ;;
14164             esac
14165             ;;
14166         esac
14167         ;;
14168       lynxos*)
14169         ;;
14170       m88k*)
14171         ;;
14172       mvs*)
14173         case $cc_basename in
14174           cxx*)
14175             lt_prog_compiler_pic_CXX='-W c,exportall'
14176             ;;
14177           *)
14178             ;;
14179         esac
14180         ;;
14181       netbsd* | netbsdelf*-gnu)
14182         ;;
14183       *qnx* | *nto*)
14184         # QNX uses GNU C++, but need to define -shared option too, otherwise
14185         # it will coredump.
14186         lt_prog_compiler_pic_CXX='-fPIC -shared'
14187         ;;
14188       osf3* | osf4* | osf5*)
14189         case $cc_basename in
14190           KCC*)
14191             lt_prog_compiler_wl_CXX='--backend -Wl,'
14192             ;;
14193           RCC*)
14194             # Rational C++ 2.4.1
14195             lt_prog_compiler_pic_CXX='-pic'
14196             ;;
14197           cxx*)
14198             # Digital/Compaq C++
14199             lt_prog_compiler_wl_CXX='-Wl,'
14200             # Make sure the PIC flag is empty.  It appears that all Alpha
14201             # Linux and Compaq Tru64 Unix objects are PIC.
14202             lt_prog_compiler_pic_CXX=
14203             lt_prog_compiler_static_CXX='-non_shared'
14204             ;;
14205           *)
14206             ;;
14207         esac
14208         ;;
14209       psos*)
14210         ;;
14211       solaris*)
14212         case $cc_basename in
14213           CC* | sunCC*)
14214             # Sun C++ 4.2, 5.x and Centerline C++
14215             lt_prog_compiler_pic_CXX='-KPIC'
14216             lt_prog_compiler_static_CXX='-Bstatic'
14217             lt_prog_compiler_wl_CXX='-Qoption ld '
14218             ;;
14219           gcx*)
14220             # Green Hills C++ Compiler
14221             lt_prog_compiler_pic_CXX='-PIC'
14222             ;;
14223           *)
14224             ;;
14225         esac
14226         ;;
14227       sunos4*)
14228         case $cc_basename in
14229           CC*)
14230             # Sun C++ 4.x
14231             lt_prog_compiler_pic_CXX='-pic'
14232             lt_prog_compiler_static_CXX='-Bstatic'
14233             ;;
14234           lcc*)
14235             # Lucid
14236             lt_prog_compiler_pic_CXX='-pic'
14237             ;;
14238           *)
14239             ;;
14240         esac
14241         ;;
14242       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14243         case $cc_basename in
14244           CC*)
14245             lt_prog_compiler_wl_CXX='-Wl,'
14246             lt_prog_compiler_pic_CXX='-KPIC'
14247             lt_prog_compiler_static_CXX='-Bstatic'
14248             ;;
14249         esac
14250         ;;
14251       tandem*)
14252         case $cc_basename in
14253           NCC*)
14254             # NonStop-UX NCC 3.20
14255             lt_prog_compiler_pic_CXX='-KPIC'
14256             ;;
14257           *)
14258             ;;
14259         esac
14260         ;;
14261       vxworks*)
14262         ;;
14263       *)
14264         lt_prog_compiler_can_build_shared_CXX=no
14265         ;;
14266     esac
14267   fi
14268
14269 case $host_os in
14270   # For platforms which do not support PIC, -DPIC is meaningless:
14271   *djgpp*)
14272     lt_prog_compiler_pic_CXX=
14273     ;;
14274   *)
14275     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14276     ;;
14277 esac
14278
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14281 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14282   $as_echo_n "(cached) " >&6
14283 else
14284   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14287 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14288 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14289
14290 #
14291 # Check to make sure the PIC flag actually works.
14292 #
14293 if test -n "$lt_prog_compiler_pic_CXX"; then
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14296 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14297   $as_echo_n "(cached) " >&6
14298 else
14299   lt_cv_prog_compiler_pic_works_CXX=no
14300    ac_outfile=conftest.$ac_objext
14301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14302    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14303    # Insert the option either (1) after the last *FLAGS variable, or
14304    # (2) before a word containing "conftest.", or (3) at the end.
14305    # Note that $ac_compile itself does not contain backslashes and begins
14306    # with a dollar sign (not a hyphen), so the echo should work correctly.
14307    # The option is referenced via a variable to avoid confusing sed.
14308    lt_compile=`echo "$ac_compile" | $SED \
14309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14311    -e 's:$: $lt_compiler_flag:'`
14312    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14313    (eval "$lt_compile" 2>conftest.err)
14314    ac_status=$?
14315    cat conftest.err >&5
14316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317    if (exit $ac_status) && test -s "$ac_outfile"; then
14318      # The compiler can only warn and ignore the option if not recognized
14319      # So say no if there are warnings other than the usual output.
14320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14321      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14322      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14323        lt_cv_prog_compiler_pic_works_CXX=yes
14324      fi
14325    fi
14326    $RM conftest*
14327
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14330 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14331
14332 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14333     case $lt_prog_compiler_pic_CXX in
14334      "" | " "*) ;;
14335      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14336      esac
14337 else
14338     lt_prog_compiler_pic_CXX=
14339      lt_prog_compiler_can_build_shared_CXX=no
14340 fi
14341
14342 fi
14343
14344
14345
14346
14347
14348 #
14349 # Check to make sure the static flag actually works.
14350 #
14351 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14353 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14354 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14355   $as_echo_n "(cached) " >&6
14356 else
14357   lt_cv_prog_compiler_static_works_CXX=no
14358    save_LDFLAGS="$LDFLAGS"
14359    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14360    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14361    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14362      # The linker can only warn and ignore the option if not recognized
14363      # So say no if there are warnings
14364      if test -s conftest.err; then
14365        # Append any errors to the config.log.
14366        cat conftest.err 1>&5
14367        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14368        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14369        if diff conftest.exp conftest.er2 >/dev/null; then
14370          lt_cv_prog_compiler_static_works_CXX=yes
14371        fi
14372      else
14373        lt_cv_prog_compiler_static_works_CXX=yes
14374      fi
14375    fi
14376    $RM -r conftest*
14377    LDFLAGS="$save_LDFLAGS"
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14382
14383 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14384     :
14385 else
14386     lt_prog_compiler_static_CXX=
14387 fi
14388
14389
14390
14391
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14394 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14395   $as_echo_n "(cached) " >&6
14396 else
14397   lt_cv_prog_compiler_c_o_CXX=no
14398    $RM -r conftest 2>/dev/null
14399    mkdir conftest
14400    cd conftest
14401    mkdir out
14402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403
14404    lt_compiler_flag="-o out/conftest2.$ac_objext"
14405    # Insert the option either (1) after the last *FLAGS variable, or
14406    # (2) before a word containing "conftest.", or (3) at the end.
14407    # Note that $ac_compile itself does not contain backslashes and begins
14408    # with a dollar sign (not a hyphen), so the echo should work correctly.
14409    lt_compile=`echo "$ac_compile" | $SED \
14410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412    -e 's:$: $lt_compiler_flag:'`
14413    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14414    (eval "$lt_compile" 2>out/conftest.err)
14415    ac_status=$?
14416    cat out/conftest.err >&5
14417    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14419    then
14420      # The compiler can only warn and ignore the option if not recognized
14421      # So say no if there are warnings
14422      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14423      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14424      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14425        lt_cv_prog_compiler_c_o_CXX=yes
14426      fi
14427    fi
14428    chmod u+w . 2>&5
14429    $RM conftest*
14430    # SGI C++ compiler will create directory out/ii_files/ for
14431    # template instantiation
14432    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14433    $RM out/* && rmdir out
14434    cd ..
14435    $RM -r conftest
14436    $RM conftest*
14437
14438 fi
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14440 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14441
14442
14443
14444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14445 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14446 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14447   $as_echo_n "(cached) " >&6
14448 else
14449   lt_cv_prog_compiler_c_o_CXX=no
14450    $RM -r conftest 2>/dev/null
14451    mkdir conftest
14452    cd conftest
14453    mkdir out
14454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14455
14456    lt_compiler_flag="-o out/conftest2.$ac_objext"
14457    # Insert the option either (1) after the last *FLAGS variable, or
14458    # (2) before a word containing "conftest.", or (3) at the end.
14459    # Note that $ac_compile itself does not contain backslashes and begins
14460    # with a dollar sign (not a hyphen), so the echo should work correctly.
14461    lt_compile=`echo "$ac_compile" | $SED \
14462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464    -e 's:$: $lt_compiler_flag:'`
14465    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14466    (eval "$lt_compile" 2>out/conftest.err)
14467    ac_status=$?
14468    cat out/conftest.err >&5
14469    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14471    then
14472      # The compiler can only warn and ignore the option if not recognized
14473      # So say no if there are warnings
14474      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14475      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14476      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14477        lt_cv_prog_compiler_c_o_CXX=yes
14478      fi
14479    fi
14480    chmod u+w . 2>&5
14481    $RM conftest*
14482    # SGI C++ compiler will create directory out/ii_files/ for
14483    # template instantiation
14484    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14485    $RM out/* && rmdir out
14486    cd ..
14487    $RM -r conftest
14488    $RM conftest*
14489
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14492 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14493
14494
14495
14496
14497 hard_links="nottested"
14498 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14499   # do not overwrite the value of need_locks provided by the user
14500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14501 $as_echo_n "checking if we can lock with hard links... " >&6; }
14502   hard_links=yes
14503   $RM conftest*
14504   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14505   touch conftest.a
14506   ln conftest.a conftest.b 2>&5 || hard_links=no
14507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14509 $as_echo "$hard_links" >&6; }
14510   if test "$hard_links" = no; then
14511     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14512 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14513     need_locks=warn
14514   fi
14515 else
14516   need_locks=no
14517 fi
14518
14519
14520
14521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14523
14524   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14525   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14526   case $host_os in
14527   aix[4-9]*)
14528     # If we're using GNU nm, then we don't want the "-C" option.
14529     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14530     # Also, AIX nm treats weak defined symbols like other global defined
14531     # symbols, whereas GNU nm marks them as "W".
14532     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14533       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14534     else
14535       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14536     fi
14537     ;;
14538   pw32*)
14539     export_symbols_cmds_CXX="$ltdll_cmds"
14540     ;;
14541   cygwin* | mingw* | cegcc*)
14542     case $cc_basename in
14543     cl*)
14544       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14545       ;;
14546     *)
14547       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14548       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14549       ;;
14550     esac
14551     ;;
14552   linux* | k*bsd*-gnu | gnu*)
14553     link_all_deplibs_CXX=no
14554     ;;
14555   *)
14556     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14557     ;;
14558   esac
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14561 $as_echo "$ld_shlibs_CXX" >&6; }
14562 test "$ld_shlibs_CXX" = no && can_build_shared=no
14563
14564 with_gnu_ld_CXX=$with_gnu_ld
14565
14566
14567
14568
14569
14570
14571 #
14572 # Do we need to explicitly link libc?
14573 #
14574 case "x$archive_cmds_need_lc_CXX" in
14575 x|xyes)
14576   # Assume -lc should be added
14577   archive_cmds_need_lc_CXX=yes
14578
14579   if test "$enable_shared" = yes && test "$GCC" = yes; then
14580     case $archive_cmds_CXX in
14581     *'~'*)
14582       # FIXME: we may have to deal with multi-command sequences.
14583       ;;
14584     '$CC '*)
14585       # Test whether the compiler implicitly links with -lc since on some
14586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14587       # to ld, don't add -lc before -lgcc.
14588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14589 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14590 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14591   $as_echo_n "(cached) " >&6
14592 else
14593   $RM conftest*
14594         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595
14596         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14597   (eval $ac_compile) 2>&5
14598   ac_status=$?
14599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600   test $ac_status = 0; } 2>conftest.err; then
14601           soname=conftest
14602           lib=conftest
14603           libobjs=conftest.$ac_objext
14604           deplibs=
14605           wl=$lt_prog_compiler_wl_CXX
14606           pic_flag=$lt_prog_compiler_pic_CXX
14607           compiler_flags=-v
14608           linker_flags=-v
14609           verstring=
14610           output_objdir=.
14611           libname=conftest
14612           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14613           allow_undefined_flag_CXX=
14614           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14615   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14616   ac_status=$?
14617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618   test $ac_status = 0; }
14619           then
14620             lt_cv_archive_cmds_need_lc_CXX=no
14621           else
14622             lt_cv_archive_cmds_need_lc_CXX=yes
14623           fi
14624           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14625         else
14626           cat conftest.err 1>&5
14627         fi
14628         $RM conftest*
14629
14630 fi
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14632 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14633       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14634       ;;
14635     esac
14636   fi
14637   ;;
14638 esac
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14702 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14703
14704 library_names_spec=
14705 libname_spec='lib$name'
14706 soname_spec=
14707 shrext_cmds=".so"
14708 postinstall_cmds=
14709 postuninstall_cmds=
14710 finish_cmds=
14711 finish_eval=
14712 shlibpath_var=
14713 shlibpath_overrides_runpath=unknown
14714 version_type=none
14715 dynamic_linker="$host_os ld.so"
14716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14717 need_lib_prefix=unknown
14718 hardcode_into_libs=no
14719
14720 # when you set need_version to no, make sure it does not cause -set_version
14721 # flags to be left without arguments
14722 need_version=unknown
14723
14724 case $host_os in
14725 aix3*)
14726   version_type=linux # correct to gnu/linux during the next big refactor
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14728   shlibpath_var=LIBPATH
14729
14730   # AIX 3 has no versioning support, so we append a major version to the name.
14731   soname_spec='${libname}${release}${shared_ext}$major'
14732   ;;
14733
14734 aix[4-9]*)
14735   version_type=linux # correct to gnu/linux during the next big refactor
14736   need_lib_prefix=no
14737   need_version=no
14738   hardcode_into_libs=yes
14739   if test "$host_cpu" = ia64; then
14740     # AIX 5 supports IA64
14741     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14742     shlibpath_var=LD_LIBRARY_PATH
14743   else
14744     # With GCC up to 2.95.x, collect2 would create an import file
14745     # for dependence libraries.  The import file would start with
14746     # the line `#! .'.  This would cause the generated library to
14747     # depend on `.', always an invalid library.  This was fixed in
14748     # development snapshots of GCC prior to 3.0.
14749     case $host_os in
14750       aix4 | aix4.[01] | aix4.[01].*)
14751       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14752            echo ' yes '
14753            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14754         :
14755       else
14756         can_build_shared=no
14757       fi
14758       ;;
14759     esac
14760     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14761     # soname into executable. Probably we can add versioning support to
14762     # collect2, so additional links can be useful in future.
14763     if test "$aix_use_runtimelinking" = yes; then
14764       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14765       # instead of lib<name>.a to let people know that these are not
14766       # typical AIX shared libraries.
14767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768     else
14769       # We preserve .a as extension for shared libraries through AIX4.2
14770       # and later when we are not doing run time linking.
14771       library_names_spec='${libname}${release}.a $libname.a'
14772       soname_spec='${libname}${release}${shared_ext}$major'
14773     fi
14774     shlibpath_var=LIBPATH
14775   fi
14776   ;;
14777
14778 amigaos*)
14779   case $host_cpu in
14780   powerpc)
14781     # Since July 2007 AmigaOS4 officially supports .so libraries.
14782     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784     ;;
14785   m68k)
14786     library_names_spec='$libname.ixlibrary $libname.a'
14787     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14788     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'
14789     ;;
14790   esac
14791   ;;
14792
14793 beos*)
14794   library_names_spec='${libname}${shared_ext}'
14795   dynamic_linker="$host_os ld.so"
14796   shlibpath_var=LIBRARY_PATH
14797   ;;
14798
14799 bsdi[45]*)
14800   version_type=linux # correct to gnu/linux during the next big refactor
14801   need_version=no
14802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803   soname_spec='${libname}${release}${shared_ext}$major'
14804   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14807   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14808   # the default ld.so.conf also contains /usr/contrib/lib and
14809   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14810   # libtool to hard-code these into programs
14811   ;;
14812
14813 cygwin* | mingw* | pw32* | cegcc*)
14814   version_type=windows
14815   shrext_cmds=".dll"
14816   need_version=no
14817   need_lib_prefix=no
14818
14819   case $GCC,$cc_basename in
14820   yes,*)
14821     # gcc
14822     library_names_spec='$libname.dll.a'
14823     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14824     postinstall_cmds='base_file=`basename \${file}`~
14825       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14826       dldir=$destdir/`dirname \$dlpath`~
14827       test -d \$dldir || mkdir -p \$dldir~
14828       $install_prog $dir/$dlname \$dldir/$dlname~
14829       chmod a+x \$dldir/$dlname~
14830       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14831         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14832       fi'
14833     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14834       dlpath=$dir/\$dldll~
14835        $RM \$dlpath'
14836     shlibpath_overrides_runpath=yes
14837
14838     case $host_os in
14839     cygwin*)
14840       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14841       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14842
14843       ;;
14844     mingw* | cegcc*)
14845       # MinGW DLLs use traditional 'lib' prefix
14846       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14847       ;;
14848     pw32*)
14849       # pw32 DLLs use 'pw' prefix rather than 'lib'
14850       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14851       ;;
14852     esac
14853     dynamic_linker='Win32 ld.exe'
14854     ;;
14855
14856   *,cl*)
14857     # Native MSVC
14858     libname_spec='$name'
14859     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14860     library_names_spec='${libname}.dll.lib'
14861
14862     case $build_os in
14863     mingw*)
14864       sys_lib_search_path_spec=
14865       lt_save_ifs=$IFS
14866       IFS=';'
14867       for lt_path in $LIB
14868       do
14869         IFS=$lt_save_ifs
14870         # Let DOS variable expansion print the short 8.3 style file name.
14871         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14872         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14873       done
14874       IFS=$lt_save_ifs
14875       # Convert to MSYS style.
14876       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14877       ;;
14878     cygwin*)
14879       # Convert to unix form, then to dos form, then back to unix form
14880       # but this time dos style (no spaces!) so that the unix form looks
14881       # like /cygdrive/c/PROGRA~1:/cygdr...
14882       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14883       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14884       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14885       ;;
14886     *)
14887       sys_lib_search_path_spec="$LIB"
14888       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14889         # It is most probably a Windows format PATH.
14890         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14891       else
14892         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14893       fi
14894       # FIXME: find the short name or the path components, as spaces are
14895       # common. (e.g. "Program Files" -> "PROGRA~1")
14896       ;;
14897     esac
14898
14899     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14900     postinstall_cmds='base_file=`basename \${file}`~
14901       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14902       dldir=$destdir/`dirname \$dlpath`~
14903       test -d \$dldir || mkdir -p \$dldir~
14904       $install_prog $dir/$dlname \$dldir/$dlname'
14905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14906       dlpath=$dir/\$dldll~
14907        $RM \$dlpath'
14908     shlibpath_overrides_runpath=yes
14909     dynamic_linker='Win32 link.exe'
14910     ;;
14911
14912   *)
14913     # Assume MSVC wrapper
14914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14915     dynamic_linker='Win32 ld.exe'
14916     ;;
14917   esac
14918   # FIXME: first we should search . and the directory the executable is in
14919   shlibpath_var=PATH
14920   ;;
14921
14922 darwin* | rhapsody*)
14923   dynamic_linker="$host_os dyld"
14924   version_type=darwin
14925   need_lib_prefix=no
14926   need_version=no
14927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14928   soname_spec='${libname}${release}${major}$shared_ext'
14929   shlibpath_overrides_runpath=yes
14930   shlibpath_var=DYLD_LIBRARY_PATH
14931   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14932
14933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14934   ;;
14935
14936 dgux*)
14937   version_type=linux # correct to gnu/linux during the next big refactor
14938   need_lib_prefix=no
14939   need_version=no
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14941   soname_spec='${libname}${release}${shared_ext}$major'
14942   shlibpath_var=LD_LIBRARY_PATH
14943   ;;
14944
14945 freebsd* | dragonfly*)
14946   # DragonFly does not have aout.  When/if they implement a new
14947   # versioning mechanism, adjust this.
14948   if test -x /usr/bin/objformat; then
14949     objformat=`/usr/bin/objformat`
14950   else
14951     case $host_os in
14952     freebsd[23].*) objformat=aout ;;
14953     *) objformat=elf ;;
14954     esac
14955   fi
14956   version_type=freebsd-$objformat
14957   case $version_type in
14958     freebsd-elf*)
14959       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14960       need_version=no
14961       need_lib_prefix=no
14962       ;;
14963     freebsd-*)
14964       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14965       need_version=yes
14966       ;;
14967   esac
14968   shlibpath_var=LD_LIBRARY_PATH
14969   case $host_os in
14970   freebsd2.*)
14971     shlibpath_overrides_runpath=yes
14972     ;;
14973   freebsd3.[01]* | freebsdelf3.[01]*)
14974     shlibpath_overrides_runpath=yes
14975     hardcode_into_libs=yes
14976     ;;
14977   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14978   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14979     shlibpath_overrides_runpath=no
14980     hardcode_into_libs=yes
14981     ;;
14982   *) # from 4.6 on, and DragonFly
14983     shlibpath_overrides_runpath=yes
14984     hardcode_into_libs=yes
14985     ;;
14986   esac
14987   ;;
14988
14989 gnu*)
14990   version_type=linux # correct to gnu/linux during the next big refactor
14991   need_lib_prefix=no
14992   need_version=no
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14994   soname_spec='${libname}${release}${shared_ext}$major'
14995   shlibpath_var=LD_LIBRARY_PATH
14996   shlibpath_overrides_runpath=no
14997   hardcode_into_libs=yes
14998   ;;
14999
15000 haiku*)
15001   version_type=linux # correct to gnu/linux during the next big refactor
15002   need_lib_prefix=no
15003   need_version=no
15004   dynamic_linker="$host_os runtime_loader"
15005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15006   soname_spec='${libname}${release}${shared_ext}$major'
15007   shlibpath_var=LIBRARY_PATH
15008   shlibpath_overrides_runpath=yes
15009   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15010   hardcode_into_libs=yes
15011   ;;
15012
15013 hpux9* | hpux10* | hpux11*)
15014   # Give a soname corresponding to the major version so that dld.sl refuses to
15015   # link against other versions.
15016   version_type=sunos
15017   need_lib_prefix=no
15018   need_version=no
15019   case $host_cpu in
15020   ia64*)
15021     shrext_cmds='.so'
15022     hardcode_into_libs=yes
15023     dynamic_linker="$host_os dld.so"
15024     shlibpath_var=LD_LIBRARY_PATH
15025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027     soname_spec='${libname}${release}${shared_ext}$major'
15028     if test "X$HPUX_IA64_MODE" = X32; then
15029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15030     else
15031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15032     fi
15033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15034     ;;
15035   hppa*64*)
15036     shrext_cmds='.sl'
15037     hardcode_into_libs=yes
15038     dynamic_linker="$host_os dld.sl"
15039     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042     soname_spec='${libname}${release}${shared_ext}$major'
15043     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15045     ;;
15046   *)
15047     shrext_cmds='.sl'
15048     dynamic_linker="$host_os dld.sl"
15049     shlibpath_var=SHLIB_PATH
15050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052     soname_spec='${libname}${release}${shared_ext}$major'
15053     ;;
15054   esac
15055   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15056   postinstall_cmds='chmod 555 $lib'
15057   # or fails outright, so override atomically:
15058   install_override_mode=555
15059   ;;
15060
15061 interix[3-9]*)
15062   version_type=linux # correct to gnu/linux during the next big refactor
15063   need_lib_prefix=no
15064   need_version=no
15065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15066   soname_spec='${libname}${release}${shared_ext}$major'
15067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15068   shlibpath_var=LD_LIBRARY_PATH
15069   shlibpath_overrides_runpath=no
15070   hardcode_into_libs=yes
15071   ;;
15072
15073 irix5* | irix6* | nonstopux*)
15074   case $host_os in
15075     nonstopux*) version_type=nonstopux ;;
15076     *)
15077         if test "$lt_cv_prog_gnu_ld" = yes; then
15078                 version_type=linux # correct to gnu/linux during the next big refactor
15079         else
15080                 version_type=irix
15081         fi ;;
15082   esac
15083   need_lib_prefix=no
15084   need_version=no
15085   soname_spec='${libname}${release}${shared_ext}$major'
15086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15087   case $host_os in
15088   irix5* | nonstopux*)
15089     libsuff= shlibsuff=
15090     ;;
15091   *)
15092     case $LD in # libtool.m4 will add one of these switches to LD
15093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15094       libsuff= shlibsuff= libmagic=32-bit;;
15095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15096       libsuff=32 shlibsuff=N32 libmagic=N32;;
15097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15099     *) libsuff= shlibsuff= libmagic=never-match;;
15100     esac
15101     ;;
15102   esac
15103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15104   shlibpath_overrides_runpath=no
15105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15107   hardcode_into_libs=yes
15108   ;;
15109
15110 # No shared lib support for Linux oldld, aout, or coff.
15111 linux*oldld* | linux*aout* | linux*coff*)
15112   dynamic_linker=no
15113   ;;
15114
15115 # This must be glibc/ELF.
15116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15117   version_type=linux # correct to gnu/linux during the next big refactor
15118   need_lib_prefix=no
15119   need_version=no
15120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121   soname_spec='${libname}${release}${shared_ext}$major'
15122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15123   shlibpath_var=LD_LIBRARY_PATH
15124   shlibpath_overrides_runpath=no
15125
15126   # Some binutils ld are patched to set DT_RUNPATH
15127   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15128   $as_echo_n "(cached) " >&6
15129 else
15130   lt_cv_shlibpath_overrides_runpath=no
15131     save_LDFLAGS=$LDFLAGS
15132     save_libdir=$libdir
15133     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15134          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h.  */
15137
15138 int
15139 main ()
15140 {
15141
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 if ac_fn_cxx_try_link "$LINENO"; then :
15147   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15148   lt_cv_shlibpath_overrides_runpath=yes
15149 fi
15150 fi
15151 rm -f core conftest.err conftest.$ac_objext \
15152     conftest$ac_exeext conftest.$ac_ext
15153     LDFLAGS=$save_LDFLAGS
15154     libdir=$save_libdir
15155
15156 fi
15157
15158   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15159
15160   # This implies no fast_install, which is unacceptable.
15161   # Some rework will be needed to allow for fast_install
15162   # before this can be enabled.
15163   hardcode_into_libs=yes
15164
15165   # Append ld.so.conf contents to the search path
15166   if test -f /etc/ld.so.conf; then
15167     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' ' '`
15168     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15169   fi
15170
15171   # We used to test for /lib/ld.so.1 and disable shared libraries on
15172   # powerpc, because MkLinux only supported shared libraries with the
15173   # GNU dynamic linker.  Since this was broken with cross compilers,
15174   # most powerpc-linux boxes support dynamic linking these days and
15175   # people can always --disable-shared, the test was removed, and we
15176   # assume the GNU/Linux dynamic linker is in use.
15177   dynamic_linker='GNU/Linux ld.so'
15178   ;;
15179
15180 netbsdelf*-gnu)
15181   version_type=linux
15182   need_lib_prefix=no
15183   need_version=no
15184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15185   soname_spec='${libname}${release}${shared_ext}$major'
15186   shlibpath_var=LD_LIBRARY_PATH
15187   shlibpath_overrides_runpath=no
15188   hardcode_into_libs=yes
15189   dynamic_linker='NetBSD ld.elf_so'
15190   ;;
15191
15192 netbsd*)
15193   version_type=sunos
15194   need_lib_prefix=no
15195   need_version=no
15196   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15198     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15199     dynamic_linker='NetBSD (a.out) ld.so'
15200   else
15201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15202     soname_spec='${libname}${release}${shared_ext}$major'
15203     dynamic_linker='NetBSD ld.elf_so'
15204   fi
15205   shlibpath_var=LD_LIBRARY_PATH
15206   shlibpath_overrides_runpath=yes
15207   hardcode_into_libs=yes
15208   ;;
15209
15210 newsos6)
15211   version_type=linux # correct to gnu/linux during the next big refactor
15212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   shlibpath_overrides_runpath=yes
15215   ;;
15216
15217 *nto* | *qnx*)
15218   version_type=qnx
15219   need_lib_prefix=no
15220   need_version=no
15221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222   soname_spec='${libname}${release}${shared_ext}$major'
15223   shlibpath_var=LD_LIBRARY_PATH
15224   shlibpath_overrides_runpath=no
15225   hardcode_into_libs=yes
15226   dynamic_linker='ldqnx.so'
15227   ;;
15228
15229 openbsd*)
15230   version_type=sunos
15231   sys_lib_dlsearch_path_spec="/usr/lib"
15232   need_lib_prefix=no
15233   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15234   case $host_os in
15235     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15236     *)                          need_version=no  ;;
15237   esac
15238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15240   shlibpath_var=LD_LIBRARY_PATH
15241   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15242     case $host_os in
15243       openbsd2.[89] | openbsd2.[89].*)
15244         shlibpath_overrides_runpath=no
15245         ;;
15246       *)
15247         shlibpath_overrides_runpath=yes
15248         ;;
15249       esac
15250   else
15251     shlibpath_overrides_runpath=yes
15252   fi
15253   ;;
15254
15255 os2*)
15256   libname_spec='$name'
15257   shrext_cmds=".dll"
15258   need_lib_prefix=no
15259   library_names_spec='$libname${shared_ext} $libname.a'
15260   dynamic_linker='OS/2 ld.exe'
15261   shlibpath_var=LIBPATH
15262   ;;
15263
15264 osf3* | osf4* | osf5*)
15265   version_type=osf
15266   need_lib_prefix=no
15267   need_version=no
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15272   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15273   ;;
15274
15275 rdos*)
15276   dynamic_linker=no
15277   ;;
15278
15279 solaris*)
15280   version_type=linux # correct to gnu/linux during the next big refactor
15281   need_lib_prefix=no
15282   need_version=no
15283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284   soname_spec='${libname}${release}${shared_ext}$major'
15285   shlibpath_var=LD_LIBRARY_PATH
15286   shlibpath_overrides_runpath=yes
15287   hardcode_into_libs=yes
15288   # ldd complains unless libraries are executable
15289   postinstall_cmds='chmod +x $lib'
15290   ;;
15291
15292 sunos4*)
15293   version_type=sunos
15294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   shlibpath_overrides_runpath=yes
15298   if test "$with_gnu_ld" = yes; then
15299     need_lib_prefix=no
15300   fi
15301   need_version=yes
15302   ;;
15303
15304 sysv4 | sysv4.3*)
15305   version_type=linux # correct to gnu/linux during the next big refactor
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307   soname_spec='${libname}${release}${shared_ext}$major'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   case $host_vendor in
15310     sni)
15311       shlibpath_overrides_runpath=no
15312       need_lib_prefix=no
15313       runpath_var=LD_RUN_PATH
15314       ;;
15315     siemens)
15316       need_lib_prefix=no
15317       ;;
15318     motorola)
15319       need_lib_prefix=no
15320       need_version=no
15321       shlibpath_overrides_runpath=no
15322       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15323       ;;
15324   esac
15325   ;;
15326
15327 sysv4*MP*)
15328   if test -d /usr/nec ;then
15329     version_type=linux # correct to gnu/linux during the next big refactor
15330     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15331     soname_spec='$libname${shared_ext}.$major'
15332     shlibpath_var=LD_LIBRARY_PATH
15333   fi
15334   ;;
15335
15336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15337   version_type=freebsd-elf
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341   soname_spec='${libname}${release}${shared_ext}$major'
15342   shlibpath_var=LD_LIBRARY_PATH
15343   shlibpath_overrides_runpath=yes
15344   hardcode_into_libs=yes
15345   if test "$with_gnu_ld" = yes; then
15346     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15347   else
15348     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15349     case $host_os in
15350       sco3.2v5*)
15351         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15352         ;;
15353     esac
15354   fi
15355   sys_lib_dlsearch_path_spec='/usr/lib'
15356   ;;
15357
15358 tpf*)
15359   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15360   version_type=linux # correct to gnu/linux during the next big refactor
15361   need_lib_prefix=no
15362   need_version=no
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=no
15366   hardcode_into_libs=yes
15367   ;;
15368
15369 uts4*)
15370   version_type=linux # correct to gnu/linux during the next big refactor
15371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372   soname_spec='${libname}${release}${shared_ext}$major'
15373   shlibpath_var=LD_LIBRARY_PATH
15374   ;;
15375
15376 *)
15377   dynamic_linker=no
15378   ;;
15379 esac
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15381 $as_echo "$dynamic_linker" >&6; }
15382 test "$dynamic_linker" = no && can_build_shared=no
15383
15384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15385 if test "$GCC" = yes; then
15386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15387 fi
15388
15389 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15390   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15391 fi
15392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15393   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15394 fi
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15434 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15435 hardcode_action_CXX=
15436 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15437    test -n "$runpath_var_CXX" ||
15438    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15439
15440   # We can hardcode non-existent directories.
15441   if test "$hardcode_direct_CXX" != no &&
15442      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15443      # have to relink, otherwise we might link with an installed library
15444      # when we should be linking with a yet-to-be-installed one
15445      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15446      test "$hardcode_minus_L_CXX" != no; then
15447     # Linking always hardcodes the temporary library directory.
15448     hardcode_action_CXX=relink
15449   else
15450     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15451     hardcode_action_CXX=immediate
15452   fi
15453 else
15454   # We cannot hardcode anything, or else we can only hardcode existing
15455   # directories.
15456   hardcode_action_CXX=unsupported
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15459 $as_echo "$hardcode_action_CXX" >&6; }
15460
15461 if test "$hardcode_action_CXX" = relink ||
15462    test "$inherit_rpath_CXX" = yes; then
15463   # Fast installation is not supported
15464   enable_fast_install=no
15465 elif test "$shlibpath_overrides_runpath" = yes ||
15466      test "$enable_shared" = no; then
15467   # Fast installation is not necessary
15468   enable_fast_install=needless
15469 fi
15470
15471
15472
15473
15474
15475
15476
15477   fi # test -n "$compiler"
15478
15479   CC=$lt_save_CC
15480   CFLAGS=$lt_save_CFLAGS
15481   LDCXX=$LD
15482   LD=$lt_save_LD
15483   GCC=$lt_save_GCC
15484   with_gnu_ld=$lt_save_with_gnu_ld
15485   lt_cv_path_LDCXX=$lt_cv_path_LD
15486   lt_cv_path_LD=$lt_save_path_LD
15487   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15488   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15489 fi # test "$_lt_caught_CXX_error" != yes
15490
15491 ac_ext=c
15492 ac_cpp='$CPP $CPPFLAGS'
15493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511         ac_config_commands="$ac_config_commands libtool"
15512
15513
15514
15515
15516 # Only expand once:
15517
15518
15519 # By default we simply use the C compiler to build assembly code.
15520
15521 test "${CCAS+set}" = set || CCAS=$CC
15522 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15523
15524
15525
15526 depcc="$CCAS"   am_compiler_list=
15527
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15529 $as_echo_n "checking dependency style of $depcc... " >&6; }
15530 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
15531   $as_echo_n "(cached) " >&6
15532 else
15533   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15534   # We make a subdir and do the tests there.  Otherwise we can end up
15535   # making bogus files that we don't know about and never remove.  For
15536   # instance it was reported that on HP-UX the gcc test will end up
15537   # making a dummy file named `D' -- because `-MD' means `put the output
15538   # in D'.
15539   rm -rf conftest.dir
15540   mkdir conftest.dir
15541   # Copy depcomp to subdir because otherwise we won't find it if we're
15542   # using a relative directory.
15543   cp "$am_depcomp" conftest.dir
15544   cd conftest.dir
15545   # We will build objects and dependencies in a subdirectory because
15546   # it helps to detect inapplicable dependency modes.  For instance
15547   # both Tru64's cc and ICC support -MD to output dependencies as a
15548   # side effect of compilation, but ICC will put the dependencies in
15549   # the current directory while Tru64 will put them in the object
15550   # directory.
15551   mkdir sub
15552
15553   am_cv_CCAS_dependencies_compiler_type=none
15554   if test "$am_compiler_list" = ""; then
15555      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15556   fi
15557   am__universal=false
15558
15559
15560   for depmode in $am_compiler_list; do
15561     # Setup a source with many dependencies, because some compilers
15562     # like to wrap large dependency lists on column 80 (with \), and
15563     # we should not choose a depcomp mode which is confused by this.
15564     #
15565     # We need to recreate these files for each test, as the compiler may
15566     # overwrite some of them when testing with obscure command lines.
15567     # This happens at least with the AIX C compiler.
15568     : > sub/conftest.c
15569     for i in 1 2 3 4 5 6; do
15570       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15571       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15572       # Solaris 8's {/usr,}/bin/sh.
15573       touch sub/conftst$i.h
15574     done
15575     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15576
15577     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15578     # mode.  It turns out that the SunPro C++ compiler does not properly
15579     # handle `-M -o', and we need to detect this.  Also, some Intel
15580     # versions had trouble with output in subdirs
15581     am__obj=sub/conftest.${OBJEXT-o}
15582     am__minus_obj="-o $am__obj"
15583     case $depmode in
15584     gcc)
15585       # This depmode causes a compiler race in universal mode.
15586       test "$am__universal" = false || continue
15587       ;;
15588     nosideeffect)
15589       # after this tag, mechanisms are not by side-effect, so they'll
15590       # only be used when explicitly requested
15591       if test "x$enable_dependency_tracking" = xyes; then
15592         continue
15593       else
15594         break
15595       fi
15596       ;;
15597     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15598       # This compiler won't grok `-c -o', but also, the minuso test has
15599       # not run yet.  These depmodes are late enough in the game, and
15600       # so weak that their functioning should not be impacted.
15601       am__obj=conftest.${OBJEXT-o}
15602       am__minus_obj=
15603       ;;
15604     none) break ;;
15605     esac
15606     if depmode=$depmode \
15607        source=sub/conftest.c object=$am__obj \
15608        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15609        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15610          >/dev/null 2>conftest.err &&
15611        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15612        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15613        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15614        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15615       # icc doesn't choke on unknown options, it will just issue warnings
15616       # or remarks (even with -Werror).  So we grep stderr for any message
15617       # that says an option was ignored or not supported.
15618       # When given -MP, icc 7.0 and 7.1 complain thusly:
15619       #   icc: Command line warning: ignoring option '-M'; no argument required
15620       # The diagnosis changed in icc 8.0:
15621       #   icc: Command line remark: option '-MP' not supported
15622       if (grep 'ignoring option' conftest.err ||
15623           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15624         am_cv_CCAS_dependencies_compiler_type=$depmode
15625         break
15626       fi
15627     fi
15628   done
15629
15630   cd ..
15631   rm -rf conftest.dir
15632 else
15633   am_cv_CCAS_dependencies_compiler_type=none
15634 fi
15635
15636 fi
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15638 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15639 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15640
15641  if
15642   test "x$enable_dependency_tracking" != xno \
15643   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15644   am__fastdepCCAS_TRUE=
15645   am__fastdepCCAS_FALSE='#'
15646 else
15647   am__fastdepCCAS_TRUE='#'
15648   am__fastdepCCAS_FALSE=
15649 fi
15650
15651
15652 if test "x$CC" != xcc; then
15653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15655 else
15656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15658 fi
15659 set dummy $CC; ac_cc=`$as_echo "$2" |
15660                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15662   $as_echo_n "(cached) " >&6
15663 else
15664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h.  */
15666
15667 int
15668 main ()
15669 {
15670
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 # Make sure it works both with $CC and with simple cc.
15676 # We do the test twice because some compilers refuse to overwrite an
15677 # existing .o file with -o, though they will create one.
15678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15679 rm -f conftest2.*
15680 if { { case "(($ac_try" in
15681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682   *) ac_try_echo=$ac_try;;
15683 esac
15684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15685 $as_echo "$ac_try_echo"; } >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15689   test $ac_status = 0; } &&
15690    test -f conftest2.$ac_objext && { { case "(($ac_try" in
15691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692   *) ac_try_echo=$ac_try;;
15693 esac
15694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15695 $as_echo "$ac_try_echo"; } >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15699   test $ac_status = 0; };
15700 then
15701   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15702   if test "x$CC" != xcc; then
15703     # Test first that cc exists at all.
15704     if { ac_try='cc -c conftest.$ac_ext >&5'
15705   { { case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15710 $as_echo "$ac_try_echo"; } >&5
15711   (eval "$ac_try") 2>&5
15712   ac_status=$?
15713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15714   test $ac_status = 0; }; }; then
15715       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15716       rm -f conftest2.*
15717       if { { case "(($ac_try" in
15718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719   *) ac_try_echo=$ac_try;;
15720 esac
15721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15722 $as_echo "$ac_try_echo"; } >&5
15723   (eval "$ac_try") 2>&5
15724   ac_status=$?
15725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726   test $ac_status = 0; } &&
15727          test -f conftest2.$ac_objext && { { case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15732 $as_echo "$ac_try_echo"; } >&5
15733   (eval "$ac_try") 2>&5
15734   ac_status=$?
15735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15736   test $ac_status = 0; };
15737       then
15738         # cc works too.
15739         :
15740       else
15741         # cc exists but doesn't like -o.
15742         eval ac_cv_prog_cc_${ac_cc}_c_o=no
15743       fi
15744     fi
15745   fi
15746 else
15747   eval ac_cv_prog_cc_${ac_cc}_c_o=no
15748 fi
15749 rm -f core conftest*
15750
15751 fi
15752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15754 $as_echo "yes" >&6; }
15755 else
15756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15757 $as_echo "no" >&6; }
15758
15759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15760
15761 fi
15762
15763 # FIXME: we rely on the cache variable name because
15764 # there is no other way.
15765 set dummy $CC
15766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15768 if test "$am_t" != yes; then
15769    # Losing compiler, so override with the script.
15770    # FIXME: It is wrong to rewrite CC.
15771    # But if we don't then we get into trouble of one sort or another.
15772    # A longer-term fix would be to have automake use am__CC in this case,
15773    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15774    CC="$am_aux_dir/compile $CC"
15775 fi
15776
15777
15778
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_grs in -luca" >&5
15780 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15781 if ${ac_cv_lib_uca___uc_get_grs+:} false; then :
15782   $as_echo_n "(cached) " >&6
15783 else
15784   ac_check_lib_save_LIBS=$LIBS
15785 LIBS="-luca  $LIBS"
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h.  */
15788
15789 /* Override any GCC internal prototype to avoid an error.
15790    Use char because int might match the return type of a GCC
15791    builtin and then its argument prototype would still apply.  */
15792 #ifdef __cplusplus
15793 extern "C"
15794 #endif
15795 char __uc_get_grs ();
15796 int
15797 main ()
15798 {
15799 return __uc_get_grs ();
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"; then :
15805   ac_cv_lib_uca___uc_get_grs=yes
15806 else
15807   ac_cv_lib_uca___uc_get_grs=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext \
15810     conftest$ac_exeext conftest.$ac_ext
15811 LIBS=$ac_check_lib_save_LIBS
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_grs" >&5
15814 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15815 if test "x$ac_cv_lib_uca___uc_get_grs" = xyes; then :
15816   cat >>confdefs.h <<_ACEOF
15817 #define HAVE_LIBUCA 1
15818 _ACEOF
15819
15820   LIBS="-luca $LIBS"
15821
15822 fi
15823
15824 OLD_LIBS=${LIBS}
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15826 $as_echo_n "checking for library containing dlopen... " >&6; }
15827 if ${ac_cv_search_dlopen+:} false; then :
15828   $as_echo_n "(cached) " >&6
15829 else
15830   ac_func_search_save_LIBS=$LIBS
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h.  */
15833
15834 /* Override any GCC internal prototype to avoid an error.
15835    Use char because int might match the return type of a GCC
15836    builtin and then its argument prototype would still apply.  */
15837 #ifdef __cplusplus
15838 extern "C"
15839 #endif
15840 char dlopen ();
15841 int
15842 main ()
15843 {
15844 return dlopen ();
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 for ac_lib in '' dl; do
15850   if test -z "$ac_lib"; then
15851     ac_res="none required"
15852   else
15853     ac_res=-l$ac_lib
15854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15855   fi
15856   if ac_fn_c_try_link "$LINENO"; then :
15857   ac_cv_search_dlopen=$ac_res
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext \
15860     conftest$ac_exeext
15861   if ${ac_cv_search_dlopen+:} false; then :
15862   break
15863 fi
15864 done
15865 if ${ac_cv_search_dlopen+:} false; then :
15866
15867 else
15868   ac_cv_search_dlopen=no
15869 fi
15870 rm conftest.$ac_ext
15871 LIBS=$ac_func_search_save_LIBS
15872 fi
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15874 $as_echo "$ac_cv_search_dlopen" >&6; }
15875 ac_res=$ac_cv_search_dlopen
15876 if test "$ac_res" != no; then :
15877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15878
15879 fi
15880
15881 LIBS=${OLD_LIBS}
15882 case "$ac_cv_search_dlopen" in
15883   -l*) DLLIB=$ac_cv_search_dlopen;;
15884   *) DLLIB="";;
15885 esac
15886
15887   for ac_header in atomic_ops.h
15888 do :
15889   ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15890 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
15891   cat >>confdefs.h <<_ACEOF
15892 #define HAVE_ATOMIC_OPS_H 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899 #
15900 # Don't link against libatomic_ops for now.  We don't want libunwind
15901 # to depend on libatomic_ops.so.  Fortunately, none of the platforms
15902 # we care about so far need libatomic_ops.a (everything is done via
15903 # inline macros).
15904 #
15905 #  AC_CHECK_LIB(atomic_ops, main)
15906
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15909 $as_echo_n "checking for ANSI C header files... " >&6; }
15910 if ${ac_cv_header_stdc+:} false; then :
15911   $as_echo_n "(cached) " >&6
15912 else
15913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h.  */
15915 #include <stdlib.h>
15916 #include <stdarg.h>
15917 #include <string.h>
15918 #include <float.h>
15919
15920 int
15921 main ()
15922 {
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929   ac_cv_header_stdc=yes
15930 else
15931   ac_cv_header_stdc=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934
15935 if test $ac_cv_header_stdc = yes; then
15936   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h.  */
15939 #include <string.h>
15940
15941 _ACEOF
15942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15943   $EGREP "memchr" >/dev/null 2>&1; then :
15944
15945 else
15946   ac_cv_header_stdc=no
15947 fi
15948 rm -f conftest*
15949
15950 fi
15951
15952 if test $ac_cv_header_stdc = yes; then
15953   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h.  */
15956 #include <stdlib.h>
15957
15958 _ACEOF
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960   $EGREP "free" >/dev/null 2>&1; then :
15961
15962 else
15963   ac_cv_header_stdc=no
15964 fi
15965 rm -f conftest*
15966
15967 fi
15968
15969 if test $ac_cv_header_stdc = yes; then
15970   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15971   if test "$cross_compiling" = yes; then :
15972   :
15973 else
15974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h.  */
15976 #include <ctype.h>
15977 #include <stdlib.h>
15978 #if ((' ' & 0x0FF) == 0x020)
15979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15981 #else
15982 # define ISLOWER(c) \
15983                    (('a' <= (c) && (c) <= 'i') \
15984                      || ('j' <= (c) && (c) <= 'r') \
15985                      || ('s' <= (c) && (c) <= 'z'))
15986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15987 #endif
15988
15989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15990 int
15991 main ()
15992 {
15993   int i;
15994   for (i = 0; i < 256; i++)
15995     if (XOR (islower (i), ISLOWER (i))
15996         || toupper (i) != TOUPPER (i))
15997       return 2;
15998   return 0;
15999 }
16000 _ACEOF
16001 if ac_fn_c_try_run "$LINENO"; then :
16002
16003 else
16004   ac_cv_header_stdc=no
16005 fi
16006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16007   conftest.$ac_objext conftest.beam conftest.$ac_ext
16008 fi
16009
16010 fi
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16013 $as_echo "$ac_cv_header_stdc" >&6; }
16014 if test $ac_cv_header_stdc = yes; then
16015
16016 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16017
16018 fi
16019
16020 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16021                 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16022                 sys/procfs.h sys/ptrace.h byteswap.h
16023 do :
16024   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16027   cat >>confdefs.h <<_ACEOF
16028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16029 _ACEOF
16030
16031 fi
16032
16033 done
16034
16035
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16037 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16038 if ${ac_cv_c_const+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h.  */
16043
16044 int
16045 main ()
16046 {
16047 /* FIXME: Include the comments suggested by Paul. */
16048 #ifndef __cplusplus
16049   /* Ultrix mips cc rejects this.  */
16050   typedef int charset[2];
16051   const charset cs;
16052   /* SunOS 4.1.1 cc rejects this.  */
16053   char const *const *pcpcc;
16054   char **ppc;
16055   /* NEC SVR4.0.2 mips cc rejects this.  */
16056   struct point {int x, y;};
16057   static struct point const zero = {0,0};
16058   /* AIX XL C 1.02.0.0 rejects this.
16059      It does not let you subtract one const X* pointer from another in
16060      an arm of an if-expression whose if-part is not a constant
16061      expression */
16062   const char *g = "string";
16063   pcpcc = &g + (g ? g-g : 0);
16064   /* HPUX 7.0 cc rejects these. */
16065   ++pcpcc;
16066   ppc = (char**) pcpcc;
16067   pcpcc = (char const *const *) ppc;
16068   { /* SCO 3.2v4 cc rejects this.  */
16069     char *t;
16070     char const *s = 0 ? (char *) 0 : (char const *) 0;
16071
16072     *t++ = 0;
16073     if (s) return 0;
16074   }
16075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16076     int x[] = {25, 17};
16077     const int *foo = &x[0];
16078     ++foo;
16079   }
16080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16081     typedef const int *iptr;
16082     iptr p = 0;
16083     ++p;
16084   }
16085   { /* AIX XL C 1.02.0.0 rejects this saying
16086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16087     struct s { int j; const int *ap[3]; };
16088     struct s *b; b->j = 5;
16089   }
16090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16091     const int foo = 10;
16092     if (!foo) return 0;
16093   }
16094   return !cs[0] && !zero.x;
16095 #endif
16096
16097   ;
16098   return 0;
16099 }
16100 _ACEOF
16101 if ac_fn_c_try_compile "$LINENO"; then :
16102   ac_cv_c_const=yes
16103 else
16104   ac_cv_c_const=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16109 $as_echo "$ac_cv_c_const" >&6; }
16110 if test $ac_cv_c_const = no; then
16111
16112 $as_echo "#define const /**/" >>confdefs.h
16113
16114 fi
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16117 $as_echo_n "checking for inline... " >&6; }
16118 if ${ac_cv_c_inline+:} false; then :
16119   $as_echo_n "(cached) " >&6
16120 else
16121   ac_cv_c_inline=no
16122 for ac_kw in inline __inline__ __inline; do
16123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125 #ifndef __cplusplus
16126 typedef int foo_t;
16127 static $ac_kw foo_t static_foo () {return 0; }
16128 $ac_kw foo_t foo () {return 0; }
16129 #endif
16130
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133   ac_cv_c_inline=$ac_kw
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136   test "$ac_cv_c_inline" != no && break
16137 done
16138
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16141 $as_echo "$ac_cv_c_inline" >&6; }
16142
16143 case $ac_cv_c_inline in
16144   inline | yes) ;;
16145   *)
16146     case $ac_cv_c_inline in
16147       no) ac_val=;;
16148       *) ac_val=$ac_cv_c_inline;;
16149     esac
16150     cat >>confdefs.h <<_ACEOF
16151 #ifndef __cplusplus
16152 #define inline $ac_val
16153 #endif
16154 _ACEOF
16155     ;;
16156 esac
16157
16158 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16159 if test "x$ac_cv_type_size_t" = xyes; then :
16160
16161 else
16162
16163 cat >>confdefs.h <<_ACEOF
16164 #define size_t unsigned int
16165 _ACEOF
16166
16167 fi
16168
16169 # The cast to long int works around a bug in the HP C Compiler
16170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16172 # This bug is HP SR number 8606223364.
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16174 $as_echo_n "checking size of off_t... " >&6; }
16175 if ${ac_cv_sizeof_off_t+:} false; then :
16176   $as_echo_n "(cached) " >&6
16177 else
16178   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16179
16180 else
16181   if test "$ac_cv_type_off_t" = yes; then
16182      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16184 as_fn_error 77 "cannot compute sizeof (off_t)
16185 See \`config.log' for more details" "$LINENO" 5; }
16186    else
16187      ac_cv_sizeof_off_t=0
16188    fi
16189 fi
16190
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16193 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16194
16195
16196
16197 cat >>confdefs.h <<_ACEOF
16198 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16199 _ACEOF
16200
16201
16202
16203 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
16204
16205 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_subs" "ac_cv_member_struct_dl_phdr_info_dlpi_subs" "#include <link.h>
16206 "
16207 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = xyes; then :
16208
16209 cat >>confdefs.h <<_ACEOF
16210 #define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
16211 _ACEOF
16212
16213
16214 fi
16215
16216 ac_fn_c_check_type "$LINENO" "struct elf_prstatus" "ac_cv_type_struct_elf_prstatus" "$ac_includes_default
16217 #if HAVE_SYS_PROCFS_H
16218 # include <sys/procfs.h>
16219 #endif
16220
16221 "
16222 if test "x$ac_cv_type_struct_elf_prstatus" = xyes; then :
16223
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_STRUCT_ELF_PRSTATUS 1
16226 _ACEOF
16227
16228
16229 fi
16230 ac_fn_c_check_type "$LINENO" "struct prstatus" "ac_cv_type_struct_prstatus" "$ac_includes_default
16231 #if HAVE_SYS_PROCFS_H
16232 # include <sys/procfs.h>
16233 #endif
16234
16235 "
16236 if test "x$ac_cv_type_struct_prstatus" = xyes; then :
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_STRUCT_PRSTATUS 1
16240 _ACEOF
16241
16242
16243 fi
16244
16245
16246 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEUSER" "ac_cv_have_decl_PTRACE_POKEUSER" "$ac_includes_default
16247 #if HAVE_SYS_TYPES_H
16248 #include <sys/types.h>
16249 #endif
16250 #include <sys/ptrace.h>
16251
16252 "
16253 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = xyes; then :
16254   ac_have_decl=1
16255 else
16256   ac_have_decl=0
16257 fi
16258
16259 cat >>confdefs.h <<_ACEOF
16260 #define HAVE_DECL_PTRACE_POKEUSER $ac_have_decl
16261 _ACEOF
16262 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEDATA" "ac_cv_have_decl_PTRACE_POKEDATA" "$ac_includes_default
16263 #if HAVE_SYS_TYPES_H
16264 #include <sys/types.h>
16265 #endif
16266 #include <sys/ptrace.h>
16267
16268 "
16269 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = xyes; then :
16270   ac_have_decl=1
16271 else
16272   ac_have_decl=0
16273 fi
16274
16275 cat >>confdefs.h <<_ACEOF
16276 #define HAVE_DECL_PTRACE_POKEDATA $ac_have_decl
16277 _ACEOF
16278 ac_fn_c_check_decl "$LINENO" "PTRACE_TRACEME" "ac_cv_have_decl_PTRACE_TRACEME" "$ac_includes_default
16279 #if HAVE_SYS_TYPES_H
16280 #include <sys/types.h>
16281 #endif
16282 #include <sys/ptrace.h>
16283
16284 "
16285 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = xyes; then :
16286   ac_have_decl=1
16287 else
16288   ac_have_decl=0
16289 fi
16290
16291 cat >>confdefs.h <<_ACEOF
16292 #define HAVE_DECL_PTRACE_TRACEME $ac_have_decl
16293 _ACEOF
16294 ac_fn_c_check_decl "$LINENO" "PTRACE_CONT" "ac_cv_have_decl_PTRACE_CONT" "$ac_includes_default
16295 #if HAVE_SYS_TYPES_H
16296 #include <sys/types.h>
16297 #endif
16298 #include <sys/ptrace.h>
16299
16300 "
16301 if test "x$ac_cv_have_decl_PTRACE_CONT" = xyes; then :
16302   ac_have_decl=1
16303 else
16304   ac_have_decl=0
16305 fi
16306
16307 cat >>confdefs.h <<_ACEOF
16308 #define HAVE_DECL_PTRACE_CONT $ac_have_decl
16309 _ACEOF
16310 ac_fn_c_check_decl "$LINENO" "PTRACE_SINGLESTEP" "ac_cv_have_decl_PTRACE_SINGLESTEP" "$ac_includes_default
16311 #if HAVE_SYS_TYPES_H
16312 #include <sys/types.h>
16313 #endif
16314 #include <sys/ptrace.h>
16315
16316 "
16317 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = xyes; then :
16318   ac_have_decl=1
16319 else
16320   ac_have_decl=0
16321 fi
16322
16323 cat >>confdefs.h <<_ACEOF
16324 #define HAVE_DECL_PTRACE_SINGLESTEP $ac_have_decl
16325 _ACEOF
16326 ac_fn_c_check_decl "$LINENO" "PTRACE_SYSCALL" "ac_cv_have_decl_PTRACE_SYSCALL" "$ac_includes_default
16327 #if HAVE_SYS_TYPES_H
16328 #include <sys/types.h>
16329 #endif
16330 #include <sys/ptrace.h>
16331
16332 "
16333 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = xyes; then :
16334   ac_have_decl=1
16335 else
16336   ac_have_decl=0
16337 fi
16338
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_DECL_PTRACE_SYSCALL $ac_have_decl
16341 _ACEOF
16342 ac_fn_c_check_decl "$LINENO" "PT_IO" "ac_cv_have_decl_PT_IO" "$ac_includes_default
16343 #if HAVE_SYS_TYPES_H
16344 #include <sys/types.h>
16345 #endif
16346 #include <sys/ptrace.h>
16347
16348 "
16349 if test "x$ac_cv_have_decl_PT_IO" = xyes; then :
16350   ac_have_decl=1
16351 else
16352   ac_have_decl=0
16353 fi
16354
16355 cat >>confdefs.h <<_ACEOF
16356 #define HAVE_DECL_PT_IO $ac_have_decl
16357 _ACEOF
16358 ac_fn_c_check_decl "$LINENO" "PT_GETREGS" "ac_cv_have_decl_PT_GETREGS" "$ac_includes_default
16359 #if HAVE_SYS_TYPES_H
16360 #include <sys/types.h>
16361 #endif
16362 #include <sys/ptrace.h>
16363
16364 "
16365 if test "x$ac_cv_have_decl_PT_GETREGS" = xyes; then :
16366   ac_have_decl=1
16367 else
16368   ac_have_decl=0
16369 fi
16370
16371 cat >>confdefs.h <<_ACEOF
16372 #define HAVE_DECL_PT_GETREGS $ac_have_decl
16373 _ACEOF
16374 ac_fn_c_check_decl "$LINENO" "PT_GETFPREGS" "ac_cv_have_decl_PT_GETFPREGS" "$ac_includes_default
16375 #if HAVE_SYS_TYPES_H
16376 #include <sys/types.h>
16377 #endif
16378 #include <sys/ptrace.h>
16379
16380 "
16381 if test "x$ac_cv_have_decl_PT_GETFPREGS" = xyes; then :
16382   ac_have_decl=1
16383 else
16384   ac_have_decl=0
16385 fi
16386
16387 cat >>confdefs.h <<_ACEOF
16388 #define HAVE_DECL_PT_GETFPREGS $ac_have_decl
16389 _ACEOF
16390 ac_fn_c_check_decl "$LINENO" "PT_CONTINUE" "ac_cv_have_decl_PT_CONTINUE" "$ac_includes_default
16391 #if HAVE_SYS_TYPES_H
16392 #include <sys/types.h>
16393 #endif
16394 #include <sys/ptrace.h>
16395
16396 "
16397 if test "x$ac_cv_have_decl_PT_CONTINUE" = xyes; then :
16398   ac_have_decl=1
16399 else
16400   ac_have_decl=0
16401 fi
16402
16403 cat >>confdefs.h <<_ACEOF
16404 #define HAVE_DECL_PT_CONTINUE $ac_have_decl
16405 _ACEOF
16406 ac_fn_c_check_decl "$LINENO" "PT_TRACE_ME" "ac_cv_have_decl_PT_TRACE_ME" "$ac_includes_default
16407 #if HAVE_SYS_TYPES_H
16408 #include <sys/types.h>
16409 #endif
16410 #include <sys/ptrace.h>
16411
16412 "
16413 if test "x$ac_cv_have_decl_PT_TRACE_ME" = xyes; then :
16414   ac_have_decl=1
16415 else
16416   ac_have_decl=0
16417 fi
16418
16419 cat >>confdefs.h <<_ACEOF
16420 #define HAVE_DECL_PT_TRACE_ME $ac_have_decl
16421 _ACEOF
16422 ac_fn_c_check_decl "$LINENO" "PT_STEP" "ac_cv_have_decl_PT_STEP" "$ac_includes_default
16423 #if HAVE_SYS_TYPES_H
16424 #include <sys/types.h>
16425 #endif
16426 #include <sys/ptrace.h>
16427
16428 "
16429 if test "x$ac_cv_have_decl_PT_STEP" = xyes; then :
16430   ac_have_decl=1
16431 else
16432   ac_have_decl=0
16433 fi
16434
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_DECL_PT_STEP $ac_have_decl
16437 _ACEOF
16438 ac_fn_c_check_decl "$LINENO" "PT_SYSCALL" "ac_cv_have_decl_PT_SYSCALL" "$ac_includes_default
16439 #if HAVE_SYS_TYPES_H
16440 #include <sys/types.h>
16441 #endif
16442 #include <sys/ptrace.h>
16443
16444 "
16445 if test "x$ac_cv_have_decl_PT_SYSCALL" = xyes; then :
16446   ac_have_decl=1
16447 else
16448   ac_have_decl=0
16449 fi
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_DECL_PT_SYSCALL $ac_have_decl
16453 _ACEOF
16454
16455
16456 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
16457                 ttrace mincore
16458 do :
16459   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16462   cat >>confdefs.h <<_ACEOF
16463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 _ACEOF
16465
16466 fi
16467 done
16468
16469
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with AltiVec" >&5
16471 $as_echo_n "checking if building with AltiVec... " >&6; }
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h.  */
16474
16475 #ifndef __ALTIVEC__
16476 # error choke
16477 #endif
16478
16479 _ACEOF
16480 if ac_fn_c_try_compile "$LINENO"; then :
16481   use_altivec=yes
16482 else
16483   use_altivec=no
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486  if test x$use_altivec = xyes; then
16487   USE_ALTIVEC_TRUE=
16488   USE_ALTIVEC_FALSE='#'
16489 else
16490   USE_ALTIVEC_TRUE='#'
16491   USE_ALTIVEC_FALSE=
16492 fi
16493
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_altivec" >&5
16495 $as_echo "$use_altivec" >&6; }
16496
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499
16500 #ifndef __powerpc64__
16501 # error choke
16502 #endif
16503
16504 _ACEOF
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506   ppc_bits=64
16507 else
16508   ppc_bits=32
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511
16512
16513
16514     case $build_cpu in #(
16515   arm*) :
16516     build_arch=arm ;; #(
16517   i?86) :
16518     build_arch=x86 ;; #(
16519   hppa*) :
16520     build_arch=hppa ;; #(
16521   mips*) :
16522     build_arch=mips ;; #(
16523   powerpc*) :
16524     build_arch=ppc$ppc_bits ;; #(
16525   sh*) :
16526     build_arch=sh ;; #(
16527   amd64) :
16528     build_arch=x86_64 ;; #(
16529   *) :
16530     build_arch=$build_cpu ;;
16531 esac
16532
16533
16534     case $host_cpu in #(
16535   arm*) :
16536     host_arch=arm ;; #(
16537   i?86) :
16538     host_arch=x86 ;; #(
16539   hppa*) :
16540     host_arch=hppa ;; #(
16541   mips*) :
16542     host_arch=mips ;; #(
16543   powerpc*) :
16544     host_arch=ppc$ppc_bits ;; #(
16545   sh*) :
16546     host_arch=sh ;; #(
16547   amd64) :
16548     host_arch=x86_64 ;; #(
16549   *) :
16550     host_arch=$host_cpu ;;
16551 esac
16552
16553
16554     case $target_cpu in #(
16555   arm*) :
16556     target_arch=arm ;; #(
16557   i?86) :
16558     target_arch=x86 ;; #(
16559   hppa*) :
16560     target_arch=hppa ;; #(
16561   mips*) :
16562     target_arch=mips ;; #(
16563   powerpc*) :
16564     target_arch=ppc$ppc_bits ;; #(
16565   sh*) :
16566     target_arch=sh ;; #(
16567   amd64) :
16568     target_arch=x86_64 ;; #(
16569   *) :
16570     target_arch=$target_cpu ;;
16571 esac
16572
16573
16574 # Check whether --enable-coredump was given.
16575 if test "${enable_coredump+set}" = set; then :
16576   enableval=$enable_coredump;
16577 else
16578   case $host_arch in #(
16579   arm*|mips*|sh*|x86*) :
16580     enable_coredump=yes ;; #(
16581   *) :
16582     enable_coredump=no ;;
16583 esac
16584
16585 fi
16586
16587
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should build libunwind-coredump" >&5
16589 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coredump" >&5
16591 $as_echo "$enable_coredump" >&6; }
16592
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build architecture" >&5
16594 $as_echo_n "checking for build architecture... " >&6; }
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_arch" >&5
16596 $as_echo "$build_arch" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host architecture" >&5
16598 $as_echo_n "checking for host architecture... " >&6; }
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_arch" >&5
16600 $as_echo "$host_arch" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
16602 $as_echo_n "checking for target architecture... " >&6; }
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_arch" >&5
16604 $as_echo "$target_arch" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target operating system" >&5
16606 $as_echo_n "checking for target operating system... " >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
16608 $as_echo "$target_os" >&6; }
16609
16610  if test x$enable_coredump = xyes; then
16611   BUILD_COREDUMP_TRUE=
16612   BUILD_COREDUMP_FALSE='#'
16613 else
16614   BUILD_COREDUMP_TRUE='#'
16615   BUILD_COREDUMP_FALSE=
16616 fi
16617
16618  if test x$target_arch != x$host_arch; then
16619   REMOTE_ONLY_TRUE=
16620   REMOTE_ONLY_FALSE='#'
16621 else
16622   REMOTE_ONLY_TRUE='#'
16623   REMOTE_ONLY_FALSE=
16624 fi
16625
16626  if test x$target_arch = xarm; then
16627   ARCH_ARM_TRUE=
16628   ARCH_ARM_FALSE='#'
16629 else
16630   ARCH_ARM_TRUE='#'
16631   ARCH_ARM_FALSE=
16632 fi
16633
16634  if test x$target_arch = xia64; then
16635   ARCH_IA64_TRUE=
16636   ARCH_IA64_FALSE='#'
16637 else
16638   ARCH_IA64_TRUE='#'
16639   ARCH_IA64_FALSE=
16640 fi
16641
16642  if test x$target_arch = xhppa; then
16643   ARCH_HPPA_TRUE=
16644   ARCH_HPPA_FALSE='#'
16645 else
16646   ARCH_HPPA_TRUE='#'
16647   ARCH_HPPA_FALSE=
16648 fi
16649
16650  if test x$target_arch = xmips; then
16651   ARCH_MIPS_TRUE=
16652   ARCH_MIPS_FALSE='#'
16653 else
16654   ARCH_MIPS_TRUE='#'
16655   ARCH_MIPS_FALSE=
16656 fi
16657
16658  if test x$target_arch = xx86; then
16659   ARCH_X86_TRUE=
16660   ARCH_X86_FALSE='#'
16661 else
16662   ARCH_X86_TRUE='#'
16663   ARCH_X86_FALSE=
16664 fi
16665
16666  if test x$target_arch = xx86_64; then
16667   ARCH_X86_64_TRUE=
16668   ARCH_X86_64_FALSE='#'
16669 else
16670   ARCH_X86_64_TRUE='#'
16671   ARCH_X86_64_FALSE=
16672 fi
16673
16674  if test x$target_arch = xppc32; then
16675   ARCH_PPC32_TRUE=
16676   ARCH_PPC32_FALSE='#'
16677 else
16678   ARCH_PPC32_TRUE='#'
16679   ARCH_PPC32_FALSE=
16680 fi
16681
16682  if test x$target_arch = xppc64; then
16683   ARCH_PPC64_TRUE=
16684   ARCH_PPC64_FALSE='#'
16685 else
16686   ARCH_PPC64_TRUE='#'
16687   ARCH_PPC64_FALSE=
16688 fi
16689
16690  if test x$target_arch = xsh; then
16691   ARCH_SH_TRUE=
16692   ARCH_SH_FALSE='#'
16693 else
16694   ARCH_SH_TRUE='#'
16695   ARCH_SH_FALSE=
16696 fi
16697
16698  if expr x$target_os : xlinux >/dev/null; then
16699   OS_LINUX_TRUE=
16700   OS_LINUX_FALSE='#'
16701 else
16702   OS_LINUX_TRUE='#'
16703   OS_LINUX_FALSE=
16704 fi
16705
16706  if expr x$target_os : xhpux >/dev/null; then
16707   OS_HPUX_TRUE=
16708   OS_HPUX_FALSE='#'
16709 else
16710   OS_HPUX_TRUE='#'
16711   OS_HPUX_FALSE=
16712 fi
16713
16714  if expr x$target_os : xfreebsd >/dev/null; then
16715   OS_FREEBSD_TRUE=
16716   OS_FREEBSD_FALSE='#'
16717 else
16718   OS_FREEBSD_TRUE='#'
16719   OS_FREEBSD_FALSE=
16720 fi
16721
16722
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF helper width" >&5
16724 $as_echo_n "checking for ELF helper width... " >&6; }
16725 case "${target_arch}" in
16726 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32" >&5
16727 $as_echo "32" >&6; };;
16728 (ia64|ppc64|x86_64)    use_elf64=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64" >&5
16729 $as_echo "64" >&6; };;
16730 (mips)                 use_elfxx=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: xx" >&5
16731 $as_echo "xx" >&6; };;
16732 *)                     as_fn_error $? "Unknown ELF target: ${target_arch}" "$LINENO" 5
16733 esac
16734  if test x$use_elf32 = xyes; then
16735   USE_ELF32_TRUE=
16736   USE_ELF32_FALSE='#'
16737 else
16738   USE_ELF32_TRUE='#'
16739   USE_ELF32_FALSE=
16740 fi
16741
16742  if test x$use_elf64 = xyes; then
16743   USE_ELF64_TRUE=
16744   USE_ELF64_FALSE='#'
16745 else
16746   USE_ELF64_TRUE='#'
16747   USE_ELF64_FALSE=
16748 fi
16749
16750  if test x$use_elfxx = xyes; then
16751   USE_ELFXX_TRUE=
16752   USE_ELFXX_FALSE='#'
16753 else
16754   USE_ELFXX_TRUE='#'
16755   USE_ELFXX_FALSE=
16756 fi
16757
16758
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DWARF support" >&5
16760 $as_echo_n "checking whether to include DWARF support... " >&6; }
16761 if test x$target_arch != xia64; then
16762   use_dwarf=yes
16763 else
16764   use_dwarf=no
16765 fi
16766  if test x$use_dwarf = xyes; then
16767   USE_DWARF_TRUE=
16768   USE_DWARF_FALSE='#'
16769 else
16770   USE_DWARF_TRUE='#'
16771   USE_DWARF_FALSE=
16772 fi
16773
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_dwarf" >&5
16775 $as_echo "$use_dwarf" >&6; }
16776
16777 if test x$target_arch = xppc64; then
16778         libdir='${exec_prefix}/lib64'
16779         { $as_echo "$as_me:${as_lineno-$LINENO}: PowerPC64 detected, lib will be installed ${libdir}" >&5
16780 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
16781
16782 fi
16783
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to restrict build to remote support" >&5
16785 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
16786 if test x$target_arch != x$host_arch; then
16787   CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
16788   remote_only=yes
16789 else
16790   remote_only=no
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $remote_only" >&5
16793 $as_echo "$remote_only" >&6; }
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug support" >&5
16796 $as_echo_n "checking whether to enable debug support... " >&6; }
16797 # Check whether --enable-debug was given.
16798 if test "${enable_debug+set}" = set; then :
16799   enableval=$enable_debug;
16800 fi
16801
16802 if test x$enable_debug = xyes; then
16803   CPPFLAGS="${CPPFLAGS} -DDEBUG"
16804 else
16805   CPPFLAGS="${CPPFLAGS} -DNDEBUG"
16806 fi
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16808 $as_echo "$enable_debug" >&6; }
16809
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++ exception support" >&5
16811 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
16812 # Check whether --enable-cxx_exceptions was given.
16813 if test "${enable_cxx_exceptions+set}" = set; then :
16814   enableval=$enable_cxx_exceptions;
16815 else
16816
16817 # C++ exception handling doesn't work too well on x86
16818 case $target_arch in
16819   x86*) enable_cxx_exceptions=no;;
16820   arm*) enable_cxx_exceptions=no;;
16821   mips*) enable_cxx_exceptions=no;;
16822   *) enable_cxx_exceptions=yes;;
16823 esac
16824
16825 fi
16826
16827
16828  if test x$enable_cxx_exceptions = xyes; then
16829   SUPPORT_CXX_EXCEPTIONS_TRUE=
16830   SUPPORT_CXX_EXCEPTIONS_FALSE='#'
16831 else
16832   SUPPORT_CXX_EXCEPTIONS_TRUE='#'
16833   SUPPORT_CXX_EXCEPTIONS_FALSE=
16834 fi
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cxx_exceptions" >&5
16837 $as_echo "$enable_cxx_exceptions" >&6; }
16838
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to load .debug_frame sections" >&5
16840 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
16841 # Check whether --enable-debug_frame was given.
16842 if test "${enable_debug_frame+set}" = set; then :
16843   enableval=$enable_debug_frame;
16844 else
16845
16846 case "${target_arch}" in
16847   (arm) enable_debug_frame=yes;;
16848   (*)   enable_debug_frame=no;;
16849 esac
16850 fi
16851
16852 if test x$enable_debug_frame = xyes; then
16853
16854 $as_echo "#define CONFIG_DEBUG_FRAME /**/" >>confdefs.h
16855
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_frame" >&5
16858 $as_echo "$enable_debug_frame" >&6; }
16859
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to block signals during mutex ops" >&5
16861 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
16862 # Check whether --enable-block_signals was given.
16863 if test "${enable_block_signals+set}" = set; then :
16864   enableval=$enable_block_signals;
16865 else
16866   enable_block_signals=yes
16867 fi
16868
16869 if test x$enable_block_signals = xyes; then
16870
16871 $as_echo "#define CONFIG_BLOCK_SIGNALS /**/" >>confdefs.h
16872
16873 fi
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_block_signals" >&5
16875 $as_echo "$enable_block_signals" >&6; }
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to validate memory addresses before use" >&5
16878 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
16879 # Check whether --enable-conservative_checks was given.
16880 if test "${enable_conservative_checks+set}" = set; then :
16881   enableval=$enable_conservative_checks;
16882 else
16883   enable_conservative_checks=yes
16884 fi
16885
16886 if test x$enable_conservative_checks = xyes; then
16887
16888 $as_echo "#define CONSERVATIVE_CHECKS 1" >>confdefs.h
16889
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_conservative_checks" >&5
16892 $as_echo "$enable_conservative_checks" >&6; }
16893
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable msabi support" >&5
16895 $as_echo_n "checking whether to enable msabi support... " >&6; }
16896 # Check whether --enable-msabi_support was given.
16897 if test "${enable_msabi_support+set}" = set; then :
16898   enableval=$enable_msabi_support;
16899 fi
16900
16901 if test x$enable_msabi_support = xyes; then
16902
16903 $as_echo "#define CONFIG_MSABI_SUPPORT /**/" >>confdefs.h
16904
16905 fi
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_msabi_support" >&5
16907 $as_echo "$enable_msabi_support" >&6; }
16908
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LZMA-compressed symbol tables" >&5
16910 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
16911 # Check whether --enable-minidebuginfo was given.
16912 if test "${enable_minidebuginfo+set}" = set; then :
16913   enableval=$enable_minidebuginfo;
16914 else
16915   enable_minidebuginfo=auto
16916 fi
16917
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_minidebuginfo" >&5
16919 $as_echo "$enable_minidebuginfo" >&6; }
16920 if test x$enable_minidebuginfo != xno; then
16921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_mf_is_supported in -llzma" >&5
16922 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
16923 if ${ac_cv_lib_lzma_lzma_mf_is_supported+:} false; then :
16924   $as_echo_n "(cached) " >&6
16925 else
16926   ac_check_lib_save_LIBS=$LIBS
16927 LIBS="-llzma  $LIBS"
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h.  */
16930
16931 /* Override any GCC internal prototype to avoid an error.
16932    Use char because int might match the return type of a GCC
16933    builtin and then its argument prototype would still apply.  */
16934 #ifdef __cplusplus
16935 extern "C"
16936 #endif
16937 char lzma_mf_is_supported ();
16938 int
16939 main ()
16940 {
16941 return lzma_mf_is_supported ();
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 if ac_fn_c_try_link "$LINENO"; then :
16947   ac_cv_lib_lzma_lzma_mf_is_supported=yes
16948 else
16949   ac_cv_lib_lzma_lzma_mf_is_supported=no
16950 fi
16951 rm -f core conftest.err conftest.$ac_objext \
16952     conftest$ac_exeext conftest.$ac_ext
16953 LIBS=$ac_check_lib_save_LIBS
16954 fi
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
16956 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
16957 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = xyes; then :
16958   LIBLZMA=-lzma
16959
16960
16961 $as_echo "#define HAVE_LZMA 1" >>confdefs.h
16962
16963     enable_minidebuginfo=yes
16964 else
16965   if test x$enable_minidebuginfo = xyes; then
16966       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16968 as_fn_error $? "liblzma not found
16969 See \`config.log' for more details" "$LINENO" 5; }
16970     fi
16971 fi
16972
16973 fi
16974  if test x$enable_minidebuginfo = xyes; then
16975   HAVE_LZMA_TRUE=
16976   HAVE_LZMA_FALSE='#'
16977 else
16978   HAVE_LZMA_TRUE='#'
16979   HAVE_LZMA_FALSE=
16980 fi
16981
16982
16983 if test "x$enable___thread" != xno; then
16984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
16985 $as_echo_n "checking for __thread... " >&6; }
16986 if ${libc_cv_gcc___thread+:} false; then :
16987   $as_echo_n "(cached) " >&6
16988 else
16989   cat > conftest.c <<\EOF
16990     __thread int a = 42;
16991 EOF
16992   if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
16993   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16997   test $ac_status = 0; }; }; then
16998     libc_cv_gcc___thread=yes
16999   else
17000     libc_cv_gcc___thread=no
17001   fi
17002   rm -f conftest*
17003 fi
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
17005 $as_echo "$libc_cv_gcc___thread" >&6; }
17006   if test "$libc_cv_gcc___thread" = yes; then
17007
17008 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
17009
17010   fi
17011 else
17012   libc_cv_gcc___thread=no
17013 fi
17014
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel compiler" >&5
17016 $as_echo_n "checking for Intel compiler... " >&6; }
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h.  */
17019
17020 int
17021 main ()
17022 {
17023 #ifndef __INTEL_COMPILER
17024 #error choke me
17025 #endif
17026   ;
17027   return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_compile "$LINENO"; then :
17031   intel_compiler=yes
17032 else
17033   intel_compiler=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17036
17037 if test x$GCC = xyes -a x$intel_compiler != xyes; then
17038   CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
17039   LIBCRTS="-lgcc"
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_compiler" >&5
17042 $as_echo "$intel_compiler" >&6; }
17043
17044 if test x$intel_compiler = xyes; then
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -static-libcxa" >&5
17046 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
17047   save_LDFLAGS="$LDFLAGS"
17048   LDFLAGS="$LDFLAGS -static-libcxa"
17049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h.  */
17051
17052 int
17053 main ()
17054 {
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061   have_static_libcxa=yes
17062 else
17063   have_static_libcxa=no
17064 fi
17065 rm -f core conftest.err conftest.$ac_objext \
17066     conftest$ac_exeext conftest.$ac_ext
17067   LDFLAGS="$save_LDFLAGS"
17068   if test "x$have_static_libcxa" = xyes; then
17069     LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
17070   fi
17071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libcxa" >&5
17072 $as_echo "$have_static_libcxa" >&6; }
17073 fi
17074
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin___clear_cache" >&5
17076 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h.  */
17079
17080 int
17081 main ()
17082 {
17083 __builtin___clear_cache(0, 0)
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_link "$LINENO"; then :
17089   have__builtin___clear_cache=yes
17090 else
17091   have__builtin___clear_cache=no
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext \
17094     conftest$ac_exeext conftest.$ac_ext
17095 if test x$have__builtin___clear_cache = xyes; then
17096
17097 $as_echo "#define HAVE__BUILTIN___CLEAR_CACHE 1" >>confdefs.h
17098
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have__builtin___clear_cache" >&5
17101 $as_echo "$have__builtin___clear_cache" >&6; }
17102
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync atomics" >&5
17104 $as_echo_n "checking for __sync atomics... " >&6; }
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h.  */
17107
17108 int
17109 main ()
17110 {
17111
17112     __sync_bool_compare_and_swap((int *)0, 0, 1);
17113     __sync_fetch_and_add((int *)0, 1);
17114
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17120   have_sync_atomics=yes
17121 else
17122   have_sync_atomics=no
17123 fi
17124 rm -f core conftest.err conftest.$ac_objext \
17125     conftest$ac_exeext conftest.$ac_ext
17126 if test x$have_sync_atomics = xyes; then
17127
17128 $as_echo "#define HAVE_SYNC_ATOMICS 1" >>confdefs.h
17129
17130 fi
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_atomics" >&5
17132 $as_echo "$have_sync_atomics" >&6; }
17133
17134 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
17135
17136 arch="$target_arch"
17137 ARCH=`echo $target_arch | tr a-z A-Z`
17138
17139 PKG_MAJOR=1
17140 PKG_MINOR=1
17141 PKG_EXTRA=
17142 PKG_MAINTAINER=libunwind-devel@nongnu.org
17143
17144 old_LIBS="$LIBS"
17145 LIBS=""
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
17147 $as_echo_n "checking for library containing backtrace... " >&6; }
17148 if ${ac_cv_search_backtrace+:} false; then :
17149   $as_echo_n "(cached) " >&6
17150 else
17151   ac_func_search_save_LIBS=$LIBS
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h.  */
17154
17155 /* Override any GCC internal prototype to avoid an error.
17156    Use char because int might match the return type of a GCC
17157    builtin and then its argument prototype would still apply.  */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 char backtrace ();
17162 int
17163 main ()
17164 {
17165 return backtrace ();
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 for ac_lib in '' execinfo; do
17171   if test -z "$ac_lib"; then
17172     ac_res="none required"
17173   else
17174     ac_res=-l$ac_lib
17175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17176   fi
17177   if ac_fn_c_try_link "$LINENO"; then :
17178   ac_cv_search_backtrace=$ac_res
17179 fi
17180 rm -f core conftest.err conftest.$ac_objext \
17181     conftest$ac_exeext
17182   if ${ac_cv_search_backtrace+:} false; then :
17183   break
17184 fi
17185 done
17186 if ${ac_cv_search_backtrace+:} false; then :
17187
17188 else
17189   ac_cv_search_backtrace=no
17190 fi
17191 rm conftest.$ac_ext
17192 LIBS=$ac_func_search_save_LIBS
17193 fi
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
17195 $as_echo "$ac_cv_search_backtrace" >&6; }
17196 ac_res=$ac_cv_search_backtrace
17197 if test "$ac_res" != no; then :
17198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17199
17200 fi
17201
17202 LIBS="$old_LIBS"
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh doc/Makefile doc/common.tex include/libunwind-common.h include/libunwind.h include/tdep/libunwind_i.h"
17219
17220 ac_config_files="$ac_config_files src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc src/ptrace/libunwind-ptrace.pc src/setjmp/libunwind-setjmp.pc src/libunwind-generic.pc"
17221
17222 cat >confcache <<\_ACEOF
17223 # This file is a shell script that caches the results of configure
17224 # tests run on this system so they can be shared between configure
17225 # scripts and configure runs, see configure's option --config-cache.
17226 # It is not useful on other systems.  If it contains results you don't
17227 # want to keep, you may remove or edit it.
17228 #
17229 # config.status only pays attention to the cache file if you give it
17230 # the --recheck option to rerun configure.
17231 #
17232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17234 # following values.
17235
17236 _ACEOF
17237
17238 # The following way of writing the cache mishandles newlines in values,
17239 # but we know of no workaround that is simple, portable, and efficient.
17240 # So, we kill variables containing newlines.
17241 # Ultrix sh set writes to stderr and can't be redirected directly,
17242 # and sets the high bit in the cache file unless we assign to the vars.
17243 (
17244   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17245     eval ac_val=\$$ac_var
17246     case $ac_val in #(
17247     *${as_nl}*)
17248       case $ac_var in #(
17249       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17251       esac
17252       case $ac_var in #(
17253       _ | IFS | as_nl) ;; #(
17254       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17255       *) { eval $ac_var=; unset $ac_var;} ;;
17256       esac ;;
17257     esac
17258   done
17259
17260   (set) 2>&1 |
17261     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17262     *${as_nl}ac_space=\ *)
17263       # `set' does not quote correctly, so add quotes: double-quote
17264       # substitution turns \\\\ into \\, and sed turns \\ into \.
17265       sed -n \
17266         "s/'/'\\\\''/g;
17267           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17268       ;; #(
17269     *)
17270       # `set' quotes correctly as required by POSIX, so do not add quotes.
17271       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17272       ;;
17273     esac |
17274     sort
17275 ) |
17276   sed '
17277      /^ac_cv_env_/b end
17278      t clear
17279      :clear
17280      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17281      t end
17282      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17283      :end' >>confcache
17284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17285   if test -w "$cache_file"; then
17286     if test "x$cache_file" != "x/dev/null"; then
17287       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17288 $as_echo "$as_me: updating cache $cache_file" >&6;}
17289       if test ! -f "$cache_file" || test -h "$cache_file"; then
17290         cat confcache >"$cache_file"
17291       else
17292         case $cache_file in #(
17293         */* | ?:*)
17294           mv -f confcache "$cache_file"$$ &&
17295           mv -f "$cache_file"$$ "$cache_file" ;; #(
17296         *)
17297           mv -f confcache "$cache_file" ;;
17298         esac
17299       fi
17300     fi
17301   else
17302     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17303 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17304   fi
17305 fi
17306 rm -f confcache
17307
17308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17309 # Let make expand exec_prefix.
17310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17311
17312 DEFS=-DHAVE_CONFIG_H
17313
17314 ac_libobjs=
17315 ac_ltlibobjs=
17316 U=
17317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17318   # 1. Remove the extension, and $U if already installed.
17319   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17320   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17321   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17322   #    will be set to the directory where LIBOBJS objects are built.
17323   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17324   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17325 done
17326 LIBOBJS=$ac_libobjs
17327
17328 LTLIBOBJS=$ac_ltlibobjs
17329
17330
17331  if test -n "$EXEEXT"; then
17332   am__EXEEXT_TRUE=
17333   am__EXEEXT_FALSE='#'
17334 else
17335   am__EXEEXT_TRUE='#'
17336   am__EXEEXT_FALSE=
17337 fi
17338
17339 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17340   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17342 fi
17343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17344   as_fn_error $? "conditional \"AMDEP\" was never defined.
17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17346 fi
17347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17348   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17350 fi
17351 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17352   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354 fi
17355 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17356   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358 fi
17359 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
17360   as_fn_error $? "conditional \"USE_ALTIVEC\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17362 fi
17363 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
17364   as_fn_error $? "conditional \"BUILD_COREDUMP\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17366 fi
17367 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
17368   as_fn_error $? "conditional \"REMOTE_ONLY\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17370 fi
17371 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17372   as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17374 fi
17375 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
17376   as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17378 fi
17379 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
17380   as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17382 fi
17383 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
17384   as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17386 fi
17387 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17388   as_fn_error $? "conditional \"ARCH_X86\" was never defined.
17389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390 fi
17391 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
17392   as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
17393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17394 fi
17395 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
17396   as_fn_error $? "conditional \"ARCH_PPC32\" was never defined.
17397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17398 fi
17399 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
17400   as_fn_error $? "conditional \"ARCH_PPC64\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 fi
17403 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
17404   as_fn_error $? "conditional \"ARCH_SH\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406 fi
17407 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
17408   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17410 fi
17411 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
17412   as_fn_error $? "conditional \"OS_HPUX\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17414 fi
17415 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
17416   as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17418 fi
17419 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
17420   as_fn_error $? "conditional \"USE_ELF32\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17422 fi
17423 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
17424   as_fn_error $? "conditional \"USE_ELF64\" was never defined.
17425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17426 fi
17427 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
17428   as_fn_error $? "conditional \"USE_ELFXX\" was never defined.
17429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17430 fi
17431 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
17432   as_fn_error $? "conditional \"USE_DWARF\" was never defined.
17433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17434 fi
17435 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
17436   as_fn_error $? "conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
17437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17438 fi
17439 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
17440   as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
17441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17442 fi
17443
17444 : "${CONFIG_STATUS=./config.status}"
17445 ac_write_fail=0
17446 ac_clean_files_save=$ac_clean_files
17447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17449 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17450 as_write_fail=0
17451 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17452 #! $SHELL
17453 # Generated by $as_me.
17454 # Run this file to recreate the current configuration.
17455 # Compiler output produced by configure, useful for debugging
17456 # configure, is in config.log if it exists.
17457
17458 debug=false
17459 ac_cs_recheck=false
17460 ac_cs_silent=false
17461
17462 SHELL=\${CONFIG_SHELL-$SHELL}
17463 export SHELL
17464 _ASEOF
17465 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17466 ## -------------------- ##
17467 ## M4sh Initialization. ##
17468 ## -------------------- ##
17469
17470 # Be more Bourne compatible
17471 DUALCASE=1; export DUALCASE # for MKS sh
17472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17473   emulate sh
17474   NULLCMD=:
17475   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17476   # is contrary to our usage.  Disable this feature.
17477   alias -g '${1+"$@"}'='"$@"'
17478   setopt NO_GLOB_SUBST
17479 else
17480   case `(set -o) 2>/dev/null` in #(
17481   *posix*) :
17482     set -o posix ;; #(
17483   *) :
17484      ;;
17485 esac
17486 fi
17487
17488
17489 as_nl='
17490 '
17491 export as_nl
17492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17496 # Prefer a ksh shell builtin over an external printf program on Solaris,
17497 # but without wasting forks for bash or zsh.
17498 if test -z "$BASH_VERSION$ZSH_VERSION" \
17499     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17500   as_echo='print -r --'
17501   as_echo_n='print -rn --'
17502 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17503   as_echo='printf %s\n'
17504   as_echo_n='printf %s'
17505 else
17506   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17507     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17508     as_echo_n='/usr/ucb/echo -n'
17509   else
17510     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17511     as_echo_n_body='eval
17512       arg=$1;
17513       case $arg in #(
17514       *"$as_nl"*)
17515         expr "X$arg" : "X\\(.*\\)$as_nl";
17516         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17517       esac;
17518       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17519     '
17520     export as_echo_n_body
17521     as_echo_n='sh -c $as_echo_n_body as_echo'
17522   fi
17523   export as_echo_body
17524   as_echo='sh -c $as_echo_body as_echo'
17525 fi
17526
17527 # The user is always right.
17528 if test "${PATH_SEPARATOR+set}" != set; then
17529   PATH_SEPARATOR=:
17530   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17531     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17532       PATH_SEPARATOR=';'
17533   }
17534 fi
17535
17536
17537 # IFS
17538 # We need space, tab and new line, in precisely that order.  Quoting is
17539 # there to prevent editors from complaining about space-tab.
17540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17541 # splitting by setting IFS to empty value.)
17542 IFS=" ""        $as_nl"
17543
17544 # Find who we are.  Look in the path if we contain no directory separator.
17545 as_myself=
17546 case $0 in #((
17547   *[\\/]* ) as_myself=$0 ;;
17548   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17550 do
17551   IFS=$as_save_IFS
17552   test -z "$as_dir" && as_dir=.
17553     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17554   done
17555 IFS=$as_save_IFS
17556
17557      ;;
17558 esac
17559 # We did not find ourselves, most probably we were run as `sh COMMAND'
17560 # in which case we are not to be found in the path.
17561 if test "x$as_myself" = x; then
17562   as_myself=$0
17563 fi
17564 if test ! -f "$as_myself"; then
17565   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17566   exit 1
17567 fi
17568
17569 # Unset variables that we do not need and which cause bugs (e.g. in
17570 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17571 # suppresses any "Segmentation fault" message there.  '((' could
17572 # trigger a bug in pdksh 5.2.14.
17573 for as_var in BASH_ENV ENV MAIL MAILPATH
17574 do eval test x\${$as_var+set} = xset \
17575   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17576 done
17577 PS1='$ '
17578 PS2='> '
17579 PS4='+ '
17580
17581 # NLS nuisances.
17582 LC_ALL=C
17583 export LC_ALL
17584 LANGUAGE=C
17585 export LANGUAGE
17586
17587 # CDPATH.
17588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17589
17590
17591 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17592 # ----------------------------------------
17593 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17594 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17595 # script with STATUS, using 1 if that was 0.
17596 as_fn_error ()
17597 {
17598   as_status=$1; test $as_status -eq 0 && as_status=1
17599   if test "$4"; then
17600     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17601     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17602   fi
17603   $as_echo "$as_me: error: $2" >&2
17604   as_fn_exit $as_status
17605 } # as_fn_error
17606
17607
17608 # as_fn_set_status STATUS
17609 # -----------------------
17610 # Set $? to STATUS, without forking.
17611 as_fn_set_status ()
17612 {
17613   return $1
17614 } # as_fn_set_status
17615
17616 # as_fn_exit STATUS
17617 # -----------------
17618 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17619 as_fn_exit ()
17620 {
17621   set +e
17622   as_fn_set_status $1
17623   exit $1
17624 } # as_fn_exit
17625
17626 # as_fn_unset VAR
17627 # ---------------
17628 # Portably unset VAR.
17629 as_fn_unset ()
17630 {
17631   { eval $1=; unset $1;}
17632 }
17633 as_unset=as_fn_unset
17634 # as_fn_append VAR VALUE
17635 # ----------------------
17636 # Append the text in VALUE to the end of the definition contained in VAR. Take
17637 # advantage of any shell optimizations that allow amortized linear growth over
17638 # repeated appends, instead of the typical quadratic growth present in naive
17639 # implementations.
17640 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17641   eval 'as_fn_append ()
17642   {
17643     eval $1+=\$2
17644   }'
17645 else
17646   as_fn_append ()
17647   {
17648     eval $1=\$$1\$2
17649   }
17650 fi # as_fn_append
17651
17652 # as_fn_arith ARG...
17653 # ------------------
17654 # Perform arithmetic evaluation on the ARGs, and store the result in the
17655 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17656 # must be portable across $(()) and expr.
17657 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17658   eval 'as_fn_arith ()
17659   {
17660     as_val=$(( $* ))
17661   }'
17662 else
17663   as_fn_arith ()
17664   {
17665     as_val=`expr "$@" || test $? -eq 1`
17666   }
17667 fi # as_fn_arith
17668
17669
17670 if expr a : '\(a\)' >/dev/null 2>&1 &&
17671    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17672   as_expr=expr
17673 else
17674   as_expr=false
17675 fi
17676
17677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17678   as_basename=basename
17679 else
17680   as_basename=false
17681 fi
17682
17683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17684   as_dirname=dirname
17685 else
17686   as_dirname=false
17687 fi
17688
17689 as_me=`$as_basename -- "$0" ||
17690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17691          X"$0" : 'X\(//\)$' \| \
17692          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17693 $as_echo X/"$0" |
17694     sed '/^.*\/\([^/][^/]*\)\/*$/{
17695             s//\1/
17696             q
17697           }
17698           /^X\/\(\/\/\)$/{
17699             s//\1/
17700             q
17701           }
17702           /^X\/\(\/\).*/{
17703             s//\1/
17704             q
17705           }
17706           s/.*/./; q'`
17707
17708 # Avoid depending upon Character Ranges.
17709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17712 as_cr_digits='0123456789'
17713 as_cr_alnum=$as_cr_Letters$as_cr_digits
17714
17715 ECHO_C= ECHO_N= ECHO_T=
17716 case `echo -n x` in #(((((
17717 -n*)
17718   case `echo 'xy\c'` in
17719   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17720   xy)  ECHO_C='\c';;
17721   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17722        ECHO_T=' ';;
17723   esac;;
17724 *)
17725   ECHO_N='-n';;
17726 esac
17727
17728 rm -f conf$$ conf$$.exe conf$$.file
17729 if test -d conf$$.dir; then
17730   rm -f conf$$.dir/conf$$.file
17731 else
17732   rm -f conf$$.dir
17733   mkdir conf$$.dir 2>/dev/null
17734 fi
17735 if (echo >conf$$.file) 2>/dev/null; then
17736   if ln -s conf$$.file conf$$ 2>/dev/null; then
17737     as_ln_s='ln -s'
17738     # ... but there are two gotchas:
17739     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17740     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17741     # In both cases, we have to default to `cp -p'.
17742     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17743       as_ln_s='cp -p'
17744   elif ln conf$$.file conf$$ 2>/dev/null; then
17745     as_ln_s=ln
17746   else
17747     as_ln_s='cp -p'
17748   fi
17749 else
17750   as_ln_s='cp -p'
17751 fi
17752 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17753 rmdir conf$$.dir 2>/dev/null
17754
17755
17756 # as_fn_mkdir_p
17757 # -------------
17758 # Create "$as_dir" as a directory, including parents if necessary.
17759 as_fn_mkdir_p ()
17760 {
17761
17762   case $as_dir in #(
17763   -*) as_dir=./$as_dir;;
17764   esac
17765   test -d "$as_dir" || eval $as_mkdir_p || {
17766     as_dirs=
17767     while :; do
17768       case $as_dir in #(
17769       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17770       *) as_qdir=$as_dir;;
17771       esac
17772       as_dirs="'$as_qdir' $as_dirs"
17773       as_dir=`$as_dirname -- "$as_dir" ||
17774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17775          X"$as_dir" : 'X\(//\)[^/]' \| \
17776          X"$as_dir" : 'X\(//\)$' \| \
17777          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17778 $as_echo X"$as_dir" |
17779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17780             s//\1/
17781             q
17782           }
17783           /^X\(\/\/\)[^/].*/{
17784             s//\1/
17785             q
17786           }
17787           /^X\(\/\/\)$/{
17788             s//\1/
17789             q
17790           }
17791           /^X\(\/\).*/{
17792             s//\1/
17793             q
17794           }
17795           s/.*/./; q'`
17796       test -d "$as_dir" && break
17797     done
17798     test -z "$as_dirs" || eval "mkdir $as_dirs"
17799   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17800
17801
17802 } # as_fn_mkdir_p
17803 if mkdir -p . 2>/dev/null; then
17804   as_mkdir_p='mkdir -p "$as_dir"'
17805 else
17806   test -d ./-p && rmdir ./-p
17807   as_mkdir_p=false
17808 fi
17809
17810 if test -x / >/dev/null 2>&1; then
17811   as_test_x='test -x'
17812 else
17813   if ls -dL / >/dev/null 2>&1; then
17814     as_ls_L_option=L
17815   else
17816     as_ls_L_option=
17817   fi
17818   as_test_x='
17819     eval sh -c '\''
17820       if test -d "$1"; then
17821         test -d "$1/.";
17822       else
17823         case $1 in #(
17824         -*)set "./$1";;
17825         esac;
17826         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17827         ???[sx]*):;;*)false;;esac;fi
17828     '\'' sh
17829   '
17830 fi
17831 as_executable_p=$as_test_x
17832
17833 # Sed expression to map a string onto a valid CPP name.
17834 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17835
17836 # Sed expression to map a string onto a valid variable name.
17837 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17838
17839
17840 exec 6>&1
17841 ## ----------------------------------- ##
17842 ## Main body of $CONFIG_STATUS script. ##
17843 ## ----------------------------------- ##
17844 _ASEOF
17845 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17846
17847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848 # Save the log message, to keep $0 and so on meaningful, and to
17849 # report actual input values of CONFIG_FILES etc. instead of their
17850 # values after options handling.
17851 ac_log="
17852 This file was extended by libunwind $as_me 1.1, which was
17853 generated by GNU Autoconf 2.68.  Invocation command line was
17854
17855   CONFIG_FILES    = $CONFIG_FILES
17856   CONFIG_HEADERS  = $CONFIG_HEADERS
17857   CONFIG_LINKS    = $CONFIG_LINKS
17858   CONFIG_COMMANDS = $CONFIG_COMMANDS
17859   $ $0 $@
17860
17861 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17862 "
17863
17864 _ACEOF
17865
17866 case $ac_config_files in *"
17867 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17868 esac
17869
17870 case $ac_config_headers in *"
17871 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17872 esac
17873
17874
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 # Files that config.status was made for.
17877 config_files="$ac_config_files"
17878 config_headers="$ac_config_headers"
17879 config_commands="$ac_config_commands"
17880
17881 _ACEOF
17882
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 ac_cs_usage="\
17885 \`$as_me' instantiates files and other configuration actions
17886 from templates according to the current configuration.  Unless the files
17887 and actions are specified as TAGs, all are instantiated by default.
17888
17889 Usage: $0 [OPTION]... [TAG]...
17890
17891   -h, --help       print this help, then exit
17892   -V, --version    print version number and configuration settings, then exit
17893       --config     print configuration, then exit
17894   -q, --quiet, --silent
17895                    do not print progress messages
17896   -d, --debug      don't remove temporary files
17897       --recheck    update $as_me by reconfiguring in the same conditions
17898       --file=FILE[:TEMPLATE]
17899                    instantiate the configuration file FILE
17900       --header=FILE[:TEMPLATE]
17901                    instantiate the configuration header FILE
17902
17903 Configuration files:
17904 $config_files
17905
17906 Configuration headers:
17907 $config_headers
17908
17909 Configuration commands:
17910 $config_commands
17911
17912 Report bugs to <libunwind-devel@nongnu.org>."
17913
17914 _ACEOF
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17917 ac_cs_version="\\
17918 libunwind config.status 1.1
17919 configured by $0, generated by GNU Autoconf 2.68,
17920   with options \\"\$ac_cs_config\\"
17921
17922 Copyright (C) 2010 Free Software Foundation, Inc.
17923 This config.status script is free software; the Free Software Foundation
17924 gives unlimited permission to copy, distribute and modify it."
17925
17926 ac_pwd='$ac_pwd'
17927 srcdir='$srcdir'
17928 INSTALL='$INSTALL'
17929 MKDIR_P='$MKDIR_P'
17930 AWK='$AWK'
17931 test -n "\$AWK" || AWK=awk
17932 _ACEOF
17933
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935 # The default lists apply if the user does not specify any file.
17936 ac_need_defaults=:
17937 while test $# != 0
17938 do
17939   case $1 in
17940   --*=?*)
17941     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17942     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17943     ac_shift=:
17944     ;;
17945   --*=)
17946     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17947     ac_optarg=
17948     ac_shift=:
17949     ;;
17950   *)
17951     ac_option=$1
17952     ac_optarg=$2
17953     ac_shift=shift
17954     ;;
17955   esac
17956
17957   case $ac_option in
17958   # Handling of the options.
17959   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17960     ac_cs_recheck=: ;;
17961   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17962     $as_echo "$ac_cs_version"; exit ;;
17963   --config | --confi | --conf | --con | --co | --c )
17964     $as_echo "$ac_cs_config"; exit ;;
17965   --debug | --debu | --deb | --de | --d | -d )
17966     debug=: ;;
17967   --file | --fil | --fi | --f )
17968     $ac_shift
17969     case $ac_optarg in
17970     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17971     '') as_fn_error $? "missing file argument" ;;
17972     esac
17973     as_fn_append CONFIG_FILES " '$ac_optarg'"
17974     ac_need_defaults=false;;
17975   --header | --heade | --head | --hea )
17976     $ac_shift
17977     case $ac_optarg in
17978     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17979     esac
17980     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17981     ac_need_defaults=false;;
17982   --he | --h)
17983     # Conflict between --help and --header
17984     as_fn_error $? "ambiguous option: \`$1'
17985 Try \`$0 --help' for more information.";;
17986   --help | --hel | -h )
17987     $as_echo "$ac_cs_usage"; exit ;;
17988   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17989   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17990     ac_cs_silent=: ;;
17991
17992   # This is an error.
17993   -*) as_fn_error $? "unrecognized option: \`$1'
17994 Try \`$0 --help' for more information." ;;
17995
17996   *) as_fn_append ac_config_targets " $1"
17997      ac_need_defaults=false ;;
17998
17999   esac
18000   shift
18001 done
18002
18003 ac_configure_extra_args=
18004
18005 if $ac_cs_silent; then
18006   exec 6>/dev/null
18007   ac_configure_extra_args="$ac_configure_extra_args --silent"
18008 fi
18009
18010 _ACEOF
18011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18012 if \$ac_cs_recheck; then
18013   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18014   shift
18015   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18016   CONFIG_SHELL='$SHELL'
18017   export CONFIG_SHELL
18018   exec "\$@"
18019 fi
18020
18021 _ACEOF
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 exec 5>>config.log
18024 {
18025   echo
18026   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18027 ## Running $as_me. ##
18028 _ASBOX
18029   $as_echo "$ac_log"
18030 } >&5
18031
18032 _ACEOF
18033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18034 #
18035 # INIT-COMMANDS
18036 #
18037 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18038
18039
18040 # The HP-UX ksh and POSIX shell print the target directory to stdout
18041 # if CDPATH is set.
18042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18043
18044 sed_quote_subst='$sed_quote_subst'
18045 double_quote_subst='$double_quote_subst'
18046 delay_variable_subst='$delay_variable_subst'
18047 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18048 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18049 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18050 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18051 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18052 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18053 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18054 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18055 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18056 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18057 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18058 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18059 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18060 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18061 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18062 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18063 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18064 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18065 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18066 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18067 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18068 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18069 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18070 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18071 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18072 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18073 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18074 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18075 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18076 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18077 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18078 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18079 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18080 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18081 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18082 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18083 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18084 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18085 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18086 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18087 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18088 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18089 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18090 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18091 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18092 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18093 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18094 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18095 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18096 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18097 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18098 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18099 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18100 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18101 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18102 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18103 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"`'
18104 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18105 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18106 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18107 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18108 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18109 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18110 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18111 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18112 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18113 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18114 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18115 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18116 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18117 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18118 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18119 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18120 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18121 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18122 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18123 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18124 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18125 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18126 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18127 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18128 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18129 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18130 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18131 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18132 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18133 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18134 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18135 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18136 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18137 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18138 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18139 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18140 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18141 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18142 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18143 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18144 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18145 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18146 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18147 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18148 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18149 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18150 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18151 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18152 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18153 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18154 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18155 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18156 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18157 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18158 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18159 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18160 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18161 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18162 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18163 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18164 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18165 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18166 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18167 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18168 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18169 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18170 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18171 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18172 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18173 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18174 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18175 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18176 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18177 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18178 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18179 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18180 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18181 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18182 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18183 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18184 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18185 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18187 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18188 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18189 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18190 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18191 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18193 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18194 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18195 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18196 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18197 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18198 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18199 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18200 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18201 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18202 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18203 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18206 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18207 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18208 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18209 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18210 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18211 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18212 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18213 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18214 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18215 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18216 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18217 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18218 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18219 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18220 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18221 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18224 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18225 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18226 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18227 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18228 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18229 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18230 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18231
18232 LTCC='$LTCC'
18233 LTCFLAGS='$LTCFLAGS'
18234 compiler='$compiler_DEFAULT'
18235
18236 # A function that is used when there is no print builtin or printf.
18237 func_fallback_echo ()
18238 {
18239   eval 'cat <<_LTECHO_EOF
18240 \$1
18241 _LTECHO_EOF'
18242 }
18243
18244 # Quote evaled strings.
18245 for var in SHELL \
18246 ECHO \
18247 PATH_SEPARATOR \
18248 SED \
18249 GREP \
18250 EGREP \
18251 FGREP \
18252 LD \
18253 NM \
18254 LN_S \
18255 lt_SP2NL \
18256 lt_NL2SP \
18257 reload_flag \
18258 OBJDUMP \
18259 deplibs_check_method \
18260 file_magic_cmd \
18261 file_magic_glob \
18262 want_nocaseglob \
18263 DLLTOOL \
18264 sharedlib_from_linklib_cmd \
18265 AR \
18266 AR_FLAGS \
18267 archiver_list_spec \
18268 STRIP \
18269 RANLIB \
18270 CC \
18271 CFLAGS \
18272 compiler \
18273 lt_cv_sys_global_symbol_pipe \
18274 lt_cv_sys_global_symbol_to_cdecl \
18275 lt_cv_sys_global_symbol_to_c_name_address \
18276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18277 nm_file_list_spec \
18278 lt_prog_compiler_no_builtin_flag \
18279 lt_prog_compiler_pic \
18280 lt_prog_compiler_wl \
18281 lt_prog_compiler_static \
18282 lt_cv_prog_compiler_c_o \
18283 need_locks \
18284 MANIFEST_TOOL \
18285 DSYMUTIL \
18286 NMEDIT \
18287 LIPO \
18288 OTOOL \
18289 OTOOL64 \
18290 shrext_cmds \
18291 export_dynamic_flag_spec \
18292 whole_archive_flag_spec \
18293 compiler_needs_object \
18294 with_gnu_ld \
18295 allow_undefined_flag \
18296 no_undefined_flag \
18297 hardcode_libdir_flag_spec \
18298 hardcode_libdir_separator \
18299 exclude_expsyms \
18300 include_expsyms \
18301 file_list_spec \
18302 variables_saved_for_relink \
18303 libname_spec \
18304 library_names_spec \
18305 soname_spec \
18306 install_override_mode \
18307 finish_eval \
18308 old_striplib \
18309 striplib \
18310 compiler_lib_search_dirs \
18311 predep_objects \
18312 postdep_objects \
18313 predeps \
18314 postdeps \
18315 compiler_lib_search_path \
18316 LD_CXX \
18317 reload_flag_CXX \
18318 compiler_CXX \
18319 lt_prog_compiler_no_builtin_flag_CXX \
18320 lt_prog_compiler_pic_CXX \
18321 lt_prog_compiler_wl_CXX \
18322 lt_prog_compiler_static_CXX \
18323 lt_cv_prog_compiler_c_o_CXX \
18324 export_dynamic_flag_spec_CXX \
18325 whole_archive_flag_spec_CXX \
18326 compiler_needs_object_CXX \
18327 with_gnu_ld_CXX \
18328 allow_undefined_flag_CXX \
18329 no_undefined_flag_CXX \
18330 hardcode_libdir_flag_spec_CXX \
18331 hardcode_libdir_separator_CXX \
18332 exclude_expsyms_CXX \
18333 include_expsyms_CXX \
18334 file_list_spec_CXX \
18335 compiler_lib_search_dirs_CXX \
18336 predep_objects_CXX \
18337 postdep_objects_CXX \
18338 predeps_CXX \
18339 postdeps_CXX \
18340 compiler_lib_search_path_CXX; do
18341     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18342     *[\\\\\\\`\\"\\\$]*)
18343       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18344       ;;
18345     *)
18346       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18347       ;;
18348     esac
18349 done
18350
18351 # Double-quote double-evaled strings.
18352 for var in reload_cmds \
18353 old_postinstall_cmds \
18354 old_postuninstall_cmds \
18355 old_archive_cmds \
18356 extract_expsyms_cmds \
18357 old_archive_from_new_cmds \
18358 old_archive_from_expsyms_cmds \
18359 archive_cmds \
18360 archive_expsym_cmds \
18361 module_cmds \
18362 module_expsym_cmds \
18363 export_symbols_cmds \
18364 prelink_cmds \
18365 postlink_cmds \
18366 postinstall_cmds \
18367 postuninstall_cmds \
18368 finish_cmds \
18369 sys_lib_search_path_spec \
18370 sys_lib_dlsearch_path_spec \
18371 reload_cmds_CXX \
18372 old_archive_cmds_CXX \
18373 old_archive_from_new_cmds_CXX \
18374 old_archive_from_expsyms_cmds_CXX \
18375 archive_cmds_CXX \
18376 archive_expsym_cmds_CXX \
18377 module_cmds_CXX \
18378 module_expsym_cmds_CXX \
18379 export_symbols_cmds_CXX \
18380 prelink_cmds_CXX \
18381 postlink_cmds_CXX; do
18382     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18383     *[\\\\\\\`\\"\\\$]*)
18384       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18385       ;;
18386     *)
18387       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18388       ;;
18389     esac
18390 done
18391
18392 ac_aux_dir='$ac_aux_dir'
18393 xsi_shell='$xsi_shell'
18394 lt_shell_append='$lt_shell_append'
18395
18396 # See if we are running on zsh, and set the options which allow our
18397 # commands through without removal of \ escapes INIT.
18398 if test -n "\${ZSH_VERSION+set}" ; then
18399    setopt NO_GLOB_SUBST
18400 fi
18401
18402
18403     PACKAGE='$PACKAGE'
18404     VERSION='$VERSION'
18405     TIMESTAMP='$TIMESTAMP'
18406     RM='$RM'
18407     ofile='$ofile'
18408
18409
18410
18411
18412
18413
18414 _ACEOF
18415
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18417
18418 # Handling of arguments.
18419 for ac_config_target in $ac_config_targets
18420 do
18421   case $ac_config_target in
18422     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18423     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18424     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18425     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18426     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18427     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18428     "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
18429     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18430     "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
18431     "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
18432     "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
18433     "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
18434     "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
18435     "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
18436     "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
18437     "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
18438     "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
18439
18440   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18441   esac
18442 done
18443
18444
18445 # If the user did not use the arguments to specify the items to instantiate,
18446 # then the envvar interface is used.  Set only those that are not.
18447 # We use the long form for the default assignment because of an extremely
18448 # bizarre bug on SunOS 4.1.3.
18449 if $ac_need_defaults; then
18450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18453 fi
18454
18455 # Have a temporary directory for convenience.  Make it in the build tree
18456 # simply because there is no reason against having it here, and in addition,
18457 # creating and moving files from /tmp can sometimes cause problems.
18458 # Hook for its removal unless debugging.
18459 # Note that there is a small window in which the directory will not be cleaned:
18460 # after its creation but before its name has been assigned to `$tmp'.
18461 $debug ||
18462 {
18463   tmp= ac_tmp=
18464   trap 'exit_status=$?
18465   : "${ac_tmp:=$tmp}"
18466   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18467 ' 0
18468   trap 'as_fn_exit 1' 1 2 13 15
18469 }
18470 # Create a (secure) tmp directory for tmp files.
18471
18472 {
18473   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18474   test -d "$tmp"
18475 }  ||
18476 {
18477   tmp=./conf$$-$RANDOM
18478   (umask 077 && mkdir "$tmp")
18479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18480 ac_tmp=$tmp
18481
18482 # Set up the scripts for CONFIG_FILES section.
18483 # No need to generate them if there are no CONFIG_FILES.
18484 # This happens for instance with `./config.status config.h'.
18485 if test -n "$CONFIG_FILES"; then
18486
18487
18488 ac_cr=`echo X | tr X '\015'`
18489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18490 # But we know of no other shell where ac_cr would be empty at this
18491 # point, so we can use a bashism as a fallback.
18492 if test "x$ac_cr" = x; then
18493   eval ac_cr=\$\'\\r\'
18494 fi
18495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18497   ac_cs_awk_cr='\\r'
18498 else
18499   ac_cs_awk_cr=$ac_cr
18500 fi
18501
18502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18503 _ACEOF
18504
18505
18506 {
18507   echo "cat >conf$$subs.awk <<_ACEOF" &&
18508   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18509   echo "_ACEOF"
18510 } >conf$$subs.sh ||
18511   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18513 ac_delim='%!_!# '
18514 for ac_last_try in false false false false false :; do
18515   . ./conf$$subs.sh ||
18516     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18517
18518   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18519   if test $ac_delim_n = $ac_delim_num; then
18520     break
18521   elif $ac_last_try; then
18522     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18523   else
18524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18525   fi
18526 done
18527 rm -f conf$$subs.sh
18528
18529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18531 _ACEOF
18532 sed -n '
18533 h
18534 s/^/S["/; s/!.*/"]=/
18535 p
18536 g
18537 s/^[^!]*!//
18538 :repl
18539 t repl
18540 s/'"$ac_delim"'$//
18541 t delim
18542 :nl
18543 h
18544 s/\(.\{148\}\)..*/\1/
18545 t more1
18546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18547 p
18548 n
18549 b repl
18550 :more1
18551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18552 p
18553 g
18554 s/.\{148\}//
18555 t nl
18556 :delim
18557 h
18558 s/\(.\{148\}\)..*/\1/
18559 t more2
18560 s/["\\]/\\&/g; s/^/"/; s/$/"/
18561 p
18562 b
18563 :more2
18564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18565 p
18566 g
18567 s/.\{148\}//
18568 t delim
18569 ' <conf$$subs.awk | sed '
18570 /^[^""]/{
18571   N
18572   s/\n//
18573 }
18574 ' >>$CONFIG_STATUS || ac_write_fail=1
18575 rm -f conf$$subs.awk
18576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577 _ACAWK
18578 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18579   for (key in S) S_is_set[key] = 1
18580   FS = "\a"
18581
18582 }
18583 {
18584   line = $ 0
18585   nfields = split(line, field, "@")
18586   substed = 0
18587   len = length(field[1])
18588   for (i = 2; i < nfields; i++) {
18589     key = field[i]
18590     keylen = length(key)
18591     if (S_is_set[key]) {
18592       value = S[key]
18593       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18594       len += length(value) + length(field[++i])
18595       substed = 1
18596     } else
18597       len += 1 + keylen
18598   }
18599
18600   print line
18601 }
18602
18603 _ACAWK
18604 _ACEOF
18605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18607   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18608 else
18609   cat
18610 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18611   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18612 _ACEOF
18613
18614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18616 # trailing colons and then remove the whole line if VPATH becomes empty
18617 # (actually we leave an empty line to preserve line numbers).
18618 if test "x$srcdir" = x.; then
18619   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18620 h
18621 s///
18622 s/^/:/
18623 s/[      ]*$/:/
18624 s/:\$(srcdir):/:/g
18625 s/:\${srcdir}:/:/g
18626 s/:@srcdir@:/:/g
18627 s/^:*//
18628 s/:*$//
18629 x
18630 s/\(=[   ]*\).*/\1/
18631 G
18632 s/\n//
18633 s/^[^=]*=[       ]*$//
18634 }'
18635 fi
18636
18637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18638 fi # test -n "$CONFIG_FILES"
18639
18640 # Set up the scripts for CONFIG_HEADERS section.
18641 # No need to generate them if there are no CONFIG_HEADERS.
18642 # This happens for instance with `./config.status Makefile'.
18643 if test -n "$CONFIG_HEADERS"; then
18644 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18645 BEGIN {
18646 _ACEOF
18647
18648 # Transform confdefs.h into an awk script `defines.awk', embedded as
18649 # here-document in config.status, that substitutes the proper values into
18650 # config.h.in to produce config.h.
18651
18652 # Create a delimiter string that does not exist in confdefs.h, to ease
18653 # handling of long lines.
18654 ac_delim='%!_!# '
18655 for ac_last_try in false false :; do
18656   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18657   if test -z "$ac_tt"; then
18658     break
18659   elif $ac_last_try; then
18660     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18661   else
18662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18663   fi
18664 done
18665
18666 # For the awk script, D is an array of macro values keyed by name,
18667 # likewise P contains macro parameters if any.  Preserve backslash
18668 # newline sequences.
18669
18670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18671 sed -n '
18672 s/.\{148\}/&'"$ac_delim"'/g
18673 t rset
18674 :rset
18675 s/^[     ]*#[    ]*define[       ][      ]*/ /
18676 t def
18677 d
18678 :def
18679 s/\\$//
18680 t bsnl
18681 s/["\\]/\\&/g
18682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18683 D["\1"]=" \3"/p
18684 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18685 d
18686 :bsnl
18687 s/["\\]/\\&/g
18688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18689 D["\1"]=" \3\\\\\\n"\\/p
18690 t cont
18691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18692 t cont
18693 d
18694 :cont
18695 n
18696 s/.\{148\}/&'"$ac_delim"'/g
18697 t clear
18698 :clear
18699 s/\\$//
18700 t bsnlc
18701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18702 d
18703 :bsnlc
18704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18705 b cont
18706 ' <confdefs.h | sed '
18707 s/'"$ac_delim"'/"\\\
18708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18709
18710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18711   for (key in D) D_is_set[key] = 1
18712   FS = "\a"
18713 }
18714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18715   line = \$ 0
18716   split(line, arg, " ")
18717   if (arg[1] == "#") {
18718     defundef = arg[2]
18719     mac1 = arg[3]
18720   } else {
18721     defundef = substr(arg[1], 2)
18722     mac1 = arg[2]
18723   }
18724   split(mac1, mac2, "(") #)
18725   macro = mac2[1]
18726   prefix = substr(line, 1, index(line, defundef) - 1)
18727   if (D_is_set[macro]) {
18728     # Preserve the white space surrounding the "#".
18729     print prefix "define", macro P[macro] D[macro]
18730     next
18731   } else {
18732     # Replace #undef with comments.  This is necessary, for example,
18733     # in the case of _POSIX_SOURCE, which is predefined and required
18734     # on some systems where configure will not decide to define it.
18735     if (defundef == "undef") {
18736       print "/*", prefix defundef, macro, "*/"
18737       next
18738     }
18739   }
18740 }
18741 { print }
18742 _ACAWK
18743 _ACEOF
18744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18745   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18746 fi # test -n "$CONFIG_HEADERS"
18747
18748
18749 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18750 shift
18751 for ac_tag
18752 do
18753   case $ac_tag in
18754   :[FHLC]) ac_mode=$ac_tag; continue;;
18755   esac
18756   case $ac_mode$ac_tag in
18757   :[FHL]*:*);;
18758   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18759   :[FH]-) ac_tag=-:-;;
18760   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18761   esac
18762   ac_save_IFS=$IFS
18763   IFS=:
18764   set x $ac_tag
18765   IFS=$ac_save_IFS
18766   shift
18767   ac_file=$1
18768   shift
18769
18770   case $ac_mode in
18771   :L) ac_source=$1;;
18772   :[FH])
18773     ac_file_inputs=
18774     for ac_f
18775     do
18776       case $ac_f in
18777       -) ac_f="$ac_tmp/stdin";;
18778       *) # Look for the file first in the build tree, then in the source tree
18779          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18780          # because $ac_f cannot contain `:'.
18781          test -f "$ac_f" ||
18782            case $ac_f in
18783            [\\/$]*) false;;
18784            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18785            esac ||
18786            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18787       esac
18788       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18789       as_fn_append ac_file_inputs " '$ac_f'"
18790     done
18791
18792     # Let's still pretend it is `configure' which instantiates (i.e., don't
18793     # use $as_me), people would be surprised to read:
18794     #    /* config.h.  Generated by config.status.  */
18795     configure_input='Generated from '`
18796           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18797         `' by configure.'
18798     if test x"$ac_file" != x-; then
18799       configure_input="$ac_file.  $configure_input"
18800       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18801 $as_echo "$as_me: creating $ac_file" >&6;}
18802     fi
18803     # Neutralize special characters interpreted by sed in replacement strings.
18804     case $configure_input in #(
18805     *\&* | *\|* | *\\* )
18806        ac_sed_conf_input=`$as_echo "$configure_input" |
18807        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18808     *) ac_sed_conf_input=$configure_input;;
18809     esac
18810
18811     case $ac_tag in
18812     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18813       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18814     esac
18815     ;;
18816   esac
18817
18818   ac_dir=`$as_dirname -- "$ac_file" ||
18819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18820          X"$ac_file" : 'X\(//\)[^/]' \| \
18821          X"$ac_file" : 'X\(//\)$' \| \
18822          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18823 $as_echo X"$ac_file" |
18824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18825             s//\1/
18826             q
18827           }
18828           /^X\(\/\/\)[^/].*/{
18829             s//\1/
18830             q
18831           }
18832           /^X\(\/\/\)$/{
18833             s//\1/
18834             q
18835           }
18836           /^X\(\/\).*/{
18837             s//\1/
18838             q
18839           }
18840           s/.*/./; q'`
18841   as_dir="$ac_dir"; as_fn_mkdir_p
18842   ac_builddir=.
18843
18844 case "$ac_dir" in
18845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18846 *)
18847   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18848   # A ".." for each directory in $ac_dir_suffix.
18849   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18850   case $ac_top_builddir_sub in
18851   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18852   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18853   esac ;;
18854 esac
18855 ac_abs_top_builddir=$ac_pwd
18856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18857 # for backward compatibility:
18858 ac_top_builddir=$ac_top_build_prefix
18859
18860 case $srcdir in
18861   .)  # We are building in place.
18862     ac_srcdir=.
18863     ac_top_srcdir=$ac_top_builddir_sub
18864     ac_abs_top_srcdir=$ac_pwd ;;
18865   [\\/]* | ?:[\\/]* )  # Absolute name.
18866     ac_srcdir=$srcdir$ac_dir_suffix;
18867     ac_top_srcdir=$srcdir
18868     ac_abs_top_srcdir=$srcdir ;;
18869   *) # Relative name.
18870     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18871     ac_top_srcdir=$ac_top_build_prefix$srcdir
18872     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18873 esac
18874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18875
18876
18877   case $ac_mode in
18878   :F)
18879   #
18880   # CONFIG_FILE
18881   #
18882
18883   case $INSTALL in
18884   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18885   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18886   esac
18887   ac_MKDIR_P=$MKDIR_P
18888   case $MKDIR_P in
18889   [\\/$]* | ?:[\\/]* ) ;;
18890   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18891   esac
18892 _ACEOF
18893
18894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18895 # If the template does not know about datarootdir, expand it.
18896 # FIXME: This hack should be removed a few years after 2.60.
18897 ac_datarootdir_hack=; ac_datarootdir_seen=
18898 ac_sed_dataroot='
18899 /datarootdir/ {
18900   p
18901   q
18902 }
18903 /@datadir@/p
18904 /@docdir@/p
18905 /@infodir@/p
18906 /@localedir@/p
18907 /@mandir@/p'
18908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18909 *datarootdir*) ac_datarootdir_seen=yes;;
18910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18913 _ACEOF
18914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18915   ac_datarootdir_hack='
18916   s&@datadir@&$datadir&g
18917   s&@docdir@&$docdir&g
18918   s&@infodir@&$infodir&g
18919   s&@localedir@&$localedir&g
18920   s&@mandir@&$mandir&g
18921   s&\\\${datarootdir}&$datarootdir&g' ;;
18922 esac
18923 _ACEOF
18924
18925 # Neutralize VPATH when `$srcdir' = `.'.
18926 # Shell code in configure.ac might set extrasub.
18927 # FIXME: do we really want to maintain this feature?
18928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18929 ac_sed_extra="$ac_vpsub
18930 $extrasub
18931 _ACEOF
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18933 :t
18934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18935 s|@configure_input@|$ac_sed_conf_input|;t t
18936 s&@top_builddir@&$ac_top_builddir_sub&;t t
18937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18938 s&@srcdir@&$ac_srcdir&;t t
18939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18940 s&@top_srcdir@&$ac_top_srcdir&;t t
18941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18942 s&@builddir@&$ac_builddir&;t t
18943 s&@abs_builddir@&$ac_abs_builddir&;t t
18944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18945 s&@INSTALL@&$ac_INSTALL&;t t
18946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18947 $ac_datarootdir_hack
18948 "
18949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18950   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18951
18952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18953   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18954   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18955       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18956   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18957 which seems to be undefined.  Please make sure it is defined" >&5
18958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18959 which seems to be undefined.  Please make sure it is defined" >&2;}
18960
18961   rm -f "$ac_tmp/stdin"
18962   case $ac_file in
18963   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18964   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18965   esac \
18966   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18967  ;;
18968   :H)
18969   #
18970   # CONFIG_HEADER
18971   #
18972   if test x"$ac_file" != x-; then
18973     {
18974       $as_echo "/* $configure_input  */" \
18975       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18976     } >"$ac_tmp/config.h" \
18977       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18978     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18979       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18981     else
18982       rm -f "$ac_file"
18983       mv "$ac_tmp/config.h" "$ac_file" \
18984         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18985     fi
18986   else
18987     $as_echo "/* $configure_input  */" \
18988       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18989       || as_fn_error $? "could not create -" "$LINENO" 5
18990   fi
18991 # Compute "$ac_file"'s index in $config_headers.
18992 _am_arg="$ac_file"
18993 _am_stamp_count=1
18994 for _am_header in $config_headers :; do
18995   case $_am_header in
18996     $_am_arg | $_am_arg:* )
18997       break ;;
18998     * )
18999       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19000   esac
19001 done
19002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19004          X"$_am_arg" : 'X\(//\)[^/]' \| \
19005          X"$_am_arg" : 'X\(//\)$' \| \
19006          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19007 $as_echo X"$_am_arg" |
19008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19009             s//\1/
19010             q
19011           }
19012           /^X\(\/\/\)[^/].*/{
19013             s//\1/
19014             q
19015           }
19016           /^X\(\/\/\)$/{
19017             s//\1/
19018             q
19019           }
19020           /^X\(\/\).*/{
19021             s//\1/
19022             q
19023           }
19024           s/.*/./; q'`/stamp-h$_am_stamp_count
19025  ;;
19026
19027   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19028 $as_echo "$as_me: executing $ac_file commands" >&6;}
19029  ;;
19030   esac
19031
19032
19033   case $ac_file$ac_mode in
19034     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19035   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19036   # are listed without --file.  Let's play safe and only enable the eval
19037   # if we detect the quoting.
19038   case $CONFIG_FILES in
19039   *\'*) eval set x "$CONFIG_FILES" ;;
19040   *)   set x $CONFIG_FILES ;;
19041   esac
19042   shift
19043   for mf
19044   do
19045     # Strip MF so we end up with the name of the file.
19046     mf=`echo "$mf" | sed -e 's/:.*$//'`
19047     # Check whether this is an Automake generated Makefile or not.
19048     # We used to match only the files named `Makefile.in', but
19049     # some people rename them; so instead we look at the file content.
19050     # Grep'ing the first line is not enough: some people post-process
19051     # each Makefile.in and add a new line on top of each file to say so.
19052     # Grep'ing the whole file is not good either: AIX grep has a line
19053     # limit of 2048, but all sed's we know have understand at least 4000.
19054     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19055       dirpart=`$as_dirname -- "$mf" ||
19056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19057          X"$mf" : 'X\(//\)[^/]' \| \
19058          X"$mf" : 'X\(//\)$' \| \
19059          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19060 $as_echo X"$mf" |
19061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19062             s//\1/
19063             q
19064           }
19065           /^X\(\/\/\)[^/].*/{
19066             s//\1/
19067             q
19068           }
19069           /^X\(\/\/\)$/{
19070             s//\1/
19071             q
19072           }
19073           /^X\(\/\).*/{
19074             s//\1/
19075             q
19076           }
19077           s/.*/./; q'`
19078     else
19079       continue
19080     fi
19081     # Extract the definition of DEPDIR, am__include, and am__quote
19082     # from the Makefile without running `make'.
19083     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19084     test -z "$DEPDIR" && continue
19085     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19086     test -z "am__include" && continue
19087     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19088     # When using ansi2knr, U may be empty or an underscore; expand it
19089     U=`sed -n 's/^U = //p' < "$mf"`
19090     # Find all dependency output files, they are included files with
19091     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19092     # simplest approach to changing $(DEPDIR) to its actual value in the
19093     # expansion.
19094     for file in `sed -n "
19095       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19096          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19097       # Make sure the directory exists.
19098       test -f "$dirpart/$file" && continue
19099       fdir=`$as_dirname -- "$file" ||
19100 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19101          X"$file" : 'X\(//\)[^/]' \| \
19102          X"$file" : 'X\(//\)$' \| \
19103          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19104 $as_echo X"$file" |
19105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19106             s//\1/
19107             q
19108           }
19109           /^X\(\/\/\)[^/].*/{
19110             s//\1/
19111             q
19112           }
19113           /^X\(\/\/\)$/{
19114             s//\1/
19115             q
19116           }
19117           /^X\(\/\).*/{
19118             s//\1/
19119             q
19120           }
19121           s/.*/./; q'`
19122       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19123       # echo "creating $dirpart/$file"
19124       echo '# dummy' > "$dirpart/$file"
19125     done
19126   done
19127 }
19128  ;;
19129     "libtool":C)
19130
19131     # See if we are running on zsh, and set the options which allow our
19132     # commands through without removal of \ escapes.
19133     if test -n "${ZSH_VERSION+set}" ; then
19134       setopt NO_GLOB_SUBST
19135     fi
19136
19137     cfgfile="${ofile}T"
19138     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19139     $RM "$cfgfile"
19140
19141     cat <<_LT_EOF >> "$cfgfile"
19142 #! $SHELL
19143
19144 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19145 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19148 #
19149 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19150 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19151 #                 Foundation, Inc.
19152 #   Written by Gordon Matzigkeit, 1996
19153 #
19154 #   This file is part of GNU Libtool.
19155 #
19156 # GNU Libtool is free software; you can redistribute it and/or
19157 # modify it under the terms of the GNU General Public License as
19158 # published by the Free Software Foundation; either version 2 of
19159 # the License, or (at your option) any later version.
19160 #
19161 # As a special exception to the GNU General Public License,
19162 # if you distribute this file as part of a program or library that
19163 # is built using GNU Libtool, you may include this file under the
19164 # same distribution terms that you use for the rest of that program.
19165 #
19166 # GNU Libtool is distributed in the hope that it will be useful,
19167 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19169 # GNU General Public License for more details.
19170 #
19171 # You should have received a copy of the GNU General Public License
19172 # along with GNU Libtool; see the file COPYING.  If not, a copy
19173 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19174 # obtained by writing to the Free Software Foundation, Inc.,
19175 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19176
19177
19178 # The names of the tagged configurations supported by this script.
19179 available_tags="CXX "
19180
19181 # ### BEGIN LIBTOOL CONFIG
19182
19183 # Which release of libtool.m4 was used?
19184 macro_version=$macro_version
19185 macro_revision=$macro_revision
19186
19187 # Whether or not to build shared libraries.
19188 build_libtool_libs=$enable_shared
19189
19190 # Whether or not to build static libraries.
19191 build_old_libs=$enable_static
19192
19193 # What type of objects to build.
19194 pic_mode=$pic_mode
19195
19196 # Whether or not to optimize for fast installation.
19197 fast_install=$enable_fast_install
19198
19199 # Shell to use when invoking shell scripts.
19200 SHELL=$lt_SHELL
19201
19202 # An echo program that protects backslashes.
19203 ECHO=$lt_ECHO
19204
19205 # The PATH separator for the build system.
19206 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19207
19208 # The host system.
19209 host_alias=$host_alias
19210 host=$host
19211 host_os=$host_os
19212
19213 # The build system.
19214 build_alias=$build_alias
19215 build=$build
19216 build_os=$build_os
19217
19218 # A sed program that does not truncate output.
19219 SED=$lt_SED
19220
19221 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19222 Xsed="\$SED -e 1s/^X//"
19223
19224 # A grep program that handles long lines.
19225 GREP=$lt_GREP
19226
19227 # An ERE matcher.
19228 EGREP=$lt_EGREP
19229
19230 # A literal string matcher.
19231 FGREP=$lt_FGREP
19232
19233 # A BSD- or MS-compatible name lister.
19234 NM=$lt_NM
19235
19236 # Whether we need soft or hard links.
19237 LN_S=$lt_LN_S
19238
19239 # What is the maximum length of a command?
19240 max_cmd_len=$max_cmd_len
19241
19242 # Object file suffix (normally "o").
19243 objext=$ac_objext
19244
19245 # Executable file suffix (normally "").
19246 exeext=$exeext
19247
19248 # whether the shell understands "unset".
19249 lt_unset=$lt_unset
19250
19251 # turn spaces into newlines.
19252 SP2NL=$lt_lt_SP2NL
19253
19254 # turn newlines into spaces.
19255 NL2SP=$lt_lt_NL2SP
19256
19257 # convert \$build file names to \$host format.
19258 to_host_file_cmd=$lt_cv_to_host_file_cmd
19259
19260 # convert \$build files to toolchain format.
19261 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19262
19263 # An object symbol dumper.
19264 OBJDUMP=$lt_OBJDUMP
19265
19266 # Method to check whether dependent libraries are shared objects.
19267 deplibs_check_method=$lt_deplibs_check_method
19268
19269 # Command to use when deplibs_check_method = "file_magic".
19270 file_magic_cmd=$lt_file_magic_cmd
19271
19272 # How to find potential files when deplibs_check_method = "file_magic".
19273 file_magic_glob=$lt_file_magic_glob
19274
19275 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19276 want_nocaseglob=$lt_want_nocaseglob
19277
19278 # DLL creation program.
19279 DLLTOOL=$lt_DLLTOOL
19280
19281 # Command to associate shared and link libraries.
19282 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19283
19284 # The archiver.
19285 AR=$lt_AR
19286
19287 # Flags to create an archive.
19288 AR_FLAGS=$lt_AR_FLAGS
19289
19290 # How to feed a file listing to the archiver.
19291 archiver_list_spec=$lt_archiver_list_spec
19292
19293 # A symbol stripping program.
19294 STRIP=$lt_STRIP
19295
19296 # Commands used to install an old-style archive.
19297 RANLIB=$lt_RANLIB
19298 old_postinstall_cmds=$lt_old_postinstall_cmds
19299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19300
19301 # Whether to use a lock for old archive extraction.
19302 lock_old_archive_extraction=$lock_old_archive_extraction
19303
19304 # A C compiler.
19305 LTCC=$lt_CC
19306
19307 # LTCC compiler flags.
19308 LTCFLAGS=$lt_CFLAGS
19309
19310 # Take the output of nm and produce a listing of raw symbols and C names.
19311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19312
19313 # Transform the output of nm in a proper C declaration.
19314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19315
19316 # Transform the output of nm in a C name address pair.
19317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19318
19319 # Transform the output of nm in a C name address pair when lib prefix is needed.
19320 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19321
19322 # Specify filename containing input files for \$NM.
19323 nm_file_list_spec=$lt_nm_file_list_spec
19324
19325 # The root where to search for dependent libraries,and in which our libraries should be installed.
19326 lt_sysroot=$lt_sysroot
19327
19328 # The name of the directory that contains temporary libtool files.
19329 objdir=$objdir
19330
19331 # Used to examine libraries when file_magic_cmd begins with "file".
19332 MAGIC_CMD=$MAGIC_CMD
19333
19334 # Must we lock files when doing compilation?
19335 need_locks=$lt_need_locks
19336
19337 # Manifest tool.
19338 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19339
19340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19341 DSYMUTIL=$lt_DSYMUTIL
19342
19343 # Tool to change global to local symbols on Mac OS X.
19344 NMEDIT=$lt_NMEDIT
19345
19346 # Tool to manipulate fat objects and archives on Mac OS X.
19347 LIPO=$lt_LIPO
19348
19349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19350 OTOOL=$lt_OTOOL
19351
19352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19353 OTOOL64=$lt_OTOOL64
19354
19355 # Old archive suffix (normally "a").
19356 libext=$libext
19357
19358 # Shared library suffix (normally ".so").
19359 shrext_cmds=$lt_shrext_cmds
19360
19361 # The commands to extract the exported symbol list from a shared archive.
19362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19363
19364 # Variables whose values should be saved in libtool wrapper scripts and
19365 # restored at link time.
19366 variables_saved_for_relink=$lt_variables_saved_for_relink
19367
19368 # Do we need the "lib" prefix for modules?
19369 need_lib_prefix=$need_lib_prefix
19370
19371 # Do we need a version for libraries?
19372 need_version=$need_version
19373
19374 # Library versioning type.
19375 version_type=$version_type
19376
19377 # Shared library runtime path variable.
19378 runpath_var=$runpath_var
19379
19380 # Shared library path variable.
19381 shlibpath_var=$shlibpath_var
19382
19383 # Is shlibpath searched before the hard-coded library search path?
19384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19385
19386 # Format of library name prefix.
19387 libname_spec=$lt_libname_spec
19388
19389 # List of archive names.  First name is the real one, the rest are links.
19390 # The last name is the one that the linker finds with -lNAME
19391 library_names_spec=$lt_library_names_spec
19392
19393 # The coded name of the library, if different from the real name.
19394 soname_spec=$lt_soname_spec
19395
19396 # Permission mode override for installation of shared libraries.
19397 install_override_mode=$lt_install_override_mode
19398
19399 # Command to use after installation of a shared archive.
19400 postinstall_cmds=$lt_postinstall_cmds
19401
19402 # Command to use after uninstallation of a shared archive.
19403 postuninstall_cmds=$lt_postuninstall_cmds
19404
19405 # Commands used to finish a libtool library installation in a directory.
19406 finish_cmds=$lt_finish_cmds
19407
19408 # As "finish_cmds", except a single script fragment to be evaled but
19409 # not shown.
19410 finish_eval=$lt_finish_eval
19411
19412 # Whether we should hardcode library paths into libraries.
19413 hardcode_into_libs=$hardcode_into_libs
19414
19415 # Compile-time system search path for libraries.
19416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19417
19418 # Run-time system search path for libraries.
19419 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19420
19421 # Whether dlopen is supported.
19422 dlopen_support=$enable_dlopen
19423
19424 # Whether dlopen of programs is supported.
19425 dlopen_self=$enable_dlopen_self
19426
19427 # Whether dlopen of statically linked programs is supported.
19428 dlopen_self_static=$enable_dlopen_self_static
19429
19430 # Commands to strip libraries.
19431 old_striplib=$lt_old_striplib
19432 striplib=$lt_striplib
19433
19434
19435 # The linker used to build libraries.
19436 LD=$lt_LD
19437
19438 # How to create reloadable object files.
19439 reload_flag=$lt_reload_flag
19440 reload_cmds=$lt_reload_cmds
19441
19442 # Commands used to build an old-style archive.
19443 old_archive_cmds=$lt_old_archive_cmds
19444
19445 # A language specific compiler.
19446 CC=$lt_compiler
19447
19448 # Is the compiler the GNU compiler?
19449 with_gcc=$GCC
19450
19451 # Compiler flag to turn off builtin functions.
19452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19453
19454 # Additional compiler flags for building library objects.
19455 pic_flag=$lt_lt_prog_compiler_pic
19456
19457 # How to pass a linker flag through the compiler.
19458 wl=$lt_lt_prog_compiler_wl
19459
19460 # Compiler flag to prevent dynamic linking.
19461 link_static_flag=$lt_lt_prog_compiler_static
19462
19463 # Does compiler simultaneously support -c and -o options?
19464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19465
19466 # Whether or not to add -lc for building shared libraries.
19467 build_libtool_need_lc=$archive_cmds_need_lc
19468
19469 # Whether or not to disallow shared libs when runtime libs are static.
19470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19471
19472 # Compiler flag to allow reflexive dlopens.
19473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19474
19475 # Compiler flag to generate shared objects directly from archives.
19476 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19477
19478 # Whether the compiler copes with passing no objects directly.
19479 compiler_needs_object=$lt_compiler_needs_object
19480
19481 # Create an old-style archive from a shared archive.
19482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19483
19484 # Create a temporary old-style archive to link instead of a shared archive.
19485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19486
19487 # Commands used to build a shared archive.
19488 archive_cmds=$lt_archive_cmds
19489 archive_expsym_cmds=$lt_archive_expsym_cmds
19490
19491 # Commands used to build a loadable module if different from building
19492 # a shared archive.
19493 module_cmds=$lt_module_cmds
19494 module_expsym_cmds=$lt_module_expsym_cmds
19495
19496 # Whether we are building with GNU ld or not.
19497 with_gnu_ld=$lt_with_gnu_ld
19498
19499 # Flag that allows shared libraries with undefined symbols to be built.
19500 allow_undefined_flag=$lt_allow_undefined_flag
19501
19502 # Flag that enforces no undefined symbols.
19503 no_undefined_flag=$lt_no_undefined_flag
19504
19505 # Flag to hardcode \$libdir into a binary during linking.
19506 # This must work even if \$libdir does not exist
19507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19508
19509 # Whether we need a single "-rpath" flag with a separated argument.
19510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19511
19512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19513 # DIR into the resulting binary.
19514 hardcode_direct=$hardcode_direct
19515
19516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19517 # DIR into the resulting binary and the resulting library dependency is
19518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19519 # library is relocated.
19520 hardcode_direct_absolute=$hardcode_direct_absolute
19521
19522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19523 # into the resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L
19525
19526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var
19529
19530 # Set to "yes" if building a shared library automatically hardcodes DIR
19531 # into the library and all subsequent libraries and executables linked
19532 # against it.
19533 hardcode_automatic=$hardcode_automatic
19534
19535 # Set to yes if linker adds runtime paths of dependent libraries
19536 # to runtime path list.
19537 inherit_rpath=$inherit_rpath
19538
19539 # Whether libtool must link a program against all its dependency libraries.
19540 link_all_deplibs=$link_all_deplibs
19541
19542 # Set to "yes" if exported symbols are required.
19543 always_export_symbols=$always_export_symbols
19544
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds
19547
19548 # Symbols that should not be listed in the preloaded symbols.
19549 exclude_expsyms=$lt_exclude_expsyms
19550
19551 # Symbols that must always be exported.
19552 include_expsyms=$lt_include_expsyms
19553
19554 # Commands necessary for linking programs (against libraries) with templates.
19555 prelink_cmds=$lt_prelink_cmds
19556
19557 # Commands necessary for finishing linking programs.
19558 postlink_cmds=$lt_postlink_cmds
19559
19560 # Specify filename containing input files.
19561 file_list_spec=$lt_file_list_spec
19562
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action
19565
19566 # The directories searched by this compiler when creating a shared library.
19567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19568
19569 # Dependencies to place before and after the objects being linked to
19570 # create a shared library.
19571 predep_objects=$lt_predep_objects
19572 postdep_objects=$lt_postdep_objects
19573 predeps=$lt_predeps
19574 postdeps=$lt_postdeps
19575
19576 # The library search path used internally by the compiler when linking
19577 # a shared library.
19578 compiler_lib_search_path=$lt_compiler_lib_search_path
19579
19580 # ### END LIBTOOL CONFIG
19581
19582 _LT_EOF
19583
19584   case $host_os in
19585   aix3*)
19586     cat <<\_LT_EOF >> "$cfgfile"
19587 # AIX sometimes has problems with the GCC collect2 program.  For some
19588 # reason, if we set the COLLECT_NAMES environment variable, the problems
19589 # vanish in a puff of smoke.
19590 if test "X${COLLECT_NAMES+set}" != Xset; then
19591   COLLECT_NAMES=
19592   export COLLECT_NAMES
19593 fi
19594 _LT_EOF
19595     ;;
19596   esac
19597
19598
19599 ltmain="$ac_aux_dir/ltmain.sh"
19600
19601
19602   # We use sed instead of cat because bash on DJGPP gets confused if
19603   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19604   # text mode, it properly converts lines to CR/LF.  This bash problem
19605   # is reportedly fixed, but why not run on old versions too?
19606   sed '$q' "$ltmain" >> "$cfgfile" \
19607      || (rm -f "$cfgfile"; exit 1)
19608
19609   if test x"$xsi_shell" = xyes; then
19610   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19611 func_dirname ()\
19612 {\
19613 \    case ${1} in\
19614 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19615 \      *  ) func_dirname_result="${3}" ;;\
19616 \    esac\
19617 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19618   && mv -f "$cfgfile.tmp" "$cfgfile" \
19619     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19620 test 0 -eq $? || _lt_function_replace_fail=:
19621
19622
19623   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19624 func_basename ()\
19625 {\
19626 \    func_basename_result="${1##*/}"\
19627 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19628   && mv -f "$cfgfile.tmp" "$cfgfile" \
19629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19630 test 0 -eq $? || _lt_function_replace_fail=:
19631
19632
19633   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19634 func_dirname_and_basename ()\
19635 {\
19636 \    case ${1} in\
19637 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19638 \      *  ) func_dirname_result="${3}" ;;\
19639 \    esac\
19640 \    func_basename_result="${1##*/}"\
19641 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19642   && mv -f "$cfgfile.tmp" "$cfgfile" \
19643     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19644 test 0 -eq $? || _lt_function_replace_fail=:
19645
19646
19647   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19648 func_stripname ()\
19649 {\
19650 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19651 \    # positional parameters, so assign one to ordinary parameter first.\
19652 \    func_stripname_result=${3}\
19653 \    func_stripname_result=${func_stripname_result#"${1}"}\
19654 \    func_stripname_result=${func_stripname_result%"${2}"}\
19655 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19656   && mv -f "$cfgfile.tmp" "$cfgfile" \
19657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19658 test 0 -eq $? || _lt_function_replace_fail=:
19659
19660
19661   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19662 func_split_long_opt ()\
19663 {\
19664 \    func_split_long_opt_name=${1%%=*}\
19665 \    func_split_long_opt_arg=${1#*=}\
19666 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19667   && mv -f "$cfgfile.tmp" "$cfgfile" \
19668     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19669 test 0 -eq $? || _lt_function_replace_fail=:
19670
19671
19672   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19673 func_split_short_opt ()\
19674 {\
19675 \    func_split_short_opt_arg=${1#??}\
19676 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19677 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19678   && mv -f "$cfgfile.tmp" "$cfgfile" \
19679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19680 test 0 -eq $? || _lt_function_replace_fail=:
19681
19682
19683   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19684 func_lo2o ()\
19685 {\
19686 \    case ${1} in\
19687 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19688 \      *)    func_lo2o_result=${1} ;;\
19689 \    esac\
19690 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19691   && mv -f "$cfgfile.tmp" "$cfgfile" \
19692     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19693 test 0 -eq $? || _lt_function_replace_fail=:
19694
19695
19696   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19697 func_xform ()\
19698 {\
19699     func_xform_result=${1%.*}.lo\
19700 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19701   && mv -f "$cfgfile.tmp" "$cfgfile" \
19702     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19703 test 0 -eq $? || _lt_function_replace_fail=:
19704
19705
19706   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19707 func_arith ()\
19708 {\
19709     func_arith_result=$(( $* ))\
19710 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19711   && mv -f "$cfgfile.tmp" "$cfgfile" \
19712     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19713 test 0 -eq $? || _lt_function_replace_fail=:
19714
19715
19716   sed -e '/^func_len ()$/,/^} # func_len /c\
19717 func_len ()\
19718 {\
19719     func_len_result=${#1}\
19720 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19721   && mv -f "$cfgfile.tmp" "$cfgfile" \
19722     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19723 test 0 -eq $? || _lt_function_replace_fail=:
19724
19725 fi
19726
19727 if test x"$lt_shell_append" = xyes; then
19728   sed -e '/^func_append ()$/,/^} # func_append /c\
19729 func_append ()\
19730 {\
19731     eval "${1}+=\\${2}"\
19732 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19733   && mv -f "$cfgfile.tmp" "$cfgfile" \
19734     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19735 test 0 -eq $? || _lt_function_replace_fail=:
19736
19737
19738   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19739 func_append_quoted ()\
19740 {\
19741 \    func_quote_for_eval "${2}"\
19742 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19743 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19744   && mv -f "$cfgfile.tmp" "$cfgfile" \
19745     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19746 test 0 -eq $? || _lt_function_replace_fail=:
19747
19748
19749   # Save a `func_append' function call where possible by direct use of '+='
19750   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19751     && mv -f "$cfgfile.tmp" "$cfgfile" \
19752       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753   test 0 -eq $? || _lt_function_replace_fail=:
19754 else
19755   # Save a `func_append' function call even when '+=' is not available
19756   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19757     && mv -f "$cfgfile.tmp" "$cfgfile" \
19758       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19759   test 0 -eq $? || _lt_function_replace_fail=:
19760 fi
19761
19762 if test x"$_lt_function_replace_fail" = x":"; then
19763   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19764 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19765 fi
19766
19767
19768    mv -f "$cfgfile" "$ofile" ||
19769     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19770   chmod +x "$ofile"
19771
19772
19773     cat <<_LT_EOF >> "$ofile"
19774
19775 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19776
19777 # The linker used to build libraries.
19778 LD=$lt_LD_CXX
19779
19780 # How to create reloadable object files.
19781 reload_flag=$lt_reload_flag_CXX
19782 reload_cmds=$lt_reload_cmds_CXX
19783
19784 # Commands used to build an old-style archive.
19785 old_archive_cmds=$lt_old_archive_cmds_CXX
19786
19787 # A language specific compiler.
19788 CC=$lt_compiler_CXX
19789
19790 # Is the compiler the GNU compiler?
19791 with_gcc=$GCC_CXX
19792
19793 # Compiler flag to turn off builtin functions.
19794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19795
19796 # Additional compiler flags for building library objects.
19797 pic_flag=$lt_lt_prog_compiler_pic_CXX
19798
19799 # How to pass a linker flag through the compiler.
19800 wl=$lt_lt_prog_compiler_wl_CXX
19801
19802 # Compiler flag to prevent dynamic linking.
19803 link_static_flag=$lt_lt_prog_compiler_static_CXX
19804
19805 # Does compiler simultaneously support -c and -o options?
19806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19807
19808 # Whether or not to add -lc for building shared libraries.
19809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19810
19811 # Whether or not to disallow shared libs when runtime libs are static.
19812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19813
19814 # Compiler flag to allow reflexive dlopens.
19815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19816
19817 # Compiler flag to generate shared objects directly from archives.
19818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19819
19820 # Whether the compiler copes with passing no objects directly.
19821 compiler_needs_object=$lt_compiler_needs_object_CXX
19822
19823 # Create an old-style archive from a shared archive.
19824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19825
19826 # Create a temporary old-style archive to link instead of a shared archive.
19827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19828
19829 # Commands used to build a shared archive.
19830 archive_cmds=$lt_archive_cmds_CXX
19831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19832
19833 # Commands used to build a loadable module if different from building
19834 # a shared archive.
19835 module_cmds=$lt_module_cmds_CXX
19836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19837
19838 # Whether we are building with GNU ld or not.
19839 with_gnu_ld=$lt_with_gnu_ld_CXX
19840
19841 # Flag that allows shared libraries with undefined symbols to be built.
19842 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19843
19844 # Flag that enforces no undefined symbols.
19845 no_undefined_flag=$lt_no_undefined_flag_CXX
19846
19847 # Flag to hardcode \$libdir into a binary during linking.
19848 # This must work even if \$libdir does not exist
19849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19850
19851 # Whether we need a single "-rpath" flag with a separated argument.
19852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19853
19854 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19855 # DIR into the resulting binary.
19856 hardcode_direct=$hardcode_direct_CXX
19857
19858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19859 # DIR into the resulting binary and the resulting library dependency is
19860 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19861 # library is relocated.
19862 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19863
19864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19865 # into the resulting binary.
19866 hardcode_minus_L=$hardcode_minus_L_CXX
19867
19868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19869 # into the resulting binary.
19870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19871
19872 # Set to "yes" if building a shared library automatically hardcodes DIR
19873 # into the library and all subsequent libraries and executables linked
19874 # against it.
19875 hardcode_automatic=$hardcode_automatic_CXX
19876
19877 # Set to yes if linker adds runtime paths of dependent libraries
19878 # to runtime path list.
19879 inherit_rpath=$inherit_rpath_CXX
19880
19881 # Whether libtool must link a program against all its dependency libraries.
19882 link_all_deplibs=$link_all_deplibs_CXX
19883
19884 # Set to "yes" if exported symbols are required.
19885 always_export_symbols=$always_export_symbols_CXX
19886
19887 # The commands to list exported symbols.
19888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19889
19890 # Symbols that should not be listed in the preloaded symbols.
19891 exclude_expsyms=$lt_exclude_expsyms_CXX
19892
19893 # Symbols that must always be exported.
19894 include_expsyms=$lt_include_expsyms_CXX
19895
19896 # Commands necessary for linking programs (against libraries) with templates.
19897 prelink_cmds=$lt_prelink_cmds_CXX
19898
19899 # Commands necessary for finishing linking programs.
19900 postlink_cmds=$lt_postlink_cmds_CXX
19901
19902 # Specify filename containing input files.
19903 file_list_spec=$lt_file_list_spec_CXX
19904
19905 # How to hardcode a shared library path into an executable.
19906 hardcode_action=$hardcode_action_CXX
19907
19908 # The directories searched by this compiler when creating a shared library.
19909 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19910
19911 # Dependencies to place before and after the objects being linked to
19912 # create a shared library.
19913 predep_objects=$lt_predep_objects_CXX
19914 postdep_objects=$lt_postdep_objects_CXX
19915 predeps=$lt_predeps_CXX
19916 postdeps=$lt_postdeps_CXX
19917
19918 # The library search path used internally by the compiler when linking
19919 # a shared library.
19920 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19921
19922 # ### END LIBTOOL TAG CONFIG: CXX
19923 _LT_EOF
19924
19925  ;;
19926
19927   esac
19928 done # for ac_tag
19929
19930
19931 as_fn_exit 0
19932 _ACEOF
19933 ac_clean_files=$ac_clean_files_save
19934
19935 test $ac_write_fail = 0 ||
19936   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19937
19938
19939 # configure is writing to config.log, and then calls config.status.
19940 # config.status does its own redirection, appending to config.log.
19941 # Unfortunately, on DOS this fails, as config.log is still kept open
19942 # by configure, so config.status won't be able to write to it; its
19943 # output is simply discarded.  So we exec the FD to /dev/null,
19944 # effectively closing config.log, so it can be properly (re)opened and
19945 # appended to by config.status.  When coming back to configure, we
19946 # need to make the FD available again.
19947 if test "$no_create" != yes; then
19948   ac_cs_success=:
19949   ac_config_status_args=
19950   test "$silent" = yes &&
19951     ac_config_status_args="$ac_config_status_args --quiet"
19952   exec 5>/dev/null
19953   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19954   exec 5>>config.log
19955   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19956   # would make configure fail if this is the last instruction.
19957   $ac_cs_success || as_fn_exit 1
19958 fi
19959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19960   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19962 fi
19963