Imported Upstream version 1.1
[platform/upstream/libunwind.git] / autom4te.cache / output.0
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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
364 @%:@ must be portable across @S|@(()) 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 @S|@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 LIB@&t@OBJS=
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 LIB@&t@OBJS
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                           @<:@@S|@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.@S|@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.@S|@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.@S|@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.@S|@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.@S|@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.@S|@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.@S|@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@&t@_DLSYM_CONST
6892 #elif defined(__osf__)
6893 /* This system does not cope well with relocations in const data.  */
6894 # define LT@&t@_DLSYM_CONST
6895 #else
6896 # define LT@&t@_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@&t@_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 ## CAVEAT EMPTOR:
8762 ## There is no encapsulation within the following macros, do not change
8763 ## the running order or otherwise move them around unless you know exactly
8764 ## what you are doing...
8765 if test -n "$compiler"; then
8766   
8767 lt_prog_compiler_no_builtin_flag=
8768
8769 if test "$GCC" = yes; then
8770   case $cc_basename in
8771   nvcc*)
8772     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8773   *)
8774     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8775   esac
8776
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8778 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8779 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8780   $as_echo_n "(cached) " >&6
8781 else
8782   lt_cv_prog_compiler_rtti_exceptions=no
8783    ac_outfile=conftest.$ac_objext
8784    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785    lt_compiler_flag="-fno-rtti -fno-exceptions"
8786    # Insert the option either (1) after the last *FLAGS variable, or
8787    # (2) before a word containing "conftest.", or (3) at the end.
8788    # Note that $ac_compile itself does not contain backslashes and begins
8789    # with a dollar sign (not a hyphen), so the echo should work correctly.
8790    # The option is referenced via a variable to avoid confusing sed.
8791    lt_compile=`echo "$ac_compile" | $SED \
8792    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794    -e 's:$: $lt_compiler_flag:'`
8795    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796    (eval "$lt_compile" 2>conftest.err)
8797    ac_status=$?
8798    cat conftest.err >&5
8799    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800    if (exit $ac_status) && test -s "$ac_outfile"; then
8801      # The compiler can only warn and ignore the option if not recognized
8802      # So say no if there are warnings other than the usual output.
8803      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806        lt_cv_prog_compiler_rtti_exceptions=yes
8807      fi
8808    fi
8809    $RM conftest*
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8813 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8814
8815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8816     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8817 else
8818     :
8819 fi
8820
8821 fi
8822
8823     
8824     
8825     
8826
8827
8828   lt_prog_compiler_wl=
8829 lt_prog_compiler_pic=
8830 lt_prog_compiler_static=
8831
8832
8833   if test "$GCC" = yes; then
8834     lt_prog_compiler_wl='-Wl,'
8835     lt_prog_compiler_static='-static'
8836
8837     case $host_os in
8838       aix*)
8839       # All AIX code is PIC.
8840       if test "$host_cpu" = ia64; then
8841         # AIX 5 now supports IA64 processor
8842         lt_prog_compiler_static='-Bstatic'
8843       fi
8844       ;;
8845
8846     amigaos*)
8847       case $host_cpu in
8848       powerpc)
8849             # see comment about AmigaOS4 .so support
8850             lt_prog_compiler_pic='-fPIC'
8851         ;;
8852       m68k)
8853             # FIXME: we need at least 68020 code to build shared libraries, but
8854             # adding the `-m68020' flag to GCC prevents building anything better,
8855             # like `-m68040'.
8856             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8857         ;;
8858       esac
8859       ;;
8860
8861     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8862       # PIC is the default for these OSes.
8863       ;;
8864
8865     mingw* | cygwin* | pw32* | os2* | cegcc*)
8866       # This hack is so that the source file can tell whether it is being
8867       # built for inclusion in a dll (and should export symbols for example).
8868       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8869       # (--disable-auto-import) libraries
8870       lt_prog_compiler_pic='-DDLL_EXPORT'
8871       ;;
8872
8873     darwin* | rhapsody*)
8874       # PIC is the default on this platform
8875       # Common symbols not allowed in MH_DYLIB files
8876       lt_prog_compiler_pic='-fno-common'
8877       ;;
8878
8879     haiku*)
8880       # PIC is the default for Haiku.
8881       # The "-static" flag exists, but is broken.
8882       lt_prog_compiler_static=
8883       ;;
8884
8885     hpux*)
8886       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8887       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8888       # sets the default TLS model and affects inlining.
8889       case $host_cpu in
8890       hppa*64*)
8891         # +Z the default
8892         ;;
8893       *)
8894         lt_prog_compiler_pic='-fPIC'
8895         ;;
8896       esac
8897       ;;
8898
8899     interix[3-9]*)
8900       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8901       # Instead, we relocate shared libraries at runtime.
8902       ;;
8903
8904     msdosdjgpp*)
8905       # Just because we use GCC doesn't mean we suddenly get shared libraries
8906       # on systems that don't support them.
8907       lt_prog_compiler_can_build_shared=no
8908       enable_shared=no
8909       ;;
8910
8911     *nto* | *qnx*)
8912       # QNX uses GNU C++, but need to define -shared option too, otherwise
8913       # it will coredump.
8914       lt_prog_compiler_pic='-fPIC -shared'
8915       ;;
8916
8917     sysv4*MP*)
8918       if test -d /usr/nec; then
8919         lt_prog_compiler_pic=-Kconform_pic
8920       fi
8921       ;;
8922
8923     *)
8924       lt_prog_compiler_pic='-fPIC'
8925       ;;
8926     esac
8927
8928     case $cc_basename in
8929     nvcc*) # Cuda Compiler Driver 2.2
8930       lt_prog_compiler_wl='-Xlinker '
8931       if test -n "$lt_prog_compiler_pic"; then
8932         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8933       fi
8934       ;;
8935     esac
8936   else
8937     # PORTME Check for flag to pass linker flags through the system compiler.
8938     case $host_os in
8939     aix*)
8940       lt_prog_compiler_wl='-Wl,'
8941       if test "$host_cpu" = ia64; then
8942         # AIX 5 now supports IA64 processor
8943         lt_prog_compiler_static='-Bstatic'
8944       else
8945         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8946       fi
8947       ;;
8948
8949     mingw* | cygwin* | pw32* | os2* | cegcc*)
8950       # This hack is so that the source file can tell whether it is being
8951       # built for inclusion in a dll (and should export symbols for example).
8952       lt_prog_compiler_pic='-DDLL_EXPORT'
8953       ;;
8954
8955     hpux9* | hpux10* | hpux11*)
8956       lt_prog_compiler_wl='-Wl,'
8957       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8958       # not for PA HP-UX.
8959       case $host_cpu in
8960       hppa*64*|ia64*)
8961         # +Z the default
8962         ;;
8963       *)
8964         lt_prog_compiler_pic='+Z'
8965         ;;
8966       esac
8967       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8968       lt_prog_compiler_static='${wl}-a ${wl}archive'
8969       ;;
8970
8971     irix5* | irix6* | nonstopux*)
8972       lt_prog_compiler_wl='-Wl,'
8973       # PIC (with -KPIC) is the default.
8974       lt_prog_compiler_static='-non_shared'
8975       ;;
8976
8977     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8978       case $cc_basename in
8979       # old Intel for x86_64 which still supported -KPIC.
8980       ecc*)
8981         lt_prog_compiler_wl='-Wl,'
8982         lt_prog_compiler_pic='-KPIC'
8983         lt_prog_compiler_static='-static'
8984         ;;
8985       # icc used to be incompatible with GCC.
8986       # ICC 10 doesn't accept -KPIC any more.
8987       icc* | ifort*)
8988         lt_prog_compiler_wl='-Wl,'
8989         lt_prog_compiler_pic='-fPIC'
8990         lt_prog_compiler_static='-static'
8991         ;;
8992       # Lahey Fortran 8.1.
8993       lf95*)
8994         lt_prog_compiler_wl='-Wl,'
8995         lt_prog_compiler_pic='--shared'
8996         lt_prog_compiler_static='--static'
8997         ;;
8998       nagfor*)
8999         # NAG Fortran compiler
9000         lt_prog_compiler_wl='-Wl,-Wl,,'
9001         lt_prog_compiler_pic='-PIC'
9002         lt_prog_compiler_static='-Bstatic'
9003         ;;
9004       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9005         # Portland Group compilers (*not* the Pentium gcc compiler,
9006         # which looks to be a dead project)
9007         lt_prog_compiler_wl='-Wl,'
9008         lt_prog_compiler_pic='-fpic'
9009         lt_prog_compiler_static='-Bstatic'
9010         ;;
9011       ccc*)
9012         lt_prog_compiler_wl='-Wl,'
9013         # All Alpha code is PIC.
9014         lt_prog_compiler_static='-non_shared'
9015         ;;
9016       xl* | bgxl* | bgf* | mpixl*)
9017         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9018         lt_prog_compiler_wl='-Wl,'
9019         lt_prog_compiler_pic='-qpic'
9020         lt_prog_compiler_static='-qstaticlink'
9021         ;;
9022       *)
9023         case `$CC -V 2>&1 | sed 5q` in
9024         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9025           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9026           lt_prog_compiler_pic='-KPIC'
9027           lt_prog_compiler_static='-Bstatic'
9028           lt_prog_compiler_wl=''
9029           ;;
9030         *Sun\ F* | *Sun*Fortran*)
9031           lt_prog_compiler_pic='-KPIC'
9032           lt_prog_compiler_static='-Bstatic'
9033           lt_prog_compiler_wl='-Qoption ld '
9034           ;;
9035         *Sun\ C*)
9036           # Sun C 5.9
9037           lt_prog_compiler_pic='-KPIC'
9038           lt_prog_compiler_static='-Bstatic'
9039           lt_prog_compiler_wl='-Wl,'
9040           ;;
9041         *Intel*\ [CF]*Compiler*)
9042           lt_prog_compiler_wl='-Wl,'
9043           lt_prog_compiler_pic='-fPIC'
9044           lt_prog_compiler_static='-static'
9045           ;;
9046         *Portland\ Group*)
9047           lt_prog_compiler_wl='-Wl,'
9048           lt_prog_compiler_pic='-fpic'
9049           lt_prog_compiler_static='-Bstatic'
9050           ;;
9051         esac
9052         ;;
9053       esac
9054       ;;
9055
9056     newsos6)
9057       lt_prog_compiler_pic='-KPIC'
9058       lt_prog_compiler_static='-Bstatic'
9059       ;;
9060
9061     *nto* | *qnx*)
9062       # QNX uses GNU C++, but need to define -shared option too, otherwise
9063       # it will coredump.
9064       lt_prog_compiler_pic='-fPIC -shared'
9065       ;;
9066
9067     osf3* | osf4* | osf5*)
9068       lt_prog_compiler_wl='-Wl,'
9069       # All OSF/1 code is PIC.
9070       lt_prog_compiler_static='-non_shared'
9071       ;;
9072
9073     rdos*)
9074       lt_prog_compiler_static='-non_shared'
9075       ;;
9076
9077     solaris*)
9078       lt_prog_compiler_pic='-KPIC'
9079       lt_prog_compiler_static='-Bstatic'
9080       case $cc_basename in
9081       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9082         lt_prog_compiler_wl='-Qoption ld ';;
9083       *)
9084         lt_prog_compiler_wl='-Wl,';;
9085       esac
9086       ;;
9087
9088     sunos4*)
9089       lt_prog_compiler_wl='-Qoption ld '
9090       lt_prog_compiler_pic='-PIC'
9091       lt_prog_compiler_static='-Bstatic'
9092       ;;
9093
9094     sysv4 | sysv4.2uw2* | sysv4.3*)
9095       lt_prog_compiler_wl='-Wl,'
9096       lt_prog_compiler_pic='-KPIC'
9097       lt_prog_compiler_static='-Bstatic'
9098       ;;
9099
9100     sysv4*MP*)
9101       if test -d /usr/nec ;then
9102         lt_prog_compiler_pic='-Kconform_pic'
9103         lt_prog_compiler_static='-Bstatic'
9104       fi
9105       ;;
9106
9107     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9108       lt_prog_compiler_wl='-Wl,'
9109       lt_prog_compiler_pic='-KPIC'
9110       lt_prog_compiler_static='-Bstatic'
9111       ;;
9112
9113     unicos*)
9114       lt_prog_compiler_wl='-Wl,'
9115       lt_prog_compiler_can_build_shared=no
9116       ;;
9117
9118     uts4*)
9119       lt_prog_compiler_pic='-pic'
9120       lt_prog_compiler_static='-Bstatic'
9121       ;;
9122
9123     *)
9124       lt_prog_compiler_can_build_shared=no
9125       ;;
9126     esac
9127   fi
9128
9129 case $host_os in
9130   # For platforms which do not support PIC, -DPIC is meaningless:
9131   *djgpp*)
9132     lt_prog_compiler_pic=
9133     ;;
9134   *)
9135     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9136     ;;
9137 esac
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9140 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9141 if ${lt_cv_prog_compiler_pic+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9147 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9149
9150 #
9151 # Check to make sure the PIC flag actually works.
9152 #
9153 if test -n "$lt_prog_compiler_pic"; then
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9156 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_pic_works=no
9160    ac_outfile=conftest.$ac_objext
9161    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9163    # Insert the option either (1) after the last *FLAGS variable, or
9164    # (2) before a word containing "conftest.", or (3) at the end.
9165    # Note that $ac_compile itself does not contain backslashes and begins
9166    # with a dollar sign (not a hyphen), so the echo should work correctly.
9167    # The option is referenced via a variable to avoid confusing sed.
9168    lt_compile=`echo "$ac_compile" | $SED \
9169    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171    -e 's:$: $lt_compiler_flag:'`
9172    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173    (eval "$lt_compile" 2>conftest.err)
9174    ac_status=$?
9175    cat conftest.err >&5
9176    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177    if (exit $ac_status) && test -s "$ac_outfile"; then
9178      # The compiler can only warn and ignore the option if not recognized
9179      # So say no if there are warnings other than the usual output.
9180      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9181      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9183        lt_cv_prog_compiler_pic_works=yes
9184      fi
9185    fi
9186    $RM conftest*
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9191
9192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9193     case $lt_prog_compiler_pic in
9194      "" | " "*) ;;
9195      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9196      esac
9197 else
9198     lt_prog_compiler_pic=
9199      lt_prog_compiler_can_build_shared=no
9200 fi
9201
9202 fi
9203
9204     
9205     
9206     
9207
9208
9209
9210     
9211     
9212     
9213
9214 #
9215 # Check to make sure the static flag actually works.
9216 #
9217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9220 if ${lt_cv_prog_compiler_static_works+:} false; then :
9221   $as_echo_n "(cached) " >&6
9222 else
9223   lt_cv_prog_compiler_static_works=no
9224    save_LDFLAGS="$LDFLAGS"
9225    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9226    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9227    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9228      # The linker can only warn and ignore the option if not recognized
9229      # So say no if there are warnings
9230      if test -s conftest.err; then
9231        # Append any errors to the config.log.
9232        cat conftest.err 1>&5
9233        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9234        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235        if diff conftest.exp conftest.er2 >/dev/null; then
9236          lt_cv_prog_compiler_static_works=yes
9237        fi
9238      else
9239        lt_cv_prog_compiler_static_works=yes
9240      fi
9241    fi
9242    $RM -r conftest*
9243    LDFLAGS="$save_LDFLAGS"
9244
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9248
9249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9250     :
9251 else
9252     lt_prog_compiler_static=
9253 fi
9254
9255
9256     
9257     
9258     
9259
9260
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9263 if ${lt_cv_prog_compiler_c_o+:} false; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   lt_cv_prog_compiler_c_o=no
9267    $RM -r conftest 2>/dev/null
9268    mkdir conftest
9269    cd conftest
9270    mkdir out
9271    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9272
9273    lt_compiler_flag="-o out/conftest2.$ac_objext"
9274    # Insert the option either (1) after the last *FLAGS variable, or
9275    # (2) before a word containing "conftest.", or (3) at the end.
9276    # Note that $ac_compile itself does not contain backslashes and begins
9277    # with a dollar sign (not a hyphen), so the echo should work correctly.
9278    lt_compile=`echo "$ac_compile" | $SED \
9279    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9281    -e 's:$: $lt_compiler_flag:'`
9282    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9283    (eval "$lt_compile" 2>out/conftest.err)
9284    ac_status=$?
9285    cat out/conftest.err >&5
9286    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9288    then
9289      # The compiler can only warn and ignore the option if not recognized
9290      # So say no if there are warnings
9291      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9292      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9293      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9294        lt_cv_prog_compiler_c_o=yes
9295      fi
9296    fi
9297    chmod u+w . 2>&5
9298    $RM conftest*
9299    # SGI C++ compiler will create directory out/ii_files/ for
9300    # template instantiation
9301    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9302    $RM out/* && rmdir out
9303    cd ..
9304    $RM -r conftest
9305    $RM conftest*
9306
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9310
9311     
9312     
9313     
9314
9315
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9318 if ${lt_cv_prog_compiler_c_o+:} false; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321   lt_cv_prog_compiler_c_o=no
9322    $RM -r conftest 2>/dev/null
9323    mkdir conftest
9324    cd conftest
9325    mkdir out
9326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9327
9328    lt_compiler_flag="-o out/conftest2.$ac_objext"
9329    # Insert the option either (1) after the last *FLAGS variable, or
9330    # (2) before a word containing "conftest.", or (3) at the end.
9331    # Note that $ac_compile itself does not contain backslashes and begins
9332    # with a dollar sign (not a hyphen), so the echo should work correctly.
9333    lt_compile=`echo "$ac_compile" | $SED \
9334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9336    -e 's:$: $lt_compiler_flag:'`
9337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9338    (eval "$lt_compile" 2>out/conftest.err)
9339    ac_status=$?
9340    cat out/conftest.err >&5
9341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9343    then
9344      # The compiler can only warn and ignore the option if not recognized
9345      # So say no if there are warnings
9346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9347      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9348      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9349        lt_cv_prog_compiler_c_o=yes
9350      fi
9351    fi
9352    chmod u+w . 2>&5
9353    $RM conftest*
9354    # SGI C++ compiler will create directory out/ii_files/ for
9355    # template instantiation
9356    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9357    $RM out/* && rmdir out
9358    cd ..
9359    $RM -r conftest
9360    $RM conftest*
9361
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9365
9366
9367
9368
9369 hard_links="nottested"
9370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9371   # do not overwrite the value of need_locks provided by the user
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9373 $as_echo_n "checking if we can lock with hard links... " >&6; }
9374   hard_links=yes
9375   $RM conftest*
9376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9377   touch conftest.a
9378   ln conftest.a conftest.b 2>&5 || hard_links=no
9379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9381 $as_echo "$hard_links" >&6; }
9382   if test "$hard_links" = no; then
9383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9385     need_locks=warn
9386   fi
9387 else
9388   need_locks=no
9389 fi
9390
9391     
9392     
9393     
9394
9395
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9398
9399   runpath_var=
9400   allow_undefined_flag=
9401   always_export_symbols=no
9402   archive_cmds=
9403   archive_expsym_cmds=
9404   compiler_needs_object=no
9405   enable_shared_with_static_runtimes=no
9406   export_dynamic_flag_spec=
9407   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9408   hardcode_automatic=no
9409   hardcode_direct=no
9410   hardcode_direct_absolute=no
9411   hardcode_libdir_flag_spec=
9412   hardcode_libdir_separator=
9413   hardcode_minus_L=no
9414   hardcode_shlibpath_var=unsupported
9415   inherit_rpath=no
9416   link_all_deplibs=unknown
9417   module_cmds=
9418   module_expsym_cmds=
9419   old_archive_from_new_cmds=
9420   old_archive_from_expsyms_cmds=
9421   thread_safe_flag_spec=
9422   whole_archive_flag_spec=
9423   # include_expsyms should be a list of space-separated symbols to be *always*
9424   # included in the symbol list
9425   include_expsyms=
9426   # exclude_expsyms can be an extended regexp of symbols to exclude
9427   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9428   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9429   # as well as any symbol that contains `d'.
9430   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9431   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9432   # platforms (ab)use it in PIC code, but their linkers get confused if
9433   # the symbol is explicitly referenced.  Since portable code cannot
9434   # rely on this symbol name, it's probably fine to never include it in
9435   # preloaded symbol tables.
9436   # Exclude shared library initialization/finalization symbols.
9437   extract_expsyms_cmds=
9438
9439   case $host_os in
9440   cygwin* | mingw* | pw32* | cegcc*)
9441     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9442     # When not using gcc, we currently assume that we are using
9443     # Microsoft Visual C++.
9444     if test "$GCC" != yes; then
9445       with_gnu_ld=no
9446     fi
9447     ;;
9448   interix*)
9449     # we just hope/assume this is gcc and not c89 (= MSVC++)
9450     with_gnu_ld=yes
9451     ;;
9452   openbsd*)
9453     with_gnu_ld=no
9454     ;;
9455   linux* | k*bsd*-gnu | gnu*)
9456     link_all_deplibs=no
9457     ;;
9458   esac
9459
9460   ld_shlibs=yes
9461
9462   # On some targets, GNU ld is compatible enough with the native linker
9463   # that we're better off using the native interface for both.
9464   lt_use_gnu_ld_interface=no
9465   if test "$with_gnu_ld" = yes; then
9466     case $host_os in
9467       aix*)
9468         # The AIX port of GNU ld has always aspired to compatibility
9469         # with the native linker.  However, as the warning in the GNU ld
9470         # block says, versions before 2.19.5* couldn't really create working
9471         # shared libraries, regardless of the interface used.
9472         case `$LD -v 2>&1` in
9473           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9474           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9475           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9476           *)
9477             lt_use_gnu_ld_interface=yes
9478             ;;
9479         esac
9480         ;;
9481       *)
9482         lt_use_gnu_ld_interface=yes
9483         ;;
9484     esac
9485   fi
9486
9487   if test "$lt_use_gnu_ld_interface" = yes; then
9488     # If archive_cmds runs LD, not CC, wlarc should be empty
9489     wlarc='${wl}'
9490
9491     # Set some defaults for GNU ld with shared library support. These
9492     # are reset later if shared libraries are not supported. Putting them
9493     # here allows them to be overridden if necessary.
9494     runpath_var=LD_RUN_PATH
9495     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496     export_dynamic_flag_spec='${wl}--export-dynamic'
9497     # ancient GNU ld didn't support --whole-archive et. al.
9498     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9499       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9500     else
9501       whole_archive_flag_spec=
9502     fi
9503     supports_anon_versioning=no
9504     case `$LD -v 2>&1` in
9505       *GNU\ gold*) supports_anon_versioning=yes ;;
9506       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9507       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9508       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9509       *\ 2.11.*) ;; # other 2.11 versions
9510       *) supports_anon_versioning=yes ;;
9511     esac
9512
9513     # See if GNU ld supports shared libraries.
9514     case $host_os in
9515     aix[3-9]*)
9516       # On AIX/PPC, the GNU linker is very broken
9517       if test "$host_cpu" != ia64; then
9518         ld_shlibs=no
9519         cat <<_LT_EOF 1>&2
9520
9521 *** Warning: the GNU linker, at least up to release 2.19, is reported
9522 *** to be unable to reliably create shared libraries on AIX.
9523 *** Therefore, libtool is disabling shared libraries support.  If you
9524 *** really care for shared libraries, you may want to install binutils
9525 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9526 *** You will then need to restart the configuration process.
9527
9528 _LT_EOF
9529       fi
9530       ;;
9531
9532     amigaos*)
9533       case $host_cpu in
9534       powerpc)
9535             # see comment about AmigaOS4 .so support
9536             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537             archive_expsym_cmds=''
9538         ;;
9539       m68k)
9540             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)'
9541             hardcode_libdir_flag_spec='-L$libdir'
9542             hardcode_minus_L=yes
9543         ;;
9544       esac
9545       ;;
9546
9547     beos*)
9548       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549         allow_undefined_flag=unsupported
9550         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9551         # support --undefined.  This deserves some investigation.  FIXME
9552         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553       else
9554         ld_shlibs=no
9555       fi
9556       ;;
9557
9558     cygwin* | mingw* | pw32* | cegcc*)
9559       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9560       # as there is no search path for DLLs.
9561       hardcode_libdir_flag_spec='-L$libdir'
9562       export_dynamic_flag_spec='${wl}--export-all-symbols'
9563       allow_undefined_flag=unsupported
9564       always_export_symbols=no
9565       enable_shared_with_static_runtimes=yes
9566       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'
9567       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9568
9569       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9570         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9571         # If the export-symbols file already is a .def file (1st line
9572         # is EXPORTS), use it as is; otherwise, prepend...
9573         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9574           cp $export_symbols $output_objdir/$soname.def;
9575         else
9576           echo EXPORTS > $output_objdir/$soname.def;
9577           cat $export_symbols >> $output_objdir/$soname.def;
9578         fi~
9579         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9580       else
9581         ld_shlibs=no
9582       fi
9583       ;;
9584
9585     haiku*)
9586       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587       link_all_deplibs=yes
9588       ;;
9589
9590     interix[3-9]*)
9591       hardcode_direct=no
9592       hardcode_shlibpath_var=no
9593       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594       export_dynamic_flag_spec='${wl}-E'
9595       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9596       # Instead, shared libraries are loaded at an image base (0x10000000 by
9597       # default) and relocated if they conflict, which is a slow very memory
9598       # consuming and fragmenting process.  To avoid this, we pick a random,
9599       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9600       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9601       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9602       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'
9603       ;;
9604
9605     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9606       tmp_diet=no
9607       if test "$host_os" = linux-dietlibc; then
9608         case $cc_basename in
9609           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9610         esac
9611       fi
9612       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9613          && test "$tmp_diet" = no
9614       then
9615         tmp_addflag=' $pic_flag'
9616         tmp_sharedflag='-shared'
9617         case $cc_basename,$host_cpu in
9618         pgcc*)                          # Portland Group C compiler
9619           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'
9620           tmp_addflag=' $pic_flag'
9621           ;;
9622         pgf77* | pgf90* | pgf95* | pgfortran*)
9623                                         # Portland Group f77 and f90 compilers
9624           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'
9625           tmp_addflag=' $pic_flag -Mnomain' ;;
9626         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9627           tmp_addflag=' -i_dynamic' ;;
9628         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9629           tmp_addflag=' -i_dynamic -nofor_main' ;;
9630         ifc* | ifort*)                  # Intel Fortran compiler
9631           tmp_addflag=' -nofor_main' ;;
9632         lf95*)                          # Lahey Fortran 8.1
9633           whole_archive_flag_spec=
9634           tmp_sharedflag='--shared' ;;
9635         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9636           tmp_sharedflag='-qmkshrobj'
9637           tmp_addflag= ;;
9638         nvcc*)  # Cuda Compiler Driver 2.2
9639           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'
9640           compiler_needs_object=yes
9641           ;;
9642         esac
9643         case `$CC -V 2>&1 | sed 5q` in
9644         *Sun\ C*)                       # Sun C 5.9
9645           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'
9646           compiler_needs_object=yes
9647           tmp_sharedflag='-G' ;;
9648         *Sun\ F*)                       # Sun Fortran 8.3
9649           tmp_sharedflag='-G' ;;
9650         esac
9651         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652
9653         if test "x$supports_anon_versioning" = xyes; then
9654           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9655             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9656             echo "local: *; };" >> $output_objdir/$libname.ver~
9657             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9658         fi
9659
9660         case $cc_basename in
9661         xlf* | bgf* | bgxlf* | mpixlf*)
9662           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9663           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9664           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9666           if test "x$supports_anon_versioning" = xyes; then
9667             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669               echo "local: *; };" >> $output_objdir/$libname.ver~
9670               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9671           fi
9672           ;;
9673         esac
9674       else
9675         ld_shlibs=no
9676       fi
9677       ;;
9678
9679     netbsd* | netbsdelf*-gnu)
9680       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9681         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9682         wlarc=
9683       else
9684         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686       fi
9687       ;;
9688
9689     solaris*)
9690       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9691         ld_shlibs=no
9692         cat <<_LT_EOF 1>&2
9693
9694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9695 *** create shared libraries on Solaris systems.  Therefore, libtool
9696 *** is disabling shared libraries support.  We urge you to upgrade GNU
9697 *** binutils to release 2.9.1 or newer.  Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9700
9701 _LT_EOF
9702       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9705       else
9706         ld_shlibs=no
9707       fi
9708       ;;
9709
9710     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9711       case `$LD -v 2>&1` in
9712         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9713         ld_shlibs=no
9714         cat <<_LT_EOF 1>&2
9715
9716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9717 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9718 *** is disabling shared libraries support.  We urge you to upgrade GNU
9719 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9720 *** your PATH or compiler configuration so that the native linker is
9721 *** used, and then restart.
9722
9723 _LT_EOF
9724         ;;
9725         *)
9726           # For security reasons, it is highly recommended that you always
9727           # use absolute paths for naming shared libraries, and exclude the
9728           # DT_RUNPATH tag from executables and libraries.  But doing so
9729           # requires that you compile everything twice, which is a pain.
9730           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734           else
9735             ld_shlibs=no
9736           fi
9737         ;;
9738       esac
9739       ;;
9740
9741     sunos4*)
9742       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9743       wlarc=
9744       hardcode_direct=yes
9745       hardcode_shlibpath_var=no
9746       ;;
9747
9748     *)
9749       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9752       else
9753         ld_shlibs=no
9754       fi
9755       ;;
9756     esac
9757
9758     if test "$ld_shlibs" = no; then
9759       runpath_var=
9760       hardcode_libdir_flag_spec=
9761       export_dynamic_flag_spec=
9762       whole_archive_flag_spec=
9763     fi
9764   else
9765     # PORTME fill in a description of your system's linker (not GNU ld)
9766     case $host_os in
9767     aix3*)
9768       allow_undefined_flag=unsupported
9769       always_export_symbols=yes
9770       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'
9771       # Note: this linker hardcodes the directories in LIBPATH if there
9772       # are no directories specified by -L.
9773       hardcode_minus_L=yes
9774       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9775         # Neither direct hardcoding nor static linking is supported with a
9776         # broken collect2.
9777         hardcode_direct=unsupported
9778       fi
9779       ;;
9780
9781     aix[4-9]*)
9782       if test "$host_cpu" = ia64; then
9783         # On IA64, the linker does run time linking by default, so we don't
9784         # have to do anything special.
9785         aix_use_runtimelinking=no
9786         exp_sym_flag='-Bexport'
9787         no_entry_flag=""
9788       else
9789         # If we're using GNU nm, then we don't want the "-C" option.
9790         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9791         # Also, AIX nm treats weak defined symbols like other global
9792         # defined symbols, whereas GNU nm marks them as "W".
9793         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9794           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'
9795         else
9796           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'
9797         fi
9798         aix_use_runtimelinking=no
9799
9800         # Test if we are trying to use run time linking or normal
9801         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802         # need to do runtime linking.
9803         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9804           for ld_flag in $LDFLAGS; do
9805           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9806             aix_use_runtimelinking=yes
9807             break
9808           fi
9809           done
9810           ;;
9811         esac
9812
9813         exp_sym_flag='-bexport'
9814         no_entry_flag='-bnoentry'
9815       fi
9816
9817       # When large executables or shared objects are built, AIX ld can
9818       # have problems creating the table of contents.  If linking a library
9819       # or program results in "error TOC overflow" add -mminimal-toc to
9820       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9821       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9822
9823       archive_cmds=''
9824       hardcode_direct=yes
9825       hardcode_direct_absolute=yes
9826       hardcode_libdir_separator=':'
9827       link_all_deplibs=yes
9828       file_list_spec='${wl}-f,'
9829
9830       if test "$GCC" = yes; then
9831         case $host_os in aix4.[012]|aix4.[012].*)
9832         # We only want to do this on AIX 4.2 and lower, the check
9833         # below for broken collect2 doesn't work under 4.3+
9834           collect2name=`${CC} -print-prog-name=collect2`
9835           if test -f "$collect2name" &&
9836            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9837           then
9838           # We have reworked collect2
9839           :
9840           else
9841           # We have old collect2
9842           hardcode_direct=unsupported
9843           # It fails to find uninstalled libraries when the uninstalled
9844           # path is not listed in the libpath.  Setting hardcode_minus_L
9845           # to unsupported forces relinking
9846           hardcode_minus_L=yes
9847           hardcode_libdir_flag_spec='-L$libdir'
9848           hardcode_libdir_separator=
9849           fi
9850           ;;
9851         esac
9852         shared_flag='-shared'
9853         if test "$aix_use_runtimelinking" = yes; then
9854           shared_flag="$shared_flag "'${wl}-G'
9855         fi
9856         link_all_deplibs=no
9857       else
9858         # not using gcc
9859         if test "$host_cpu" = ia64; then
9860         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9861         # chokes on -Wl,-G. The following line is correct:
9862           shared_flag='-G'
9863         else
9864           if test "$aix_use_runtimelinking" = yes; then
9865             shared_flag='${wl}-G'
9866           else
9867             shared_flag='${wl}-bM:SRE'
9868           fi
9869         fi
9870       fi
9871
9872       export_dynamic_flag_spec='${wl}-bexpall'
9873       # It seems that -bexpall does not export symbols beginning with
9874       # underscore (_), so it is better to generate a list of symbols to export.
9875       always_export_symbols=yes
9876       if test "$aix_use_runtimelinking" = yes; then
9877         # Warning - without using the other runtime loading flags (-brtl),
9878         # -berok will link without error, but may produce a broken library.
9879         allow_undefined_flag='-berok'
9880         # Determine the default libpath from the value encoded in an
9881         # empty executable.
9882         if test "${lt_cv_aix_libpath+set}" = set; then
9883   aix_libpath=$lt_cv_aix_libpath
9884 else
9885   if ${lt_cv_aix_libpath_+:} false; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h.  */
9890
9891 int
9892 main ()
9893 {
9894
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"; then :
9900   
9901   lt_aix_libpath_sed='
9902       /Import File Strings/,/^$/ {
9903           /^0/ {
9904               s/^0  *\([^ ]*\) *$/\1/
9905               p
9906           }
9907       }'
9908   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909   # Check for a 64-bit object if we didn't find anything.
9910   if test -z "$lt_cv_aix_libpath_"; then
9911     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9912   fi
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext \
9915     conftest$ac_exeext conftest.$ac_ext
9916   if test -z "$lt_cv_aix_libpath_"; then
9917     lt_cv_aix_libpath_="/usr/lib:/lib"
9918   fi
9919   
9920 fi
9921
9922   aix_libpath=$lt_cv_aix_libpath_
9923 fi
9924
9925         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9926         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"
9927       else
9928         if test "$host_cpu" = ia64; then
9929           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9930           allow_undefined_flag="-z nodefs"
9931           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"
9932         else
9933          # Determine the default libpath from the value encoded in an
9934          # empty executable.
9935          if test "${lt_cv_aix_libpath+set}" = set; then
9936   aix_libpath=$lt_cv_aix_libpath
9937 else
9938   if ${lt_cv_aix_libpath_+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h.  */
9943
9944 int
9945 main ()
9946 {
9947
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953   
9954   lt_aix_libpath_sed='
9955       /Import File Strings/,/^$/ {
9956           /^0/ {
9957               s/^0  *\([^ ]*\) *$/\1/
9958               p
9959           }
9960       }'
9961   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962   # Check for a 64-bit object if we didn't find anything.
9963   if test -z "$lt_cv_aix_libpath_"; then
9964     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9965   fi
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext \
9968     conftest$ac_exeext conftest.$ac_ext
9969   if test -z "$lt_cv_aix_libpath_"; then
9970     lt_cv_aix_libpath_="/usr/lib:/lib"
9971   fi
9972   
9973 fi
9974
9975   aix_libpath=$lt_cv_aix_libpath_
9976 fi
9977
9978          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9979           # Warning - without using the other run time loading flags,
9980           # -berok will link without error, but may produce a broken library.
9981           no_undefined_flag=' ${wl}-bernotok'
9982           allow_undefined_flag=' ${wl}-berok'
9983           if test "$with_gnu_ld" = yes; then
9984             # We only use this code for GNU lds that support --whole-archive.
9985             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9986           else
9987             # Exported symbols can be pulled into shared objects from archives
9988             whole_archive_flag_spec='$convenience'
9989           fi
9990           archive_cmds_need_lc=yes
9991           # This is similar to how AIX traditionally builds its shared libraries.
9992           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'
9993         fi
9994       fi
9995       ;;
9996
9997     amigaos*)
9998       case $host_cpu in
9999       powerpc)
10000             # see comment about AmigaOS4 .so support
10001             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002             archive_expsym_cmds=''
10003         ;;
10004       m68k)
10005             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)'
10006             hardcode_libdir_flag_spec='-L$libdir'
10007             hardcode_minus_L=yes
10008         ;;
10009       esac
10010       ;;
10011
10012     bsdi[45]*)
10013       export_dynamic_flag_spec=-rdynamic
10014       ;;
10015
10016     cygwin* | mingw* | pw32* | cegcc*)
10017       # When not using gcc, we currently assume that we are using
10018       # Microsoft Visual C++.
10019       # hardcode_libdir_flag_spec is actually meaningless, as there is
10020       # no search path for DLLs.
10021       case $cc_basename in
10022       cl*)
10023         # Native MSVC
10024         hardcode_libdir_flag_spec=' '
10025         allow_undefined_flag=unsupported
10026         always_export_symbols=yes
10027         file_list_spec='@'
10028         # Tell ltmain to make .lib files, not .a files.
10029         libext=lib
10030         # Tell ltmain to make .dll files, not .so files.
10031         shrext_cmds=".dll"
10032         # FIXME: Setting linknames here is a bad hack.
10033         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10034         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10036           else
10037             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10038           fi~
10039           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10040           linknames='
10041         # The linker will not automatically build a static lib if we build a DLL.
10042         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10043         enable_shared_with_static_runtimes=yes
10044         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10045         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10046         # Don't use ranlib
10047         old_postinstall_cmds='chmod 644 $oldlib'
10048         postlink_cmds='lt_outputfile="@OUTPUT@"~
10049           lt_tool_outputfile="@TOOL_OUTPUT@"~
10050           case $lt_outputfile in
10051             *.exe|*.EXE) ;;
10052             *)
10053               lt_outputfile="$lt_outputfile.exe"
10054               lt_tool_outputfile="$lt_tool_outputfile.exe"
10055               ;;
10056           esac~
10057           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10058             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10059             $RM "$lt_outputfile.manifest";
10060           fi'
10061         ;;
10062       *)
10063         # Assume MSVC wrapper
10064         hardcode_libdir_flag_spec=' '
10065         allow_undefined_flag=unsupported
10066         # Tell ltmain to make .lib files, not .a files.
10067         libext=lib
10068         # Tell ltmain to make .dll files, not .so files.
10069         shrext_cmds=".dll"
10070         # FIXME: Setting linknames here is a bad hack.
10071         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10072         # The linker will automatically build a .lib file if we build a DLL.
10073         old_archive_from_new_cmds='true'
10074         # FIXME: Should let the user specify the lib program.
10075         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10076         enable_shared_with_static_runtimes=yes
10077         ;;
10078       esac
10079       ;;
10080
10081     darwin* | rhapsody*)
10082       
10083   
10084   archive_cmds_need_lc=no
10085   hardcode_direct=no
10086   hardcode_automatic=yes
10087   hardcode_shlibpath_var=unsupported
10088   if test "$lt_cv_ld_force_load" = "yes"; then
10089     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\"`'
10090     
10091   else
10092     whole_archive_flag_spec=''
10093   fi
10094   link_all_deplibs=yes
10095   allow_undefined_flag="$_lt_dar_allow_undefined"
10096   case $cc_basename in
10097      ifort*) _lt_dar_can_shared=yes ;;
10098      *) _lt_dar_can_shared=$GCC ;;
10099   esac
10100   if test "$_lt_dar_can_shared" = "yes"; then
10101     output_verbose_link_cmd=func_echo_all
10102     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10103     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10104     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}"
10105     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}"
10106     
10107   else
10108   ld_shlibs=no
10109   fi
10110
10111       ;;
10112
10113     dgux*)
10114       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115       hardcode_libdir_flag_spec='-L$libdir'
10116       hardcode_shlibpath_var=no
10117       ;;
10118
10119     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10120     # support.  Future versions do this automatically, but an explicit c++rt0.o
10121     # does not break anything, and helps significantly (at the cost of a little
10122     # extra space).
10123     freebsd2.2*)
10124       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10125       hardcode_libdir_flag_spec='-R$libdir'
10126       hardcode_direct=yes
10127       hardcode_shlibpath_var=no
10128       ;;
10129
10130     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10131     freebsd2.*)
10132       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133       hardcode_direct=yes
10134       hardcode_minus_L=yes
10135       hardcode_shlibpath_var=no
10136       ;;
10137
10138     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10139     freebsd* | dragonfly*)
10140       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10141       hardcode_libdir_flag_spec='-R$libdir'
10142       hardcode_direct=yes
10143       hardcode_shlibpath_var=no
10144       ;;
10145
10146     hpux9*)
10147       if test "$GCC" = yes; then
10148         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'
10149       else
10150         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'
10151       fi
10152       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153       hardcode_libdir_separator=:
10154       hardcode_direct=yes
10155
10156       # hardcode_minus_L: Not really in the search PATH,
10157       # but as the default location of the library.
10158       hardcode_minus_L=yes
10159       export_dynamic_flag_spec='${wl}-E'
10160       ;;
10161
10162     hpux10*)
10163       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10164         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165       else
10166         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10167       fi
10168       if test "$with_gnu_ld" = no; then
10169         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170         hardcode_libdir_separator=:
10171         hardcode_direct=yes
10172         hardcode_direct_absolute=yes
10173         export_dynamic_flag_spec='${wl}-E'
10174         # hardcode_minus_L: Not really in the search PATH,
10175         # but as the default location of the library.
10176         hardcode_minus_L=yes
10177       fi
10178       ;;
10179
10180     hpux11*)
10181       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10182         case $host_cpu in
10183         hppa*64*)
10184           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10185           ;;
10186         ia64*)
10187           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10188           ;;
10189         *)
10190           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10191           ;;
10192         esac
10193       else
10194         case $host_cpu in
10195         hppa*64*)
10196           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10197           ;;
10198         ia64*)
10199           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200           ;;
10201         *)
10202         
10203           # Older versions of the 11.00 compiler do not understand -b yet
10204           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10205           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10206 $as_echo_n "checking if $CC understands -b... " >&6; }
10207 if ${lt_cv_prog_compiler__b+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   lt_cv_prog_compiler__b=no
10211    save_LDFLAGS="$LDFLAGS"
10212    LDFLAGS="$LDFLAGS -b"
10213    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10214    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10215      # The linker can only warn and ignore the option if not recognized
10216      # So say no if there are warnings
10217      if test -s conftest.err; then
10218        # Append any errors to the config.log.
10219        cat conftest.err 1>&5
10220        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10221        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10222        if diff conftest.exp conftest.er2 >/dev/null; then
10223          lt_cv_prog_compiler__b=yes
10224        fi
10225      else
10226        lt_cv_prog_compiler__b=yes
10227      fi
10228    fi
10229    $RM -r conftest*
10230    LDFLAGS="$save_LDFLAGS"
10231
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10234 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10235
10236 if test x"$lt_cv_prog_compiler__b" = xyes; then
10237     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10240 fi
10241
10242           ;;
10243         esac
10244       fi
10245       if test "$with_gnu_ld" = no; then
10246         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10247         hardcode_libdir_separator=:
10248
10249         case $host_cpu in
10250         hppa*64*|ia64*)
10251           hardcode_direct=no
10252           hardcode_shlibpath_var=no
10253           ;;
10254         *)
10255           hardcode_direct=yes
10256           hardcode_direct_absolute=yes
10257           export_dynamic_flag_spec='${wl}-E'
10258
10259           # hardcode_minus_L: Not really in the search PATH,
10260           # but as the default location of the library.
10261           hardcode_minus_L=yes
10262           ;;
10263         esac
10264       fi
10265       ;;
10266
10267     irix5* | irix6* | nonstopux*)
10268       if test "$GCC" = yes; then
10269         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'
10270         # Try to use the -exported_symbol ld option, if it does not
10271         # work, assume that -exports_file does not work either and
10272         # implicitly export all symbols.
10273         # This should be the same for all languages, so no per-tag cache variable.
10274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10275 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10276 if ${lt_cv_irix_exported_symbol+:} false; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   save_LDFLAGS="$LDFLAGS"
10280            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10281            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h.  */
10283 int foo (void) { return 0; }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286   lt_cv_irix_exported_symbol=yes
10287 else
10288   lt_cv_irix_exported_symbol=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291     conftest$ac_exeext conftest.$ac_ext
10292            LDFLAGS="$save_LDFLAGS"
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10295 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10296         if test "$lt_cv_irix_exported_symbol" = yes; then
10297           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'
10298         fi
10299       else
10300         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'
10301         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'
10302       fi
10303       archive_cmds_need_lc='no'
10304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305       hardcode_libdir_separator=:
10306       inherit_rpath=yes
10307       link_all_deplibs=yes
10308       ;;
10309
10310     netbsd* | netbsdelf*-gnu)
10311       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10312         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10313       else
10314         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10315       fi
10316       hardcode_libdir_flag_spec='-R$libdir'
10317       hardcode_direct=yes
10318       hardcode_shlibpath_var=no
10319       ;;
10320
10321     newsos6)
10322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323       hardcode_direct=yes
10324       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10325       hardcode_libdir_separator=:
10326       hardcode_shlibpath_var=no
10327       ;;
10328
10329     *nto* | *qnx*)
10330       ;;
10331
10332     openbsd*)
10333       if test -f /usr/libexec/ld.so; then
10334         hardcode_direct=yes
10335         hardcode_shlibpath_var=no
10336         hardcode_direct_absolute=yes
10337         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10338           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10339           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10340           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10341           export_dynamic_flag_spec='${wl}-E'
10342         else
10343           case $host_os in
10344            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10345              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10346              hardcode_libdir_flag_spec='-R$libdir'
10347              ;;
10348            *)
10349              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10350              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10351              ;;
10352           esac
10353         fi
10354       else
10355         ld_shlibs=no
10356       fi
10357       ;;
10358
10359     os2*)
10360       hardcode_libdir_flag_spec='-L$libdir'
10361       hardcode_minus_L=yes
10362       allow_undefined_flag=unsupported
10363       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'
10364       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10365       ;;
10366
10367     osf3*)
10368       if test "$GCC" = yes; then
10369         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10370         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'
10371       else
10372         allow_undefined_flag=' -expect_unresolved \*'
10373         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'
10374       fi
10375       archive_cmds_need_lc='no'
10376       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377       hardcode_libdir_separator=:
10378       ;;
10379
10380     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10381       if test "$GCC" = yes; then
10382         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10383         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'
10384         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385       else
10386         allow_undefined_flag=' -expect_unresolved \*'
10387         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'
10388         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~
10389         $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'
10390
10391         # Both c and cxx compiler support -rpath directly
10392         hardcode_libdir_flag_spec='-rpath $libdir'
10393       fi
10394       archive_cmds_need_lc='no'
10395       hardcode_libdir_separator=:
10396       ;;
10397
10398     solaris*)
10399       no_undefined_flag=' -z defs'
10400       if test "$GCC" = yes; then
10401         wlarc='${wl}'
10402         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10403         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404           $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'
10405       else
10406         case `$CC -V 2>&1` in
10407         *"Compilers 5.0"*)
10408           wlarc=''
10409           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10411           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10412           ;;
10413         *)
10414           wlarc='${wl}'
10415           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10416           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10417           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10418           ;;
10419         esac
10420       fi
10421       hardcode_libdir_flag_spec='-R$libdir'
10422       hardcode_shlibpath_var=no
10423       case $host_os in
10424       solaris2.[0-5] | solaris2.[0-5].*) ;;
10425       *)
10426         # The compiler driver will combine and reorder linker options,
10427         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10428         # but is careful enough not to reorder.
10429         # Supported since Solaris 2.6 (maybe 2.5.1?)
10430         if test "$GCC" = yes; then
10431           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10432         else
10433           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10434         fi
10435         ;;
10436       esac
10437       link_all_deplibs=yes
10438       ;;
10439
10440     sunos4*)
10441       if test "x$host_vendor" = xsequent; then
10442         # Use $CC to link under sequent, because it throws in some extra .o
10443         # files that make .init and .fini sections work.
10444         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10445       else
10446         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10447       fi
10448       hardcode_libdir_flag_spec='-L$libdir'
10449       hardcode_direct=yes
10450       hardcode_minus_L=yes
10451       hardcode_shlibpath_var=no
10452       ;;
10453
10454     sysv4)
10455       case $host_vendor in
10456         sni)
10457           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458           hardcode_direct=yes # is this really true???
10459         ;;
10460         siemens)
10461           ## LD is ld it makes a PLAMLIB
10462           ## CC just makes a GrossModule.
10463           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10464           reload_cmds='$CC -r -o $output$reload_objs'
10465           hardcode_direct=no
10466         ;;
10467         motorola)
10468           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10470         ;;
10471       esac
10472       runpath_var='LD_RUN_PATH'
10473       hardcode_shlibpath_var=no
10474       ;;
10475
10476     sysv4.3*)
10477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478       hardcode_shlibpath_var=no
10479       export_dynamic_flag_spec='-Bexport'
10480       ;;
10481
10482     sysv4*MP*)
10483       if test -d /usr/nec; then
10484         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485         hardcode_shlibpath_var=no
10486         runpath_var=LD_RUN_PATH
10487         hardcode_runpath_var=yes
10488         ld_shlibs=yes
10489       fi
10490       ;;
10491
10492     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10493       no_undefined_flag='${wl}-z,text'
10494       archive_cmds_need_lc=no
10495       hardcode_shlibpath_var=no
10496       runpath_var='LD_RUN_PATH'
10497
10498       if test "$GCC" = yes; then
10499         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501       else
10502         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504       fi
10505       ;;
10506
10507     sysv5* | sco3.2v5* | sco5v6*)
10508       # Note: We can NOT use -z defs as we might desire, because we do not
10509       # link with -lc, and that would cause any symbols used from libc to
10510       # always be unresolved, which means just about no library would
10511       # ever link correctly.  If we're not using GNU ld we use -z text
10512       # though, which does catch some bad symbols but isn't as heavy-handed
10513       # as -z defs.
10514       no_undefined_flag='${wl}-z,text'
10515       allow_undefined_flag='${wl}-z,nodefs'
10516       archive_cmds_need_lc=no
10517       hardcode_shlibpath_var=no
10518       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10519       hardcode_libdir_separator=':'
10520       link_all_deplibs=yes
10521       export_dynamic_flag_spec='${wl}-Bexport'
10522       runpath_var='LD_RUN_PATH'
10523
10524       if test "$GCC" = yes; then
10525         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527       else
10528         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530       fi
10531       ;;
10532
10533     uts4*)
10534       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535       hardcode_libdir_flag_spec='-L$libdir'
10536       hardcode_shlibpath_var=no
10537       ;;
10538
10539     *)
10540       ld_shlibs=no
10541       ;;
10542     esac
10543
10544     if test x$host_vendor = xsni; then
10545       case $host in
10546       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10547         export_dynamic_flag_spec='${wl}-Blargedynsym'
10548         ;;
10549       esac
10550     fi
10551   fi
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10554 $as_echo "$ld_shlibs" >&6; }
10555 test "$ld_shlibs" = no && can_build_shared=no
10556
10557 with_gnu_ld=$with_gnu_ld
10558
10559
10560     
10561     
10562     
10563
10564     
10565     
10566     
10567
10568     
10569     
10570     
10571
10572
10573 #
10574 # Do we need to explicitly link libc?
10575 #
10576 case "x$archive_cmds_need_lc" in
10577 x|xyes)
10578   # Assume -lc should be added
10579   archive_cmds_need_lc=yes
10580
10581   if test "$enable_shared" = yes && test "$GCC" = yes; then
10582     case $archive_cmds in
10583     *'~'*)
10584       # FIXME: we may have to deal with multi-command sequences.
10585       ;;
10586     '$CC '*)
10587       # Test whether the compiler implicitly links with -lc since on some
10588       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10589       # to ld, don't add -lc before -lgcc.
10590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10592 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   $RM conftest*
10596         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10597
10598         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10599   (eval $ac_compile) 2>&5
10600   ac_status=$?
10601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602   test $ac_status = 0; } 2>conftest.err; then
10603           soname=conftest
10604           lib=conftest
10605           libobjs=conftest.$ac_objext
10606           deplibs=
10607           wl=$lt_prog_compiler_wl
10608           pic_flag=$lt_prog_compiler_pic
10609           compiler_flags=-v
10610           linker_flags=-v
10611           verstring=
10612           output_objdir=.
10613           libname=conftest
10614           lt_save_allow_undefined_flag=$allow_undefined_flag
10615           allow_undefined_flag=
10616           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10617   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10618   ac_status=$?
10619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620   test $ac_status = 0; }
10621           then
10622             lt_cv_archive_cmds_need_lc=no
10623           else
10624             lt_cv_archive_cmds_need_lc=yes
10625           fi
10626           allow_undefined_flag=$lt_save_allow_undefined_flag
10627         else
10628           cat conftest.err 1>&5
10629         fi
10630         $RM conftest*
10631         
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10634 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10635       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10636       ;;
10637     esac
10638   fi
10639   ;;
10640 esac
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     
10790     
10791
10792
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10795
10796 if test "$GCC" = yes; then
10797   case $host_os in
10798     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10799     *) lt_awk_arg="/^libraries:/" ;;
10800   esac
10801   case $host_os in
10802     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10803     *) lt_sed_strip_eq="s,=/,/,g" ;;
10804   esac
10805   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10806   case $lt_search_path_spec in
10807   *\;*)
10808     # if the path contains ";" then we assume it to be the separator
10809     # otherwise default to the standard path separator (i.e. ":") - it is
10810     # assumed that no part of a normal pathname contains ";" but that should
10811     # okay in the real world where ";" in dirpaths is itself problematic.
10812     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10813     ;;
10814   *)
10815     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10816     ;;
10817   esac
10818   # Ok, now we have the path, separated by spaces, we can step through it
10819   # and add multilib dir if necessary.
10820   lt_tmp_lt_search_path_spec=
10821   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10822   for lt_sys_path in $lt_search_path_spec; do
10823     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10824       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10825     else
10826       test -d "$lt_sys_path" && \
10827         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10828     fi
10829   done
10830   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10831 BEGIN {RS=" "; FS="/|\n";} {
10832   lt_foo="";
10833   lt_count=0;
10834   for (lt_i = NF; lt_i > 0; lt_i--) {
10835     if ($lt_i != "" && $lt_i != ".") {
10836       if ($lt_i == "..") {
10837         lt_count++;
10838       } else {
10839         if (lt_count == 0) {
10840           lt_foo="/" $lt_i lt_foo;
10841         } else {
10842           lt_count--;
10843         }
10844       }
10845     }
10846   }
10847   if (lt_foo != "") { lt_freq[lt_foo]++; }
10848   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10849 }'`
10850   # AWK program above erroneously prepends '/' to C:/dos/paths
10851   # for these hosts.
10852   case $host_os in
10853     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10854       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10855   esac
10856   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10857 else
10858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10859 fi
10860 library_names_spec=
10861 libname_spec='lib$name'
10862 soname_spec=
10863 shrext_cmds=".so"
10864 postinstall_cmds=
10865 postuninstall_cmds=
10866 finish_cmds=
10867 finish_eval=
10868 shlibpath_var=
10869 shlibpath_overrides_runpath=unknown
10870 version_type=none
10871 dynamic_linker="$host_os ld.so"
10872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10873 need_lib_prefix=unknown
10874 hardcode_into_libs=no
10875
10876 # when you set need_version to no, make sure it does not cause -set_version
10877 # flags to be left without arguments
10878 need_version=unknown
10879
10880 case $host_os in
10881 aix3*)
10882   version_type=linux # correct to gnu/linux during the next big refactor
10883   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10884   shlibpath_var=LIBPATH
10885
10886   # AIX 3 has no versioning support, so we append a major version to the name.
10887   soname_spec='${libname}${release}${shared_ext}$major'
10888   ;;
10889
10890 aix[4-9]*)
10891   version_type=linux # correct to gnu/linux during the next big refactor
10892   need_lib_prefix=no
10893   need_version=no
10894   hardcode_into_libs=yes
10895   if test "$host_cpu" = ia64; then
10896     # AIX 5 supports IA64
10897     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10898     shlibpath_var=LD_LIBRARY_PATH
10899   else
10900     # With GCC up to 2.95.x, collect2 would create an import file
10901     # for dependence libraries.  The import file would start with
10902     # the line `#! .'.  This would cause the generated library to
10903     # depend on `.', always an invalid library.  This was fixed in
10904     # development snapshots of GCC prior to 3.0.
10905     case $host_os in
10906       aix4 | aix4.[01] | aix4.[01].*)
10907       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10908            echo ' yes '
10909            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10910         :
10911       else
10912         can_build_shared=no
10913       fi
10914       ;;
10915     esac
10916     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10917     # soname into executable. Probably we can add versioning support to
10918     # collect2, so additional links can be useful in future.
10919     if test "$aix_use_runtimelinking" = yes; then
10920       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10921       # instead of lib<name>.a to let people know that these are not
10922       # typical AIX shared libraries.
10923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924     else
10925       # We preserve .a as extension for shared libraries through AIX4.2
10926       # and later when we are not doing run time linking.
10927       library_names_spec='${libname}${release}.a $libname.a'
10928       soname_spec='${libname}${release}${shared_ext}$major'
10929     fi
10930     shlibpath_var=LIBPATH
10931   fi
10932   ;;
10933
10934 amigaos*)
10935   case $host_cpu in
10936   powerpc)
10937     # Since July 2007 AmigaOS4 officially supports .so libraries.
10938     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940     ;;
10941   m68k)
10942     library_names_spec='$libname.ixlibrary $libname.a'
10943     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10944     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'
10945     ;;
10946   esac
10947   ;;
10948
10949 beos*)
10950   library_names_spec='${libname}${shared_ext}'
10951   dynamic_linker="$host_os ld.so"
10952   shlibpath_var=LIBRARY_PATH
10953   ;;
10954
10955 bsdi[45]*)
10956   version_type=linux # correct to gnu/linux during the next big refactor
10957   need_version=no
10958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959   soname_spec='${libname}${release}${shared_ext}$major'
10960   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10963   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10964   # the default ld.so.conf also contains /usr/contrib/lib and
10965   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10966   # libtool to hard-code these into programs
10967   ;;
10968
10969 cygwin* | mingw* | pw32* | cegcc*)
10970   version_type=windows
10971   shrext_cmds=".dll"
10972   need_version=no
10973   need_lib_prefix=no
10974
10975   case $GCC,$cc_basename in
10976   yes,*)
10977     # gcc
10978     library_names_spec='$libname.dll.a'
10979     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10980     postinstall_cmds='base_file=`basename \${file}`~
10981       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10982       dldir=$destdir/`dirname \$dlpath`~
10983       test -d \$dldir || mkdir -p \$dldir~
10984       $install_prog $dir/$dlname \$dldir/$dlname~
10985       chmod a+x \$dldir/$dlname~
10986       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10987         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10988       fi'
10989     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10990       dlpath=$dir/\$dldll~
10991        $RM \$dlpath'
10992     shlibpath_overrides_runpath=yes
10993
10994     case $host_os in
10995     cygwin*)
10996       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10997       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10998
10999       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11000       ;;
11001     mingw* | cegcc*)
11002       # MinGW DLLs use traditional 'lib' prefix
11003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11004       ;;
11005     pw32*)
11006       # pw32 DLLs use 'pw' prefix rather than 'lib'
11007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11008       ;;
11009     esac
11010     dynamic_linker='Win32 ld.exe'
11011     ;;
11012
11013   *,cl*)
11014     # Native MSVC
11015     libname_spec='$name'
11016     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11017     library_names_spec='${libname}.dll.lib'
11018
11019     case $build_os in
11020     mingw*)
11021       sys_lib_search_path_spec=
11022       lt_save_ifs=$IFS
11023       IFS=';'
11024       for lt_path in $LIB
11025       do
11026         IFS=$lt_save_ifs
11027         # Let DOS variable expansion print the short 8.3 style file name.
11028         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11029         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11030       done
11031       IFS=$lt_save_ifs
11032       # Convert to MSYS style.
11033       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11034       ;;
11035     cygwin*)
11036       # Convert to unix form, then to dos form, then back to unix form
11037       # but this time dos style (no spaces!) so that the unix form looks
11038       # like /cygdrive/c/PROGRA~1:/cygdr...
11039       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11040       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11041       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11042       ;;
11043     *)
11044       sys_lib_search_path_spec="$LIB"
11045       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11046         # It is most probably a Windows format PATH.
11047         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11048       else
11049         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11050       fi
11051       # FIXME: find the short name or the path components, as spaces are
11052       # common. (e.g. "Program Files" -> "PROGRA~1")
11053       ;;
11054     esac
11055
11056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11057     postinstall_cmds='base_file=`basename \${file}`~
11058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11059       dldir=$destdir/`dirname \$dlpath`~
11060       test -d \$dldir || mkdir -p \$dldir~
11061       $install_prog $dir/$dlname \$dldir/$dlname'
11062     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11063       dlpath=$dir/\$dldll~
11064        $RM \$dlpath'
11065     shlibpath_overrides_runpath=yes
11066     dynamic_linker='Win32 link.exe'
11067     ;;
11068
11069   *)
11070     # Assume MSVC wrapper
11071     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11072     dynamic_linker='Win32 ld.exe'
11073     ;;
11074   esac
11075   # FIXME: first we should search . and the directory the executable is in
11076   shlibpath_var=PATH
11077   ;;
11078
11079 darwin* | rhapsody*)
11080   dynamic_linker="$host_os dyld"
11081   version_type=darwin
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11085   soname_spec='${libname}${release}${major}$shared_ext'
11086   shlibpath_overrides_runpath=yes
11087   shlibpath_var=DYLD_LIBRARY_PATH
11088   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11089
11090   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11091   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11092   ;;
11093
11094 dgux*)
11095   version_type=linux # correct to gnu/linux during the next big refactor
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   shlibpath_var=LD_LIBRARY_PATH
11101   ;;
11102
11103 freebsd* | dragonfly*)
11104   # DragonFly does not have aout.  When/if they implement a new
11105   # versioning mechanism, adjust this.
11106   if test -x /usr/bin/objformat; then
11107     objformat=`/usr/bin/objformat`
11108   else
11109     case $host_os in
11110     freebsd[23].*) objformat=aout ;;
11111     *) objformat=elf ;;
11112     esac
11113   fi
11114   version_type=freebsd-$objformat
11115   case $version_type in
11116     freebsd-elf*)
11117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11118       need_version=no
11119       need_lib_prefix=no
11120       ;;
11121     freebsd-*)
11122       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11123       need_version=yes
11124       ;;
11125   esac
11126   shlibpath_var=LD_LIBRARY_PATH
11127   case $host_os in
11128   freebsd2.*)
11129     shlibpath_overrides_runpath=yes
11130     ;;
11131   freebsd3.[01]* | freebsdelf3.[01]*)
11132     shlibpath_overrides_runpath=yes
11133     hardcode_into_libs=yes
11134     ;;
11135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11137     shlibpath_overrides_runpath=no
11138     hardcode_into_libs=yes
11139     ;;
11140   *) # from 4.6 on, and DragonFly
11141     shlibpath_overrides_runpath=yes
11142     hardcode_into_libs=yes
11143     ;;
11144   esac
11145   ;;
11146
11147 gnu*)
11148   version_type=linux # correct to gnu/linux during the next big refactor
11149   need_lib_prefix=no
11150   need_version=no
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   shlibpath_overrides_runpath=no
11155   hardcode_into_libs=yes
11156   ;;
11157
11158 haiku*)
11159   version_type=linux # correct to gnu/linux during the next big refactor
11160   need_lib_prefix=no
11161   need_version=no
11162   dynamic_linker="$host_os runtime_loader"
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11164   soname_spec='${libname}${release}${shared_ext}$major'
11165   shlibpath_var=LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11168   hardcode_into_libs=yes
11169   ;;
11170
11171 hpux9* | hpux10* | hpux11*)
11172   # Give a soname corresponding to the major version so that dld.sl refuses to
11173   # link against other versions.
11174   version_type=sunos
11175   need_lib_prefix=no
11176   need_version=no
11177   case $host_cpu in
11178   ia64*)
11179     shrext_cmds='.so'
11180     hardcode_into_libs=yes
11181     dynamic_linker="$host_os dld.so"
11182     shlibpath_var=LD_LIBRARY_PATH
11183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185     soname_spec='${libname}${release}${shared_ext}$major'
11186     if test "X$HPUX_IA64_MODE" = X32; then
11187       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11188     else
11189       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11190     fi
11191     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192     ;;
11193   hppa*64*)
11194     shrext_cmds='.sl'
11195     hardcode_into_libs=yes
11196     dynamic_linker="$host_os dld.sl"
11197     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11198     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200     soname_spec='${libname}${release}${shared_ext}$major'
11201     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203     ;;
11204   *)
11205     shrext_cmds='.sl'
11206     dynamic_linker="$host_os dld.sl"
11207     shlibpath_var=SHLIB_PATH
11208     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210     soname_spec='${libname}${release}${shared_ext}$major'
11211     ;;
11212   esac
11213   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11214   postinstall_cmds='chmod 555 $lib'
11215   # or fails outright, so override atomically:
11216   install_override_mode=555
11217   ;;
11218
11219 interix[3-9]*)
11220   version_type=linux # correct to gnu/linux during the next big refactor
11221   need_lib_prefix=no
11222   need_version=no
11223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   shlibpath_overrides_runpath=no
11228   hardcode_into_libs=yes
11229   ;;
11230
11231 irix5* | irix6* | nonstopux*)
11232   case $host_os in
11233     nonstopux*) version_type=nonstopux ;;
11234     *)
11235         if test "$lt_cv_prog_gnu_ld" = yes; then
11236                 version_type=linux # correct to gnu/linux during the next big refactor
11237         else
11238                 version_type=irix
11239         fi ;;
11240   esac
11241   need_lib_prefix=no
11242   need_version=no
11243   soname_spec='${libname}${release}${shared_ext}$major'
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11245   case $host_os in
11246   irix5* | nonstopux*)
11247     libsuff= shlibsuff=
11248     ;;
11249   *)
11250     case $LD in # libtool.m4 will add one of these switches to LD
11251     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11252       libsuff= shlibsuff= libmagic=32-bit;;
11253     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11254       libsuff=32 shlibsuff=N32 libmagic=N32;;
11255     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11256       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11257     *) libsuff= shlibsuff= libmagic=never-match;;
11258     esac
11259     ;;
11260   esac
11261   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11262   shlibpath_overrides_runpath=no
11263   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11264   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11265   hardcode_into_libs=yes
11266   ;;
11267
11268 # No shared lib support for Linux oldld, aout, or coff.
11269 linux*oldld* | linux*aout* | linux*coff*)
11270   dynamic_linker=no
11271   ;;
11272
11273 # This must be glibc/ELF.
11274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11275   version_type=linux # correct to gnu/linux during the next big refactor
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279   soname_spec='${libname}${release}${shared_ext}$major'
11280   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11281   shlibpath_var=LD_LIBRARY_PATH
11282   shlibpath_overrides_runpath=no
11283
11284   # Some binutils ld are patched to set DT_RUNPATH
11285   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11286   $as_echo_n "(cached) " >&6
11287 else
11288   lt_cv_shlibpath_overrides_runpath=no
11289     save_LDFLAGS=$LDFLAGS
11290     save_libdir=$libdir
11291     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11292          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11293     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h.  */
11295
11296 int
11297 main ()
11298 {
11299
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11306   lt_cv_shlibpath_overrides_runpath=yes
11307 fi
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310     conftest$ac_exeext conftest.$ac_ext
11311     LDFLAGS=$save_LDFLAGS
11312     libdir=$save_libdir
11313     
11314 fi
11315
11316   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11317
11318   # This implies no fast_install, which is unacceptable.
11319   # Some rework will be needed to allow for fast_install
11320   # before this can be enabled.
11321   hardcode_into_libs=yes
11322
11323   # Append ld.so.conf contents to the search path
11324   if test -f /etc/ld.so.conf; then
11325     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' ' '`
11326     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11327   fi
11328
11329   # We used to test for /lib/ld.so.1 and disable shared libraries on
11330   # powerpc, because MkLinux only supported shared libraries with the
11331   # GNU dynamic linker.  Since this was broken with cross compilers,
11332   # most powerpc-linux boxes support dynamic linking these days and
11333   # people can always --disable-shared, the test was removed, and we
11334   # assume the GNU/Linux dynamic linker is in use.
11335   dynamic_linker='GNU/Linux ld.so'
11336   ;;
11337
11338 netbsdelf*-gnu)
11339   version_type=linux
11340   need_lib_prefix=no
11341   need_version=no
11342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11343   soname_spec='${libname}${release}${shared_ext}$major'
11344   shlibpath_var=LD_LIBRARY_PATH
11345   shlibpath_overrides_runpath=no
11346   hardcode_into_libs=yes
11347   dynamic_linker='NetBSD ld.elf_so'
11348   ;;
11349
11350 netbsd*)
11351   version_type=sunos
11352   need_lib_prefix=no
11353   need_version=no
11354   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357     dynamic_linker='NetBSD (a.out) ld.so'
11358   else
11359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360     soname_spec='${libname}${release}${shared_ext}$major'
11361     dynamic_linker='NetBSD ld.elf_so'
11362   fi
11363   shlibpath_var=LD_LIBRARY_PATH
11364   shlibpath_overrides_runpath=yes
11365   hardcode_into_libs=yes
11366   ;;
11367
11368 newsos6)
11369   version_type=linux # correct to gnu/linux during the next big refactor
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=yes
11373   ;;
11374
11375 *nto* | *qnx*)
11376   version_type=qnx
11377   need_lib_prefix=no
11378   need_version=no
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   shlibpath_overrides_runpath=no
11383   hardcode_into_libs=yes
11384   dynamic_linker='ldqnx.so'
11385   ;;
11386
11387 openbsd*)
11388   version_type=sunos
11389   sys_lib_dlsearch_path_spec="/usr/lib"
11390   need_lib_prefix=no
11391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11392   case $host_os in
11393     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11394     *)                          need_version=no  ;;
11395   esac
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400     case $host_os in
11401       openbsd2.[89] | openbsd2.[89].*)
11402         shlibpath_overrides_runpath=no
11403         ;;
11404       *)
11405         shlibpath_overrides_runpath=yes
11406         ;;
11407       esac
11408   else
11409     shlibpath_overrides_runpath=yes
11410   fi
11411   ;;
11412
11413 os2*)
11414   libname_spec='$name'
11415   shrext_cmds=".dll"
11416   need_lib_prefix=no
11417   library_names_spec='$libname${shared_ext} $libname.a'
11418   dynamic_linker='OS/2 ld.exe'
11419   shlibpath_var=LIBPATH
11420   ;;
11421
11422 osf3* | osf4* | osf5*)
11423   version_type=osf
11424   need_lib_prefix=no
11425   need_version=no
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428   shlibpath_var=LD_LIBRARY_PATH
11429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11431   ;;
11432
11433 rdos*)
11434   dynamic_linker=no
11435   ;;
11436
11437 solaris*)
11438   version_type=linux # correct to gnu/linux during the next big refactor
11439   need_lib_prefix=no
11440   need_version=no
11441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442   soname_spec='${libname}${release}${shared_ext}$major'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=yes
11445   hardcode_into_libs=yes
11446   # ldd complains unless libraries are executable
11447   postinstall_cmds='chmod +x $lib'
11448   ;;
11449
11450 sunos4*)
11451   version_type=sunos
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   if test "$with_gnu_ld" = yes; then
11457     need_lib_prefix=no
11458   fi
11459   need_version=yes
11460   ;;
11461
11462 sysv4 | sysv4.3*)
11463   version_type=linux # correct to gnu/linux during the next big refactor
11464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465   soname_spec='${libname}${release}${shared_ext}$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   case $host_vendor in
11468     sni)
11469       shlibpath_overrides_runpath=no
11470       need_lib_prefix=no
11471       runpath_var=LD_RUN_PATH
11472       ;;
11473     siemens)
11474       need_lib_prefix=no
11475       ;;
11476     motorola)
11477       need_lib_prefix=no
11478       need_version=no
11479       shlibpath_overrides_runpath=no
11480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11481       ;;
11482   esac
11483   ;;
11484
11485 sysv4*MP*)
11486   if test -d /usr/nec ;then
11487     version_type=linux # correct to gnu/linux during the next big refactor
11488     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11489     soname_spec='$libname${shared_ext}.$major'
11490     shlibpath_var=LD_LIBRARY_PATH
11491   fi
11492   ;;
11493
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495   version_type=freebsd-elf
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499   soname_spec='${libname}${release}${shared_ext}$major'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=yes
11502   hardcode_into_libs=yes
11503   if test "$with_gnu_ld" = yes; then
11504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11505   else
11506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11507     case $host_os in
11508       sco3.2v5*)
11509         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11510         ;;
11511     esac
11512   fi
11513   sys_lib_dlsearch_path_spec='/usr/lib'
11514   ;;
11515
11516 tpf*)
11517   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11518   version_type=linux # correct to gnu/linux during the next big refactor
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=no
11524   hardcode_into_libs=yes
11525   ;;
11526
11527 uts4*)
11528   version_type=linux # correct to gnu/linux during the next big refactor
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530   soname_spec='${libname}${release}${shared_ext}$major'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   ;;
11533
11534 *)
11535   dynamic_linker=no
11536   ;;
11537 esac
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test "$dynamic_linker" = no && can_build_shared=no
11541
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test "$GCC" = yes; then
11544   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11545 fi
11546
11547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11548   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11549 fi
11550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11551   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11552 fi
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     
11642     
11643
11644
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11647 hardcode_action=
11648 if test -n "$hardcode_libdir_flag_spec" ||
11649    test -n "$runpath_var" ||
11650    test "X$hardcode_automatic" = "Xyes" ; then
11651
11652   # We can hardcode non-existent directories.
11653   if test "$hardcode_direct" != no &&
11654      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11655      # have to relink, otherwise we might link with an installed library
11656      # when we should be linking with a yet-to-be-installed one
11657      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11658      test "$hardcode_minus_L" != no; then
11659     # Linking always hardcodes the temporary library directory.
11660     hardcode_action=relink
11661   else
11662     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11663     hardcode_action=immediate
11664   fi
11665 else
11666   # We cannot hardcode anything, or else we can only hardcode existing
11667   # directories.
11668   hardcode_action=unsupported
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11671 $as_echo "$hardcode_action" >&6; }
11672
11673 if test "$hardcode_action" = relink ||
11674    test "$inherit_rpath" = yes; then
11675   # Fast installation is not supported
11676   enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678      test "$enable_shared" = no; then
11679   # Fast installation is not necessary
11680   enable_fast_install=needless
11681 fi
11682
11683     
11684     
11685     
11686
11687
11688   if test "x$enable_dlopen" != xyes; then
11689   enable_dlopen=unknown
11690   enable_dlopen_self=unknown
11691   enable_dlopen_self_static=unknown
11692 else
11693   lt_cv_dlopen=no
11694   lt_cv_dlopen_libs=
11695
11696   case $host_os in
11697   beos*)
11698     lt_cv_dlopen="load_add_on"
11699     lt_cv_dlopen_libs=
11700     lt_cv_dlopen_self=yes
11701     ;;
11702
11703   mingw* | pw32* | cegcc*)
11704     lt_cv_dlopen="LoadLibrary"
11705     lt_cv_dlopen_libs=
11706     ;;
11707
11708   cygwin*)
11709     lt_cv_dlopen="dlopen"
11710     lt_cv_dlopen_libs=
11711     ;;
11712
11713   darwin*)
11714   # if libdl is installed we need to link against it
11715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if ${ac_cv_lib_dl_dlopen+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldl  $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dlopen ();
11732 int
11733 main ()
11734 {
11735 return dlopen ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   ac_cv_lib_dl_dlopen=yes
11742 else
11743   ac_cv_lib_dl_dlopen=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746     conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754   
11755     lt_cv_dlopen="dyld"
11756     lt_cv_dlopen_libs=
11757     lt_cv_dlopen_self=yes
11758     
11759 fi
11760
11761     ;;
11762
11763   *)
11764     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes; then :
11766   lt_cv_dlopen="shl_load"
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-ldld  $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h.  */
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779    Use char because int might match the return type of a GCC
11780    builtin and then its argument prototype would still apply.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char shl_load ();
11785 int
11786 main ()
11787 {
11788 return shl_load ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794   ac_cv_lib_dld_shl_load=yes
11795 else
11796   ac_cv_lib_dld_shl_load=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799     conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11805   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11806 else
11807   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes; then :
11809   lt_cv_dlopen="dlopen"
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldl  $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h.  */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822    Use char because int might match the return type of a GCC
11823    builtin and then its argument prototype would still apply.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837   ac_cv_lib_dl_dlopen=yes
11838 else
11839   ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842     conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lsvld  $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char dlopen ();
11867 int
11868 main ()
11869 {
11870 return dlopen ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   ac_cv_lib_svld_dlopen=yes
11877 else
11878   ac_cv_lib_svld_dlopen=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881     conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894   ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldld  $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h.  */
11898
11899 /* Override any GCC internal prototype to avoid an error.
11900    Use char because int might match the return type of a GCC
11901    builtin and then its argument prototype would still apply.  */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char dld_link ();
11906 int
11907 main ()
11908 {
11909 return dld_link ();
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915   ac_cv_lib_dld_dld_link=yes
11916 else
11917   ac_cv_lib_dld_dld_link=no
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext \
11920     conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11926   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11927 fi
11928
11929               
11930 fi
11931
11932             
11933 fi
11934
11935           
11936 fi
11937
11938         
11939 fi
11940
11941       
11942 fi
11943
11944     ;;
11945   esac
11946
11947   if test "x$lt_cv_dlopen" != xno; then
11948     enable_dlopen=yes
11949   else
11950     enable_dlopen=no
11951   fi
11952
11953   case $lt_cv_dlopen in
11954   dlopen)
11955     save_CPPFLAGS="$CPPFLAGS"
11956     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11957
11958     save_LDFLAGS="$LDFLAGS"
11959     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11960
11961     save_LIBS="$LIBS"
11962     LIBS="$lt_cv_dlopen_libs $LIBS"
11963
11964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969           if test "$cross_compiling" = yes; then :
11970   lt_cv_dlopen_self=cross
11971 else
11972   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973   lt_status=$lt_dlunknown
11974   cat > conftest.$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11977
11978 #if HAVE_DLFCN_H
11979 #include <dlfcn.h>
11980 #endif
11981
11982 #include <stdio.h>
11983
11984 #ifdef RTLD_GLOBAL
11985 #  define LT_DLGLOBAL           RTLD_GLOBAL
11986 #else
11987 #  ifdef DL_GLOBAL
11988 #    define LT_DLGLOBAL         DL_GLOBAL
11989 #  else
11990 #    define LT_DLGLOBAL         0
11991 #  endif
11992 #endif
11993
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995    find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11997 #  ifdef RTLD_LAZY
11998 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11999 #  else
12000 #    ifdef DL_LAZY
12001 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12002 #    else
12003 #      ifdef RTLD_NOW
12004 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12005 #      else
12006 #        ifdef DL_NOW
12007 #          define LT_DLLAZY_OR_NOW      DL_NOW
12008 #        else
12009 #          define LT_DLLAZY_OR_NOW      0
12010 #        endif
12011 #      endif
12012 #    endif
12013 #  endif
12014 #endif
12015
12016 /* When -fvisbility=hidden is used, assume the code has been annotated
12017    correspondingly for the symbols needed.  */
12018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12020 #endif
12021
12022 int fnord () { return 42; }
12023 int main ()
12024 {
12025   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026   int status = $lt_dlunknown;
12027
12028   if (self)
12029     {
12030       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12031       else
12032         {
12033           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12034           else puts (dlerror ());
12035         }
12036       /* dlclose (self); */
12037     }
12038   else
12039     puts (dlerror ());
12040
12041   return status;
12042 }
12043 _LT_EOF
12044   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045   (eval $ac_link) 2>&5
12046   ac_status=$?
12047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12049     (./conftest; exit; ) >&5 2>/dev/null
12050     lt_status=$?
12051     case x$lt_status in
12052       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12053       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12054       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12055     esac
12056   else :
12057     # compilation failed
12058     lt_cv_dlopen_self=no
12059   fi
12060 fi
12061 rm -fr conftest*
12062
12063     
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12067
12068     if test "x$lt_cv_dlopen_self" = xyes; then
12069       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12070       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075           if test "$cross_compiling" = yes; then :
12076   lt_cv_dlopen_self_static=cross
12077 else
12078   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079   lt_status=$lt_dlunknown
12080   cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083
12084 #if HAVE_DLFCN_H
12085 #include <dlfcn.h>
12086 #endif
12087
12088 #include <stdio.h>
12089
12090 #ifdef RTLD_GLOBAL
12091 #  define LT_DLGLOBAL           RTLD_GLOBAL
12092 #else
12093 #  ifdef DL_GLOBAL
12094 #    define LT_DLGLOBAL         DL_GLOBAL
12095 #  else
12096 #    define LT_DLGLOBAL         0
12097 #  endif
12098 #endif
12099
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101    find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12103 #  ifdef RTLD_LAZY
12104 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12105 #  else
12106 #    ifdef DL_LAZY
12107 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12108 #    else
12109 #      ifdef RTLD_NOW
12110 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12111 #      else
12112 #        ifdef DL_NOW
12113 #          define LT_DLLAZY_OR_NOW      DL_NOW
12114 #        else
12115 #          define LT_DLLAZY_OR_NOW      0
12116 #        endif
12117 #      endif
12118 #    endif
12119 #  endif
12120 #endif
12121
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123    correspondingly for the symbols needed.  */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12126 #endif
12127
12128 int fnord () { return 42; }
12129 int main ()
12130 {
12131   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132   int status = $lt_dlunknown;
12133
12134   if (self)
12135     {
12136       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12137       else
12138         {
12139           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12140           else puts (dlerror ());
12141         }
12142       /* dlclose (self); */
12143     }
12144   else
12145     puts (dlerror ());
12146
12147   return status;
12148 }
12149 _LT_EOF
12150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151   (eval $ac_link) 2>&5
12152   ac_status=$?
12153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155     (./conftest; exit; ) >&5 2>/dev/null
12156     lt_status=$?
12157     case x$lt_status in
12158       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12159       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12160       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12161     esac
12162   else :
12163     # compilation failed
12164     lt_cv_dlopen_self_static=no
12165   fi
12166 fi
12167 rm -fr conftest*
12168
12169       
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12173     fi
12174
12175     CPPFLAGS="$save_CPPFLAGS"
12176     LDFLAGS="$save_LDFLAGS"
12177     LIBS="$save_LIBS"
12178     ;;
12179   esac
12180
12181   case $lt_cv_dlopen_self in
12182   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12183   *) enable_dlopen_self=unknown ;;
12184   esac
12185
12186   case $lt_cv_dlopen_self_static in
12187   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12188   *) enable_dlopen_self_static=unknown ;;
12189   esac
12190 fi
12191
12192     
12193     
12194     
12195
12196
12197     
12198     
12199     
12200
12201
12202     
12203     
12204     
12205
12206
12207   
12208 striplib=
12209 old_striplib=
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12213   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12214   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12217 else
12218 # FIXME - insert some real tests, host_os isn't really good enough
12219   case $host_os in
12220   darwin*)
12221     if test -n "$STRIP" ; then
12222       striplib="$STRIP -x"
12223       old_striplib="$STRIP -S"
12224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226     else
12227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229     fi
12230     ;;
12231   *)
12232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234     ;;
12235   esac
12236 fi
12237
12238     
12239     
12240     
12241
12242
12243     
12244     
12245     
12246
12247
12248
12249   # Report which library types will actually be built
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12254
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257   test "$can_build_shared" = "no" && enable_shared=no
12258
12259   # On AIX, shared libraries and static libraries use the same namespace, and
12260   # are all built from PIC.
12261   case $host_os in
12262   aix3*)
12263     test "$enable_shared" = yes && enable_static=no
12264     if test -n "$RANLIB"; then
12265       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12266       postinstall_cmds='$RANLIB $lib'
12267     fi
12268     ;;
12269
12270   aix[4-9]*)
12271     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12272       test "$enable_shared" = yes && enable_static=no
12273     fi
12274     ;;
12275   esac
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12277 $as_echo "$enable_shared" >&6; }
12278
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12280 $as_echo_n "checking whether to build static libraries... " >&6; }
12281   # Make sure either enable_shared or enable_static is yes.
12282   test "$enable_shared" = yes || enable_static=yes
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12284 $as_echo "$enable_static" >&6; }
12285
12286   
12287
12288
12289 fi
12290 ac_ext=c
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12295
12296 CC="$lt_save_CC"
12297
12298       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12299     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12300     (test "X$CXX" != "Xg++"))) ; then
12301   ac_ext=cpp
12302 ac_cpp='$CXXCPP $CPPFLAGS'
12303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12307 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12308 if test -z "$CXXCPP"; then
12309   if ${ac_cv_prog_CXXCPP+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312       # Double quotes because CXXCPP needs to be expanded
12313     for CXXCPP in "$CXX -E" "/lib/cpp"
12314     do
12315       ac_preproc_ok=false
12316 for ac_cxx_preproc_warn_flag in '' yes
12317 do
12318   # Use a header file that comes with gcc, so configuring glibc
12319   # with a fresh cross-compiler works.
12320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321   # <limits.h> exists even on freestanding compilers.
12322   # On the NeXT, cc -E runs the code through the compiler's parser,
12323   # not just through cpp. "Syntax error" is here to catch this case.
12324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326 @%:@ifdef __STDC__
12327 @%:@ include <limits.h>
12328 @%:@else
12329 @%:@ include <assert.h>
12330 @%:@endif
12331                      Syntax error
12332 _ACEOF
12333 if ac_fn_cxx_try_cpp "$LINENO"; then :
12334   
12335 else
12336   # Broken: fails on valid input.
12337 continue
12338 fi
12339 rm -f conftest.err conftest.i conftest.$ac_ext
12340
12341   # OK, works on sane cases.  Now check whether nonexistent headers
12342   # can be detected and how.
12343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345 @%:@include <ac_nonexistent.h>
12346 _ACEOF
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348   # Broken: success on invalid input.
12349 continue
12350 else
12351   # Passes both tests.
12352 ac_preproc_ok=:
12353 break
12354 fi
12355 rm -f conftest.err conftest.i conftest.$ac_ext
12356
12357 done
12358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12359 rm -f conftest.i conftest.err conftest.$ac_ext
12360 if $ac_preproc_ok; then :
12361   break
12362 fi
12363
12364     done
12365     ac_cv_prog_CXXCPP=$CXXCPP
12366   
12367 fi
12368   CXXCPP=$ac_cv_prog_CXXCPP
12369 else
12370   ac_cv_prog_CXXCPP=$CXXCPP
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12373 $as_echo "$CXXCPP" >&6; }
12374 ac_preproc_ok=false
12375 for ac_cxx_preproc_warn_flag in '' yes
12376 do
12377   # Use a header file that comes with gcc, so configuring glibc
12378   # with a fresh cross-compiler works.
12379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380   # <limits.h> exists even on freestanding compilers.
12381   # On the NeXT, cc -E runs the code through the compiler's parser,
12382   # not just through cpp. "Syntax error" is here to catch this case.
12383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h.  */
12385 @%:@ifdef __STDC__
12386 @%:@ include <limits.h>
12387 @%:@else
12388 @%:@ include <assert.h>
12389 @%:@endif
12390                      Syntax error
12391 _ACEOF
12392 if ac_fn_cxx_try_cpp "$LINENO"; then :
12393   
12394 else
12395   # Broken: fails on valid input.
12396 continue
12397 fi
12398 rm -f conftest.err conftest.i conftest.$ac_ext
12399
12400   # OK, works on sane cases.  Now check whether nonexistent headers
12401   # can be detected and how.
12402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h.  */
12404 @%:@include <ac_nonexistent.h>
12405 _ACEOF
12406 if ac_fn_cxx_try_cpp "$LINENO"; then :
12407   # Broken: success on invalid input.
12408 continue
12409 else
12410   # Passes both tests.
12411 ac_preproc_ok=:
12412 break
12413 fi
12414 rm -f conftest.err conftest.i conftest.$ac_ext
12415
12416 done
12417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12418 rm -f conftest.i conftest.err conftest.$ac_ext
12419 if $ac_preproc_ok; then :
12420   
12421 else
12422   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12424 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12425 See \`config.log' for more details" "$LINENO" 5; }
12426 fi
12427
12428 ac_ext=c
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433
12434 else
12435   _lt_caught_CXX_error=yes
12436 fi
12437
12438 ac_ext=cpp
12439 ac_cpp='$CXXCPP $CPPFLAGS'
12440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12443
12444 archive_cmds_need_lc_CXX=no
12445 allow_undefined_flag_CXX=
12446 always_export_symbols_CXX=no
12447 archive_expsym_cmds_CXX=
12448 compiler_needs_object_CXX=no
12449 export_dynamic_flag_spec_CXX=
12450 hardcode_direct_CXX=no
12451 hardcode_direct_absolute_CXX=no
12452 hardcode_libdir_flag_spec_CXX=
12453 hardcode_libdir_separator_CXX=
12454 hardcode_minus_L_CXX=no
12455 hardcode_shlibpath_var_CXX=unsupported
12456 hardcode_automatic_CXX=no
12457 inherit_rpath_CXX=no
12458 module_cmds_CXX=
12459 module_expsym_cmds_CXX=
12460 link_all_deplibs_CXX=unknown
12461 old_archive_cmds_CXX=$old_archive_cmds
12462 reload_flag_CXX=$reload_flag
12463 reload_cmds_CXX=$reload_cmds
12464 no_undefined_flag_CXX=
12465 whole_archive_flag_spec_CXX=
12466 enable_shared_with_static_runtimes_CXX=no
12467
12468 # Source file extension for C++ test sources.
12469 ac_ext=cpp
12470
12471 # Object file extension for compiled C++ test sources.
12472 objext=o
12473 objext_CXX=$objext
12474
12475 # No sense in running all these tests if we already determined that
12476 # the CXX compiler isn't working.  Some variables (like enable_shared)
12477 # are currently assumed to apply to all compilers on this platform,
12478 # and will be corrupted by setting them based on a non-working compiler.
12479 if test "$_lt_caught_CXX_error" != yes; then
12480   # Code to be used in simple compile tests
12481   lt_simple_compile_test_code="int some_variable = 0;"
12482
12483   # Code to be used in simple link tests
12484   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12485
12486   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12487   
12488
12489
12490
12491
12492
12493 # If no C compiler was specified, use CC.
12494 LTCC=${LTCC-"$CC"}
12495
12496 # If no C compiler flags were specified, use CFLAGS.
12497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12498
12499 # Allow CC to be a program name with arguments.
12500 compiler=$CC
12501
12502
12503   # save warnings/boilerplate of simple test code
12504   ac_outfile=conftest.$ac_objext
12505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12507 _lt_compiler_boilerplate=`cat conftest.err`
12508 $RM conftest*
12509
12510   ac_outfile=conftest.$ac_objext
12511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12513 _lt_linker_boilerplate=`cat conftest.err`
12514 $RM -r conftest*
12515
12516
12517   # Allow CC to be a program name with arguments.
12518   lt_save_CC=$CC
12519   lt_save_CFLAGS=$CFLAGS
12520   lt_save_LD=$LD
12521   lt_save_GCC=$GCC
12522   GCC=$GXX
12523   lt_save_with_gnu_ld=$with_gnu_ld
12524   lt_save_path_LD=$lt_cv_path_LD
12525   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12526     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12527   else
12528     $as_unset lt_cv_prog_gnu_ld
12529   fi
12530   if test -n "${lt_cv_path_LDCXX+set}"; then
12531     lt_cv_path_LD=$lt_cv_path_LDCXX
12532   else
12533     $as_unset lt_cv_path_LD
12534   fi
12535   test -z "${LDCXX+set}" || LD=$LDCXX
12536   CC=${CXX-"c++"}
12537   CFLAGS=$CXXFLAGS
12538   compiler=$CC
12539   compiler_CXX=$CC
12540   for cc_temp in $compiler""; do
12541   case $cc_temp in
12542     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12543     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12544     \-*) ;;
12545     *) break;;
12546   esac
12547 done
12548 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12549
12550
12551   if test -n "$compiler"; then
12552     # We don't want -fno-exception when compiling C++ code, so set the
12553     # no_builtin_flag separately
12554     if test "$GXX" = yes; then
12555       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12556     else
12557       lt_prog_compiler_no_builtin_flag_CXX=
12558     fi
12559
12560     if test "$GXX" = yes; then
12561       # Set up default GNU C++ configuration
12562
12563       
12564
12565 @%:@ Check whether --with-gnu-ld was given.
12566 if test "${with_gnu_ld+set}" = set; then :
12567   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12568 else
12569   with_gnu_ld=no
12570 fi
12571
12572 ac_prog=ld
12573 if test "$GCC" = yes; then
12574   # Check if gcc -print-prog-name=ld gives a path.
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12576 $as_echo_n "checking for ld used by $CC... " >&6; }
12577   case $host in
12578   *-*-mingw*)
12579     # gcc leaves a trailing carriage return which upsets mingw
12580     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12581   *)
12582     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12583   esac
12584   case $ac_prog in
12585     # Accept absolute paths.
12586     [\\/]* | ?:[\\/]*)
12587       re_direlt='/[^/][^/]*/\.\./'
12588       # Canonicalize the pathname of ld
12589       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12590       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12591         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12592       done
12593       test -z "$LD" && LD="$ac_prog"
12594       ;;
12595   "")
12596     # If it fails, then pretend we aren't using GCC.
12597     ac_prog=ld
12598     ;;
12599   *)
12600     # If it is relative, then search for the first ld in PATH.
12601     with_gnu_ld=unknown
12602     ;;
12603   esac
12604 elif test "$with_gnu_ld" = yes; then
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12606 $as_echo_n "checking for GNU ld... " >&6; }
12607 else
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12609 $as_echo_n "checking for non-GNU ld... " >&6; }
12610 fi
12611 if ${lt_cv_path_LD+:} false; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   if test -z "$LD"; then
12615   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12616   for ac_dir in $PATH; do
12617     IFS="$lt_save_ifs"
12618     test -z "$ac_dir" && ac_dir=.
12619     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12620       lt_cv_path_LD="$ac_dir/$ac_prog"
12621       # Check to see if the program is GNU ld.  I'd rather use --version,
12622       # but apparently some variants of GNU ld only accept -v.
12623       # Break only if it was the GNU/non-GNU ld that we prefer.
12624       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12625       *GNU* | *'with BFD'*)
12626         test "$with_gnu_ld" != no && break
12627         ;;
12628       *)
12629         test "$with_gnu_ld" != yes && break
12630         ;;
12631       esac
12632     fi
12633   done
12634   IFS="$lt_save_ifs"
12635 else
12636   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12637 fi
12638 fi
12639
12640 LD="$lt_cv_path_LD"
12641 if test -n "$LD"; then
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12643 $as_echo "$LD" >&6; }
12644 else
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12651 if ${lt_cv_prog_gnu_ld+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12655 case `$LD -v 2>&1 </dev/null` in
12656 *GNU* | *'with BFD'*)
12657   lt_cv_prog_gnu_ld=yes
12658   ;;
12659 *)
12660   lt_cv_prog_gnu_ld=no
12661   ;;
12662 esac
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12665 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12666 with_gnu_ld=$lt_cv_prog_gnu_ld
12667
12668
12669
12670
12671
12672
12673
12674       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12675       # archiving commands below assume that GNU ld is being used.
12676       if test "$with_gnu_ld" = yes; then
12677         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678         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'
12679
12680         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12681         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12682
12683         # If archive_cmds runs LD, not CC, wlarc should be empty
12684         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12685         #     investigate it a little bit more. (MM)
12686         wlarc='${wl}'
12687
12688         # ancient GNU ld didn't support --whole-archive et. al.
12689         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12690           $GREP 'no-whole-archive' > /dev/null; then
12691           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12692         else
12693           whole_archive_flag_spec_CXX=
12694         fi
12695       else
12696         with_gnu_ld=no
12697         wlarc=
12698
12699         # A generic and very simple default shared library creation
12700         # command for GNU C++ for the case where it uses the native
12701         # linker, instead of GNU ld.  If possible, this setting should
12702         # overridden to take advantage of the native linker features on
12703         # the platform it is being used on.
12704         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12705       fi
12706
12707       # Commands to make compiler produce verbose output that lists
12708       # what "hidden" libraries, object files and flags are used when
12709       # linking a shared library.
12710       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12711
12712     else
12713       GXX=no
12714       with_gnu_ld=no
12715       wlarc=
12716     fi
12717
12718     # PORTME: fill in a description of your system's C++ link characteristics
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12721     ld_shlibs_CXX=yes
12722     case $host_os in
12723       aix3*)
12724         # FIXME: insert proper C++ library support
12725         ld_shlibs_CXX=no
12726         ;;
12727       aix[4-9]*)
12728         if test "$host_cpu" = ia64; then
12729           # On IA64, the linker does run time linking by default, so we don't
12730           # have to do anything special.
12731           aix_use_runtimelinking=no
12732           exp_sym_flag='-Bexport'
12733           no_entry_flag=""
12734         else
12735           aix_use_runtimelinking=no
12736
12737           # Test if we are trying to use run time linking or normal
12738           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12739           # need to do runtime linking.
12740           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12741             for ld_flag in $LDFLAGS; do
12742               case $ld_flag in
12743               *-brtl*)
12744                 aix_use_runtimelinking=yes
12745                 break
12746                 ;;
12747               esac
12748             done
12749             ;;
12750           esac
12751
12752           exp_sym_flag='-bexport'
12753           no_entry_flag='-bnoentry'
12754         fi
12755
12756         # When large executables or shared objects are built, AIX ld can
12757         # have problems creating the table of contents.  If linking a library
12758         # or program results in "error TOC overflow" add -mminimal-toc to
12759         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12760         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12761
12762         archive_cmds_CXX=''
12763         hardcode_direct_CXX=yes
12764         hardcode_direct_absolute_CXX=yes
12765         hardcode_libdir_separator_CXX=':'
12766         link_all_deplibs_CXX=yes
12767         file_list_spec_CXX='${wl}-f,'
12768
12769         if test "$GXX" = yes; then
12770           case $host_os in aix4.[012]|aix4.[012].*)
12771           # We only want to do this on AIX 4.2 and lower, the check
12772           # below for broken collect2 doesn't work under 4.3+
12773           collect2name=`${CC} -print-prog-name=collect2`
12774           if test -f "$collect2name" &&
12775              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12776           then
12777             # We have reworked collect2
12778             :
12779           else
12780             # We have old collect2
12781             hardcode_direct_CXX=unsupported
12782             # It fails to find uninstalled libraries when the uninstalled
12783             # path is not listed in the libpath.  Setting hardcode_minus_L
12784             # to unsupported forces relinking
12785             hardcode_minus_L_CXX=yes
12786             hardcode_libdir_flag_spec_CXX='-L$libdir'
12787             hardcode_libdir_separator_CXX=
12788           fi
12789           esac
12790           shared_flag='-shared'
12791           if test "$aix_use_runtimelinking" = yes; then
12792             shared_flag="$shared_flag "'${wl}-G'
12793           fi
12794         else
12795           # not using gcc
12796           if test "$host_cpu" = ia64; then
12797           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12798           # chokes on -Wl,-G. The following line is correct:
12799           shared_flag='-G'
12800           else
12801             if test "$aix_use_runtimelinking" = yes; then
12802               shared_flag='${wl}-G'
12803             else
12804               shared_flag='${wl}-bM:SRE'
12805             fi
12806           fi
12807         fi
12808
12809         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12810         # It seems that -bexpall does not export symbols beginning with
12811         # underscore (_), so it is better to generate a list of symbols to
12812         # export.
12813         always_export_symbols_CXX=yes
12814         if test "$aix_use_runtimelinking" = yes; then
12815           # Warning - without using the other runtime loading flags (-brtl),
12816           # -berok will link without error, but may produce a broken library.
12817           allow_undefined_flag_CXX='-berok'
12818           # Determine the default libpath from the value encoded in an empty
12819           # executable.
12820           if test "${lt_cv_aix_libpath+set}" = set; then
12821   aix_libpath=$lt_cv_aix_libpath
12822 else
12823   if ${lt_cv_aix_libpath__CXX+:} false; then :
12824   $as_echo_n "(cached) " >&6
12825 else
12826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828
12829 int
12830 main ()
12831 {
12832
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_cxx_try_link "$LINENO"; then :
12838   
12839   lt_aix_libpath_sed='
12840       /Import File Strings/,/^$/ {
12841           /^0/ {
12842               s/^0  *\([^ ]*\) *$/\1/
12843               p
12844           }
12845       }'
12846   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12847   # Check for a 64-bit object if we didn't find anything.
12848   if test -z "$lt_cv_aix_libpath__CXX"; then
12849     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12850   fi
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext \
12853     conftest$ac_exeext conftest.$ac_ext
12854   if test -z "$lt_cv_aix_libpath__CXX"; then
12855     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12856   fi
12857   
12858 fi
12859
12860   aix_libpath=$lt_cv_aix_libpath__CXX
12861 fi
12862
12863           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12864
12865           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"
12866         else
12867           if test "$host_cpu" = ia64; then
12868             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12869             allow_undefined_flag_CXX="-z nodefs"
12870             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"
12871           else
12872             # Determine the default libpath from the value encoded in an
12873             # empty executable.
12874             if test "${lt_cv_aix_libpath+set}" = set; then
12875   aix_libpath=$lt_cv_aix_libpath
12876 else
12877   if ${lt_cv_aix_libpath__CXX+:} false; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882
12883 int
12884 main ()
12885 {
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_cxx_try_link "$LINENO"; then :
12892   
12893   lt_aix_libpath_sed='
12894       /Import File Strings/,/^$/ {
12895           /^0/ {
12896               s/^0  *\([^ ]*\) *$/\1/
12897               p
12898           }
12899       }'
12900   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12901   # Check for a 64-bit object if we didn't find anything.
12902   if test -z "$lt_cv_aix_libpath__CXX"; then
12903     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12904   fi
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext \
12907     conftest$ac_exeext conftest.$ac_ext
12908   if test -z "$lt_cv_aix_libpath__CXX"; then
12909     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12910   fi
12911   
12912 fi
12913
12914   aix_libpath=$lt_cv_aix_libpath__CXX
12915 fi
12916
12917             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12918             # Warning - without using the other run time loading flags,
12919             # -berok will link without error, but may produce a broken library.
12920             no_undefined_flag_CXX=' ${wl}-bernotok'
12921             allow_undefined_flag_CXX=' ${wl}-berok'
12922             if test "$with_gnu_ld" = yes; then
12923               # We only use this code for GNU lds that support --whole-archive.
12924               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12925             else
12926               # Exported symbols can be pulled into shared objects from archives
12927               whole_archive_flag_spec_CXX='$convenience'
12928             fi
12929             archive_cmds_need_lc_CXX=yes
12930             # This is similar to how AIX traditionally builds its shared
12931             # libraries.
12932             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'
12933           fi
12934         fi
12935         ;;
12936
12937       beos*)
12938         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12939           allow_undefined_flag_CXX=unsupported
12940           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12941           # support --undefined.  This deserves some investigation.  FIXME
12942           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943         else
12944           ld_shlibs_CXX=no
12945         fi
12946         ;;
12947
12948       chorus*)
12949         case $cc_basename in
12950           *)
12951           # FIXME: insert proper C++ library support
12952           ld_shlibs_CXX=no
12953           ;;
12954         esac
12955         ;;
12956
12957       cygwin* | mingw* | pw32* | cegcc*)
12958         case $GXX,$cc_basename in
12959         ,cl* | no,cl*)
12960           # Native MSVC
12961           # hardcode_libdir_flag_spec is actually meaningless, as there is
12962           # no search path for DLLs.
12963           hardcode_libdir_flag_spec_CXX=' '
12964           allow_undefined_flag_CXX=unsupported
12965           always_export_symbols_CXX=yes
12966           file_list_spec_CXX='@'
12967           # Tell ltmain to make .lib files, not .a files.
12968           libext=lib
12969           # Tell ltmain to make .dll files, not .so files.
12970           shrext_cmds=".dll"
12971           # FIXME: Setting linknames here is a bad hack.
12972           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12973           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12974               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12975             else
12976               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12977             fi~
12978             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12979             linknames='
12980           # The linker will not automatically build a static lib if we build a DLL.
12981           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12982           enable_shared_with_static_runtimes_CXX=yes
12983           # Don't use ranlib
12984           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12985           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12986             lt_tool_outputfile="@TOOL_OUTPUT@"~
12987             case $lt_outputfile in
12988               *.exe|*.EXE) ;;
12989               *)
12990                 lt_outputfile="$lt_outputfile.exe"
12991                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12992                 ;;
12993             esac~
12994             func_to_tool_file "$lt_outputfile"~
12995             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12996               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12997               $RM "$lt_outputfile.manifest";
12998             fi'
12999           ;;
13000         *)
13001           # g++
13002           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13003           # as there is no search path for DLLs.
13004           hardcode_libdir_flag_spec_CXX='-L$libdir'
13005           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13006           allow_undefined_flag_CXX=unsupported
13007           always_export_symbols_CXX=no
13008           enable_shared_with_static_runtimes_CXX=yes
13009
13010           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13011             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'
13012             # If the export-symbols file already is a .def file (1st line
13013             # is EXPORTS), use it as is; otherwise, prepend...
13014             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13015               cp $export_symbols $output_objdir/$soname.def;
13016             else
13017               echo EXPORTS > $output_objdir/$soname.def;
13018               cat $export_symbols >> $output_objdir/$soname.def;
13019             fi~
13020             $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'
13021           else
13022             ld_shlibs_CXX=no
13023           fi
13024           ;;
13025         esac
13026         ;;
13027       darwin* | rhapsody*)
13028         
13029   
13030   archive_cmds_need_lc_CXX=no
13031   hardcode_direct_CXX=no
13032   hardcode_automatic_CXX=yes
13033   hardcode_shlibpath_var_CXX=unsupported
13034   if test "$lt_cv_ld_force_load" = "yes"; then
13035     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\"`'
13036     
13037   else
13038     whole_archive_flag_spec_CXX=''
13039   fi
13040   link_all_deplibs_CXX=yes
13041   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13042   case $cc_basename in
13043      ifort*) _lt_dar_can_shared=yes ;;
13044      *) _lt_dar_can_shared=$GCC ;;
13045   esac
13046   if test "$_lt_dar_can_shared" = "yes"; then
13047     output_verbose_link_cmd=func_echo_all
13048     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}"
13049     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13050     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}"
13051     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}"
13052        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13053       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}"
13054       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}"
13055     fi
13056
13057   else
13058   ld_shlibs_CXX=no
13059   fi
13060
13061         ;;
13062
13063       dgux*)
13064         case $cc_basename in
13065           ec++*)
13066             # FIXME: insert proper C++ library support
13067             ld_shlibs_CXX=no
13068             ;;
13069           ghcx*)
13070             # Green Hills C++ Compiler
13071             # FIXME: insert proper C++ library support
13072             ld_shlibs_CXX=no
13073             ;;
13074           *)
13075             # FIXME: insert proper C++ library support
13076             ld_shlibs_CXX=no
13077             ;;
13078         esac
13079         ;;
13080
13081       freebsd2.*)
13082         # C++ shared libraries reported to be fairly broken before
13083         # switch to ELF
13084         ld_shlibs_CXX=no
13085         ;;
13086
13087       freebsd-elf*)
13088         archive_cmds_need_lc_CXX=no
13089         ;;
13090
13091       freebsd* | dragonfly*)
13092         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13093         # conventions
13094         ld_shlibs_CXX=yes
13095         ;;
13096
13097       gnu*)
13098         ;;
13099
13100       haiku*)
13101         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102         link_all_deplibs_CXX=yes
13103         ;;
13104
13105       hpux9*)
13106         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13107         hardcode_libdir_separator_CXX=:
13108         export_dynamic_flag_spec_CXX='${wl}-E'
13109         hardcode_direct_CXX=yes
13110         hardcode_minus_L_CXX=yes # Not in the search PATH,
13111                                              # but as the default
13112                                              # location of the library.
13113
13114         case $cc_basename in
13115           CC*)
13116             # FIXME: insert proper C++ library support
13117             ld_shlibs_CXX=no
13118             ;;
13119           aCC*)
13120             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'
13121             # Commands to make compiler produce verbose output that lists
13122             # what "hidden" libraries, object files and flags are used when
13123             # linking a shared library.
13124             #
13125             # There doesn't appear to be a way to prevent this compiler from
13126             # explicitly linking system object files so we need to strip them
13127             # from the output so that they don't get included in the library
13128             # dependencies.
13129             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"'
13130             ;;
13131           *)
13132             if test "$GXX" = yes; then
13133               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'
13134             else
13135               # FIXME: insert proper C++ library support
13136               ld_shlibs_CXX=no
13137             fi
13138             ;;
13139         esac
13140         ;;
13141
13142       hpux10*|hpux11*)
13143         if test $with_gnu_ld = no; then
13144           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13145           hardcode_libdir_separator_CXX=:
13146
13147           case $host_cpu in
13148             hppa*64*|ia64*)
13149               ;;
13150             *)
13151               export_dynamic_flag_spec_CXX='${wl}-E'
13152               ;;
13153           esac
13154         fi
13155         case $host_cpu in
13156           hppa*64*|ia64*)
13157             hardcode_direct_CXX=no
13158             hardcode_shlibpath_var_CXX=no
13159             ;;
13160           *)
13161             hardcode_direct_CXX=yes
13162             hardcode_direct_absolute_CXX=yes
13163             hardcode_minus_L_CXX=yes # Not in the search PATH,
13164                                                  # but as the default
13165                                                  # location of the library.
13166             ;;
13167         esac
13168
13169         case $cc_basename in
13170           CC*)
13171             # FIXME: insert proper C++ library support
13172             ld_shlibs_CXX=no
13173             ;;
13174           aCC*)
13175             case $host_cpu in
13176               hppa*64*)
13177                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178                 ;;
13179               ia64*)
13180                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181                 ;;
13182               *)
13183                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13184                 ;;
13185             esac
13186             # Commands to make compiler produce verbose output that lists
13187             # what "hidden" libraries, object files and flags are used when
13188             # linking a shared library.
13189             #
13190             # There doesn't appear to be a way to prevent this compiler from
13191             # explicitly linking system object files so we need to strip them
13192             # from the output so that they don't get included in the library
13193             # dependencies.
13194             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"'
13195             ;;
13196           *)
13197             if test "$GXX" = yes; then
13198               if test $with_gnu_ld = no; then
13199                 case $host_cpu in
13200                   hppa*64*)
13201                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13202                     ;;
13203                   ia64*)
13204                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205                     ;;
13206                   *)
13207                     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'
13208                     ;;
13209                 esac
13210               fi
13211             else
13212               # FIXME: insert proper C++ library support
13213               ld_shlibs_CXX=no
13214             fi
13215             ;;
13216         esac
13217         ;;
13218
13219       interix[3-9]*)
13220         hardcode_direct_CXX=no
13221         hardcode_shlibpath_var_CXX=no
13222         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13223         export_dynamic_flag_spec_CXX='${wl}-E'
13224         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13225         # Instead, shared libraries are loaded at an image base (0x10000000 by
13226         # default) and relocated if they conflict, which is a slow very memory
13227         # consuming and fragmenting process.  To avoid this, we pick a random,
13228         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13229         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13230         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'
13231         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'
13232         ;;
13233       irix5* | irix6*)
13234         case $cc_basename in
13235           CC*)
13236             # SGI C++
13237             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'
13238
13239             # Archives containing C++ object files must be created using
13240             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13241             # necessary to make sure instantiated templates are included
13242             # in the archive.
13243             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13244             ;;
13245           *)
13246             if test "$GXX" = yes; then
13247               if test "$with_gnu_ld" = no; then
13248                 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'
13249               else
13250                 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'
13251               fi
13252             fi
13253             link_all_deplibs_CXX=yes
13254             ;;
13255         esac
13256         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13257         hardcode_libdir_separator_CXX=:
13258         inherit_rpath_CXX=yes
13259         ;;
13260
13261       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13262         case $cc_basename in
13263           KCC*)
13264             # Kuck and Associates, Inc. (KAI) C++ Compiler
13265
13266             # KCC will only create a shared library if the output file
13267             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13268             # to its proper name (with version) after linking.
13269             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'
13270             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'
13271             # Commands to make compiler produce verbose output that lists
13272             # what "hidden" libraries, object files and flags are used when
13273             # linking a shared library.
13274             #
13275             # There doesn't appear to be a way to prevent this compiler from
13276             # explicitly linking system object files so we need to strip them
13277             # from the output so that they don't get included in the library
13278             # dependencies.
13279             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"'
13280
13281             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13282             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13283
13284             # Archives containing C++ object files must be created using
13285             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13286             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13287             ;;
13288           icpc* | ecpc* )
13289             # Intel C++
13290             with_gnu_ld=yes
13291             # version 8.0 and above of icpc choke on multiply defined symbols
13292             # if we add $predep_objects and $postdep_objects, however 7.1 and
13293             # earlier do not add the objects themselves.
13294             case `$CC -V 2>&1` in
13295               *"Version 7."*)
13296                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297                 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'
13298                 ;;
13299               *)  # Version 8.0 or newer
13300                 tmp_idyn=
13301                 case $host_cpu in
13302                   ia64*) tmp_idyn=' -i_dynamic';;
13303                 esac
13304                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305                 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'
13306                 ;;
13307             esac
13308             archive_cmds_need_lc_CXX=no
13309             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13311             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13312             ;;
13313           pgCC* | pgcpp*)
13314             # Portland Group C++ compiler
13315             case `$CC -V` in
13316             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13317               prelink_cmds_CXX='tpldir=Template.dir~
13318                 rm -rf $tpldir~
13319                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13320                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13321               old_archive_cmds_CXX='tpldir=Template.dir~
13322                 rm -rf $tpldir~
13323                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13324                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13325                 $RANLIB $oldlib'
13326               archive_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 -o $lib'
13330               archive_expsym_cmds_CXX='tpldir=Template.dir~
13331                 rm -rf $tpldir~
13332                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13333                 $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'
13334               ;;
13335             *) # Version 6 and above use weak symbols
13336               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13337               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'
13338               ;;
13339             esac
13340
13341             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13342             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13343             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'
13344             ;;
13345           cxx*)
13346             # Compaq C++
13347             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348             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'
13349
13350             runpath_var=LD_RUN_PATH
13351             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13352             hardcode_libdir_separator_CXX=:
13353
13354             # Commands to make compiler produce verbose output that lists
13355             # what "hidden" libraries, object files and flags are used when
13356             # linking a shared library.
13357             #
13358             # There doesn't appear to be a way to prevent this compiler from
13359             # explicitly linking system object files so we need to strip them
13360             # from the output so that they don't get included in the library
13361             # dependencies.
13362             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'
13363             ;;
13364           xl* | mpixl* | bgxl*)
13365             # IBM XL 8.0 on PPC, with GNU ld
13366             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13367             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13368             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369             if test "x$supports_anon_versioning" = xyes; then
13370               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13371                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13372                 echo "local: *; };" >> $output_objdir/$libname.ver~
13373                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13374             fi
13375             ;;
13376           *)
13377             case `$CC -V 2>&1 | sed 5q` in
13378             *Sun\ C*)
13379               # Sun C++ 5.9
13380               no_undefined_flag_CXX=' -zdefs'
13381               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382               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'
13383               hardcode_libdir_flag_spec_CXX='-R$libdir'
13384               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'
13385               compiler_needs_object_CXX=yes
13386
13387               # Not sure whether something based on
13388               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13389               # would be better.
13390               output_verbose_link_cmd='func_echo_all'
13391
13392               # Archives containing C++ object files must be created using
13393               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13394               # necessary to make sure instantiated templates are included
13395               # in the archive.
13396               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13397               ;;
13398             esac
13399             ;;
13400         esac
13401         ;;
13402
13403       lynxos*)
13404         # FIXME: insert proper C++ library support
13405         ld_shlibs_CXX=no
13406         ;;
13407
13408       m88k*)
13409         # FIXME: insert proper C++ library support
13410         ld_shlibs_CXX=no
13411         ;;
13412
13413       mvs*)
13414         case $cc_basename in
13415           cxx*)
13416             # FIXME: insert proper C++ library support
13417             ld_shlibs_CXX=no
13418             ;;
13419           *)
13420             # FIXME: insert proper C++ library support
13421             ld_shlibs_CXX=no
13422             ;;
13423         esac
13424         ;;
13425
13426       netbsd*)
13427         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13428           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13429           wlarc=
13430           hardcode_libdir_flag_spec_CXX='-R$libdir'
13431           hardcode_direct_CXX=yes
13432           hardcode_shlibpath_var_CXX=no
13433         fi
13434         # Workaround some broken pre-1.5 toolchains
13435         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13436         ;;
13437
13438       *nto* | *qnx*)
13439         ld_shlibs_CXX=yes
13440         ;;
13441
13442       openbsd2*)
13443         # C++ shared libraries are fairly broken
13444         ld_shlibs_CXX=no
13445         ;;
13446
13447       openbsd*)
13448         if test -f /usr/libexec/ld.so; then
13449           hardcode_direct_CXX=yes
13450           hardcode_shlibpath_var_CXX=no
13451           hardcode_direct_absolute_CXX=yes
13452           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13453           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13454           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13455             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13456             export_dynamic_flag_spec_CXX='${wl}-E'
13457             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13458           fi
13459           output_verbose_link_cmd=func_echo_all
13460         else
13461           ld_shlibs_CXX=no
13462         fi
13463         ;;
13464
13465       osf3* | osf4* | osf5*)
13466         case $cc_basename in
13467           KCC*)
13468             # Kuck and Associates, Inc. (KAI) C++ Compiler
13469
13470             # KCC will only create a shared library if the output file
13471             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13472             # to its proper name (with version) after linking.
13473             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'
13474
13475             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13476             hardcode_libdir_separator_CXX=:
13477
13478             # Archives containing C++ object files must be created using
13479             # the KAI C++ compiler.
13480             case $host in
13481               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13482               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13483             esac
13484             ;;
13485           RCC*)
13486             # Rational C++ 2.4.1
13487             # FIXME: insert proper C++ library support
13488             ld_shlibs_CXX=no
13489             ;;
13490           cxx*)
13491             case $host in
13492               osf3*)
13493                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13494                 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'
13495                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496                 ;;
13497               *)
13498                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13499                 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'
13500                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13501                   echo "-hidden">> $lib.exp~
13502                   $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~
13503                   $RM $lib.exp'
13504                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13505                 ;;
13506             esac
13507
13508             hardcode_libdir_separator_CXX=:
13509
13510             # Commands to make compiler produce verbose output that lists
13511             # what "hidden" libraries, object files and flags are used when
13512             # linking a shared library.
13513             #
13514             # There doesn't appear to be a way to prevent this compiler from
13515             # explicitly linking system object files so we need to strip them
13516             # from the output so that they don't get included in the library
13517             # dependencies.
13518             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"'
13519             ;;
13520           *)
13521             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13522               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13523               case $host in
13524                 osf3*)
13525                   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'
13526                   ;;
13527                 *)
13528                   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'
13529                   ;;
13530               esac
13531
13532               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13533               hardcode_libdir_separator_CXX=:
13534
13535               # Commands to make compiler produce verbose output that lists
13536               # what "hidden" libraries, object files and flags are used when
13537               # linking a shared library.
13538               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13539
13540             else
13541               # FIXME: insert proper C++ library support
13542               ld_shlibs_CXX=no
13543             fi
13544             ;;
13545         esac
13546         ;;
13547
13548       psos*)
13549         # FIXME: insert proper C++ library support
13550         ld_shlibs_CXX=no
13551         ;;
13552
13553       sunos4*)
13554         case $cc_basename in
13555           CC*)
13556             # Sun C++ 4.x
13557             # FIXME: insert proper C++ library support
13558             ld_shlibs_CXX=no
13559             ;;
13560           lcc*)
13561             # Lucid
13562             # FIXME: insert proper C++ library support
13563             ld_shlibs_CXX=no
13564             ;;
13565           *)
13566             # FIXME: insert proper C++ library support
13567             ld_shlibs_CXX=no
13568             ;;
13569         esac
13570         ;;
13571
13572       solaris*)
13573         case $cc_basename in
13574           CC* | sunCC*)
13575             # Sun C++ 4.2, 5.x and Centerline C++
13576             archive_cmds_need_lc_CXX=yes
13577             no_undefined_flag_CXX=' -zdefs'
13578             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13579             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13580               $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'
13581
13582             hardcode_libdir_flag_spec_CXX='-R$libdir'
13583             hardcode_shlibpath_var_CXX=no
13584             case $host_os in
13585               solaris2.[0-5] | solaris2.[0-5].*) ;;
13586               *)
13587                 # The compiler driver will combine and reorder linker options,
13588                 # but understands `-z linker_flag'.
13589                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13590                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13591                 ;;
13592             esac
13593             link_all_deplibs_CXX=yes
13594
13595             output_verbose_link_cmd='func_echo_all'
13596
13597             # Archives containing C++ object files must be created using
13598             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13599             # necessary to make sure instantiated templates are included
13600             # in the archive.
13601             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13602             ;;
13603           gcx*)
13604             # Green Hills C++ Compiler
13605             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13606
13607             # The C++ compiler must be used to create the archive.
13608             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13609             ;;
13610           *)
13611             # GNU C++ compiler with Solaris linker
13612             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13613               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13614               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13615                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13616                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13617                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13618
13619                 # Commands to make compiler produce verbose output that lists
13620                 # what "hidden" libraries, object files and flags are used when
13621                 # linking a shared library.
13622                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13623               else
13624                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13625                 # platform.
13626                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13627                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13628                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13629
13630                 # Commands to make compiler produce verbose output that lists
13631                 # what "hidden" libraries, object files and flags are used when
13632                 # linking a shared library.
13633                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13634               fi
13635
13636               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13637               case $host_os in
13638                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13639                 *)
13640                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13641                   ;;
13642               esac
13643             fi
13644             ;;
13645         esac
13646         ;;
13647
13648     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13649       no_undefined_flag_CXX='${wl}-z,text'
13650       archive_cmds_need_lc_CXX=no
13651       hardcode_shlibpath_var_CXX=no
13652       runpath_var='LD_RUN_PATH'
13653
13654       case $cc_basename in
13655         CC*)
13656           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658           ;;
13659         *)
13660           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662           ;;
13663       esac
13664       ;;
13665
13666       sysv5* | sco3.2v5* | sco5v6*)
13667         # Note: We can NOT use -z defs as we might desire, because we do not
13668         # link with -lc, and that would cause any symbols used from libc to
13669         # always be unresolved, which means just about no library would
13670         # ever link correctly.  If we're not using GNU ld we use -z text
13671         # though, which does catch some bad symbols but isn't as heavy-handed
13672         # as -z defs.
13673         no_undefined_flag_CXX='${wl}-z,text'
13674         allow_undefined_flag_CXX='${wl}-z,nodefs'
13675         archive_cmds_need_lc_CXX=no
13676         hardcode_shlibpath_var_CXX=no
13677         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13678         hardcode_libdir_separator_CXX=':'
13679         link_all_deplibs_CXX=yes
13680         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13681         runpath_var='LD_RUN_PATH'
13682
13683         case $cc_basename in
13684           CC*)
13685             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13687             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13688               '"$old_archive_cmds_CXX"
13689             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13690               '"$reload_cmds_CXX"
13691             ;;
13692           *)
13693             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13694             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13695             ;;
13696         esac
13697       ;;
13698
13699       tandem*)
13700         case $cc_basename in
13701           NCC*)
13702             # NonStop-UX NCC 3.20
13703             # FIXME: insert proper C++ library support
13704             ld_shlibs_CXX=no
13705             ;;
13706           *)
13707             # FIXME: insert proper C++ library support
13708             ld_shlibs_CXX=no
13709             ;;
13710         esac
13711         ;;
13712
13713       vxworks*)
13714         # FIXME: insert proper C++ library support
13715         ld_shlibs_CXX=no
13716         ;;
13717
13718       *)
13719         # FIXME: insert proper C++ library support
13720         ld_shlibs_CXX=no
13721         ;;
13722     esac
13723
13724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13725 $as_echo "$ld_shlibs_CXX" >&6; }
13726     test "$ld_shlibs_CXX" = no && can_build_shared=no
13727
13728     GCC_CXX="$GXX"
13729     LD_CXX="$LD"
13730
13731     ## CAVEAT EMPTOR:
13732     ## There is no encapsulation within the following macros, do not change
13733     ## the running order or otherwise move them around unless you know exactly
13734     ## what you are doing...
13735     # Dependencies to place before and after the object being linked:
13736 predep_objects_CXX=
13737 postdep_objects_CXX=
13738 predeps_CXX=
13739 postdeps_CXX=
13740 compiler_lib_search_path_CXX=
13741
13742 cat > conftest.$ac_ext <<_LT_EOF
13743 class Foo
13744 {
13745 public:
13746   Foo (void) { a = 0; }
13747 private:
13748   int a;
13749 };
13750 _LT_EOF
13751
13752
13753 _lt_libdeps_save_CFLAGS=$CFLAGS
13754 case "$CC $CFLAGS " in #(
13755 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13756 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13757 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13758 esac
13759
13760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13761   (eval $ac_compile) 2>&5
13762   ac_status=$?
13763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764   test $ac_status = 0; }; then
13765   # Parse the compiler output and extract the necessary
13766   # objects, libraries and library flags.
13767
13768   # Sentinel used to keep track of whether or not we are before
13769   # the conftest object file.
13770   pre_test_object_deps_done=no
13771
13772   for p in `eval "$output_verbose_link_cmd"`; do
13773     case ${prev}${p} in
13774
13775     -L* | -R* | -l*)
13776        # Some compilers place space between "-{L,R}" and the path.
13777        # Remove the space.
13778        if test $p = "-L" ||
13779           test $p = "-R"; then
13780          prev=$p
13781          continue
13782        fi
13783
13784        # Expand the sysroot to ease extracting the directories later.
13785        if test -z "$prev"; then
13786          case $p in
13787          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13788          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13789          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13790          esac
13791        fi
13792        case $p in
13793        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13794        esac
13795        if test "$pre_test_object_deps_done" = no; then
13796          case ${prev} in
13797          -L | -R)
13798            # Internal compiler library paths should come after those
13799            # provided the user.  The postdeps already come after the
13800            # user supplied libs so there is no need to process them.
13801            if test -z "$compiler_lib_search_path_CXX"; then
13802              compiler_lib_search_path_CXX="${prev}${p}"
13803            else
13804              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13805            fi
13806            ;;
13807          # The "-l" case would never come before the object being
13808          # linked, so don't bother handling this case.
13809          esac
13810        else
13811          if test -z "$postdeps_CXX"; then
13812            postdeps_CXX="${prev}${p}"
13813          else
13814            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13815          fi
13816        fi
13817        prev=
13818        ;;
13819
13820     *.lto.$objext) ;; # Ignore GCC LTO objects
13821     *.$objext)
13822        # This assumes that the test object file only shows up
13823        # once in the compiler output.
13824        if test "$p" = "conftest.$objext"; then
13825          pre_test_object_deps_done=yes
13826          continue
13827        fi
13828
13829        if test "$pre_test_object_deps_done" = no; then
13830          if test -z "$predep_objects_CXX"; then
13831            predep_objects_CXX="$p"
13832          else
13833            predep_objects_CXX="$predep_objects_CXX $p"
13834          fi
13835        else
13836          if test -z "$postdep_objects_CXX"; then
13837            postdep_objects_CXX="$p"
13838          else
13839            postdep_objects_CXX="$postdep_objects_CXX $p"
13840          fi
13841        fi
13842        ;;
13843
13844     *) ;; # Ignore the rest.
13845
13846     esac
13847   done
13848
13849   # Clean up.
13850   rm -f a.out a.exe
13851 else
13852   echo "libtool.m4: error: problem compiling CXX test program"
13853 fi
13854
13855 $RM -f confest.$objext
13856 CFLAGS=$_lt_libdeps_save_CFLAGS
13857
13858 # PORTME: override above test on systems where it is broken
13859 case $host_os in
13860 interix[3-9]*)
13861   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13862   # hack all around it, let's just trust "g++" to DTRT.
13863   predep_objects_CXX=
13864   postdep_objects_CXX=
13865   postdeps_CXX=
13866   ;;
13867
13868 linux*)
13869   case `$CC -V 2>&1 | sed 5q` in
13870   *Sun\ C*)
13871     # Sun C++ 5.9
13872
13873     # The more standards-conforming stlport4 library is
13874     # incompatible with the Cstd library. Avoid specifying
13875     # it if it's in CXXFLAGS. Ignore libCrun as
13876     # -library=stlport4 depends on it.
13877     case " $CXX $CXXFLAGS " in
13878     *" -library=stlport4 "*)
13879       solaris_use_stlport4=yes
13880       ;;
13881     esac
13882
13883     if test "$solaris_use_stlport4" != yes; then
13884       postdeps_CXX='-library=Cstd -library=Crun'
13885     fi
13886     ;;
13887   esac
13888   ;;
13889
13890 solaris*)
13891   case $cc_basename in
13892   CC* | sunCC*)
13893     # The more standards-conforming stlport4 library is
13894     # incompatible with the Cstd library. Avoid specifying
13895     # it if it's in CXXFLAGS. Ignore libCrun as
13896     # -library=stlport4 depends on it.
13897     case " $CXX $CXXFLAGS " in
13898     *" -library=stlport4 "*)
13899       solaris_use_stlport4=yes
13900       ;;
13901     esac
13902
13903     # Adding this requires a known-good setup of shared libraries for
13904     # Sun compiler versions before 5.6, else PIC objects from an old
13905     # archive will be linked into the output, leading to subtle bugs.
13906     if test "$solaris_use_stlport4" != yes; then
13907       postdeps_CXX='-library=Cstd -library=Crun'
13908     fi
13909     ;;
13910   esac
13911   ;;
13912 esac
13913
13914
13915 case " $postdeps_CXX " in
13916 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13917 esac
13918  compiler_lib_search_dirs_CXX=
13919 if test -n "${compiler_lib_search_path_CXX}"; then
13920  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13921 fi
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     
13950     
13951
13952
13953     lt_prog_compiler_wl_CXX=
13954 lt_prog_compiler_pic_CXX=
13955 lt_prog_compiler_static_CXX=
13956
13957
13958   # C++ specific cases for pic, static, wl, etc.
13959   if test "$GXX" = yes; then
13960     lt_prog_compiler_wl_CXX='-Wl,'
13961     lt_prog_compiler_static_CXX='-static'
13962
13963     case $host_os in
13964     aix*)
13965       # All AIX code is PIC.
13966       if test "$host_cpu" = ia64; then
13967         # AIX 5 now supports IA64 processor
13968         lt_prog_compiler_static_CXX='-Bstatic'
13969       fi
13970       ;;
13971
13972     amigaos*)
13973       case $host_cpu in
13974       powerpc)
13975             # see comment about AmigaOS4 .so support
13976             lt_prog_compiler_pic_CXX='-fPIC'
13977         ;;
13978       m68k)
13979             # FIXME: we need at least 68020 code to build shared libraries, but
13980             # adding the `-m68020' flag to GCC prevents building anything better,
13981             # like `-m68040'.
13982             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13983         ;;
13984       esac
13985       ;;
13986
13987     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13988       # PIC is the default for these OSes.
13989       ;;
13990     mingw* | cygwin* | os2* | pw32* | cegcc*)
13991       # This hack is so that the source file can tell whether it is being
13992       # built for inclusion in a dll (and should export symbols for example).
13993       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13994       # (--disable-auto-import) libraries
13995       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13996       ;;
13997     darwin* | rhapsody*)
13998       # PIC is the default on this platform
13999       # Common symbols not allowed in MH_DYLIB files
14000       lt_prog_compiler_pic_CXX='-fno-common'
14001       ;;
14002     *djgpp*)
14003       # DJGPP does not support shared libraries at all
14004       lt_prog_compiler_pic_CXX=
14005       ;;
14006     haiku*)
14007       # PIC is the default for Haiku.
14008       # The "-static" flag exists, but is broken.
14009       lt_prog_compiler_static_CXX=
14010       ;;
14011     interix[3-9]*)
14012       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14013       # Instead, we relocate shared libraries at runtime.
14014       ;;
14015     sysv4*MP*)
14016       if test -d /usr/nec; then
14017         lt_prog_compiler_pic_CXX=-Kconform_pic
14018       fi
14019       ;;
14020     hpux*)
14021       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14022       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14023       # sets the default TLS model and affects inlining.
14024       case $host_cpu in
14025       hppa*64*)
14026         ;;
14027       *)
14028         lt_prog_compiler_pic_CXX='-fPIC'
14029         ;;
14030       esac
14031       ;;
14032     *qnx* | *nto*)
14033       # QNX uses GNU C++, but need to define -shared option too, otherwise
14034       # it will coredump.
14035       lt_prog_compiler_pic_CXX='-fPIC -shared'
14036       ;;
14037     *)
14038       lt_prog_compiler_pic_CXX='-fPIC'
14039       ;;
14040     esac
14041   else
14042     case $host_os in
14043       aix[4-9]*)
14044         # All AIX code is PIC.
14045         if test "$host_cpu" = ia64; then
14046           # AIX 5 now supports IA64 processor
14047           lt_prog_compiler_static_CXX='-Bstatic'
14048         else
14049           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14050         fi
14051         ;;
14052       chorus*)
14053         case $cc_basename in
14054         cxch68*)
14055           # Green Hills C++ Compiler
14056           # _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"
14057           ;;
14058         esac
14059         ;;
14060       mingw* | cygwin* | os2* | pw32* | cegcc*)
14061         # This hack is so that the source file can tell whether it is being
14062         # built for inclusion in a dll (and should export symbols for example).
14063         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14064         ;;
14065       dgux*)
14066         case $cc_basename in
14067           ec++*)
14068             lt_prog_compiler_pic_CXX='-KPIC'
14069             ;;
14070           ghcx*)
14071             # Green Hills C++ Compiler
14072             lt_prog_compiler_pic_CXX='-pic'
14073             ;;
14074           *)
14075             ;;
14076         esac
14077         ;;
14078       freebsd* | dragonfly*)
14079         # FreeBSD uses GNU C++
14080         ;;
14081       hpux9* | hpux10* | hpux11*)
14082         case $cc_basename in
14083           CC*)
14084             lt_prog_compiler_wl_CXX='-Wl,'
14085             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14086             if test "$host_cpu" != ia64; then
14087               lt_prog_compiler_pic_CXX='+Z'
14088             fi
14089             ;;
14090           aCC*)
14091             lt_prog_compiler_wl_CXX='-Wl,'
14092             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14093             case $host_cpu in
14094             hppa*64*|ia64*)
14095               # +Z the default
14096               ;;
14097             *)
14098               lt_prog_compiler_pic_CXX='+Z'
14099               ;;
14100             esac
14101             ;;
14102           *)
14103             ;;
14104         esac
14105         ;;
14106       interix*)
14107         # This is c89, which is MS Visual C++ (no shared libs)
14108         # Anyone wants to do a port?
14109         ;;
14110       irix5* | irix6* | nonstopux*)
14111         case $cc_basename in
14112           CC*)
14113             lt_prog_compiler_wl_CXX='-Wl,'
14114             lt_prog_compiler_static_CXX='-non_shared'
14115             # CC pic flag -KPIC is the default.
14116             ;;
14117           *)
14118             ;;
14119         esac
14120         ;;
14121       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14122         case $cc_basename in
14123           KCC*)
14124             # KAI C++ Compiler
14125             lt_prog_compiler_wl_CXX='--backend -Wl,'
14126             lt_prog_compiler_pic_CXX='-fPIC'
14127             ;;
14128           ecpc* )
14129             # old Intel C++ for x86_64 which still supported -KPIC.
14130             lt_prog_compiler_wl_CXX='-Wl,'
14131             lt_prog_compiler_pic_CXX='-KPIC'
14132             lt_prog_compiler_static_CXX='-static'
14133             ;;
14134           icpc* )
14135             # Intel C++, used to be incompatible with GCC.
14136             # ICC 10 doesn't accept -KPIC any more.
14137             lt_prog_compiler_wl_CXX='-Wl,'
14138             lt_prog_compiler_pic_CXX='-fPIC'
14139             lt_prog_compiler_static_CXX='-static'
14140             ;;
14141           pgCC* | pgcpp*)
14142             # Portland Group C++ compiler
14143             lt_prog_compiler_wl_CXX='-Wl,'
14144             lt_prog_compiler_pic_CXX='-fpic'
14145             lt_prog_compiler_static_CXX='-Bstatic'
14146             ;;
14147           cxx*)
14148             # Compaq C++
14149             # Make sure the PIC flag is empty.  It appears that all Alpha
14150             # Linux and Compaq Tru64 Unix objects are PIC.
14151             lt_prog_compiler_pic_CXX=
14152             lt_prog_compiler_static_CXX='-non_shared'
14153             ;;
14154           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14155             # IBM XL 8.0, 9.0 on PPC and BlueGene
14156             lt_prog_compiler_wl_CXX='-Wl,'
14157             lt_prog_compiler_pic_CXX='-qpic'
14158             lt_prog_compiler_static_CXX='-qstaticlink'
14159             ;;
14160           *)
14161             case `$CC -V 2>&1 | sed 5q` in
14162             *Sun\ C*)
14163               # Sun C++ 5.9
14164               lt_prog_compiler_pic_CXX='-KPIC'
14165               lt_prog_compiler_static_CXX='-Bstatic'
14166               lt_prog_compiler_wl_CXX='-Qoption ld '
14167               ;;
14168             esac
14169             ;;
14170         esac
14171         ;;
14172       lynxos*)
14173         ;;
14174       m88k*)
14175         ;;
14176       mvs*)
14177         case $cc_basename in
14178           cxx*)
14179             lt_prog_compiler_pic_CXX='-W c,exportall'
14180             ;;
14181           *)
14182             ;;
14183         esac
14184         ;;
14185       netbsd* | netbsdelf*-gnu)
14186         ;;
14187       *qnx* | *nto*)
14188         # QNX uses GNU C++, but need to define -shared option too, otherwise
14189         # it will coredump.
14190         lt_prog_compiler_pic_CXX='-fPIC -shared'
14191         ;;
14192       osf3* | osf4* | osf5*)
14193         case $cc_basename in
14194           KCC*)
14195             lt_prog_compiler_wl_CXX='--backend -Wl,'
14196             ;;
14197           RCC*)
14198             # Rational C++ 2.4.1
14199             lt_prog_compiler_pic_CXX='-pic'
14200             ;;
14201           cxx*)
14202             # Digital/Compaq C++
14203             lt_prog_compiler_wl_CXX='-Wl,'
14204             # Make sure the PIC flag is empty.  It appears that all Alpha
14205             # Linux and Compaq Tru64 Unix objects are PIC.
14206             lt_prog_compiler_pic_CXX=
14207             lt_prog_compiler_static_CXX='-non_shared'
14208             ;;
14209           *)
14210             ;;
14211         esac
14212         ;;
14213       psos*)
14214         ;;
14215       solaris*)
14216         case $cc_basename in
14217           CC* | sunCC*)
14218             # Sun C++ 4.2, 5.x and Centerline C++
14219             lt_prog_compiler_pic_CXX='-KPIC'
14220             lt_prog_compiler_static_CXX='-Bstatic'
14221             lt_prog_compiler_wl_CXX='-Qoption ld '
14222             ;;
14223           gcx*)
14224             # Green Hills C++ Compiler
14225             lt_prog_compiler_pic_CXX='-PIC'
14226             ;;
14227           *)
14228             ;;
14229         esac
14230         ;;
14231       sunos4*)
14232         case $cc_basename in
14233           CC*)
14234             # Sun C++ 4.x
14235             lt_prog_compiler_pic_CXX='-pic'
14236             lt_prog_compiler_static_CXX='-Bstatic'
14237             ;;
14238           lcc*)
14239             # Lucid
14240             lt_prog_compiler_pic_CXX='-pic'
14241             ;;
14242           *)
14243             ;;
14244         esac
14245         ;;
14246       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14247         case $cc_basename in
14248           CC*)
14249             lt_prog_compiler_wl_CXX='-Wl,'
14250             lt_prog_compiler_pic_CXX='-KPIC'
14251             lt_prog_compiler_static_CXX='-Bstatic'
14252             ;;
14253         esac
14254         ;;
14255       tandem*)
14256         case $cc_basename in
14257           NCC*)
14258             # NonStop-UX NCC 3.20
14259             lt_prog_compiler_pic_CXX='-KPIC'
14260             ;;
14261           *)
14262             ;;
14263         esac
14264         ;;
14265       vxworks*)
14266         ;;
14267       *)
14268         lt_prog_compiler_can_build_shared_CXX=no
14269         ;;
14270     esac
14271   fi
14272
14273 case $host_os in
14274   # For platforms which do not support PIC, -DPIC is meaningless:
14275   *djgpp*)
14276     lt_prog_compiler_pic_CXX=
14277     ;;
14278   *)
14279     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14280     ;;
14281 esac
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14285 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14286   $as_echo_n "(cached) " >&6
14287 else
14288   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14291 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14292 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14293
14294 #
14295 # Check to make sure the PIC flag actually works.
14296 #
14297 if test -n "$lt_prog_compiler_pic_CXX"; then
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14300 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303   lt_cv_prog_compiler_pic_works_CXX=no
14304    ac_outfile=conftest.$ac_objext
14305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306    lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14307    # Insert the option either (1) after the last *FLAGS variable, or
14308    # (2) before a word containing "conftest.", or (3) at the end.
14309    # Note that $ac_compile itself does not contain backslashes and begins
14310    # with a dollar sign (not a hyphen), so the echo should work correctly.
14311    # The option is referenced via a variable to avoid confusing sed.
14312    lt_compile=`echo "$ac_compile" | $SED \
14313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315    -e 's:$: $lt_compiler_flag:'`
14316    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14317    (eval "$lt_compile" 2>conftest.err)
14318    ac_status=$?
14319    cat conftest.err >&5
14320    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321    if (exit $ac_status) && test -s "$ac_outfile"; then
14322      # The compiler can only warn and ignore the option if not recognized
14323      # So say no if there are warnings other than the usual output.
14324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327        lt_cv_prog_compiler_pic_works_CXX=yes
14328      fi
14329    fi
14330    $RM conftest*
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14334 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14335
14336 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14337     case $lt_prog_compiler_pic_CXX in
14338      "" | " "*) ;;
14339      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14340      esac
14341 else
14342     lt_prog_compiler_pic_CXX=
14343      lt_prog_compiler_can_build_shared_CXX=no
14344 fi
14345
14346 fi
14347
14348
14349
14350
14351
14352 #
14353 # Check to make sure the static flag actually works.
14354 #
14355 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14357 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14358 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14359   $as_echo_n "(cached) " >&6
14360 else
14361   lt_cv_prog_compiler_static_works_CXX=no
14362    save_LDFLAGS="$LDFLAGS"
14363    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14364    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14365    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14366      # The linker can only warn and ignore the option if not recognized
14367      # So say no if there are warnings
14368      if test -s conftest.err; then
14369        # Append any errors to the config.log.
14370        cat conftest.err 1>&5
14371        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14372        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14373        if diff conftest.exp conftest.er2 >/dev/null; then
14374          lt_cv_prog_compiler_static_works_CXX=yes
14375        fi
14376      else
14377        lt_cv_prog_compiler_static_works_CXX=yes
14378      fi
14379    fi
14380    $RM -r conftest*
14381    LDFLAGS="$save_LDFLAGS"
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14385 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14386
14387 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14388     :
14389 else
14390     lt_prog_compiler_static_CXX=
14391 fi
14392
14393
14394
14395
14396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14398 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14399   $as_echo_n "(cached) " >&6
14400 else
14401   lt_cv_prog_compiler_c_o_CXX=no
14402    $RM -r conftest 2>/dev/null
14403    mkdir conftest
14404    cd conftest
14405    mkdir out
14406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14407
14408    lt_compiler_flag="-o out/conftest2.$ac_objext"
14409    # Insert the option either (1) after the last *FLAGS variable, or
14410    # (2) before a word containing "conftest.", or (3) at the end.
14411    # Note that $ac_compile itself does not contain backslashes and begins
14412    # with a dollar sign (not a hyphen), so the echo should work correctly.
14413    lt_compile=`echo "$ac_compile" | $SED \
14414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14416    -e 's:$: $lt_compiler_flag:'`
14417    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14418    (eval "$lt_compile" 2>out/conftest.err)
14419    ac_status=$?
14420    cat out/conftest.err >&5
14421    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14423    then
14424      # The compiler can only warn and ignore the option if not recognized
14425      # So say no if there are warnings
14426      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14427      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14428      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14429        lt_cv_prog_compiler_c_o_CXX=yes
14430      fi
14431    fi
14432    chmod u+w . 2>&5
14433    $RM conftest*
14434    # SGI C++ compiler will create directory out/ii_files/ for
14435    # template instantiation
14436    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14437    $RM out/* && rmdir out
14438    cd ..
14439    $RM -r conftest
14440    $RM conftest*
14441
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14444 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14445
14446
14447
14448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14450 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   lt_cv_prog_compiler_c_o_CXX=no
14454    $RM -r conftest 2>/dev/null
14455    mkdir conftest
14456    cd conftest
14457    mkdir out
14458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14459
14460    lt_compiler_flag="-o out/conftest2.$ac_objext"
14461    # Insert the option either (1) after the last *FLAGS variable, or
14462    # (2) before a word containing "conftest.", or (3) at the end.
14463    # Note that $ac_compile itself does not contain backslashes and begins
14464    # with a dollar sign (not a hyphen), so the echo should work correctly.
14465    lt_compile=`echo "$ac_compile" | $SED \
14466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468    -e 's:$: $lt_compiler_flag:'`
14469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14470    (eval "$lt_compile" 2>out/conftest.err)
14471    ac_status=$?
14472    cat out/conftest.err >&5
14473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14475    then
14476      # The compiler can only warn and ignore the option if not recognized
14477      # So say no if there are warnings
14478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14481        lt_cv_prog_compiler_c_o_CXX=yes
14482      fi
14483    fi
14484    chmod u+w . 2>&5
14485    $RM conftest*
14486    # SGI C++ compiler will create directory out/ii_files/ for
14487    # template instantiation
14488    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14489    $RM out/* && rmdir out
14490    cd ..
14491    $RM -r conftest
14492    $RM conftest*
14493
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14497
14498
14499
14500
14501 hard_links="nottested"
14502 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14503   # do not overwrite the value of need_locks provided by the user
14504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14505 $as_echo_n "checking if we can lock with hard links... " >&6; }
14506   hard_links=yes
14507   $RM conftest*
14508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14509   touch conftest.a
14510   ln conftest.a conftest.b 2>&5 || hard_links=no
14511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14513 $as_echo "$hard_links" >&6; }
14514   if test "$hard_links" = no; then
14515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14516 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14517     need_locks=warn
14518   fi
14519 else
14520   need_locks=no
14521 fi
14522
14523
14524
14525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14527
14528   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14529   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14530   case $host_os in
14531   aix[4-9]*)
14532     # If we're using GNU nm, then we don't want the "-C" option.
14533     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14534     # Also, AIX nm treats weak defined symbols like other global defined
14535     # symbols, whereas GNU nm marks them as "W".
14536     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14537       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'
14538     else
14539       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'
14540     fi
14541     ;;
14542   pw32*)
14543     export_symbols_cmds_CXX="$ltdll_cmds"
14544     ;;
14545   cygwin* | mingw* | cegcc*)
14546     case $cc_basename in
14547     cl*)
14548       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14549       ;;
14550     *)
14551       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'
14552       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14553       ;;
14554     esac
14555     ;;
14556   linux* | k*bsd*-gnu | gnu*)
14557     link_all_deplibs_CXX=no
14558     ;;
14559   *)
14560     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14561     ;;
14562   esac
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14565 $as_echo "$ld_shlibs_CXX" >&6; }
14566 test "$ld_shlibs_CXX" = no && can_build_shared=no
14567
14568 with_gnu_ld_CXX=$with_gnu_ld
14569
14570
14571
14572
14573
14574
14575 #
14576 # Do we need to explicitly link libc?
14577 #
14578 case "x$archive_cmds_need_lc_CXX" in
14579 x|xyes)
14580   # Assume -lc should be added
14581   archive_cmds_need_lc_CXX=yes
14582
14583   if test "$enable_shared" = yes && test "$GCC" = yes; then
14584     case $archive_cmds_CXX in
14585     *'~'*)
14586       # FIXME: we may have to deal with multi-command sequences.
14587       ;;
14588     '$CC '*)
14589       # Test whether the compiler implicitly links with -lc since on some
14590       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14591       # to ld, don't add -lc before -lgcc.
14592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14593 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14594 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   $RM conftest*
14598         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14599
14600         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604   test $ac_status = 0; } 2>conftest.err; then
14605           soname=conftest
14606           lib=conftest
14607           libobjs=conftest.$ac_objext
14608           deplibs=
14609           wl=$lt_prog_compiler_wl_CXX
14610           pic_flag=$lt_prog_compiler_pic_CXX
14611           compiler_flags=-v
14612           linker_flags=-v
14613           verstring=
14614           output_objdir=.
14615           libname=conftest
14616           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14617           allow_undefined_flag_CXX=
14618           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14619   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14620   ac_status=$?
14621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622   test $ac_status = 0; }
14623           then
14624             lt_cv_archive_cmds_need_lc_CXX=no
14625           else
14626             lt_cv_archive_cmds_need_lc_CXX=yes
14627           fi
14628           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14629         else
14630           cat conftest.err 1>&5
14631         fi
14632         $RM conftest*
14633         
14634 fi
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14636 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14637       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14638       ;;
14639     esac
14640   fi
14641   ;;
14642 esac
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
14702
14703
14704
14705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14707
14708 library_names_spec=
14709 libname_spec='lib$name'
14710 soname_spec=
14711 shrext_cmds=".so"
14712 postinstall_cmds=
14713 postuninstall_cmds=
14714 finish_cmds=
14715 finish_eval=
14716 shlibpath_var=
14717 shlibpath_overrides_runpath=unknown
14718 version_type=none
14719 dynamic_linker="$host_os ld.so"
14720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14721 need_lib_prefix=unknown
14722 hardcode_into_libs=no
14723
14724 # when you set need_version to no, make sure it does not cause -set_version
14725 # flags to be left without arguments
14726 need_version=unknown
14727
14728 case $host_os in
14729 aix3*)
14730   version_type=linux # correct to gnu/linux during the next big refactor
14731   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14732   shlibpath_var=LIBPATH
14733
14734   # AIX 3 has no versioning support, so we append a major version to the name.
14735   soname_spec='${libname}${release}${shared_ext}$major'
14736   ;;
14737
14738 aix[4-9]*)
14739   version_type=linux # correct to gnu/linux during the next big refactor
14740   need_lib_prefix=no
14741   need_version=no
14742   hardcode_into_libs=yes
14743   if test "$host_cpu" = ia64; then
14744     # AIX 5 supports IA64
14745     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14746     shlibpath_var=LD_LIBRARY_PATH
14747   else
14748     # With GCC up to 2.95.x, collect2 would create an import file
14749     # for dependence libraries.  The import file would start with
14750     # the line `#! .'.  This would cause the generated library to
14751     # depend on `.', always an invalid library.  This was fixed in
14752     # development snapshots of GCC prior to 3.0.
14753     case $host_os in
14754       aix4 | aix4.[01] | aix4.[01].*)
14755       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14756            echo ' yes '
14757            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14758         :
14759       else
14760         can_build_shared=no
14761       fi
14762       ;;
14763     esac
14764     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14765     # soname into executable. Probably we can add versioning support to
14766     # collect2, so additional links can be useful in future.
14767     if test "$aix_use_runtimelinking" = yes; then
14768       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14769       # instead of lib<name>.a to let people know that these are not
14770       # typical AIX shared libraries.
14771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772     else
14773       # We preserve .a as extension for shared libraries through AIX4.2
14774       # and later when we are not doing run time linking.
14775       library_names_spec='${libname}${release}.a $libname.a'
14776       soname_spec='${libname}${release}${shared_ext}$major'
14777     fi
14778     shlibpath_var=LIBPATH
14779   fi
14780   ;;
14781
14782 amigaos*)
14783   case $host_cpu in
14784   powerpc)
14785     # Since July 2007 AmigaOS4 officially supports .so libraries.
14786     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788     ;;
14789   m68k)
14790     library_names_spec='$libname.ixlibrary $libname.a'
14791     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14792     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'
14793     ;;
14794   esac
14795   ;;
14796
14797 beos*)
14798   library_names_spec='${libname}${shared_ext}'
14799   dynamic_linker="$host_os ld.so"
14800   shlibpath_var=LIBRARY_PATH
14801   ;;
14802
14803 bsdi[45]*)
14804   version_type=linux # correct to gnu/linux during the next big refactor
14805   need_version=no
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807   soname_spec='${libname}${release}${shared_ext}$major'
14808   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14809   shlibpath_var=LD_LIBRARY_PATH
14810   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14811   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14812   # the default ld.so.conf also contains /usr/contrib/lib and
14813   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14814   # libtool to hard-code these into programs
14815   ;;
14816
14817 cygwin* | mingw* | pw32* | cegcc*)
14818   version_type=windows
14819   shrext_cmds=".dll"
14820   need_version=no
14821   need_lib_prefix=no
14822
14823   case $GCC,$cc_basename in
14824   yes,*)
14825     # gcc
14826     library_names_spec='$libname.dll.a'
14827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14828     postinstall_cmds='base_file=`basename \${file}`~
14829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14830       dldir=$destdir/`dirname \$dlpath`~
14831       test -d \$dldir || mkdir -p \$dldir~
14832       $install_prog $dir/$dlname \$dldir/$dlname~
14833       chmod a+x \$dldir/$dlname~
14834       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14835         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14836       fi'
14837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14838       dlpath=$dir/\$dldll~
14839        $RM \$dlpath'
14840     shlibpath_overrides_runpath=yes
14841
14842     case $host_os in
14843     cygwin*)
14844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14846
14847       ;;
14848     mingw* | cegcc*)
14849       # MinGW DLLs use traditional 'lib' prefix
14850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14851       ;;
14852     pw32*)
14853       # pw32 DLLs use 'pw' prefix rather than 'lib'
14854       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855       ;;
14856     esac
14857     dynamic_linker='Win32 ld.exe'
14858     ;;
14859
14860   *,cl*)
14861     # Native MSVC
14862     libname_spec='$name'
14863     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14864     library_names_spec='${libname}.dll.lib'
14865
14866     case $build_os in
14867     mingw*)
14868       sys_lib_search_path_spec=
14869       lt_save_ifs=$IFS
14870       IFS=';'
14871       for lt_path in $LIB
14872       do
14873         IFS=$lt_save_ifs
14874         # Let DOS variable expansion print the short 8.3 style file name.
14875         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14876         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14877       done
14878       IFS=$lt_save_ifs
14879       # Convert to MSYS style.
14880       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14881       ;;
14882     cygwin*)
14883       # Convert to unix form, then to dos form, then back to unix form
14884       # but this time dos style (no spaces!) so that the unix form looks
14885       # like /cygdrive/c/PROGRA~1:/cygdr...
14886       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14887       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14888       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14889       ;;
14890     *)
14891       sys_lib_search_path_spec="$LIB"
14892       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14893         # It is most probably a Windows format PATH.
14894         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14895       else
14896         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14897       fi
14898       # FIXME: find the short name or the path components, as spaces are
14899       # common. (e.g. "Program Files" -> "PROGRA~1")
14900       ;;
14901     esac
14902
14903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14904     postinstall_cmds='base_file=`basename \${file}`~
14905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14906       dldir=$destdir/`dirname \$dlpath`~
14907       test -d \$dldir || mkdir -p \$dldir~
14908       $install_prog $dir/$dlname \$dldir/$dlname'
14909     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14910       dlpath=$dir/\$dldll~
14911        $RM \$dlpath'
14912     shlibpath_overrides_runpath=yes
14913     dynamic_linker='Win32 link.exe'
14914     ;;
14915
14916   *)
14917     # Assume MSVC wrapper
14918     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14919     dynamic_linker='Win32 ld.exe'
14920     ;;
14921   esac
14922   # FIXME: first we should search . and the directory the executable is in
14923   shlibpath_var=PATH
14924   ;;
14925
14926 darwin* | rhapsody*)
14927   dynamic_linker="$host_os dyld"
14928   version_type=darwin
14929   need_lib_prefix=no
14930   need_version=no
14931   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14932   soname_spec='${libname}${release}${major}$shared_ext'
14933   shlibpath_overrides_runpath=yes
14934   shlibpath_var=DYLD_LIBRARY_PATH
14935   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14936
14937   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14938   ;;
14939
14940 dgux*)
14941   version_type=linux # correct to gnu/linux during the next big refactor
14942   need_lib_prefix=no
14943   need_version=no
14944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14945   soname_spec='${libname}${release}${shared_ext}$major'
14946   shlibpath_var=LD_LIBRARY_PATH
14947   ;;
14948
14949 freebsd* | dragonfly*)
14950   # DragonFly does not have aout.  When/if they implement a new
14951   # versioning mechanism, adjust this.
14952   if test -x /usr/bin/objformat; then
14953     objformat=`/usr/bin/objformat`
14954   else
14955     case $host_os in
14956     freebsd[23].*) objformat=aout ;;
14957     *) objformat=elf ;;
14958     esac
14959   fi
14960   version_type=freebsd-$objformat
14961   case $version_type in
14962     freebsd-elf*)
14963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14964       need_version=no
14965       need_lib_prefix=no
14966       ;;
14967     freebsd-*)
14968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14969       need_version=yes
14970       ;;
14971   esac
14972   shlibpath_var=LD_LIBRARY_PATH
14973   case $host_os in
14974   freebsd2.*)
14975     shlibpath_overrides_runpath=yes
14976     ;;
14977   freebsd3.[01]* | freebsdelf3.[01]*)
14978     shlibpath_overrides_runpath=yes
14979     hardcode_into_libs=yes
14980     ;;
14981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14983     shlibpath_overrides_runpath=no
14984     hardcode_into_libs=yes
14985     ;;
14986   *) # from 4.6 on, and DragonFly
14987     shlibpath_overrides_runpath=yes
14988     hardcode_into_libs=yes
14989     ;;
14990   esac
14991   ;;
14992
14993 gnu*)
14994   version_type=linux # correct to gnu/linux during the next big refactor
14995   need_lib_prefix=no
14996   need_version=no
14997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14998   soname_spec='${libname}${release}${shared_ext}$major'
14999   shlibpath_var=LD_LIBRARY_PATH
15000   shlibpath_overrides_runpath=no
15001   hardcode_into_libs=yes
15002   ;;
15003
15004 haiku*)
15005   version_type=linux # correct to gnu/linux during the next big refactor
15006   need_lib_prefix=no
15007   need_version=no
15008   dynamic_linker="$host_os runtime_loader"
15009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   shlibpath_var=LIBRARY_PATH
15012   shlibpath_overrides_runpath=yes
15013   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 hpux9* | hpux10* | hpux11*)
15018   # Give a soname corresponding to the major version so that dld.sl refuses to
15019   # link against other versions.
15020   version_type=sunos
15021   need_lib_prefix=no
15022   need_version=no
15023   case $host_cpu in
15024   ia64*)
15025     shrext_cmds='.so'
15026     hardcode_into_libs=yes
15027     dynamic_linker="$host_os dld.so"
15028     shlibpath_var=LD_LIBRARY_PATH
15029     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031     soname_spec='${libname}${release}${shared_ext}$major'
15032     if test "X$HPUX_IA64_MODE" = X32; then
15033       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15034     else
15035       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15036     fi
15037     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15038     ;;
15039   hppa*64*)
15040     shrext_cmds='.sl'
15041     hardcode_into_libs=yes
15042     dynamic_linker="$host_os dld.sl"
15043     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046     soname_spec='${libname}${release}${shared_ext}$major'
15047     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15048     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15049     ;;
15050   *)
15051     shrext_cmds='.sl'
15052     dynamic_linker="$host_os dld.sl"
15053     shlibpath_var=SHLIB_PATH
15054     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056     soname_spec='${libname}${release}${shared_ext}$major'
15057     ;;
15058   esac
15059   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15060   postinstall_cmds='chmod 555 $lib'
15061   # or fails outright, so override atomically:
15062   install_override_mode=555
15063   ;;
15064
15065 interix[3-9]*)
15066   version_type=linux # correct to gnu/linux during the next big refactor
15067   need_lib_prefix=no
15068   need_version=no
15069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070   soname_spec='${libname}${release}${shared_ext}$major'
15071   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15072   shlibpath_var=LD_LIBRARY_PATH
15073   shlibpath_overrides_runpath=no
15074   hardcode_into_libs=yes
15075   ;;
15076
15077 irix5* | irix6* | nonstopux*)
15078   case $host_os in
15079     nonstopux*) version_type=nonstopux ;;
15080     *)
15081         if test "$lt_cv_prog_gnu_ld" = yes; then
15082                 version_type=linux # correct to gnu/linux during the next big refactor
15083         else
15084                 version_type=irix
15085         fi ;;
15086   esac
15087   need_lib_prefix=no
15088   need_version=no
15089   soname_spec='${libname}${release}${shared_ext}$major'
15090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15091   case $host_os in
15092   irix5* | nonstopux*)
15093     libsuff= shlibsuff=
15094     ;;
15095   *)
15096     case $LD in # libtool.m4 will add one of these switches to LD
15097     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15098       libsuff= shlibsuff= libmagic=32-bit;;
15099     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15100       libsuff=32 shlibsuff=N32 libmagic=N32;;
15101     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15102       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15103     *) libsuff= shlibsuff= libmagic=never-match;;
15104     esac
15105     ;;
15106   esac
15107   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15108   shlibpath_overrides_runpath=no
15109   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15110   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15111   hardcode_into_libs=yes
15112   ;;
15113
15114 # No shared lib support for Linux oldld, aout, or coff.
15115 linux*oldld* | linux*aout* | linux*coff*)
15116   dynamic_linker=no
15117   ;;
15118
15119 # This must be glibc/ELF.
15120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15121   version_type=linux # correct to gnu/linux during the next big refactor
15122   need_lib_prefix=no
15123   need_version=no
15124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125   soname_spec='${libname}${release}${shared_ext}$major'
15126   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15127   shlibpath_var=LD_LIBRARY_PATH
15128   shlibpath_overrides_runpath=no
15129
15130   # Some binutils ld are patched to set DT_RUNPATH
15131   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15132   $as_echo_n "(cached) " >&6
15133 else
15134   lt_cv_shlibpath_overrides_runpath=no
15135     save_LDFLAGS=$LDFLAGS
15136     save_libdir=$libdir
15137     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15138          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h.  */
15141
15142 int
15143 main ()
15144 {
15145
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_cxx_try_link "$LINENO"; then :
15151   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15152   lt_cv_shlibpath_overrides_runpath=yes
15153 fi
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext \
15156     conftest$ac_exeext conftest.$ac_ext
15157     LDFLAGS=$save_LDFLAGS
15158     libdir=$save_libdir
15159     
15160 fi
15161
15162   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15163
15164   # This implies no fast_install, which is unacceptable.
15165   # Some rework will be needed to allow for fast_install
15166   # before this can be enabled.
15167   hardcode_into_libs=yes
15168
15169   # Append ld.so.conf contents to the search path
15170   if test -f /etc/ld.so.conf; then
15171     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' ' '`
15172     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15173   fi
15174
15175   # We used to test for /lib/ld.so.1 and disable shared libraries on
15176   # powerpc, because MkLinux only supported shared libraries with the
15177   # GNU dynamic linker.  Since this was broken with cross compilers,
15178   # most powerpc-linux boxes support dynamic linking these days and
15179   # people can always --disable-shared, the test was removed, and we
15180   # assume the GNU/Linux dynamic linker is in use.
15181   dynamic_linker='GNU/Linux ld.so'
15182   ;;
15183
15184 netbsdelf*-gnu)
15185   version_type=linux
15186   need_lib_prefix=no
15187   need_version=no
15188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15189   soname_spec='${libname}${release}${shared_ext}$major'
15190   shlibpath_var=LD_LIBRARY_PATH
15191   shlibpath_overrides_runpath=no
15192   hardcode_into_libs=yes
15193   dynamic_linker='NetBSD ld.elf_so'
15194   ;;
15195
15196 netbsd*)
15197   version_type=sunos
15198   need_lib_prefix=no
15199   need_version=no
15200   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15202     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15203     dynamic_linker='NetBSD (a.out) ld.so'
15204   else
15205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206     soname_spec='${libname}${release}${shared_ext}$major'
15207     dynamic_linker='NetBSD ld.elf_so'
15208   fi
15209   shlibpath_var=LD_LIBRARY_PATH
15210   shlibpath_overrides_runpath=yes
15211   hardcode_into_libs=yes
15212   ;;
15213
15214 newsos6)
15215   version_type=linux # correct to gnu/linux during the next big refactor
15216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   ;;
15220
15221 *nto* | *qnx*)
15222   version_type=qnx
15223   need_lib_prefix=no
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=no
15229   hardcode_into_libs=yes
15230   dynamic_linker='ldqnx.so'
15231   ;;
15232
15233 openbsd*)
15234   version_type=sunos
15235   sys_lib_dlsearch_path_spec="/usr/lib"
15236   need_lib_prefix=no
15237   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15238   case $host_os in
15239     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15240     *)                          need_version=no  ;;
15241   esac
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15243   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15246     case $host_os in
15247       openbsd2.[89] | openbsd2.[89].*)
15248         shlibpath_overrides_runpath=no
15249         ;;
15250       *)
15251         shlibpath_overrides_runpath=yes
15252         ;;
15253       esac
15254   else
15255     shlibpath_overrides_runpath=yes
15256   fi
15257   ;;
15258
15259 os2*)
15260   libname_spec='$name'
15261   shrext_cmds=".dll"
15262   need_lib_prefix=no
15263   library_names_spec='$libname${shared_ext} $libname.a'
15264   dynamic_linker='OS/2 ld.exe'
15265   shlibpath_var=LIBPATH
15266   ;;
15267
15268 osf3* | osf4* | osf5*)
15269   version_type=osf
15270   need_lib_prefix=no
15271   need_version=no
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15276   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15277   ;;
15278
15279 rdos*)
15280   dynamic_linker=no
15281   ;;
15282
15283 solaris*)
15284   version_type=linux # correct to gnu/linux during the next big refactor
15285   need_lib_prefix=no
15286   need_version=no
15287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288   soname_spec='${libname}${release}${shared_ext}$major'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   shlibpath_overrides_runpath=yes
15291   hardcode_into_libs=yes
15292   # ldd complains unless libraries are executable
15293   postinstall_cmds='chmod +x $lib'
15294   ;;
15295
15296 sunos4*)
15297   version_type=sunos
15298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15299   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15300   shlibpath_var=LD_LIBRARY_PATH
15301   shlibpath_overrides_runpath=yes
15302   if test "$with_gnu_ld" = yes; then
15303     need_lib_prefix=no
15304   fi
15305   need_version=yes
15306   ;;
15307
15308 sysv4 | sysv4.3*)
15309   version_type=linux # correct to gnu/linux during the next big refactor
15310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311   soname_spec='${libname}${release}${shared_ext}$major'
15312   shlibpath_var=LD_LIBRARY_PATH
15313   case $host_vendor in
15314     sni)
15315       shlibpath_overrides_runpath=no
15316       need_lib_prefix=no
15317       runpath_var=LD_RUN_PATH
15318       ;;
15319     siemens)
15320       need_lib_prefix=no
15321       ;;
15322     motorola)
15323       need_lib_prefix=no
15324       need_version=no
15325       shlibpath_overrides_runpath=no
15326       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15327       ;;
15328   esac
15329   ;;
15330
15331 sysv4*MP*)
15332   if test -d /usr/nec ;then
15333     version_type=linux # correct to gnu/linux during the next big refactor
15334     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15335     soname_spec='$libname${shared_ext}.$major'
15336     shlibpath_var=LD_LIBRARY_PATH
15337   fi
15338   ;;
15339
15340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15341   version_type=freebsd-elf
15342   need_lib_prefix=no
15343   need_version=no
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345   soname_spec='${libname}${release}${shared_ext}$major'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   shlibpath_overrides_runpath=yes
15348   hardcode_into_libs=yes
15349   if test "$with_gnu_ld" = yes; then
15350     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15351   else
15352     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15353     case $host_os in
15354       sco3.2v5*)
15355         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15356         ;;
15357     esac
15358   fi
15359   sys_lib_dlsearch_path_spec='/usr/lib'
15360   ;;
15361
15362 tpf*)
15363   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15364   version_type=linux # correct to gnu/linux during the next big refactor
15365   need_lib_prefix=no
15366   need_version=no
15367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368   shlibpath_var=LD_LIBRARY_PATH
15369   shlibpath_overrides_runpath=no
15370   hardcode_into_libs=yes
15371   ;;
15372
15373 uts4*)
15374   version_type=linux # correct to gnu/linux during the next big refactor
15375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376   soname_spec='${libname}${release}${shared_ext}$major'
15377   shlibpath_var=LD_LIBRARY_PATH
15378   ;;
15379
15380 *)
15381   dynamic_linker=no
15382   ;;
15383 esac
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15385 $as_echo "$dynamic_linker" >&6; }
15386 test "$dynamic_linker" = no && can_build_shared=no
15387
15388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15389 if test "$GCC" = yes; then
15390   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15391 fi
15392
15393 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15394   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15395 fi
15396 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15397   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15398 fi
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
15434
15435
15436
15437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15439 hardcode_action_CXX=
15440 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15441    test -n "$runpath_var_CXX" ||
15442    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15443
15444   # We can hardcode non-existent directories.
15445   if test "$hardcode_direct_CXX" != no &&
15446      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15447      # have to relink, otherwise we might link with an installed library
15448      # when we should be linking with a yet-to-be-installed one
15449      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15450      test "$hardcode_minus_L_CXX" != no; then
15451     # Linking always hardcodes the temporary library directory.
15452     hardcode_action_CXX=relink
15453   else
15454     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15455     hardcode_action_CXX=immediate
15456   fi
15457 else
15458   # We cannot hardcode anything, or else we can only hardcode existing
15459   # directories.
15460   hardcode_action_CXX=unsupported
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15463 $as_echo "$hardcode_action_CXX" >&6; }
15464
15465 if test "$hardcode_action_CXX" = relink ||
15466    test "$inherit_rpath_CXX" = yes; then
15467   # Fast installation is not supported
15468   enable_fast_install=no
15469 elif test "$shlibpath_overrides_runpath" = yes ||
15470      test "$enable_shared" = no; then
15471   # Fast installation is not necessary
15472   enable_fast_install=needless
15473 fi
15474
15475
15476
15477
15478     
15479
15480
15481   fi # test -n "$compiler"
15482
15483   CC=$lt_save_CC
15484   CFLAGS=$lt_save_CFLAGS
15485   LDCXX=$LD
15486   LD=$lt_save_LD
15487   GCC=$lt_save_GCC
15488   with_gnu_ld=$lt_save_with_gnu_ld
15489   lt_cv_path_LDCXX=$lt_cv_path_LD
15490   lt_cv_path_LD=$lt_save_path_LD
15491   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15492   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15493 fi # test "$_lt_caught_CXX_error" != yes
15494
15495 ac_ext=c
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15500
15501
15502
15503
15504
15505
15506
15507
15508        
15509        
15510
15511
15512
15513
15514
15515         ac_config_commands="$ac_config_commands libtool"
15516
15517
15518
15519
15520 # Only expand once:
15521
15522
15523 # By default we simply use the C compiler to build assembly code.
15524
15525 test "${CCAS+set}" = set || CCAS=$CC
15526 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15527
15528
15529
15530 depcc="$CCAS"   am_compiler_list=
15531
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15533 $as_echo_n "checking dependency style of $depcc... " >&6; }
15534 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
15535   $as_echo_n "(cached) " >&6
15536 else
15537   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15538   # We make a subdir and do the tests there.  Otherwise we can end up
15539   # making bogus files that we don't know about and never remove.  For
15540   # instance it was reported that on HP-UX the gcc test will end up
15541   # making a dummy file named `D' -- because `-MD' means `put the output
15542   # in D'.
15543   rm -rf conftest.dir
15544   mkdir conftest.dir
15545   # Copy depcomp to subdir because otherwise we won't find it if we're
15546   # using a relative directory.
15547   cp "$am_depcomp" conftest.dir
15548   cd conftest.dir
15549   # We will build objects and dependencies in a subdirectory because
15550   # it helps to detect inapplicable dependency modes.  For instance
15551   # both Tru64's cc and ICC support -MD to output dependencies as a
15552   # side effect of compilation, but ICC will put the dependencies in
15553   # the current directory while Tru64 will put them in the object
15554   # directory.
15555   mkdir sub
15556
15557   am_cv_CCAS_dependencies_compiler_type=none
15558   if test "$am_compiler_list" = ""; then
15559      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15560   fi
15561   am__universal=false
15562   
15563
15564   for depmode in $am_compiler_list; do
15565     # Setup a source with many dependencies, because some compilers
15566     # like to wrap large dependency lists on column 80 (with \), and
15567     # we should not choose a depcomp mode which is confused by this.
15568     #
15569     # We need to recreate these files for each test, as the compiler may
15570     # overwrite some of them when testing with obscure command lines.
15571     # This happens at least with the AIX C compiler.
15572     : > sub/conftest.c
15573     for i in 1 2 3 4 5 6; do
15574       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15575       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15576       # Solaris 8's {/usr,}/bin/sh.
15577       touch sub/conftst$i.h
15578     done
15579     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15580
15581     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15582     # mode.  It turns out that the SunPro C++ compiler does not properly
15583     # handle `-M -o', and we need to detect this.  Also, some Intel
15584     # versions had trouble with output in subdirs
15585     am__obj=sub/conftest.${OBJEXT-o}
15586     am__minus_obj="-o $am__obj"
15587     case $depmode in
15588     gcc)
15589       # This depmode causes a compiler race in universal mode.
15590       test "$am__universal" = false || continue
15591       ;;
15592     nosideeffect)
15593       # after this tag, mechanisms are not by side-effect, so they'll
15594       # only be used when explicitly requested
15595       if test "x$enable_dependency_tracking" = xyes; then
15596         continue
15597       else
15598         break
15599       fi
15600       ;;
15601     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15602       # This compiler won't grok `-c -o', but also, the minuso test has
15603       # not run yet.  These depmodes are late enough in the game, and
15604       # so weak that their functioning should not be impacted.
15605       am__obj=conftest.${OBJEXT-o}
15606       am__minus_obj=
15607       ;;
15608     none) break ;;
15609     esac
15610     if depmode=$depmode \
15611        source=sub/conftest.c object=$am__obj \
15612        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15613        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15614          >/dev/null 2>conftest.err &&
15615        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15616        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15617        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15618        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15619       # icc doesn't choke on unknown options, it will just issue warnings
15620       # or remarks (even with -Werror).  So we grep stderr for any message
15621       # that says an option was ignored or not supported.
15622       # When given -MP, icc 7.0 and 7.1 complain thusly:
15623       #   icc: Command line warning: ignoring option '-M'; no argument required
15624       # The diagnosis changed in icc 8.0:
15625       #   icc: Command line remark: option '-MP' not supported
15626       if (grep 'ignoring option' conftest.err ||
15627           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15628         am_cv_CCAS_dependencies_compiler_type=$depmode
15629         break
15630       fi
15631     fi
15632   done
15633
15634   cd ..
15635   rm -rf conftest.dir
15636 else
15637   am_cv_CCAS_dependencies_compiler_type=none
15638 fi
15639
15640 fi
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15642 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15643 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15644
15645  if 
15646   test "x$enable_dependency_tracking" != xno \
15647   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15648   am__fastdepCCAS_TRUE=
15649   am__fastdepCCAS_FALSE='#'
15650 else
15651   am__fastdepCCAS_TRUE='#'
15652   am__fastdepCCAS_FALSE=
15653 fi
15654
15655
15656 if test "x$CC" != xcc; then
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15658 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15659 else
15660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15661 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15662 fi
15663 set dummy $CC; ac_cc=`$as_echo "$2" |
15664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15665 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15666   $as_echo_n "(cached) " >&6
15667 else
15668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h.  */
15670
15671 int
15672 main ()
15673 {
15674
15675   ;
15676   return 0;
15677 }
15678 _ACEOF
15679 # Make sure it works both with $CC and with simple cc.
15680 # We do the test twice because some compilers refuse to overwrite an
15681 # existing .o file with -o, though they will create one.
15682 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15683 rm -f conftest2.*
15684 if { { case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15689 $as_echo "$ac_try_echo"; } >&5
15690   (eval "$ac_try") 2>&5
15691   ac_status=$?
15692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693   test $ac_status = 0; } &&
15694    test -f conftest2.$ac_objext && { { case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15699 $as_echo "$ac_try_echo"; } >&5
15700   (eval "$ac_try") 2>&5
15701   ac_status=$?
15702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15703   test $ac_status = 0; };
15704 then
15705   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15706   if test "x$CC" != xcc; then
15707     # Test first that cc exists at all.
15708     if { ac_try='cc -c conftest.$ac_ext >&5'
15709   { { case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15714 $as_echo "$ac_try_echo"; } >&5
15715   (eval "$ac_try") 2>&5
15716   ac_status=$?
15717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718   test $ac_status = 0; }; }; then
15719       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15720       rm -f conftest2.*
15721       if { { case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15726 $as_echo "$ac_try_echo"; } >&5
15727   (eval "$ac_try") 2>&5
15728   ac_status=$?
15729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15730   test $ac_status = 0; } &&
15731          test -f conftest2.$ac_objext && { { case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15736 $as_echo "$ac_try_echo"; } >&5
15737   (eval "$ac_try") 2>&5
15738   ac_status=$?
15739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740   test $ac_status = 0; };
15741       then
15742         # cc works too.
15743         :
15744       else
15745         # cc exists but doesn't like -o.
15746         eval ac_cv_prog_cc_${ac_cc}_c_o=no
15747       fi
15748     fi
15749   fi
15750 else
15751   eval ac_cv_prog_cc_${ac_cc}_c_o=no
15752 fi
15753 rm -f core conftest*
15754
15755 fi
15756 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15758 $as_echo "yes" >&6; }
15759 else
15760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15762   
15763 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15764
15765 fi
15766
15767 # FIXME: we rely on the cache variable name because
15768 # there is no other way.
15769 set dummy $CC
15770 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15771 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15772 if test "$am_t" != yes; then
15773    # Losing compiler, so override with the script.
15774    # FIXME: It is wrong to rewrite CC.
15775    # But if we don't then we get into trouble of one sort or another.
15776    # A longer-term fix would be to have automake use am__CC in this case,
15777    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15778    CC="$am_aux_dir/compile $CC"
15779 fi
15780
15781
15782
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_grs in -luca" >&5
15784 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15785 if ${ac_cv_lib_uca___uc_get_grs+:} false; then :
15786   $as_echo_n "(cached) " >&6
15787 else
15788   ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-luca  $LIBS"
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h.  */
15792
15793 /* Override any GCC internal prototype to avoid an error.
15794    Use char because int might match the return type of a GCC
15795    builtin and then its argument prototype would still apply.  */
15796 #ifdef __cplusplus
15797 extern "C"
15798 #endif
15799 char __uc_get_grs ();
15800 int
15801 main ()
15802 {
15803 return __uc_get_grs ();
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809   ac_cv_lib_uca___uc_get_grs=yes
15810 else
15811   ac_cv_lib_uca___uc_get_grs=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext \
15814     conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_grs" >&5
15818 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15819 if test "x$ac_cv_lib_uca___uc_get_grs" = xyes; then :
15820   cat >>confdefs.h <<_ACEOF
15821 @%:@define HAVE_LIBUCA 1
15822 _ACEOF
15823
15824   LIBS="-luca $LIBS"
15825
15826 fi
15827
15828 OLD_LIBS=${LIBS}
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15830 $as_echo_n "checking for library containing dlopen... " >&6; }
15831 if ${ac_cv_search_dlopen+:} false; then :
15832   $as_echo_n "(cached) " >&6
15833 else
15834   ac_func_search_save_LIBS=$LIBS
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h.  */
15837
15838 /* Override any GCC internal prototype to avoid an error.
15839    Use char because int might match the return type of a GCC
15840    builtin and then its argument prototype would still apply.  */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 char dlopen ();
15845 int
15846 main ()
15847 {
15848 return dlopen ();
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 for ac_lib in '' dl; do
15854   if test -z "$ac_lib"; then
15855     ac_res="none required"
15856   else
15857     ac_res=-l$ac_lib
15858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15859   fi
15860   if ac_fn_c_try_link "$LINENO"; then :
15861   ac_cv_search_dlopen=$ac_res
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext \
15864     conftest$ac_exeext
15865   if ${ac_cv_search_dlopen+:} false; then :
15866   break
15867 fi
15868 done
15869 if ${ac_cv_search_dlopen+:} false; then :
15870   
15871 else
15872   ac_cv_search_dlopen=no
15873 fi
15874 rm conftest.$ac_ext
15875 LIBS=$ac_func_search_save_LIBS
15876 fi
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15878 $as_echo "$ac_cv_search_dlopen" >&6; }
15879 ac_res=$ac_cv_search_dlopen
15880 if test "$ac_res" != no; then :
15881   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15882   
15883 fi
15884
15885 LIBS=${OLD_LIBS}
15886 case "$ac_cv_search_dlopen" in
15887   -l*) DLLIB=$ac_cv_search_dlopen;;
15888   *) DLLIB="";;
15889 esac
15890
15891   for ac_header in atomic_ops.h
15892 do :
15893   ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15894 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
15895   cat >>confdefs.h <<_ACEOF
15896 @%:@define HAVE_ATOMIC_OPS_H 1
15897 _ACEOF
15898  
15899 fi
15900
15901 done
15902
15903 #
15904 # Don't link against libatomic_ops for now.  We don't want libunwind
15905 # to depend on libatomic_ops.so.  Fortunately, none of the platforms
15906 # we care about so far need libatomic_ops.a (everything is done via
15907 # inline macros).
15908 #
15909 #  AC_CHECK_LIB(atomic_ops, main)
15910
15911
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15913 $as_echo_n "checking for ANSI C header files... " >&6; }
15914 if ${ac_cv_header_stdc+:} false; then :
15915   $as_echo_n "(cached) " >&6
15916 else
15917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919 #include <stdlib.h>
15920 #include <stdarg.h>
15921 #include <string.h>
15922 #include <float.h>
15923
15924 int
15925 main ()
15926 {
15927
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_c_try_compile "$LINENO"; then :
15933   ac_cv_header_stdc=yes
15934 else
15935   ac_cv_header_stdc=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938
15939 if test $ac_cv_header_stdc = yes; then
15940   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h.  */
15943 #include <string.h>
15944
15945 _ACEOF
15946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15947   $EGREP "memchr" >/dev/null 2>&1; then :
15948   
15949 else
15950   ac_cv_header_stdc=no
15951 fi
15952 rm -f conftest*
15953
15954 fi
15955
15956 if test $ac_cv_header_stdc = yes; then
15957   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960 #include <stdlib.h>
15961
15962 _ACEOF
15963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964   $EGREP "free" >/dev/null 2>&1; then :
15965   
15966 else
15967   ac_cv_header_stdc=no
15968 fi
15969 rm -f conftest*
15970
15971 fi
15972
15973 if test $ac_cv_header_stdc = yes; then
15974   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15975   if test "$cross_compiling" = yes; then :
15976   :
15977 else
15978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h.  */
15980 #include <ctype.h>
15981 #include <stdlib.h>
15982 #if ((' ' & 0x0FF) == 0x020)
15983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15985 #else
15986 # define ISLOWER(c) \
15987                    (('a' <= (c) && (c) <= 'i') \
15988                      || ('j' <= (c) && (c) <= 'r') \
15989                      || ('s' <= (c) && (c) <= 'z'))
15990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15991 #endif
15992
15993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15994 int
15995 main ()
15996 {
15997   int i;
15998   for (i = 0; i < 256; i++)
15999     if (XOR (islower (i), ISLOWER (i))
16000         || toupper (i) != TOUPPER (i))
16001       return 2;
16002   return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_run "$LINENO"; then :
16006   
16007 else
16008   ac_cv_header_stdc=no
16009 fi
16010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16011   conftest.$ac_objext conftest.beam conftest.$ac_ext
16012 fi
16013
16014 fi
16015 fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16017 $as_echo "$ac_cv_header_stdc" >&6; }
16018 if test $ac_cv_header_stdc = yes; then
16019   
16020 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16021
16022 fi
16023
16024 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16025                 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16026                 sys/procfs.h sys/ptrace.h byteswap.h
16027 do :
16028   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16029 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16031   cat >>confdefs.h <<_ACEOF
16032 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033 _ACEOF
16034  
16035 fi
16036
16037 done
16038
16039
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16041 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16042 if ${ac_cv_c_const+:} false; then :
16043   $as_echo_n "(cached) " >&6
16044 else
16045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h.  */
16047
16048 int
16049 main ()
16050 {
16051 /* FIXME: Include the comments suggested by Paul. */
16052 #ifndef __cplusplus
16053   /* Ultrix mips cc rejects this.  */
16054   typedef int charset[2];
16055   const charset cs;
16056   /* SunOS 4.1.1 cc rejects this.  */
16057   char const *const *pcpcc;
16058   char **ppc;
16059   /* NEC SVR4.0.2 mips cc rejects this.  */
16060   struct point {int x, y;};
16061   static struct point const zero = {0,0};
16062   /* AIX XL C 1.02.0.0 rejects this.
16063      It does not let you subtract one const X* pointer from another in
16064      an arm of an if-expression whose if-part is not a constant
16065      expression */
16066   const char *g = "string";
16067   pcpcc = &g + (g ? g-g : 0);
16068   /* HPUX 7.0 cc rejects these. */
16069   ++pcpcc;
16070   ppc = (char**) pcpcc;
16071   pcpcc = (char const *const *) ppc;
16072   { /* SCO 3.2v4 cc rejects this.  */
16073     char *t;
16074     char const *s = 0 ? (char *) 0 : (char const *) 0;
16075
16076     *t++ = 0;
16077     if (s) return 0;
16078   }
16079   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16080     int x[] = {25, 17};
16081     const int *foo = &x[0];
16082     ++foo;
16083   }
16084   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16085     typedef const int *iptr;
16086     iptr p = 0;
16087     ++p;
16088   }
16089   { /* AIX XL C 1.02.0.0 rejects this saying
16090        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16091     struct s { int j; const int *ap[3]; };
16092     struct s *b; b->j = 5;
16093   }
16094   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16095     const int foo = 10;
16096     if (!foo) return 0;
16097   }
16098   return !cs[0] && !zero.x;
16099 #endif
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_compile "$LINENO"; then :
16106   ac_cv_c_const=yes
16107 else
16108   ac_cv_c_const=no
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16113 $as_echo "$ac_cv_c_const" >&6; }
16114 if test $ac_cv_c_const = no; then
16115   
16116 $as_echo "@%:@define const /**/" >>confdefs.h
16117
16118 fi
16119
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16121 $as_echo_n "checking for inline... " >&6; }
16122 if ${ac_cv_c_inline+:} false; then :
16123   $as_echo_n "(cached) " >&6
16124 else
16125   ac_cv_c_inline=no
16126 for ac_kw in inline __inline__ __inline; do
16127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h.  */
16129 #ifndef __cplusplus
16130 typedef int foo_t;
16131 static $ac_kw foo_t static_foo () {return 0; }
16132 $ac_kw foo_t foo () {return 0; }
16133 #endif
16134
16135 _ACEOF
16136 if ac_fn_c_try_compile "$LINENO"; then :
16137   ac_cv_c_inline=$ac_kw
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140   test "$ac_cv_c_inline" != no && break
16141 done
16142
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16145 $as_echo "$ac_cv_c_inline" >&6; }
16146
16147 case $ac_cv_c_inline in
16148   inline | yes) ;;
16149   *)
16150     case $ac_cv_c_inline in
16151       no) ac_val=;;
16152       *) ac_val=$ac_cv_c_inline;;
16153     esac
16154     cat >>confdefs.h <<_ACEOF
16155 #ifndef __cplusplus
16156 #define inline $ac_val
16157 #endif
16158 _ACEOF
16159     ;;
16160 esac
16161
16162 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163 if test "x$ac_cv_type_size_t" = xyes; then :
16164   
16165 else
16166   
16167 cat >>confdefs.h <<_ACEOF
16168 @%:@define size_t unsigned int
16169 _ACEOF
16170
16171 fi
16172
16173 # The cast to long int works around a bug in the HP C Compiler
16174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16176 # This bug is HP SR number 8606223364.
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16178 $as_echo_n "checking size of off_t... " >&6; }
16179 if ${ac_cv_sizeof_off_t+:} false; then :
16180   $as_echo_n "(cached) " >&6
16181 else
16182   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16183   
16184 else
16185   if test "$ac_cv_type_off_t" = yes; then
16186      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16188 as_fn_error 77 "cannot compute sizeof (off_t)
16189 See \`config.log' for more details" "$LINENO" 5; }
16190    else
16191      ac_cv_sizeof_off_t=0
16192    fi
16193 fi
16194
16195 fi
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16197 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16198
16199
16200
16201 cat >>confdefs.h <<_ACEOF
16202 @%:@define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16203 _ACEOF
16204
16205
16206
16207 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
16208
16209 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_subs" "ac_cv_member_struct_dl_phdr_info_dlpi_subs" "#include <link.h>
16210 "
16211 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = xyes; then :
16212   
16213 cat >>confdefs.h <<_ACEOF
16214 @%:@define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
16215 _ACEOF
16216
16217
16218 fi
16219
16220 ac_fn_c_check_type "$LINENO" "struct elf_prstatus" "ac_cv_type_struct_elf_prstatus" "$ac_includes_default
16221 #if HAVE_SYS_PROCFS_H
16222 # include <sys/procfs.h>
16223 #endif
16224
16225 "
16226 if test "x$ac_cv_type_struct_elf_prstatus" = xyes; then :
16227   
16228 cat >>confdefs.h <<_ACEOF
16229 @%:@define HAVE_STRUCT_ELF_PRSTATUS 1
16230 _ACEOF
16231
16232
16233 fi
16234 ac_fn_c_check_type "$LINENO" "struct prstatus" "ac_cv_type_struct_prstatus" "$ac_includes_default
16235 #if HAVE_SYS_PROCFS_H
16236 # include <sys/procfs.h>
16237 #endif
16238
16239 "
16240 if test "x$ac_cv_type_struct_prstatus" = xyes; then :
16241   
16242 cat >>confdefs.h <<_ACEOF
16243 @%:@define HAVE_STRUCT_PRSTATUS 1
16244 _ACEOF
16245
16246
16247 fi
16248
16249
16250 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEUSER" "ac_cv_have_decl_PTRACE_POKEUSER" "$ac_includes_default
16251 #if HAVE_SYS_TYPES_H
16252 #include <sys/types.h>
16253 #endif
16254 #include <sys/ptrace.h>
16255
16256 "
16257 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = xyes; then :
16258   ac_have_decl=1
16259 else
16260   ac_have_decl=0
16261 fi
16262
16263 cat >>confdefs.h <<_ACEOF
16264 @%:@define HAVE_DECL_PTRACE_POKEUSER $ac_have_decl
16265 _ACEOF
16266 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEDATA" "ac_cv_have_decl_PTRACE_POKEDATA" "$ac_includes_default
16267 #if HAVE_SYS_TYPES_H
16268 #include <sys/types.h>
16269 #endif
16270 #include <sys/ptrace.h>
16271
16272 "
16273 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = xyes; then :
16274   ac_have_decl=1
16275 else
16276   ac_have_decl=0
16277 fi
16278
16279 cat >>confdefs.h <<_ACEOF
16280 @%:@define HAVE_DECL_PTRACE_POKEDATA $ac_have_decl
16281 _ACEOF
16282 ac_fn_c_check_decl "$LINENO" "PTRACE_TRACEME" "ac_cv_have_decl_PTRACE_TRACEME" "$ac_includes_default
16283 #if HAVE_SYS_TYPES_H
16284 #include <sys/types.h>
16285 #endif
16286 #include <sys/ptrace.h>
16287
16288 "
16289 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = xyes; then :
16290   ac_have_decl=1
16291 else
16292   ac_have_decl=0
16293 fi
16294
16295 cat >>confdefs.h <<_ACEOF
16296 @%:@define HAVE_DECL_PTRACE_TRACEME $ac_have_decl
16297 _ACEOF
16298 ac_fn_c_check_decl "$LINENO" "PTRACE_CONT" "ac_cv_have_decl_PTRACE_CONT" "$ac_includes_default
16299 #if HAVE_SYS_TYPES_H
16300 #include <sys/types.h>
16301 #endif
16302 #include <sys/ptrace.h>
16303
16304 "
16305 if test "x$ac_cv_have_decl_PTRACE_CONT" = xyes; then :
16306   ac_have_decl=1
16307 else
16308   ac_have_decl=0
16309 fi
16310
16311 cat >>confdefs.h <<_ACEOF
16312 @%:@define HAVE_DECL_PTRACE_CONT $ac_have_decl
16313 _ACEOF
16314 ac_fn_c_check_decl "$LINENO" "PTRACE_SINGLESTEP" "ac_cv_have_decl_PTRACE_SINGLESTEP" "$ac_includes_default
16315 #if HAVE_SYS_TYPES_H
16316 #include <sys/types.h>
16317 #endif
16318 #include <sys/ptrace.h>
16319
16320 "
16321 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = xyes; then :
16322   ac_have_decl=1
16323 else
16324   ac_have_decl=0
16325 fi
16326
16327 cat >>confdefs.h <<_ACEOF
16328 @%:@define HAVE_DECL_PTRACE_SINGLESTEP $ac_have_decl
16329 _ACEOF
16330 ac_fn_c_check_decl "$LINENO" "PTRACE_SYSCALL" "ac_cv_have_decl_PTRACE_SYSCALL" "$ac_includes_default
16331 #if HAVE_SYS_TYPES_H
16332 #include <sys/types.h>
16333 #endif
16334 #include <sys/ptrace.h>
16335
16336 "
16337 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = xyes; then :
16338   ac_have_decl=1
16339 else
16340   ac_have_decl=0
16341 fi
16342
16343 cat >>confdefs.h <<_ACEOF
16344 @%:@define HAVE_DECL_PTRACE_SYSCALL $ac_have_decl
16345 _ACEOF
16346 ac_fn_c_check_decl "$LINENO" "PT_IO" "ac_cv_have_decl_PT_IO" "$ac_includes_default
16347 #if HAVE_SYS_TYPES_H
16348 #include <sys/types.h>
16349 #endif
16350 #include <sys/ptrace.h>
16351
16352 "
16353 if test "x$ac_cv_have_decl_PT_IO" = xyes; then :
16354   ac_have_decl=1
16355 else
16356   ac_have_decl=0
16357 fi
16358
16359 cat >>confdefs.h <<_ACEOF
16360 @%:@define HAVE_DECL_PT_IO $ac_have_decl
16361 _ACEOF
16362 ac_fn_c_check_decl "$LINENO" "PT_GETREGS" "ac_cv_have_decl_PT_GETREGS" "$ac_includes_default
16363 #if HAVE_SYS_TYPES_H
16364 #include <sys/types.h>
16365 #endif
16366 #include <sys/ptrace.h>
16367
16368 "
16369 if test "x$ac_cv_have_decl_PT_GETREGS" = xyes; then :
16370   ac_have_decl=1
16371 else
16372   ac_have_decl=0
16373 fi
16374
16375 cat >>confdefs.h <<_ACEOF
16376 @%:@define HAVE_DECL_PT_GETREGS $ac_have_decl
16377 _ACEOF
16378 ac_fn_c_check_decl "$LINENO" "PT_GETFPREGS" "ac_cv_have_decl_PT_GETFPREGS" "$ac_includes_default
16379 #if HAVE_SYS_TYPES_H
16380 #include <sys/types.h>
16381 #endif
16382 #include <sys/ptrace.h>
16383
16384 "
16385 if test "x$ac_cv_have_decl_PT_GETFPREGS" = xyes; then :
16386   ac_have_decl=1
16387 else
16388   ac_have_decl=0
16389 fi
16390
16391 cat >>confdefs.h <<_ACEOF
16392 @%:@define HAVE_DECL_PT_GETFPREGS $ac_have_decl
16393 _ACEOF
16394 ac_fn_c_check_decl "$LINENO" "PT_CONTINUE" "ac_cv_have_decl_PT_CONTINUE" "$ac_includes_default
16395 #if HAVE_SYS_TYPES_H
16396 #include <sys/types.h>
16397 #endif
16398 #include <sys/ptrace.h>
16399
16400 "
16401 if test "x$ac_cv_have_decl_PT_CONTINUE" = xyes; then :
16402   ac_have_decl=1
16403 else
16404   ac_have_decl=0
16405 fi
16406
16407 cat >>confdefs.h <<_ACEOF
16408 @%:@define HAVE_DECL_PT_CONTINUE $ac_have_decl
16409 _ACEOF
16410 ac_fn_c_check_decl "$LINENO" "PT_TRACE_ME" "ac_cv_have_decl_PT_TRACE_ME" "$ac_includes_default
16411 #if HAVE_SYS_TYPES_H
16412 #include <sys/types.h>
16413 #endif
16414 #include <sys/ptrace.h>
16415
16416 "
16417 if test "x$ac_cv_have_decl_PT_TRACE_ME" = xyes; then :
16418   ac_have_decl=1
16419 else
16420   ac_have_decl=0
16421 fi
16422
16423 cat >>confdefs.h <<_ACEOF
16424 @%:@define HAVE_DECL_PT_TRACE_ME $ac_have_decl
16425 _ACEOF
16426 ac_fn_c_check_decl "$LINENO" "PT_STEP" "ac_cv_have_decl_PT_STEP" "$ac_includes_default
16427 #if HAVE_SYS_TYPES_H
16428 #include <sys/types.h>
16429 #endif
16430 #include <sys/ptrace.h>
16431
16432 "
16433 if test "x$ac_cv_have_decl_PT_STEP" = xyes; then :
16434   ac_have_decl=1
16435 else
16436   ac_have_decl=0
16437 fi
16438
16439 cat >>confdefs.h <<_ACEOF
16440 @%:@define HAVE_DECL_PT_STEP $ac_have_decl
16441 _ACEOF
16442 ac_fn_c_check_decl "$LINENO" "PT_SYSCALL" "ac_cv_have_decl_PT_SYSCALL" "$ac_includes_default
16443 #if HAVE_SYS_TYPES_H
16444 #include <sys/types.h>
16445 #endif
16446 #include <sys/ptrace.h>
16447
16448 "
16449 if test "x$ac_cv_have_decl_PT_SYSCALL" = xyes; then :
16450   ac_have_decl=1
16451 else
16452   ac_have_decl=0
16453 fi
16454
16455 cat >>confdefs.h <<_ACEOF
16456 @%:@define HAVE_DECL_PT_SYSCALL $ac_have_decl
16457 _ACEOF
16458
16459
16460 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
16461                 ttrace mincore
16462 do :
16463   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16466   cat >>confdefs.h <<_ACEOF
16467 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16468 _ACEOF
16469  
16470 fi
16471 done
16472
16473
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with AltiVec" >&5
16475 $as_echo_n "checking if building with AltiVec... " >&6; }
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h.  */
16478
16479 #ifndef __ALTIVEC__
16480 # error choke
16481 #endif
16482
16483 _ACEOF
16484 if ac_fn_c_try_compile "$LINENO"; then :
16485   use_altivec=yes
16486 else
16487   use_altivec=no
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490  if test x$use_altivec = xyes; then
16491   USE_ALTIVEC_TRUE=
16492   USE_ALTIVEC_FALSE='#'
16493 else
16494   USE_ALTIVEC_TRUE='#'
16495   USE_ALTIVEC_FALSE=
16496 fi
16497
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_altivec" >&5
16499 $as_echo "$use_altivec" >&6; }
16500
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h.  */
16503
16504 #ifndef __powerpc64__
16505 # error choke
16506 #endif
16507
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510   ppc_bits=64
16511 else
16512   ppc_bits=32
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515
16516  
16517
16518     case $build_cpu in @%:@(
16519   arm*) :
16520     build_arch=arm ;; @%:@(
16521   i?86) :
16522     build_arch=x86 ;; @%:@(
16523   hppa*) :
16524     build_arch=hppa ;; @%:@(
16525   mips*) :
16526     build_arch=mips ;; @%:@(
16527   powerpc*) :
16528     build_arch=ppc$ppc_bits ;; @%:@(
16529   sh*) :
16530     build_arch=sh ;; @%:@(
16531   amd64) :
16532     build_arch=x86_64 ;; @%:@(
16533   *) :
16534     build_arch=$build_cpu ;;
16535 esac
16536
16537
16538     case $host_cpu in @%:@(
16539   arm*) :
16540     host_arch=arm ;; @%:@(
16541   i?86) :
16542     host_arch=x86 ;; @%:@(
16543   hppa*) :
16544     host_arch=hppa ;; @%:@(
16545   mips*) :
16546     host_arch=mips ;; @%:@(
16547   powerpc*) :
16548     host_arch=ppc$ppc_bits ;; @%:@(
16549   sh*) :
16550     host_arch=sh ;; @%:@(
16551   amd64) :
16552     host_arch=x86_64 ;; @%:@(
16553   *) :
16554     host_arch=$host_cpu ;;
16555 esac
16556
16557
16558     case $target_cpu in @%:@(
16559   arm*) :
16560     target_arch=arm ;; @%:@(
16561   i?86) :
16562     target_arch=x86 ;; @%:@(
16563   hppa*) :
16564     target_arch=hppa ;; @%:@(
16565   mips*) :
16566     target_arch=mips ;; @%:@(
16567   powerpc*) :
16568     target_arch=ppc$ppc_bits ;; @%:@(
16569   sh*) :
16570     target_arch=sh ;; @%:@(
16571   amd64) :
16572     target_arch=x86_64 ;; @%:@(
16573   *) :
16574     target_arch=$target_cpu ;;
16575 esac
16576
16577
16578 @%:@ Check whether --enable-coredump was given.
16579 if test "${enable_coredump+set}" = set; then :
16580   enableval=$enable_coredump; 
16581 else
16582   case $host_arch in @%:@(
16583   arm*|mips*|sh*|x86*) :
16584     enable_coredump=yes ;; @%:@(
16585   *) :
16586     enable_coredump=no ;;
16587 esac
16588
16589 fi
16590
16591
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should build libunwind-coredump" >&5
16593 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coredump" >&5
16595 $as_echo "$enable_coredump" >&6; }
16596
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build architecture" >&5
16598 $as_echo_n "checking for build architecture... " >&6; }
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_arch" >&5
16600 $as_echo "$build_arch" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host architecture" >&5
16602 $as_echo_n "checking for host architecture... " >&6; }
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_arch" >&5
16604 $as_echo "$host_arch" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
16606 $as_echo_n "checking for target architecture... " >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_arch" >&5
16608 $as_echo "$target_arch" >&6; }
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target operating system" >&5
16610 $as_echo_n "checking for target operating system... " >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
16612 $as_echo "$target_os" >&6; }
16613
16614  if test x$enable_coredump = xyes; then
16615   BUILD_COREDUMP_TRUE=
16616   BUILD_COREDUMP_FALSE='#'
16617 else
16618   BUILD_COREDUMP_TRUE='#'
16619   BUILD_COREDUMP_FALSE=
16620 fi
16621
16622  if test x$target_arch != x$host_arch; then
16623   REMOTE_ONLY_TRUE=
16624   REMOTE_ONLY_FALSE='#'
16625 else
16626   REMOTE_ONLY_TRUE='#'
16627   REMOTE_ONLY_FALSE=
16628 fi
16629
16630  if test x$target_arch = xarm; then
16631   ARCH_ARM_TRUE=
16632   ARCH_ARM_FALSE='#'
16633 else
16634   ARCH_ARM_TRUE='#'
16635   ARCH_ARM_FALSE=
16636 fi
16637
16638  if test x$target_arch = xia64; then
16639   ARCH_IA64_TRUE=
16640   ARCH_IA64_FALSE='#'
16641 else
16642   ARCH_IA64_TRUE='#'
16643   ARCH_IA64_FALSE=
16644 fi
16645
16646  if test x$target_arch = xhppa; then
16647   ARCH_HPPA_TRUE=
16648   ARCH_HPPA_FALSE='#'
16649 else
16650   ARCH_HPPA_TRUE='#'
16651   ARCH_HPPA_FALSE=
16652 fi
16653
16654  if test x$target_arch = xmips; then
16655   ARCH_MIPS_TRUE=
16656   ARCH_MIPS_FALSE='#'
16657 else
16658   ARCH_MIPS_TRUE='#'
16659   ARCH_MIPS_FALSE=
16660 fi
16661
16662  if test x$target_arch = xx86; then
16663   ARCH_X86_TRUE=
16664   ARCH_X86_FALSE='#'
16665 else
16666   ARCH_X86_TRUE='#'
16667   ARCH_X86_FALSE=
16668 fi
16669
16670  if test x$target_arch = xx86_64; then
16671   ARCH_X86_64_TRUE=
16672   ARCH_X86_64_FALSE='#'
16673 else
16674   ARCH_X86_64_TRUE='#'
16675   ARCH_X86_64_FALSE=
16676 fi
16677
16678  if test x$target_arch = xppc32; then
16679   ARCH_PPC32_TRUE=
16680   ARCH_PPC32_FALSE='#'
16681 else
16682   ARCH_PPC32_TRUE='#'
16683   ARCH_PPC32_FALSE=
16684 fi
16685
16686  if test x$target_arch = xppc64; then
16687   ARCH_PPC64_TRUE=
16688   ARCH_PPC64_FALSE='#'
16689 else
16690   ARCH_PPC64_TRUE='#'
16691   ARCH_PPC64_FALSE=
16692 fi
16693
16694  if test x$target_arch = xsh; then
16695   ARCH_SH_TRUE=
16696   ARCH_SH_FALSE='#'
16697 else
16698   ARCH_SH_TRUE='#'
16699   ARCH_SH_FALSE=
16700 fi
16701
16702  if expr x$target_os : xlinux >/dev/null; then
16703   OS_LINUX_TRUE=
16704   OS_LINUX_FALSE='#'
16705 else
16706   OS_LINUX_TRUE='#'
16707   OS_LINUX_FALSE=
16708 fi
16709
16710  if expr x$target_os : xhpux >/dev/null; then
16711   OS_HPUX_TRUE=
16712   OS_HPUX_FALSE='#'
16713 else
16714   OS_HPUX_TRUE='#'
16715   OS_HPUX_FALSE=
16716 fi
16717
16718  if expr x$target_os : xfreebsd >/dev/null; then
16719   OS_FREEBSD_TRUE=
16720   OS_FREEBSD_FALSE='#'
16721 else
16722   OS_FREEBSD_TRUE='#'
16723   OS_FREEBSD_FALSE=
16724 fi
16725
16726
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF helper width" >&5
16728 $as_echo_n "checking for ELF helper width... " >&6; }
16729 case "${target_arch}" in
16730 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32" >&5
16731 $as_echo "32" >&6; };;
16732 (ia64|ppc64|x86_64)    use_elf64=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64" >&5
16733 $as_echo "64" >&6; };;
16734 (mips)                 use_elfxx=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: xx" >&5
16735 $as_echo "xx" >&6; };;
16736 *)                     as_fn_error $? "Unknown ELF target: ${target_arch}" "$LINENO" 5
16737 esac
16738  if test x$use_elf32 = xyes; then
16739   USE_ELF32_TRUE=
16740   USE_ELF32_FALSE='#'
16741 else
16742   USE_ELF32_TRUE='#'
16743   USE_ELF32_FALSE=
16744 fi
16745
16746  if test x$use_elf64 = xyes; then
16747   USE_ELF64_TRUE=
16748   USE_ELF64_FALSE='#'
16749 else
16750   USE_ELF64_TRUE='#'
16751   USE_ELF64_FALSE=
16752 fi
16753
16754  if test x$use_elfxx = xyes; then
16755   USE_ELFXX_TRUE=
16756   USE_ELFXX_FALSE='#'
16757 else
16758   USE_ELFXX_TRUE='#'
16759   USE_ELFXX_FALSE=
16760 fi
16761
16762
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DWARF support" >&5
16764 $as_echo_n "checking whether to include DWARF support... " >&6; }
16765 if test x$target_arch != xia64; then
16766   use_dwarf=yes
16767 else
16768   use_dwarf=no
16769 fi
16770  if test x$use_dwarf = xyes; then
16771   USE_DWARF_TRUE=
16772   USE_DWARF_FALSE='#'
16773 else
16774   USE_DWARF_TRUE='#'
16775   USE_DWARF_FALSE=
16776 fi
16777
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_dwarf" >&5
16779 $as_echo "$use_dwarf" >&6; }
16780
16781 if test x$target_arch = xppc64; then
16782         libdir='${exec_prefix}/lib64'
16783         { $as_echo "$as_me:${as_lineno-$LINENO}: PowerPC64 detected, lib will be installed ${libdir}" >&5
16784 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
16785         
16786 fi
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to restrict build to remote support" >&5
16789 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
16790 if test x$target_arch != x$host_arch; then
16791   CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
16792   remote_only=yes
16793 else
16794   remote_only=no
16795 fi
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $remote_only" >&5
16797 $as_echo "$remote_only" >&6; }
16798
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug support" >&5
16800 $as_echo_n "checking whether to enable debug support... " >&6; }
16801 @%:@ Check whether --enable-debug was given.
16802 if test "${enable_debug+set}" = set; then :
16803   enableval=$enable_debug; 
16804 fi
16805
16806 if test x$enable_debug = xyes; then
16807   CPPFLAGS="${CPPFLAGS} -DDEBUG"
16808 else
16809   CPPFLAGS="${CPPFLAGS} -DNDEBUG"
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16812 $as_echo "$enable_debug" >&6; }
16813
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++ exception support" >&5
16815 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
16816 @%:@ Check whether --enable-cxx_exceptions was given.
16817 if test "${enable_cxx_exceptions+set}" = set; then :
16818   enableval=$enable_cxx_exceptions; 
16819 else
16820   
16821 # C++ exception handling doesn't work too well on x86
16822 case $target_arch in
16823   x86*) enable_cxx_exceptions=no;;
16824   arm*) enable_cxx_exceptions=no;;
16825   mips*) enable_cxx_exceptions=no;;
16826   *) enable_cxx_exceptions=yes;;
16827 esac
16828
16829 fi
16830
16831
16832  if test x$enable_cxx_exceptions = xyes; then
16833   SUPPORT_CXX_EXCEPTIONS_TRUE=
16834   SUPPORT_CXX_EXCEPTIONS_FALSE='#'
16835 else
16836   SUPPORT_CXX_EXCEPTIONS_TRUE='#'
16837   SUPPORT_CXX_EXCEPTIONS_FALSE=
16838 fi
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cxx_exceptions" >&5
16841 $as_echo "$enable_cxx_exceptions" >&6; }
16842
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to load .debug_frame sections" >&5
16844 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
16845 @%:@ Check whether --enable-debug_frame was given.
16846 if test "${enable_debug_frame+set}" = set; then :
16847   enableval=$enable_debug_frame; 
16848 else
16849   
16850 case "${target_arch}" in
16851   (arm) enable_debug_frame=yes;;
16852   (*)   enable_debug_frame=no;;
16853 esac
16854 fi
16855
16856 if test x$enable_debug_frame = xyes; then
16857   
16858 $as_echo "@%:@define CONFIG_DEBUG_FRAME /**/" >>confdefs.h
16859
16860 fi
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_frame" >&5
16862 $as_echo "$enable_debug_frame" >&6; }
16863
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to block signals during mutex ops" >&5
16865 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
16866 @%:@ Check whether --enable-block_signals was given.
16867 if test "${enable_block_signals+set}" = set; then :
16868   enableval=$enable_block_signals; 
16869 else
16870   enable_block_signals=yes
16871 fi
16872
16873 if test x$enable_block_signals = xyes; then
16874   
16875 $as_echo "@%:@define CONFIG_BLOCK_SIGNALS /**/" >>confdefs.h
16876
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_block_signals" >&5
16879 $as_echo "$enable_block_signals" >&6; }
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to validate memory addresses before use" >&5
16882 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
16883 @%:@ Check whether --enable-conservative_checks was given.
16884 if test "${enable_conservative_checks+set}" = set; then :
16885   enableval=$enable_conservative_checks; 
16886 else
16887   enable_conservative_checks=yes
16888 fi
16889
16890 if test x$enable_conservative_checks = xyes; then
16891   
16892 $as_echo "@%:@define CONSERVATIVE_CHECKS 1" >>confdefs.h
16893
16894 fi
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_conservative_checks" >&5
16896 $as_echo "$enable_conservative_checks" >&6; }
16897
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable msabi support" >&5
16899 $as_echo_n "checking whether to enable msabi support... " >&6; }
16900 @%:@ Check whether --enable-msabi_support was given.
16901 if test "${enable_msabi_support+set}" = set; then :
16902   enableval=$enable_msabi_support; 
16903 fi
16904
16905 if test x$enable_msabi_support = xyes; then
16906   
16907 $as_echo "@%:@define CONFIG_MSABI_SUPPORT /**/" >>confdefs.h
16908
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_msabi_support" >&5
16911 $as_echo "$enable_msabi_support" >&6; }
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LZMA-compressed symbol tables" >&5
16914 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
16915 @%:@ Check whether --enable-minidebuginfo was given.
16916 if test "${enable_minidebuginfo+set}" = set; then :
16917   enableval=$enable_minidebuginfo; 
16918 else
16919   enable_minidebuginfo=auto
16920 fi
16921
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_minidebuginfo" >&5
16923 $as_echo "$enable_minidebuginfo" >&6; }
16924 if test x$enable_minidebuginfo != xno; then
16925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_mf_is_supported in -llzma" >&5
16926 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
16927 if ${ac_cv_lib_lzma_lzma_mf_is_supported+:} false; then :
16928   $as_echo_n "(cached) " >&6
16929 else
16930   ac_check_lib_save_LIBS=$LIBS
16931 LIBS="-llzma  $LIBS"
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h.  */
16934
16935 /* Override any GCC internal prototype to avoid an error.
16936    Use char because int might match the return type of a GCC
16937    builtin and then its argument prototype would still apply.  */
16938 #ifdef __cplusplus
16939 extern "C"
16940 #endif
16941 char lzma_mf_is_supported ();
16942 int
16943 main ()
16944 {
16945 return lzma_mf_is_supported ();
16946   ;
16947   return 0;
16948 }
16949 _ACEOF
16950 if ac_fn_c_try_link "$LINENO"; then :
16951   ac_cv_lib_lzma_lzma_mf_is_supported=yes
16952 else
16953   ac_cv_lib_lzma_lzma_mf_is_supported=no
16954 fi
16955 rm -f core conftest.err conftest.$ac_objext \
16956     conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16958 fi
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
16960 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
16961 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = xyes; then :
16962   LIBLZMA=-lzma
16963
16964     
16965 $as_echo "@%:@define HAVE_LZMA 1" >>confdefs.h
16966
16967     enable_minidebuginfo=yes
16968 else
16969   if test x$enable_minidebuginfo = xyes; then
16970       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16972 as_fn_error $? "liblzma not found
16973 See \`config.log' for more details" "$LINENO" 5; }
16974     fi
16975 fi
16976
16977 fi
16978  if test x$enable_minidebuginfo = xyes; then
16979   HAVE_LZMA_TRUE=
16980   HAVE_LZMA_FALSE='#'
16981 else
16982   HAVE_LZMA_TRUE='#'
16983   HAVE_LZMA_FALSE=
16984 fi
16985
16986
16987 if test "x$enable___thread" != xno; then
16988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
16989 $as_echo_n "checking for __thread... " >&6; }
16990 if ${libc_cv_gcc___thread+:} false; then :
16991   $as_echo_n "(cached) " >&6
16992 else
16993   cat > conftest.c <<\EOF
16994     __thread int a = 42;
16995 EOF
16996   if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
16997   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001   test $ac_status = 0; }; }; then
17002     libc_cv_gcc___thread=yes
17003   else
17004     libc_cv_gcc___thread=no
17005   fi
17006   rm -f conftest*
17007 fi
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
17009 $as_echo "$libc_cv_gcc___thread" >&6; }
17010   if test "$libc_cv_gcc___thread" = yes; then
17011     
17012 $as_echo "@%:@define HAVE___THREAD 1" >>confdefs.h
17013
17014   fi
17015 else
17016   libc_cv_gcc___thread=no
17017 fi
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel compiler" >&5
17020 $as_echo_n "checking for Intel compiler... " >&6; }
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h.  */
17023
17024 int
17025 main ()
17026 {
17027 #ifndef __INTEL_COMPILER
17028 #error choke me
17029 #endif
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 if ac_fn_c_try_compile "$LINENO"; then :
17035   intel_compiler=yes
17036 else
17037   intel_compiler=no
17038 fi
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040
17041 if test x$GCC = xyes -a x$intel_compiler != xyes; then
17042   CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
17043   LIBCRTS="-lgcc"
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_compiler" >&5
17046 $as_echo "$intel_compiler" >&6; }
17047
17048 if test x$intel_compiler = xyes; then
17049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -static-libcxa" >&5
17050 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
17051   save_LDFLAGS="$LDFLAGS"
17052   LDFLAGS="$LDFLAGS -static-libcxa"
17053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h.  */
17055
17056 int
17057 main ()
17058 {
17059
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065   have_static_libcxa=yes
17066 else
17067   have_static_libcxa=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext \
17070     conftest$ac_exeext conftest.$ac_ext
17071   LDFLAGS="$save_LDFLAGS"
17072   if test "x$have_static_libcxa" = xyes; then
17073     LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
17074   fi
17075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libcxa" >&5
17076 $as_echo "$have_static_libcxa" >&6; }
17077 fi
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin___clear_cache" >&5
17080 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h.  */
17083
17084 int
17085 main ()
17086 {
17087 __builtin___clear_cache(0, 0)
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093   have__builtin___clear_cache=yes
17094 else
17095   have__builtin___clear_cache=no
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext \
17098     conftest$ac_exeext conftest.$ac_ext
17099 if test x$have__builtin___clear_cache = xyes; then
17100   
17101 $as_echo "@%:@define HAVE__BUILTIN___CLEAR_CACHE 1" >>confdefs.h
17102
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have__builtin___clear_cache" >&5
17105 $as_echo "$have__builtin___clear_cache" >&6; }
17106
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync atomics" >&5
17108 $as_echo_n "checking for __sync atomics... " >&6; }
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h.  */
17111
17112 int
17113 main ()
17114 {
17115
17116     __sync_bool_compare_and_swap((int *)0, 0, 1);
17117     __sync_fetch_and_add((int *)0, 1);
17118     
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_link "$LINENO"; then :
17124   have_sync_atomics=yes
17125 else
17126   have_sync_atomics=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext \
17129     conftest$ac_exeext conftest.$ac_ext
17130 if test x$have_sync_atomics = xyes; then
17131   
17132 $as_echo "@%:@define HAVE_SYNC_ATOMICS 1" >>confdefs.h
17133
17134 fi
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_atomics" >&5
17136 $as_echo "$have_sync_atomics" >&6; }
17137
17138 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
17139
17140 arch="$target_arch"
17141 ARCH=`echo $target_arch | tr a-z A-Z`
17142
17143 PKG_MAJOR=1
17144 PKG_MINOR=1
17145 PKG_EXTRA=
17146 PKG_MAINTAINER=libunwind-devel@nongnu.org
17147
17148 old_LIBS="$LIBS"
17149 LIBS=""
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
17151 $as_echo_n "checking for library containing backtrace... " >&6; }
17152 if ${ac_cv_search_backtrace+:} false; then :
17153   $as_echo_n "(cached) " >&6
17154 else
17155   ac_func_search_save_LIBS=$LIBS
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h.  */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160    Use char because int might match the return type of a GCC
17161    builtin and then its argument prototype would still apply.  */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char backtrace ();
17166 int
17167 main ()
17168 {
17169 return backtrace ();
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 for ac_lib in '' execinfo; do
17175   if test -z "$ac_lib"; then
17176     ac_res="none required"
17177   else
17178     ac_res=-l$ac_lib
17179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17180   fi
17181   if ac_fn_c_try_link "$LINENO"; then :
17182   ac_cv_search_backtrace=$ac_res
17183 fi
17184 rm -f core conftest.err conftest.$ac_objext \
17185     conftest$ac_exeext
17186   if ${ac_cv_search_backtrace+:} false; then :
17187   break
17188 fi
17189 done
17190 if ${ac_cv_search_backtrace+:} false; then :
17191   
17192 else
17193   ac_cv_search_backtrace=no
17194 fi
17195 rm conftest.$ac_ext
17196 LIBS=$ac_func_search_save_LIBS
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
17199 $as_echo "$ac_cv_search_backtrace" >&6; }
17200 ac_res=$ac_cv_search_backtrace
17201 if test "$ac_res" != no; then :
17202   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17203   
17204 fi
17205
17206 LIBS="$old_LIBS"
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222 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"
17223
17224 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"
17225
17226 cat >confcache <<\_ACEOF
17227 # This file is a shell script that caches the results of configure
17228 # tests run on this system so they can be shared between configure
17229 # scripts and configure runs, see configure's option --config-cache.
17230 # It is not useful on other systems.  If it contains results you don't
17231 # want to keep, you may remove or edit it.
17232 #
17233 # config.status only pays attention to the cache file if you give it
17234 # the --recheck option to rerun configure.
17235 #
17236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17238 # following values.
17239
17240 _ACEOF
17241
17242 # The following way of writing the cache mishandles newlines in values,
17243 # but we know of no workaround that is simple, portable, and efficient.
17244 # So, we kill variables containing newlines.
17245 # Ultrix sh set writes to stderr and can't be redirected directly,
17246 # and sets the high bit in the cache file unless we assign to the vars.
17247 (
17248   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17249     eval ac_val=\$$ac_var
17250     case $ac_val in #(
17251     *${as_nl}*)
17252       case $ac_var in #(
17253       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17255       esac
17256       case $ac_var in #(
17257       _ | IFS | as_nl) ;; #(
17258       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17259       *) { eval $ac_var=; unset $ac_var;} ;;
17260       esac ;;
17261     esac
17262   done
17263
17264   (set) 2>&1 |
17265     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17266     *${as_nl}ac_space=\ *)
17267       # `set' does not quote correctly, so add quotes: double-quote
17268       # substitution turns \\\\ into \\, and sed turns \\ into \.
17269       sed -n \
17270         "s/'/'\\\\''/g;
17271           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17272       ;; #(
17273     *)
17274       # `set' quotes correctly as required by POSIX, so do not add quotes.
17275       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17276       ;;
17277     esac |
17278     sort
17279 ) |
17280   sed '
17281      /^ac_cv_env_/b end
17282      t clear
17283      :clear
17284      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17285      t end
17286      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17287      :end' >>confcache
17288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17289   if test -w "$cache_file"; then
17290     if test "x$cache_file" != "x/dev/null"; then
17291       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17292 $as_echo "$as_me: updating cache $cache_file" >&6;}
17293       if test ! -f "$cache_file" || test -h "$cache_file"; then
17294         cat confcache >"$cache_file"
17295       else
17296         case $cache_file in #(
17297         */* | ?:*)
17298           mv -f confcache "$cache_file"$$ &&
17299           mv -f "$cache_file"$$ "$cache_file" ;; #(
17300         *)
17301           mv -f confcache "$cache_file" ;;
17302         esac
17303       fi
17304     fi
17305   else
17306     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17308   fi
17309 fi
17310 rm -f confcache
17311
17312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17313 # Let make expand exec_prefix.
17314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17315
17316 DEFS=-DHAVE_CONFIG_H
17317
17318 ac_libobjs=
17319 ac_ltlibobjs=
17320 U=
17321 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
17322   # 1. Remove the extension, and $U if already installed.
17323   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17324   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17325   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17326   #    will be set to the directory where LIBOBJS objects are built.
17327   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17328   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17329 done
17330 LIB@&t@OBJS=$ac_libobjs
17331
17332 LTLIBOBJS=$ac_ltlibobjs
17333
17334
17335  if test -n "$EXEEXT"; then
17336   am__EXEEXT_TRUE=
17337   am__EXEEXT_FALSE='#'
17338 else
17339   am__EXEEXT_TRUE='#'
17340   am__EXEEXT_FALSE=
17341 fi
17342
17343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17344   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17346 fi
17347 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17348   as_fn_error $? "conditional \"AMDEP\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17350 fi
17351 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17352   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354 fi
17355 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17356   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358 fi
17359 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17360   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17362 fi
17363 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
17364   as_fn_error $? "conditional \"USE_ALTIVEC\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17366 fi
17367 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
17368   as_fn_error $? "conditional \"BUILD_COREDUMP\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17370 fi
17371 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
17372   as_fn_error $? "conditional \"REMOTE_ONLY\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17374 fi
17375 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17376   as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17378 fi
17379 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
17380   as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17382 fi
17383 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
17384   as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17386 fi
17387 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
17388   as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
17389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390 fi
17391 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17392   as_fn_error $? "conditional \"ARCH_X86\" was never defined.
17393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17394 fi
17395 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
17396   as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
17397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17398 fi
17399 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
17400   as_fn_error $? "conditional \"ARCH_PPC32\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 fi
17403 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
17404   as_fn_error $? "conditional \"ARCH_PPC64\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406 fi
17407 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
17408   as_fn_error $? "conditional \"ARCH_SH\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17410 fi
17411 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
17412   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17414 fi
17415 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
17416   as_fn_error $? "conditional \"OS_HPUX\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17418 fi
17419 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
17420   as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17422 fi
17423 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
17424   as_fn_error $? "conditional \"USE_ELF32\" was never defined.
17425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17426 fi
17427 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
17428   as_fn_error $? "conditional \"USE_ELF64\" was never defined.
17429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17430 fi
17431 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
17432   as_fn_error $? "conditional \"USE_ELFXX\" was never defined.
17433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17434 fi
17435 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
17436   as_fn_error $? "conditional \"USE_DWARF\" was never defined.
17437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17438 fi
17439 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
17440   as_fn_error $? "conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
17441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17442 fi
17443 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
17444   as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
17445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17446 fi
17447
17448 : "${CONFIG_STATUS=./config.status}"
17449 ac_write_fail=0
17450 ac_clean_files_save=$ac_clean_files
17451 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17453 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17454 as_write_fail=0
17455 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17456 #! $SHELL
17457 # Generated by $as_me.
17458 # Run this file to recreate the current configuration.
17459 # Compiler output produced by configure, useful for debugging
17460 # configure, is in config.log if it exists.
17461
17462 debug=false
17463 ac_cs_recheck=false
17464 ac_cs_silent=false
17465
17466 SHELL=\${CONFIG_SHELL-$SHELL}
17467 export SHELL
17468 _ASEOF
17469 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17470 ## -------------------- ##
17471 ## M4sh Initialization. ##
17472 ## -------------------- ##
17473
17474 # Be more Bourne compatible
17475 DUALCASE=1; export DUALCASE # for MKS sh
17476 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17477   emulate sh
17478   NULLCMD=:
17479   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17480   # is contrary to our usage.  Disable this feature.
17481   alias -g '${1+"$@"}'='"$@"'
17482   setopt NO_GLOB_SUBST
17483 else
17484   case `(set -o) 2>/dev/null` in @%:@(
17485   *posix*) :
17486     set -o posix ;; @%:@(
17487   *) :
17488      ;;
17489 esac
17490 fi
17491
17492
17493 as_nl='
17494 '
17495 export as_nl
17496 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17497 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17498 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17499 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17500 # Prefer a ksh shell builtin over an external printf program on Solaris,
17501 # but without wasting forks for bash or zsh.
17502 if test -z "$BASH_VERSION$ZSH_VERSION" \
17503     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17504   as_echo='print -r --'
17505   as_echo_n='print -rn --'
17506 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17507   as_echo='printf %s\n'
17508   as_echo_n='printf %s'
17509 else
17510   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17511     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17512     as_echo_n='/usr/ucb/echo -n'
17513   else
17514     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17515     as_echo_n_body='eval
17516       arg=$1;
17517       case $arg in @%:@(
17518       *"$as_nl"*)
17519         expr "X$arg" : "X\\(.*\\)$as_nl";
17520         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17521       esac;
17522       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17523     '
17524     export as_echo_n_body
17525     as_echo_n='sh -c $as_echo_n_body as_echo'
17526   fi
17527   export as_echo_body
17528   as_echo='sh -c $as_echo_body as_echo'
17529 fi
17530
17531 # The user is always right.
17532 if test "${PATH_SEPARATOR+set}" != set; then
17533   PATH_SEPARATOR=:
17534   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17535     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17536       PATH_SEPARATOR=';'
17537   }
17538 fi
17539
17540
17541 # IFS
17542 # We need space, tab and new line, in precisely that order.  Quoting is
17543 # there to prevent editors from complaining about space-tab.
17544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17545 # splitting by setting IFS to empty value.)
17546 IFS=" ""        $as_nl"
17547
17548 # Find who we are.  Look in the path if we contain no directory separator.
17549 as_myself=
17550 case $0 in @%:@((
17551   *[\\/]* ) as_myself=$0 ;;
17552   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17554 do
17555   IFS=$as_save_IFS
17556   test -z "$as_dir" && as_dir=.
17557     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17558   done
17559 IFS=$as_save_IFS
17560
17561      ;;
17562 esac
17563 # We did not find ourselves, most probably we were run as `sh COMMAND'
17564 # in which case we are not to be found in the path.
17565 if test "x$as_myself" = x; then
17566   as_myself=$0
17567 fi
17568 if test ! -f "$as_myself"; then
17569   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17570   exit 1
17571 fi
17572
17573 # Unset variables that we do not need and which cause bugs (e.g. in
17574 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17575 # suppresses any "Segmentation fault" message there.  '((' could
17576 # trigger a bug in pdksh 5.2.14.
17577 for as_var in BASH_ENV ENV MAIL MAILPATH
17578 do eval test x\${$as_var+set} = xset \
17579   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17580 done
17581 PS1='$ '
17582 PS2='> '
17583 PS4='+ '
17584
17585 # NLS nuisances.
17586 LC_ALL=C
17587 export LC_ALL
17588 LANGUAGE=C
17589 export LANGUAGE
17590
17591 # CDPATH.
17592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17593
17594
17595 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
17596 @%:@ ----------------------------------------
17597 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17598 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17599 @%:@ script with STATUS, using 1 if that was 0.
17600 as_fn_error ()
17601 {
17602   as_status=$1; test $as_status -eq 0 && as_status=1
17603   if test "$4"; then
17604     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17605     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17606   fi
17607   $as_echo "$as_me: error: $2" >&2
17608   as_fn_exit $as_status
17609 } @%:@ as_fn_error
17610
17611
17612 @%:@ as_fn_set_status STATUS
17613 @%:@ -----------------------
17614 @%:@ Set @S|@? to STATUS, without forking.
17615 as_fn_set_status ()
17616 {
17617   return $1
17618 } @%:@ as_fn_set_status
17619
17620 @%:@ as_fn_exit STATUS
17621 @%:@ -----------------
17622 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17623 as_fn_exit ()
17624 {
17625   set +e
17626   as_fn_set_status $1
17627   exit $1
17628 } @%:@ as_fn_exit
17629
17630 @%:@ as_fn_unset VAR
17631 @%:@ ---------------
17632 @%:@ Portably unset VAR.
17633 as_fn_unset ()
17634 {
17635   { eval $1=; unset $1;}
17636 }
17637 as_unset=as_fn_unset
17638 @%:@ as_fn_append VAR VALUE
17639 @%:@ ----------------------
17640 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
17641 @%:@ advantage of any shell optimizations that allow amortized linear growth over
17642 @%:@ repeated appends, instead of the typical quadratic growth present in naive
17643 @%:@ implementations.
17644 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17645   eval 'as_fn_append ()
17646   {
17647     eval $1+=\$2
17648   }'
17649 else
17650   as_fn_append ()
17651   {
17652     eval $1=\$$1\$2
17653   }
17654 fi # as_fn_append
17655
17656 @%:@ as_fn_arith ARG...
17657 @%:@ ------------------
17658 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
17659 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
17660 @%:@ must be portable across @S|@(()) and expr.
17661 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17662   eval 'as_fn_arith ()
17663   {
17664     as_val=$(( $* ))
17665   }'
17666 else
17667   as_fn_arith ()
17668   {
17669     as_val=`expr "$@" || test $? -eq 1`
17670   }
17671 fi # as_fn_arith
17672
17673
17674 if expr a : '\(a\)' >/dev/null 2>&1 &&
17675    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17676   as_expr=expr
17677 else
17678   as_expr=false
17679 fi
17680
17681 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17682   as_basename=basename
17683 else
17684   as_basename=false
17685 fi
17686
17687 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17688   as_dirname=dirname
17689 else
17690   as_dirname=false
17691 fi
17692
17693 as_me=`$as_basename -- "$0" ||
17694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17695          X"$0" : 'X\(//\)$' \| \
17696          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17697 $as_echo X/"$0" |
17698     sed '/^.*\/\([^/][^/]*\)\/*$/{
17699             s//\1/
17700             q
17701           }
17702           /^X\/\(\/\/\)$/{
17703             s//\1/
17704             q
17705           }
17706           /^X\/\(\/\).*/{
17707             s//\1/
17708             q
17709           }
17710           s/.*/./; q'`
17711
17712 # Avoid depending upon Character Ranges.
17713 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17714 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17715 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17716 as_cr_digits='0123456789'
17717 as_cr_alnum=$as_cr_Letters$as_cr_digits
17718
17719 ECHO_C= ECHO_N= ECHO_T=
17720 case `echo -n x` in @%:@(((((
17721 -n*)
17722   case `echo 'xy\c'` in
17723   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17724   xy)  ECHO_C='\c';;
17725   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17726        ECHO_T=' ';;
17727   esac;;
17728 *)
17729   ECHO_N='-n';;
17730 esac
17731
17732 rm -f conf$$ conf$$.exe conf$$.file
17733 if test -d conf$$.dir; then
17734   rm -f conf$$.dir/conf$$.file
17735 else
17736   rm -f conf$$.dir
17737   mkdir conf$$.dir 2>/dev/null
17738 fi
17739 if (echo >conf$$.file) 2>/dev/null; then
17740   if ln -s conf$$.file conf$$ 2>/dev/null; then
17741     as_ln_s='ln -s'
17742     # ... but there are two gotchas:
17743     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17744     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17745     # In both cases, we have to default to `cp -p'.
17746     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17747       as_ln_s='cp -p'
17748   elif ln conf$$.file conf$$ 2>/dev/null; then
17749     as_ln_s=ln
17750   else
17751     as_ln_s='cp -p'
17752   fi
17753 else
17754   as_ln_s='cp -p'
17755 fi
17756 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17757 rmdir conf$$.dir 2>/dev/null
17758
17759
17760 @%:@ as_fn_mkdir_p
17761 @%:@ -------------
17762 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17763 as_fn_mkdir_p ()
17764 {
17765
17766   case $as_dir in #(
17767   -*) as_dir=./$as_dir;;
17768   esac
17769   test -d "$as_dir" || eval $as_mkdir_p || {
17770     as_dirs=
17771     while :; do
17772       case $as_dir in #(
17773       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17774       *) as_qdir=$as_dir;;
17775       esac
17776       as_dirs="'$as_qdir' $as_dirs"
17777       as_dir=`$as_dirname -- "$as_dir" ||
17778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17779          X"$as_dir" : 'X\(//\)[^/]' \| \
17780          X"$as_dir" : 'X\(//\)$' \| \
17781          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17782 $as_echo X"$as_dir" |
17783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17784             s//\1/
17785             q
17786           }
17787           /^X\(\/\/\)[^/].*/{
17788             s//\1/
17789             q
17790           }
17791           /^X\(\/\/\)$/{
17792             s//\1/
17793             q
17794           }
17795           /^X\(\/\).*/{
17796             s//\1/
17797             q
17798           }
17799           s/.*/./; q'`
17800       test -d "$as_dir" && break
17801     done
17802     test -z "$as_dirs" || eval "mkdir $as_dirs"
17803   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17804
17805
17806 } @%:@ as_fn_mkdir_p
17807 if mkdir -p . 2>/dev/null; then
17808   as_mkdir_p='mkdir -p "$as_dir"'
17809 else
17810   test -d ./-p && rmdir ./-p
17811   as_mkdir_p=false
17812 fi
17813
17814 if test -x / >/dev/null 2>&1; then
17815   as_test_x='test -x'
17816 else
17817   if ls -dL / >/dev/null 2>&1; then
17818     as_ls_L_option=L
17819   else
17820     as_ls_L_option=
17821   fi
17822   as_test_x='
17823     eval sh -c '\''
17824       if test -d "$1"; then
17825         test -d "$1/.";
17826       else
17827         case $1 in @%:@(
17828         -*)set "./$1";;
17829         esac;
17830         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
17831         ???[sx]*):;;*)false;;esac;fi
17832     '\'' sh
17833   '
17834 fi
17835 as_executable_p=$as_test_x
17836
17837 # Sed expression to map a string onto a valid CPP name.
17838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17839
17840 # Sed expression to map a string onto a valid variable name.
17841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17842
17843
17844 exec 6>&1
17845 ## ----------------------------------- ##
17846 ## Main body of $CONFIG_STATUS script. ##
17847 ## ----------------------------------- ##
17848 _ASEOF
17849 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17850
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 # Save the log message, to keep $0 and so on meaningful, and to
17853 # report actual input values of CONFIG_FILES etc. instead of their
17854 # values after options handling.
17855 ac_log="
17856 This file was extended by libunwind $as_me 1.1, which was
17857 generated by GNU Autoconf 2.68.  Invocation command line was
17858
17859   CONFIG_FILES    = $CONFIG_FILES
17860   CONFIG_HEADERS  = $CONFIG_HEADERS
17861   CONFIG_LINKS    = $CONFIG_LINKS
17862   CONFIG_COMMANDS = $CONFIG_COMMANDS
17863   $ $0 $@
17864
17865 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17866 "
17867
17868 _ACEOF
17869
17870 case $ac_config_files in *"
17871 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17872 esac
17873
17874 case $ac_config_headers in *"
17875 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17876 esac
17877
17878
17879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17880 # Files that config.status was made for.
17881 config_files="$ac_config_files"
17882 config_headers="$ac_config_headers"
17883 config_commands="$ac_config_commands"
17884
17885 _ACEOF
17886
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17888 ac_cs_usage="\
17889 \`$as_me' instantiates files and other configuration actions
17890 from templates according to the current configuration.  Unless the files
17891 and actions are specified as TAGs, all are instantiated by default.
17892
17893 Usage: $0 [OPTION]... [TAG]...
17894
17895   -h, --help       print this help, then exit
17896   -V, --version    print version number and configuration settings, then exit
17897       --config     print configuration, then exit
17898   -q, --quiet, --silent
17899                    do not print progress messages
17900   -d, --debug      don't remove temporary files
17901       --recheck    update $as_me by reconfiguring in the same conditions
17902       --file=FILE[:TEMPLATE] 
17903                    instantiate the configuration file FILE
17904       --header=FILE[:TEMPLATE] 
17905                    instantiate the configuration header FILE
17906
17907 Configuration files:
17908 $config_files
17909
17910 Configuration headers:
17911 $config_headers
17912
17913 Configuration commands:
17914 $config_commands
17915
17916 Report bugs to <libunwind-devel@nongnu.org>."
17917
17918 _ACEOF
17919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17920 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17921 ac_cs_version="\\
17922 libunwind config.status 1.1
17923 configured by $0, generated by GNU Autoconf 2.68,
17924   with options \\"\$ac_cs_config\\"
17925
17926 Copyright (C) 2010 Free Software Foundation, Inc.
17927 This config.status script is free software; the Free Software Foundation
17928 gives unlimited permission to copy, distribute and modify it."
17929
17930 ac_pwd='$ac_pwd'
17931 srcdir='$srcdir'
17932 INSTALL='$INSTALL'
17933 MKDIR_P='$MKDIR_P'
17934 AWK='$AWK'
17935 test -n "\$AWK" || AWK=awk
17936 _ACEOF
17937
17938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17939 # The default lists apply if the user does not specify any file.
17940 ac_need_defaults=:
17941 while test $# != 0
17942 do
17943   case $1 in
17944   --*=?*)
17945     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17946     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17947     ac_shift=:
17948     ;;
17949   --*=)
17950     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17951     ac_optarg=
17952     ac_shift=:
17953     ;;
17954   *)
17955     ac_option=$1
17956     ac_optarg=$2
17957     ac_shift=shift
17958     ;;
17959   esac
17960
17961   case $ac_option in
17962   # Handling of the options.
17963   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17964     ac_cs_recheck=: ;;
17965   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17966     $as_echo "$ac_cs_version"; exit ;;
17967   --config | --confi | --conf | --con | --co | --c )
17968     $as_echo "$ac_cs_config"; exit ;;
17969   --debug | --debu | --deb | --de | --d | -d )
17970     debug=: ;;
17971   --file | --fil | --fi | --f )
17972     $ac_shift
17973     case $ac_optarg in
17974     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17975     '') as_fn_error $? "missing file argument" ;;
17976     esac
17977     as_fn_append CONFIG_FILES " '$ac_optarg'"
17978     ac_need_defaults=false;;
17979   --header | --heade | --head | --hea )
17980     $ac_shift
17981     case $ac_optarg in
17982     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17983     esac
17984     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17985     ac_need_defaults=false;;
17986   --he | --h)
17987     # Conflict between --help and --header
17988     as_fn_error $? "ambiguous option: \`$1'
17989 Try \`$0 --help' for more information.";;
17990   --help | --hel | -h )
17991     $as_echo "$ac_cs_usage"; exit ;;
17992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17993   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17994     ac_cs_silent=: ;;
17995
17996   # This is an error.
17997   -*) as_fn_error $? "unrecognized option: \`$1'
17998 Try \`$0 --help' for more information." ;;
17999
18000   *) as_fn_append ac_config_targets " $1"
18001      ac_need_defaults=false ;;
18002
18003   esac
18004   shift
18005 done
18006
18007 ac_configure_extra_args=
18008
18009 if $ac_cs_silent; then
18010   exec 6>/dev/null
18011   ac_configure_extra_args="$ac_configure_extra_args --silent"
18012 fi
18013
18014 _ACEOF
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016 if \$ac_cs_recheck; then
18017   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18018   shift
18019   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18020   CONFIG_SHELL='$SHELL'
18021   export CONFIG_SHELL
18022   exec "\$@"
18023 fi
18024
18025 _ACEOF
18026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18027 exec 5>>config.log
18028 {
18029   echo
18030   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18031 @%:@@%:@ Running $as_me. @%:@@%:@
18032 _ASBOX
18033   $as_echo "$ac_log"
18034 } >&5
18035
18036 _ACEOF
18037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038 #
18039 # INIT-COMMANDS
18040 #
18041 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18042
18043
18044 # The HP-UX ksh and POSIX shell print the target directory to stdout
18045 # if CDPATH is set.
18046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18047
18048 sed_quote_subst='$sed_quote_subst'
18049 double_quote_subst='$double_quote_subst'
18050 delay_variable_subst='$delay_variable_subst'
18051 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18052 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18053 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18054 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18055 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18056 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18057 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18058 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18059 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18060 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18061 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18062 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18063 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18064 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18065 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18066 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18067 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18068 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18069 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18070 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18071 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18072 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18073 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18074 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18075 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18076 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18077 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18078 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18079 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18080 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18081 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18082 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18083 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18084 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18085 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18086 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18087 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18088 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18089 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18090 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18091 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18092 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18093 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18094 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18095 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18096 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18097 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18098 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18099 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18100 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18101 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18102 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18103 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18104 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18105 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18106 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18107 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"`'
18108 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18109 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18110 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18111 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18112 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18113 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18114 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18115 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18116 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18117 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18118 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18119 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18120 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18121 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18122 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18123 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18124 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18125 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18126 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18127 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18128 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18129 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18130 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18131 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18132 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18133 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18134 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18135 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18136 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18137 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18138 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18139 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18140 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18141 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18142 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18143 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18144 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18145 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18146 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18147 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18148 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18149 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18150 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18151 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18152 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18153 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18154 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18155 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18156 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18157 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18158 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18159 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18160 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18161 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18162 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18163 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18164 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18165 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18166 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18167 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18168 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18169 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18170 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18171 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18172 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18173 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18174 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18175 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18176 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18177 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18178 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18179 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18180 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18181 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18182 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18183 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18184 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18185 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18186 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18187 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18188 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18189 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18190 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18191 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18192 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18194 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18195 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18196 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18197 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18198 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18199 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18200 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18201 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18202 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18203 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18206 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18207 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18208 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18209 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18210 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18211 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18212 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18213 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18214 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18215 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18216 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18217 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18218 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18219 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18220 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18221 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18222 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18224 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18225 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18227 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18228 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18229 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18230 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18231 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18232 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18233 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18234 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18235
18236 LTCC='$LTCC'
18237 LTCFLAGS='$LTCFLAGS'
18238 compiler='$compiler_DEFAULT'
18239
18240 # A function that is used when there is no print builtin or printf.
18241 func_fallback_echo ()
18242 {
18243   eval 'cat <<_LTECHO_EOF
18244 \$1
18245 _LTECHO_EOF'
18246 }
18247
18248 # Quote evaled strings.
18249 for var in SHELL \
18250 ECHO \
18251 PATH_SEPARATOR \
18252 SED \
18253 GREP \
18254 EGREP \
18255 FGREP \
18256 LD \
18257 NM \
18258 LN_S \
18259 lt_SP2NL \
18260 lt_NL2SP \
18261 reload_flag \
18262 OBJDUMP \
18263 deplibs_check_method \
18264 file_magic_cmd \
18265 file_magic_glob \
18266 want_nocaseglob \
18267 DLLTOOL \
18268 sharedlib_from_linklib_cmd \
18269 AR \
18270 AR_FLAGS \
18271 archiver_list_spec \
18272 STRIP \
18273 RANLIB \
18274 CC \
18275 CFLAGS \
18276 compiler \
18277 lt_cv_sys_global_symbol_pipe \
18278 lt_cv_sys_global_symbol_to_cdecl \
18279 lt_cv_sys_global_symbol_to_c_name_address \
18280 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18281 nm_file_list_spec \
18282 lt_prog_compiler_no_builtin_flag \
18283 lt_prog_compiler_pic \
18284 lt_prog_compiler_wl \
18285 lt_prog_compiler_static \
18286 lt_cv_prog_compiler_c_o \
18287 need_locks \
18288 MANIFEST_TOOL \
18289 DSYMUTIL \
18290 NMEDIT \
18291 LIPO \
18292 OTOOL \
18293 OTOOL64 \
18294 shrext_cmds \
18295 export_dynamic_flag_spec \
18296 whole_archive_flag_spec \
18297 compiler_needs_object \
18298 with_gnu_ld \
18299 allow_undefined_flag \
18300 no_undefined_flag \
18301 hardcode_libdir_flag_spec \
18302 hardcode_libdir_separator \
18303 exclude_expsyms \
18304 include_expsyms \
18305 file_list_spec \
18306 variables_saved_for_relink \
18307 libname_spec \
18308 library_names_spec \
18309 soname_spec \
18310 install_override_mode \
18311 finish_eval \
18312 old_striplib \
18313 striplib \
18314 compiler_lib_search_dirs \
18315 predep_objects \
18316 postdep_objects \
18317 predeps \
18318 postdeps \
18319 compiler_lib_search_path \
18320 LD_CXX \
18321 reload_flag_CXX \
18322 compiler_CXX \
18323 lt_prog_compiler_no_builtin_flag_CXX \
18324 lt_prog_compiler_pic_CXX \
18325 lt_prog_compiler_wl_CXX \
18326 lt_prog_compiler_static_CXX \
18327 lt_cv_prog_compiler_c_o_CXX \
18328 export_dynamic_flag_spec_CXX \
18329 whole_archive_flag_spec_CXX \
18330 compiler_needs_object_CXX \
18331 with_gnu_ld_CXX \
18332 allow_undefined_flag_CXX \
18333 no_undefined_flag_CXX \
18334 hardcode_libdir_flag_spec_CXX \
18335 hardcode_libdir_separator_CXX \
18336 exclude_expsyms_CXX \
18337 include_expsyms_CXX \
18338 file_list_spec_CXX \
18339 compiler_lib_search_dirs_CXX \
18340 predep_objects_CXX \
18341 postdep_objects_CXX \
18342 predeps_CXX \
18343 postdeps_CXX \
18344 compiler_lib_search_path_CXX; do
18345     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18346     *[\\\\\\\`\\"\\\$]*)
18347       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18348       ;;
18349     *)
18350       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18351       ;;
18352     esac
18353 done
18354
18355 # Double-quote double-evaled strings.
18356 for var in reload_cmds \
18357 old_postinstall_cmds \
18358 old_postuninstall_cmds \
18359 old_archive_cmds \
18360 extract_expsyms_cmds \
18361 old_archive_from_new_cmds \
18362 old_archive_from_expsyms_cmds \
18363 archive_cmds \
18364 archive_expsym_cmds \
18365 module_cmds \
18366 module_expsym_cmds \
18367 export_symbols_cmds \
18368 prelink_cmds \
18369 postlink_cmds \
18370 postinstall_cmds \
18371 postuninstall_cmds \
18372 finish_cmds \
18373 sys_lib_search_path_spec \
18374 sys_lib_dlsearch_path_spec \
18375 reload_cmds_CXX \
18376 old_archive_cmds_CXX \
18377 old_archive_from_new_cmds_CXX \
18378 old_archive_from_expsyms_cmds_CXX \
18379 archive_cmds_CXX \
18380 archive_expsym_cmds_CXX \
18381 module_cmds_CXX \
18382 module_expsym_cmds_CXX \
18383 export_symbols_cmds_CXX \
18384 prelink_cmds_CXX \
18385 postlink_cmds_CXX; do
18386     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18387     *[\\\\\\\`\\"\\\$]*)
18388       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18389       ;;
18390     *)
18391       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18392       ;;
18393     esac
18394 done
18395
18396 ac_aux_dir='$ac_aux_dir'
18397 xsi_shell='$xsi_shell'
18398 lt_shell_append='$lt_shell_append'
18399
18400 # See if we are running on zsh, and set the options which allow our
18401 # commands through without removal of \ escapes INIT.
18402 if test -n "\${ZSH_VERSION+set}" ; then
18403    setopt NO_GLOB_SUBST
18404 fi
18405
18406
18407     PACKAGE='$PACKAGE'
18408     VERSION='$VERSION'
18409     TIMESTAMP='$TIMESTAMP'
18410     RM='$RM'
18411     ofile='$ofile'
18412
18413
18414
18415
18416
18417
18418 _ACEOF
18419
18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421
18422 # Handling of arguments.
18423 for ac_config_target in $ac_config_targets
18424 do
18425   case $ac_config_target in
18426     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18427     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18428     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18429     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18430     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18431     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18432     "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
18433     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18434     "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
18435     "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
18436     "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
18437     "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
18438     "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
18439     "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
18440     "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
18441     "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
18442     "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
18443
18444   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18445   esac
18446 done
18447
18448
18449 # If the user did not use the arguments to specify the items to instantiate,
18450 # then the envvar interface is used.  Set only those that are not.
18451 # We use the long form for the default assignment because of an extremely
18452 # bizarre bug on SunOS 4.1.3.
18453 if $ac_need_defaults; then
18454   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18455   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18456   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18457 fi
18458
18459 # Have a temporary directory for convenience.  Make it in the build tree
18460 # simply because there is no reason against having it here, and in addition,
18461 # creating and moving files from /tmp can sometimes cause problems.
18462 # Hook for its removal unless debugging.
18463 # Note that there is a small window in which the directory will not be cleaned:
18464 # after its creation but before its name has been assigned to `$tmp'.
18465 $debug ||
18466 {
18467   tmp= ac_tmp=
18468   trap 'exit_status=$?
18469   : "${ac_tmp:=$tmp}"
18470   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18471 ' 0
18472   trap 'as_fn_exit 1' 1 2 13 15
18473 }
18474 # Create a (secure) tmp directory for tmp files.
18475
18476 {
18477   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18478   test -d "$tmp"
18479 }  ||
18480 {
18481   tmp=./conf$$-$RANDOM
18482   (umask 077 && mkdir "$tmp")
18483 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18484 ac_tmp=$tmp
18485
18486 # Set up the scripts for CONFIG_FILES section.
18487 # No need to generate them if there are no CONFIG_FILES.
18488 # This happens for instance with `./config.status config.h'.
18489 if test -n "$CONFIG_FILES"; then
18490
18491
18492 ac_cr=`echo X | tr X '\015'`
18493 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18494 # But we know of no other shell where ac_cr would be empty at this
18495 # point, so we can use a bashism as a fallback.
18496 if test "x$ac_cr" = x; then
18497   eval ac_cr=\$\'\\r\'
18498 fi
18499 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18500 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18501   ac_cs_awk_cr='\\r'
18502 else
18503   ac_cs_awk_cr=$ac_cr
18504 fi
18505
18506 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18507 _ACEOF
18508
18509
18510 {
18511   echo "cat >conf$$subs.awk <<_ACEOF" &&
18512   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18513   echo "_ACEOF"
18514 } >conf$$subs.sh ||
18515   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18516 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18517 ac_delim='%!_!# '
18518 for ac_last_try in false false false false false :; do
18519   . ./conf$$subs.sh ||
18520     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18521
18522   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18523   if test $ac_delim_n = $ac_delim_num; then
18524     break
18525   elif $ac_last_try; then
18526     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18527   else
18528     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18529   fi
18530 done
18531 rm -f conf$$subs.sh
18532
18533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18534 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18535 _ACEOF
18536 sed -n '
18537 h
18538 s/^/S["/; s/!.*/"]=/
18539 p
18540 g
18541 s/^[^!]*!//
18542 :repl
18543 t repl
18544 s/'"$ac_delim"'$//
18545 t delim
18546 :nl
18547 h
18548 s/\(.\{148\}\)..*/\1/
18549 t more1
18550 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18551 p
18552 n
18553 b repl
18554 :more1
18555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18556 p
18557 g
18558 s/.\{148\}//
18559 t nl
18560 :delim
18561 h
18562 s/\(.\{148\}\)..*/\1/
18563 t more2
18564 s/["\\]/\\&/g; s/^/"/; s/$/"/
18565 p
18566 b
18567 :more2
18568 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18569 p
18570 g
18571 s/.\{148\}//
18572 t delim
18573 ' <conf$$subs.awk | sed '
18574 /^[^""]/{
18575   N
18576   s/\n//
18577 }
18578 ' >>$CONFIG_STATUS || ac_write_fail=1
18579 rm -f conf$$subs.awk
18580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18581 _ACAWK
18582 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18583   for (key in S) S_is_set[key] = 1
18584   FS = "\a"
18585
18586 }
18587 {
18588   line = $ 0
18589   nfields = split(line, field, "@")
18590   substed = 0
18591   len = length(field[1])
18592   for (i = 2; i < nfields; i++) {
18593     key = field[i]
18594     keylen = length(key)
18595     if (S_is_set[key]) {
18596       value = S[key]
18597       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18598       len += length(value) + length(field[++i])
18599       substed = 1
18600     } else
18601       len += 1 + keylen
18602   }
18603
18604   print line
18605 }
18606
18607 _ACAWK
18608 _ACEOF
18609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18610 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18611   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18612 else
18613   cat
18614 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18615   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18616 _ACEOF
18617
18618 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18619 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18620 # trailing colons and then remove the whole line if VPATH becomes empty
18621 # (actually we leave an empty line to preserve line numbers).
18622 if test "x$srcdir" = x.; then
18623   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18624 h
18625 s///
18626 s/^/:/
18627 s/[      ]*$/:/
18628 s/:\$(srcdir):/:/g
18629 s/:\${srcdir}:/:/g
18630 s/:@srcdir@:/:/g
18631 s/^:*//
18632 s/:*$//
18633 x
18634 s/\(=[   ]*\).*/\1/
18635 G
18636 s/\n//
18637 s/^[^=]*=[       ]*$//
18638 }'
18639 fi
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 fi # test -n "$CONFIG_FILES"
18643
18644 # Set up the scripts for CONFIG_HEADERS section.
18645 # No need to generate them if there are no CONFIG_HEADERS.
18646 # This happens for instance with `./config.status Makefile'.
18647 if test -n "$CONFIG_HEADERS"; then
18648 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18649 BEGIN {
18650 _ACEOF
18651
18652 # Transform confdefs.h into an awk script `defines.awk', embedded as
18653 # here-document in config.status, that substitutes the proper values into
18654 # config.h.in to produce config.h.
18655
18656 # Create a delimiter string that does not exist in confdefs.h, to ease
18657 # handling of long lines.
18658 ac_delim='%!_!# '
18659 for ac_last_try in false false :; do
18660   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18661   if test -z "$ac_tt"; then
18662     break
18663   elif $ac_last_try; then
18664     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18665   else
18666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18667   fi
18668 done
18669
18670 # For the awk script, D is an array of macro values keyed by name,
18671 # likewise P contains macro parameters if any.  Preserve backslash
18672 # newline sequences.
18673
18674 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18675 sed -n '
18676 s/.\{148\}/&'"$ac_delim"'/g
18677 t rset
18678 :rset
18679 s/^[     ]*#[    ]*define[       ][      ]*/ /
18680 t def
18681 d
18682 :def
18683 s/\\$//
18684 t bsnl
18685 s/["\\]/\\&/g
18686 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18687 D["\1"]=" \3"/p
18688 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18689 d
18690 :bsnl
18691 s/["\\]/\\&/g
18692 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18693 D["\1"]=" \3\\\\\\n"\\/p
18694 t cont
18695 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18696 t cont
18697 d
18698 :cont
18699 n
18700 s/.\{148\}/&'"$ac_delim"'/g
18701 t clear
18702 :clear
18703 s/\\$//
18704 t bsnlc
18705 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18706 d
18707 :bsnlc
18708 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18709 b cont
18710 ' <confdefs.h | sed '
18711 s/'"$ac_delim"'/"\\\
18712 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18713
18714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715   for (key in D) D_is_set[key] = 1
18716   FS = "\a"
18717 }
18718 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18719   line = \$ 0
18720   split(line, arg, " ")
18721   if (arg[1] == "#") {
18722     defundef = arg[2]
18723     mac1 = arg[3]
18724   } else {
18725     defundef = substr(arg[1], 2)
18726     mac1 = arg[2]
18727   }
18728   split(mac1, mac2, "(") #)
18729   macro = mac2[1]
18730   prefix = substr(line, 1, index(line, defundef) - 1)
18731   if (D_is_set[macro]) {
18732     # Preserve the white space surrounding the "#".
18733     print prefix "define", macro P[macro] D[macro]
18734     next
18735   } else {
18736     # Replace #undef with comments.  This is necessary, for example,
18737     # in the case of _POSIX_SOURCE, which is predefined and required
18738     # on some systems where configure will not decide to define it.
18739     if (defundef == "undef") {
18740       print "/*", prefix defundef, macro, "*/"
18741       next
18742     }
18743   }
18744 }
18745 { print }
18746 _ACAWK
18747 _ACEOF
18748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18749   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18750 fi # test -n "$CONFIG_HEADERS"
18751
18752
18753 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18754 shift
18755 for ac_tag
18756 do
18757   case $ac_tag in
18758   :[FHLC]) ac_mode=$ac_tag; continue;;
18759   esac
18760   case $ac_mode$ac_tag in
18761   :[FHL]*:*);;
18762   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18763   :[FH]-) ac_tag=-:-;;
18764   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18765   esac
18766   ac_save_IFS=$IFS
18767   IFS=:
18768   set x $ac_tag
18769   IFS=$ac_save_IFS
18770   shift
18771   ac_file=$1
18772   shift
18773
18774   case $ac_mode in
18775   :L) ac_source=$1;;
18776   :[FH])
18777     ac_file_inputs=
18778     for ac_f
18779     do
18780       case $ac_f in
18781       -) ac_f="$ac_tmp/stdin";;
18782       *) # Look for the file first in the build tree, then in the source tree
18783          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18784          # because $ac_f cannot contain `:'.
18785          test -f "$ac_f" ||
18786            case $ac_f in
18787            [\\/$]*) false;;
18788            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18789            esac ||
18790            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18791       esac
18792       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18793       as_fn_append ac_file_inputs " '$ac_f'"
18794     done
18795
18796     # Let's still pretend it is `configure' which instantiates (i.e., don't
18797     # use $as_me), people would be surprised to read:
18798     #    /* config.h.  Generated by config.status.  */
18799     configure_input='Generated from '`
18800           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18801         `' by configure.'
18802     if test x"$ac_file" != x-; then
18803       configure_input="$ac_file.  $configure_input"
18804       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18805 $as_echo "$as_me: creating $ac_file" >&6;}
18806     fi
18807     # Neutralize special characters interpreted by sed in replacement strings.
18808     case $configure_input in #(
18809     *\&* | *\|* | *\\* )
18810        ac_sed_conf_input=`$as_echo "$configure_input" |
18811        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18812     *) ac_sed_conf_input=$configure_input;;
18813     esac
18814
18815     case $ac_tag in
18816     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18817       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18818     esac
18819     ;;
18820   esac
18821
18822   ac_dir=`$as_dirname -- "$ac_file" ||
18823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18824          X"$ac_file" : 'X\(//\)[^/]' \| \
18825          X"$ac_file" : 'X\(//\)$' \| \
18826          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18827 $as_echo X"$ac_file" |
18828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18829             s//\1/
18830             q
18831           }
18832           /^X\(\/\/\)[^/].*/{
18833             s//\1/
18834             q
18835           }
18836           /^X\(\/\/\)$/{
18837             s//\1/
18838             q
18839           }
18840           /^X\(\/\).*/{
18841             s//\1/
18842             q
18843           }
18844           s/.*/./; q'`
18845   as_dir="$ac_dir"; as_fn_mkdir_p
18846   ac_builddir=.
18847
18848 case "$ac_dir" in
18849 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18850 *)
18851   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18852   # A ".." for each directory in $ac_dir_suffix.
18853   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18854   case $ac_top_builddir_sub in
18855   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18856   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18857   esac ;;
18858 esac
18859 ac_abs_top_builddir=$ac_pwd
18860 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18861 # for backward compatibility:
18862 ac_top_builddir=$ac_top_build_prefix
18863
18864 case $srcdir in
18865   .)  # We are building in place.
18866     ac_srcdir=.
18867     ac_top_srcdir=$ac_top_builddir_sub
18868     ac_abs_top_srcdir=$ac_pwd ;;
18869   [\\/]* | ?:[\\/]* )  # Absolute name.
18870     ac_srcdir=$srcdir$ac_dir_suffix;
18871     ac_top_srcdir=$srcdir
18872     ac_abs_top_srcdir=$srcdir ;;
18873   *) # Relative name.
18874     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18875     ac_top_srcdir=$ac_top_build_prefix$srcdir
18876     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18877 esac
18878 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18879
18880
18881   case $ac_mode in
18882   :F)
18883   #
18884   # CONFIG_FILE
18885   #
18886
18887   case $INSTALL in
18888   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18889   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18890   esac
18891   ac_MKDIR_P=$MKDIR_P
18892   case $MKDIR_P in
18893   [\\/$]* | ?:[\\/]* ) ;;
18894   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18895   esac
18896 _ACEOF
18897
18898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18899 # If the template does not know about datarootdir, expand it.
18900 # FIXME: This hack should be removed a few years after 2.60.
18901 ac_datarootdir_hack=; ac_datarootdir_seen=
18902 ac_sed_dataroot='
18903 /datarootdir/ {
18904   p
18905   q
18906 }
18907 /@datadir@/p
18908 /@docdir@/p
18909 /@infodir@/p
18910 /@localedir@/p
18911 /@mandir@/p'
18912 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18913 *datarootdir*) ac_datarootdir_seen=yes;;
18914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18915   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18916 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18917 _ACEOF
18918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919   ac_datarootdir_hack='
18920   s&@datadir@&$datadir&g
18921   s&@docdir@&$docdir&g
18922   s&@infodir@&$infodir&g
18923   s&@localedir@&$localedir&g
18924   s&@mandir@&$mandir&g
18925   s&\\\${datarootdir}&$datarootdir&g' ;;
18926 esac
18927 _ACEOF
18928
18929 # Neutralize VPATH when `$srcdir' = `.'.
18930 # Shell code in configure.ac might set extrasub.
18931 # FIXME: do we really want to maintain this feature?
18932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18933 ac_sed_extra="$ac_vpsub
18934 $extrasub
18935 _ACEOF
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 :t
18938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18939 s|@configure_input@|$ac_sed_conf_input|;t t
18940 s&@top_builddir@&$ac_top_builddir_sub&;t t
18941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18942 s&@srcdir@&$ac_srcdir&;t t
18943 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18944 s&@top_srcdir@&$ac_top_srcdir&;t t
18945 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18946 s&@builddir@&$ac_builddir&;t t
18947 s&@abs_builddir@&$ac_abs_builddir&;t t
18948 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18949 s&@INSTALL@&$ac_INSTALL&;t t
18950 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18951 $ac_datarootdir_hack
18952 "
18953 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18954   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18955
18956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18957   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18958   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18959       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18960   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18961 which seems to be undefined.  Please make sure it is defined" >&5
18962 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18963 which seems to be undefined.  Please make sure it is defined" >&2;}
18964
18965   rm -f "$ac_tmp/stdin"
18966   case $ac_file in
18967   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18968   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18969   esac \
18970   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18971  ;;
18972   :H)
18973   #
18974   # CONFIG_HEADER
18975   #
18976   if test x"$ac_file" != x-; then
18977     {
18978       $as_echo "/* $configure_input  */" \
18979       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18980     } >"$ac_tmp/config.h" \
18981       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18982     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18983       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18984 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18985     else
18986       rm -f "$ac_file"
18987       mv "$ac_tmp/config.h" "$ac_file" \
18988         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18989     fi
18990   else
18991     $as_echo "/* $configure_input  */" \
18992       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18993       || as_fn_error $? "could not create -" "$LINENO" 5
18994   fi
18995 # Compute "$ac_file"'s index in $config_headers.
18996 _am_arg="$ac_file"
18997 _am_stamp_count=1
18998 for _am_header in $config_headers :; do
18999   case $_am_header in
19000     $_am_arg | $_am_arg:* )
19001       break ;;
19002     * )
19003       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19004   esac
19005 done
19006 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19007 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19008          X"$_am_arg" : 'X\(//\)[^/]' \| \
19009          X"$_am_arg" : 'X\(//\)$' \| \
19010          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19011 $as_echo X"$_am_arg" |
19012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19013             s//\1/
19014             q
19015           }
19016           /^X\(\/\/\)[^/].*/{
19017             s//\1/
19018             q
19019           }
19020           /^X\(\/\/\)$/{
19021             s//\1/
19022             q
19023           }
19024           /^X\(\/\).*/{
19025             s//\1/
19026             q
19027           }
19028           s/.*/./; q'`/stamp-h$_am_stamp_count
19029  ;;
19030   
19031   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19032 $as_echo "$as_me: executing $ac_file commands" >&6;}
19033  ;;
19034   esac
19035
19036
19037   case $ac_file$ac_mode in
19038     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19039   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19040   # are listed without --file.  Let's play safe and only enable the eval
19041   # if we detect the quoting.
19042   case $CONFIG_FILES in
19043   *\'*) eval set x "$CONFIG_FILES" ;;
19044   *)   set x $CONFIG_FILES ;;
19045   esac
19046   shift
19047   for mf
19048   do
19049     # Strip MF so we end up with the name of the file.
19050     mf=`echo "$mf" | sed -e 's/:.*$//'`
19051     # Check whether this is an Automake generated Makefile or not.
19052     # We used to match only the files named `Makefile.in', but
19053     # some people rename them; so instead we look at the file content.
19054     # Grep'ing the first line is not enough: some people post-process
19055     # each Makefile.in and add a new line on top of each file to say so.
19056     # Grep'ing the whole file is not good either: AIX grep has a line
19057     # limit of 2048, but all sed's we know have understand at least 4000.
19058     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19059       dirpart=`$as_dirname -- "$mf" ||
19060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19061          X"$mf" : 'X\(//\)[^/]' \| \
19062          X"$mf" : 'X\(//\)$' \| \
19063          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19064 $as_echo X"$mf" |
19065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19066             s//\1/
19067             q
19068           }
19069           /^X\(\/\/\)[^/].*/{
19070             s//\1/
19071             q
19072           }
19073           /^X\(\/\/\)$/{
19074             s//\1/
19075             q
19076           }
19077           /^X\(\/\).*/{
19078             s//\1/
19079             q
19080           }
19081           s/.*/./; q'`
19082     else
19083       continue
19084     fi
19085     # Extract the definition of DEPDIR, am__include, and am__quote
19086     # from the Makefile without running `make'.
19087     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19088     test -z "$DEPDIR" && continue
19089     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19090     test -z "am__include" && continue
19091     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19092     # When using ansi2knr, U may be empty or an underscore; expand it
19093     U=`sed -n 's/^U = //p' < "$mf"`
19094     # Find all dependency output files, they are included files with
19095     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19096     # simplest approach to changing $(DEPDIR) to its actual value in the
19097     # expansion.
19098     for file in `sed -n "
19099       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19100          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19101       # Make sure the directory exists.
19102       test -f "$dirpart/$file" && continue
19103       fdir=`$as_dirname -- "$file" ||
19104 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19105          X"$file" : 'X\(//\)[^/]' \| \
19106          X"$file" : 'X\(//\)$' \| \
19107          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19108 $as_echo X"$file" |
19109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19110             s//\1/
19111             q
19112           }
19113           /^X\(\/\/\)[^/].*/{
19114             s//\1/
19115             q
19116           }
19117           /^X\(\/\/\)$/{
19118             s//\1/
19119             q
19120           }
19121           /^X\(\/\).*/{
19122             s//\1/
19123             q
19124           }
19125           s/.*/./; q'`
19126       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19127       # echo "creating $dirpart/$file"
19128       echo '# dummy' > "$dirpart/$file"
19129     done
19130   done
19131 }
19132  ;;
19133     "libtool":C) 
19134     
19135     # See if we are running on zsh, and set the options which allow our
19136     # commands through without removal of \ escapes.
19137     if test -n "${ZSH_VERSION+set}" ; then
19138       setopt NO_GLOB_SUBST
19139     fi
19140
19141     cfgfile="${ofile}T"
19142     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19143     $RM "$cfgfile"
19144
19145     cat <<_LT_EOF >> "$cfgfile"
19146 #! $SHELL
19147
19148 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19149 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19152 #
19153 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19154 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19155 #                 Foundation, Inc.
19156 #   Written by Gordon Matzigkeit, 1996
19157 #
19158 #   This file is part of GNU Libtool.
19159 #
19160 # GNU Libtool is free software; you can redistribute it and/or
19161 # modify it under the terms of the GNU General Public License as
19162 # published by the Free Software Foundation; either version 2 of
19163 # the License, or (at your option) any later version.
19164 #
19165 # As a special exception to the GNU General Public License,
19166 # if you distribute this file as part of a program or library that
19167 # is built using GNU Libtool, you may include this file under the
19168 # same distribution terms that you use for the rest of that program.
19169 #
19170 # GNU Libtool is distributed in the hope that it will be useful,
19171 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19173 # GNU General Public License for more details.
19174 #
19175 # You should have received a copy of the GNU General Public License
19176 # along with GNU Libtool; see the file COPYING.  If not, a copy
19177 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19178 # obtained by writing to the Free Software Foundation, Inc.,
19179 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19180
19181
19182 # The names of the tagged configurations supported by this script.
19183 available_tags="CXX "
19184
19185 # ### BEGIN LIBTOOL CONFIG
19186
19187 # Which release of libtool.m4 was used?
19188 macro_version=$macro_version
19189 macro_revision=$macro_revision
19190
19191 # Whether or not to build shared libraries.
19192 build_libtool_libs=$enable_shared
19193
19194 # Whether or not to build static libraries.
19195 build_old_libs=$enable_static
19196
19197 # What type of objects to build.
19198 pic_mode=$pic_mode
19199
19200 # Whether or not to optimize for fast installation.
19201 fast_install=$enable_fast_install
19202
19203 # Shell to use when invoking shell scripts.
19204 SHELL=$lt_SHELL
19205
19206 # An echo program that protects backslashes.
19207 ECHO=$lt_ECHO
19208
19209 # The PATH separator for the build system.
19210 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19211
19212 # The host system.
19213 host_alias=$host_alias
19214 host=$host
19215 host_os=$host_os
19216
19217 # The build system.
19218 build_alias=$build_alias
19219 build=$build
19220 build_os=$build_os
19221
19222 # A sed program that does not truncate output.
19223 SED=$lt_SED
19224
19225 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19226 Xsed="\$SED -e 1s/^X//"
19227
19228 # A grep program that handles long lines.
19229 GREP=$lt_GREP
19230
19231 # An ERE matcher.
19232 EGREP=$lt_EGREP
19233
19234 # A literal string matcher.
19235 FGREP=$lt_FGREP
19236
19237 # A BSD- or MS-compatible name lister.
19238 NM=$lt_NM
19239
19240 # Whether we need soft or hard links.
19241 LN_S=$lt_LN_S
19242
19243 # What is the maximum length of a command?
19244 max_cmd_len=$max_cmd_len
19245
19246 # Object file suffix (normally "o").
19247 objext=$ac_objext
19248
19249 # Executable file suffix (normally "").
19250 exeext=$exeext
19251
19252 # whether the shell understands "unset".
19253 lt_unset=$lt_unset
19254
19255 # turn spaces into newlines.
19256 SP2NL=$lt_lt_SP2NL
19257
19258 # turn newlines into spaces.
19259 NL2SP=$lt_lt_NL2SP
19260
19261 # convert \$build file names to \$host format.
19262 to_host_file_cmd=$lt_cv_to_host_file_cmd
19263
19264 # convert \$build files to toolchain format.
19265 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19266
19267 # An object symbol dumper.
19268 OBJDUMP=$lt_OBJDUMP
19269
19270 # Method to check whether dependent libraries are shared objects.
19271 deplibs_check_method=$lt_deplibs_check_method
19272
19273 # Command to use when deplibs_check_method = "file_magic".
19274 file_magic_cmd=$lt_file_magic_cmd
19275
19276 # How to find potential files when deplibs_check_method = "file_magic".
19277 file_magic_glob=$lt_file_magic_glob
19278
19279 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19280 want_nocaseglob=$lt_want_nocaseglob
19281
19282 # DLL creation program.
19283 DLLTOOL=$lt_DLLTOOL
19284
19285 # Command to associate shared and link libraries.
19286 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19287
19288 # The archiver.
19289 AR=$lt_AR
19290
19291 # Flags to create an archive.
19292 AR_FLAGS=$lt_AR_FLAGS
19293
19294 # How to feed a file listing to the archiver.
19295 archiver_list_spec=$lt_archiver_list_spec
19296
19297 # A symbol stripping program.
19298 STRIP=$lt_STRIP
19299
19300 # Commands used to install an old-style archive.
19301 RANLIB=$lt_RANLIB
19302 old_postinstall_cmds=$lt_old_postinstall_cmds
19303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19304
19305 # Whether to use a lock for old archive extraction.
19306 lock_old_archive_extraction=$lock_old_archive_extraction
19307
19308 # A C compiler.
19309 LTCC=$lt_CC
19310
19311 # LTCC compiler flags.
19312 LTCFLAGS=$lt_CFLAGS
19313
19314 # Take the output of nm and produce a listing of raw symbols and C names.
19315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19316
19317 # Transform the output of nm in a proper C declaration.
19318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19319
19320 # Transform the output of nm in a C name address pair.
19321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19322
19323 # Transform the output of nm in a C name address pair when lib prefix is needed.
19324 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19325
19326 # Specify filename containing input files for \$NM.
19327 nm_file_list_spec=$lt_nm_file_list_spec
19328
19329 # The root where to search for dependent libraries,and in which our libraries should be installed.
19330 lt_sysroot=$lt_sysroot
19331
19332 # The name of the directory that contains temporary libtool files.
19333 objdir=$objdir
19334
19335 # Used to examine libraries when file_magic_cmd begins with "file".
19336 MAGIC_CMD=$MAGIC_CMD
19337
19338 # Must we lock files when doing compilation?
19339 need_locks=$lt_need_locks
19340
19341 # Manifest tool.
19342 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19343
19344 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19345 DSYMUTIL=$lt_DSYMUTIL
19346
19347 # Tool to change global to local symbols on Mac OS X.
19348 NMEDIT=$lt_NMEDIT
19349
19350 # Tool to manipulate fat objects and archives on Mac OS X.
19351 LIPO=$lt_LIPO
19352
19353 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19354 OTOOL=$lt_OTOOL
19355
19356 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19357 OTOOL64=$lt_OTOOL64
19358
19359 # Old archive suffix (normally "a").
19360 libext=$libext
19361
19362 # Shared library suffix (normally ".so").
19363 shrext_cmds=$lt_shrext_cmds
19364
19365 # The commands to extract the exported symbol list from a shared archive.
19366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19367
19368 # Variables whose values should be saved in libtool wrapper scripts and
19369 # restored at link time.
19370 variables_saved_for_relink=$lt_variables_saved_for_relink
19371
19372 # Do we need the "lib" prefix for modules?
19373 need_lib_prefix=$need_lib_prefix
19374
19375 # Do we need a version for libraries?
19376 need_version=$need_version
19377
19378 # Library versioning type.
19379 version_type=$version_type
19380
19381 # Shared library runtime path variable.
19382 runpath_var=$runpath_var
19383
19384 # Shared library path variable.
19385 shlibpath_var=$shlibpath_var
19386
19387 # Is shlibpath searched before the hard-coded library search path?
19388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19389
19390 # Format of library name prefix.
19391 libname_spec=$lt_libname_spec
19392
19393 # List of archive names.  First name is the real one, the rest are links.
19394 # The last name is the one that the linker finds with -lNAME
19395 library_names_spec=$lt_library_names_spec
19396
19397 # The coded name of the library, if different from the real name.
19398 soname_spec=$lt_soname_spec
19399
19400 # Permission mode override for installation of shared libraries.
19401 install_override_mode=$lt_install_override_mode
19402
19403 # Command to use after installation of a shared archive.
19404 postinstall_cmds=$lt_postinstall_cmds
19405
19406 # Command to use after uninstallation of a shared archive.
19407 postuninstall_cmds=$lt_postuninstall_cmds
19408
19409 # Commands used to finish a libtool library installation in a directory.
19410 finish_cmds=$lt_finish_cmds
19411
19412 # As "finish_cmds", except a single script fragment to be evaled but
19413 # not shown.
19414 finish_eval=$lt_finish_eval
19415
19416 # Whether we should hardcode library paths into libraries.
19417 hardcode_into_libs=$hardcode_into_libs
19418
19419 # Compile-time system search path for libraries.
19420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19421
19422 # Run-time system search path for libraries.
19423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19424
19425 # Whether dlopen is supported.
19426 dlopen_support=$enable_dlopen
19427
19428 # Whether dlopen of programs is supported.
19429 dlopen_self=$enable_dlopen_self
19430
19431 # Whether dlopen of statically linked programs is supported.
19432 dlopen_self_static=$enable_dlopen_self_static
19433
19434 # Commands to strip libraries.
19435 old_striplib=$lt_old_striplib
19436 striplib=$lt_striplib
19437
19438
19439 # The linker used to build libraries.
19440 LD=$lt_LD
19441
19442 # How to create reloadable object files.
19443 reload_flag=$lt_reload_flag
19444 reload_cmds=$lt_reload_cmds
19445
19446 # Commands used to build an old-style archive.
19447 old_archive_cmds=$lt_old_archive_cmds
19448
19449 # A language specific compiler.
19450 CC=$lt_compiler
19451
19452 # Is the compiler the GNU compiler?
19453 with_gcc=$GCC
19454
19455 # Compiler flag to turn off builtin functions.
19456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19457
19458 # Additional compiler flags for building library objects.
19459 pic_flag=$lt_lt_prog_compiler_pic
19460
19461 # How to pass a linker flag through the compiler.
19462 wl=$lt_lt_prog_compiler_wl
19463
19464 # Compiler flag to prevent dynamic linking.
19465 link_static_flag=$lt_lt_prog_compiler_static
19466
19467 # Does compiler simultaneously support -c and -o options?
19468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19469
19470 # Whether or not to add -lc for building shared libraries.
19471 build_libtool_need_lc=$archive_cmds_need_lc
19472
19473 # Whether or not to disallow shared libs when runtime libs are static.
19474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19475
19476 # Compiler flag to allow reflexive dlopens.
19477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19478
19479 # Compiler flag to generate shared objects directly from archives.
19480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19481
19482 # Whether the compiler copes with passing no objects directly.
19483 compiler_needs_object=$lt_compiler_needs_object
19484
19485 # Create an old-style archive from a shared archive.
19486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19487
19488 # Create a temporary old-style archive to link instead of a shared archive.
19489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19490
19491 # Commands used to build a shared archive.
19492 archive_cmds=$lt_archive_cmds
19493 archive_expsym_cmds=$lt_archive_expsym_cmds
19494
19495 # Commands used to build a loadable module if different from building
19496 # a shared archive.
19497 module_cmds=$lt_module_cmds
19498 module_expsym_cmds=$lt_module_expsym_cmds
19499
19500 # Whether we are building with GNU ld or not.
19501 with_gnu_ld=$lt_with_gnu_ld
19502
19503 # Flag that allows shared libraries with undefined symbols to be built.
19504 allow_undefined_flag=$lt_allow_undefined_flag
19505
19506 # Flag that enforces no undefined symbols.
19507 no_undefined_flag=$lt_no_undefined_flag
19508
19509 # Flag to hardcode \$libdir into a binary during linking.
19510 # This must work even if \$libdir does not exist
19511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19512
19513 # Whether we need a single "-rpath" flag with a separated argument.
19514 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19515
19516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19517 # DIR into the resulting binary.
19518 hardcode_direct=$hardcode_direct
19519
19520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19521 # DIR into the resulting binary and the resulting library dependency is
19522 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19523 # library is relocated.
19524 hardcode_direct_absolute=$hardcode_direct_absolute
19525
19526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_minus_L=$hardcode_minus_L
19529
19530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19531 # into the resulting binary.
19532 hardcode_shlibpath_var=$hardcode_shlibpath_var
19533
19534 # Set to "yes" if building a shared library automatically hardcodes DIR
19535 # into the library and all subsequent libraries and executables linked
19536 # against it.
19537 hardcode_automatic=$hardcode_automatic
19538
19539 # Set to yes if linker adds runtime paths of dependent libraries
19540 # to runtime path list.
19541 inherit_rpath=$inherit_rpath
19542
19543 # Whether libtool must link a program against all its dependency libraries.
19544 link_all_deplibs=$link_all_deplibs
19545
19546 # Set to "yes" if exported symbols are required.
19547 always_export_symbols=$always_export_symbols
19548
19549 # The commands to list exported symbols.
19550 export_symbols_cmds=$lt_export_symbols_cmds
19551
19552 # Symbols that should not be listed in the preloaded symbols.
19553 exclude_expsyms=$lt_exclude_expsyms
19554
19555 # Symbols that must always be exported.
19556 include_expsyms=$lt_include_expsyms
19557
19558 # Commands necessary for linking programs (against libraries) with templates.
19559 prelink_cmds=$lt_prelink_cmds
19560
19561 # Commands necessary for finishing linking programs.
19562 postlink_cmds=$lt_postlink_cmds
19563
19564 # Specify filename containing input files.
19565 file_list_spec=$lt_file_list_spec
19566
19567 # How to hardcode a shared library path into an executable.
19568 hardcode_action=$hardcode_action
19569
19570 # The directories searched by this compiler when creating a shared library.
19571 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19572
19573 # Dependencies to place before and after the objects being linked to
19574 # create a shared library.
19575 predep_objects=$lt_predep_objects
19576 postdep_objects=$lt_postdep_objects
19577 predeps=$lt_predeps
19578 postdeps=$lt_postdeps
19579
19580 # The library search path used internally by the compiler when linking
19581 # a shared library.
19582 compiler_lib_search_path=$lt_compiler_lib_search_path
19583
19584 # ### END LIBTOOL CONFIG
19585
19586 _LT_EOF
19587
19588   case $host_os in
19589   aix3*)
19590     cat <<\_LT_EOF >> "$cfgfile"
19591 # AIX sometimes has problems with the GCC collect2 program.  For some
19592 # reason, if we set the COLLECT_NAMES environment variable, the problems
19593 # vanish in a puff of smoke.
19594 if test "X${COLLECT_NAMES+set}" != Xset; then
19595   COLLECT_NAMES=
19596   export COLLECT_NAMES
19597 fi
19598 _LT_EOF
19599     ;;
19600   esac
19601
19602   
19603 ltmain="$ac_aux_dir/ltmain.sh"
19604
19605
19606   # We use sed instead of cat because bash on DJGPP gets confused if
19607   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19608   # text mode, it properly converts lines to CR/LF.  This bash problem
19609   # is reportedly fixed, but why not run on old versions too?
19610   sed '$q' "$ltmain" >> "$cfgfile" \
19611      || (rm -f "$cfgfile"; exit 1)
19612
19613   if test x"$xsi_shell" = xyes; then
19614   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19615 func_dirname ()\
19616 {\
19617 \    case ${1} in\
19618 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19619 \      *  ) func_dirname_result="${3}" ;;\
19620 \    esac\
19621 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19622   && mv -f "$cfgfile.tmp" "$cfgfile" \
19623     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19625
19626
19627   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19628 func_basename ()\
19629 {\
19630 \    func_basename_result="${1##*/}"\
19631 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19632   && mv -f "$cfgfile.tmp" "$cfgfile" \
19633     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19634 test 0 -eq $? || _lt_function_replace_fail=:
19635
19636
19637   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19638 func_dirname_and_basename ()\
19639 {\
19640 \    case ${1} in\
19641 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19642 \      *  ) func_dirname_result="${3}" ;;\
19643 \    esac\
19644 \    func_basename_result="${1##*/}"\
19645 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19646   && mv -f "$cfgfile.tmp" "$cfgfile" \
19647     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19648 test 0 -eq $? || _lt_function_replace_fail=:
19649
19650
19651   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19652 func_stripname ()\
19653 {\
19654 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19655 \    # positional parameters, so assign one to ordinary parameter first.\
19656 \    func_stripname_result=${3}\
19657 \    func_stripname_result=${func_stripname_result#"${1}"}\
19658 \    func_stripname_result=${func_stripname_result%"${2}"}\
19659 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19660   && mv -f "$cfgfile.tmp" "$cfgfile" \
19661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19662 test 0 -eq $? || _lt_function_replace_fail=:
19663
19664
19665   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19666 func_split_long_opt ()\
19667 {\
19668 \    func_split_long_opt_name=${1%%=*}\
19669 \    func_split_long_opt_arg=${1#*=}\
19670 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19671   && mv -f "$cfgfile.tmp" "$cfgfile" \
19672     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19673 test 0 -eq $? || _lt_function_replace_fail=:
19674
19675
19676   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19677 func_split_short_opt ()\
19678 {\
19679 \    func_split_short_opt_arg=${1#??}\
19680 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19681 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19682   && mv -f "$cfgfile.tmp" "$cfgfile" \
19683     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19684 test 0 -eq $? || _lt_function_replace_fail=:
19685
19686
19687   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19688 func_lo2o ()\
19689 {\
19690 \    case ${1} in\
19691 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19692 \      *)    func_lo2o_result=${1} ;;\
19693 \    esac\
19694 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19695   && mv -f "$cfgfile.tmp" "$cfgfile" \
19696     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19697 test 0 -eq $? || _lt_function_replace_fail=:
19698
19699
19700   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19701 func_xform ()\
19702 {\
19703     func_xform_result=${1%.*}.lo\
19704 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19705   && mv -f "$cfgfile.tmp" "$cfgfile" \
19706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19708
19709
19710   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19711 func_arith ()\
19712 {\
19713     func_arith_result=$(( $* ))\
19714 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19715   && mv -f "$cfgfile.tmp" "$cfgfile" \
19716     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19717 test 0 -eq $? || _lt_function_replace_fail=:
19718
19719
19720   sed -e '/^func_len ()$/,/^} # func_len /c\
19721 func_len ()\
19722 {\
19723     func_len_result=${#1}\
19724 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19725   && mv -f "$cfgfile.tmp" "$cfgfile" \
19726     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19727 test 0 -eq $? || _lt_function_replace_fail=:
19728
19729 fi
19730
19731 if test x"$lt_shell_append" = xyes; then
19732   sed -e '/^func_append ()$/,/^} # func_append /c\
19733 func_append ()\
19734 {\
19735     eval "${1}+=\\${2}"\
19736 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19737   && mv -f "$cfgfile.tmp" "$cfgfile" \
19738     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19739 test 0 -eq $? || _lt_function_replace_fail=:
19740
19741
19742   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19743 func_append_quoted ()\
19744 {\
19745 \    func_quote_for_eval "${2}"\
19746 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19747 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19748   && mv -f "$cfgfile.tmp" "$cfgfile" \
19749     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19750 test 0 -eq $? || _lt_function_replace_fail=:
19751
19752
19753   # Save a `func_append' function call where possible by direct use of '+='
19754   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19755     && mv -f "$cfgfile.tmp" "$cfgfile" \
19756       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19757   test 0 -eq $? || _lt_function_replace_fail=:
19758 else
19759   # Save a `func_append' function call even when '+=' is not available
19760   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19761     && mv -f "$cfgfile.tmp" "$cfgfile" \
19762       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19763   test 0 -eq $? || _lt_function_replace_fail=:
19764 fi
19765
19766 if test x"$_lt_function_replace_fail" = x":"; then
19767   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19768 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19769 fi
19770
19771
19772    mv -f "$cfgfile" "$ofile" ||
19773     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19774   chmod +x "$ofile"
19775
19776
19777     cat <<_LT_EOF >> "$ofile"
19778
19779 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19780
19781 # The linker used to build libraries.
19782 LD=$lt_LD_CXX
19783
19784 # How to create reloadable object files.
19785 reload_flag=$lt_reload_flag_CXX
19786 reload_cmds=$lt_reload_cmds_CXX
19787
19788 # Commands used to build an old-style archive.
19789 old_archive_cmds=$lt_old_archive_cmds_CXX
19790
19791 # A language specific compiler.
19792 CC=$lt_compiler_CXX
19793
19794 # Is the compiler the GNU compiler?
19795 with_gcc=$GCC_CXX
19796
19797 # Compiler flag to turn off builtin functions.
19798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19799
19800 # Additional compiler flags for building library objects.
19801 pic_flag=$lt_lt_prog_compiler_pic_CXX
19802
19803 # How to pass a linker flag through the compiler.
19804 wl=$lt_lt_prog_compiler_wl_CXX
19805
19806 # Compiler flag to prevent dynamic linking.
19807 link_static_flag=$lt_lt_prog_compiler_static_CXX
19808
19809 # Does compiler simultaneously support -c and -o options?
19810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19811
19812 # Whether or not to add -lc for building shared libraries.
19813 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19814
19815 # Whether or not to disallow shared libs when runtime libs are static.
19816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19817
19818 # Compiler flag to allow reflexive dlopens.
19819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19820
19821 # Compiler flag to generate shared objects directly from archives.
19822 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19823
19824 # Whether the compiler copes with passing no objects directly.
19825 compiler_needs_object=$lt_compiler_needs_object_CXX
19826
19827 # Create an old-style archive from a shared archive.
19828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19829
19830 # Create a temporary old-style archive to link instead of a shared archive.
19831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19832
19833 # Commands used to build a shared archive.
19834 archive_cmds=$lt_archive_cmds_CXX
19835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19836
19837 # Commands used to build a loadable module if different from building
19838 # a shared archive.
19839 module_cmds=$lt_module_cmds_CXX
19840 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19841
19842 # Whether we are building with GNU ld or not.
19843 with_gnu_ld=$lt_with_gnu_ld_CXX
19844
19845 # Flag that allows shared libraries with undefined symbols to be built.
19846 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19847
19848 # Flag that enforces no undefined symbols.
19849 no_undefined_flag=$lt_no_undefined_flag_CXX
19850
19851 # Flag to hardcode \$libdir into a binary during linking.
19852 # This must work even if \$libdir does not exist
19853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19854
19855 # Whether we need a single "-rpath" flag with a separated argument.
19856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19857
19858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19859 # DIR into the resulting binary.
19860 hardcode_direct=$hardcode_direct_CXX
19861
19862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19863 # DIR into the resulting binary and the resulting library dependency is
19864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19865 # library is relocated.
19866 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19867
19868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19869 # into the resulting binary.
19870 hardcode_minus_L=$hardcode_minus_L_CXX
19871
19872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19873 # into the resulting binary.
19874 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19875
19876 # Set to "yes" if building a shared library automatically hardcodes DIR
19877 # into the library and all subsequent libraries and executables linked
19878 # against it.
19879 hardcode_automatic=$hardcode_automatic_CXX
19880
19881 # Set to yes if linker adds runtime paths of dependent libraries
19882 # to runtime path list.
19883 inherit_rpath=$inherit_rpath_CXX
19884
19885 # Whether libtool must link a program against all its dependency libraries.
19886 link_all_deplibs=$link_all_deplibs_CXX
19887
19888 # Set to "yes" if exported symbols are required.
19889 always_export_symbols=$always_export_symbols_CXX
19890
19891 # The commands to list exported symbols.
19892 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19893
19894 # Symbols that should not be listed in the preloaded symbols.
19895 exclude_expsyms=$lt_exclude_expsyms_CXX
19896
19897 # Symbols that must always be exported.
19898 include_expsyms=$lt_include_expsyms_CXX
19899
19900 # Commands necessary for linking programs (against libraries) with templates.
19901 prelink_cmds=$lt_prelink_cmds_CXX
19902
19903 # Commands necessary for finishing linking programs.
19904 postlink_cmds=$lt_postlink_cmds_CXX
19905
19906 # Specify filename containing input files.
19907 file_list_spec=$lt_file_list_spec_CXX
19908
19909 # How to hardcode a shared library path into an executable.
19910 hardcode_action=$hardcode_action_CXX
19911
19912 # The directories searched by this compiler when creating a shared library.
19913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19914
19915 # Dependencies to place before and after the objects being linked to
19916 # create a shared library.
19917 predep_objects=$lt_predep_objects_CXX
19918 postdep_objects=$lt_postdep_objects_CXX
19919 predeps=$lt_predeps_CXX
19920 postdeps=$lt_postdeps_CXX
19921
19922 # The library search path used internally by the compiler when linking
19923 # a shared library.
19924 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19925
19926 # ### END LIBTOOL TAG CONFIG: CXX
19927 _LT_EOF
19928
19929  ;;
19930
19931   esac
19932 done # for ac_tag
19933
19934
19935 as_fn_exit 0
19936 _ACEOF
19937 ac_clean_files=$ac_clean_files_save
19938
19939 test $ac_write_fail = 0 ||
19940   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19941
19942
19943 # configure is writing to config.log, and then calls config.status.
19944 # config.status does its own redirection, appending to config.log.
19945 # Unfortunately, on DOS this fails, as config.log is still kept open
19946 # by configure, so config.status won't be able to write to it; its
19947 # output is simply discarded.  So we exec the FD to /dev/null,
19948 # effectively closing config.log, so it can be properly (re)opened and
19949 # appended to by config.status.  When coming back to configure, we
19950 # need to make the FD available again.
19951 if test "$no_create" != yes; then
19952   ac_cs_success=:
19953   ac_config_status_args=
19954   test "$silent" = yes &&
19955     ac_config_status_args="$ac_config_status_args --quiet"
19956   exec 5>/dev/null
19957   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19958   exec 5>>config.log
19959   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19960   # would make configure fail if this is the last instruction.
19961   $ac_cs_success || as_fn_exit 1
19962 fi
19963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19964   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19966 fi
19967