Imported Upstream version 2.81
[platform/upstream/libbullet.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 bullet 2.81.
4 @%:@
5 @%:@ Report bugs to <bullet@erwincoumans.com>.
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
250 $0: bullet@erwincoumans.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do 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 @%:@ as_fn_append VAR VALUE
295 @%:@ ----------------------
296 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
297 @%:@ advantage of any shell optimizations that allow amortized linear growth over
298 @%:@ repeated appends, instead of the typical quadratic growth present in naive
299 @%:@ implementations.
300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
301   eval 'as_fn_append ()
302   {
303     eval $1+=\$2
304   }'
305 else
306   as_fn_append ()
307   {
308     eval $1=\$$1\$2
309   }
310 fi # as_fn_append
311
312 @%:@ as_fn_arith ARG...
313 @%:@ ------------------
314 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
315 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
316 @%:@ must be portable across @S|@(()) and expr.
317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
318   eval 'as_fn_arith ()
319   {
320     as_val=$(( $* ))
321   }'
322 else
323   as_fn_arith ()
324   {
325     as_val=`expr "$@" || test $? -eq 1`
326   }
327 fi # as_fn_arith
328
329
330 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
331 @%:@ ----------------------------------------
332 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
333 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
334 @%:@ script with STATUS, using 1 if that was 0.
335 as_fn_error ()
336 {
337   as_status=$1; test $as_status -eq 0 && as_status=1
338   if test "$4"; then
339     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
340     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
341   fi
342   $as_echo "$as_me: error: $2" >&2
343   as_fn_exit $as_status
344 } @%:@ as_fn_error
345
346 if expr a : '\(a\)' >/dev/null 2>&1 &&
347    test "X`expr 00001 : '.*\(...\)'`" = X001; then
348   as_expr=expr
349 else
350   as_expr=false
351 fi
352
353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
354   as_basename=basename
355 else
356   as_basename=false
357 fi
358
359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
360   as_dirname=dirname
361 else
362   as_dirname=false
363 fi
364
365 as_me=`$as_basename -- "$0" ||
366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
367          X"$0" : 'X\(//\)$' \| \
368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
369 $as_echo X/"$0" |
370     sed '/^.*\/\([^/][^/]*\)\/*$/{
371             s//\1/
372             q
373           }
374           /^X\/\(\/\/\)$/{
375             s//\1/
376             q
377           }
378           /^X\/\(\/\).*/{
379             s//\1/
380             q
381           }
382           s/.*/./; q'`
383
384 # Avoid depending upon Character Ranges.
385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
388 as_cr_digits='0123456789'
389 as_cr_alnum=$as_cr_Letters$as_cr_digits
390
391
392   as_lineno_1=$LINENO as_lineno_1a=$LINENO
393   as_lineno_2=$LINENO as_lineno_2a=$LINENO
394   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
395   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
396   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
397   sed -n '
398     p
399     /[$]LINENO/=
400   ' <$as_myself |
401     sed '
402       s/[$]LINENO.*/&-/
403       t lineno
404       b
405       :lineno
406       N
407       :loop
408       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
409       t loop
410       s/-\n.*//
411     ' >$as_me.lineno &&
412   chmod +x "$as_me.lineno" ||
413     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
414
415   # Don't try to exec as it changes $[0], causing all sort of problems
416   # (the dirname of $[0] is not the place where we might find the
417   # original and so on.  Autoconf is especially sensitive to this).
418   . "./$as_me.lineno"
419   # Exit status is that of the last command.
420   exit
421 }
422
423 ECHO_C= ECHO_N= ECHO_T=
424 case `echo -n x` in @%:@(((((
425 -n*)
426   case `echo 'xy\c'` in
427   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
428   xy)  ECHO_C='\c';;
429   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
430        ECHO_T=' ';;
431   esac;;
432 *)
433   ECHO_N='-n';;
434 esac
435
436 rm -f conf$$ conf$$.exe conf$$.file
437 if test -d conf$$.dir; then
438   rm -f conf$$.dir/conf$$.file
439 else
440   rm -f conf$$.dir
441   mkdir conf$$.dir 2>/dev/null
442 fi
443 if (echo >conf$$.file) 2>/dev/null; then
444   if ln -s conf$$.file conf$$ 2>/dev/null; then
445     as_ln_s='ln -s'
446     # ... but there are two gotchas:
447     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
448     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
449     # In both cases, we have to default to `cp -p'.
450     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
451       as_ln_s='cp -p'
452   elif ln conf$$.file conf$$ 2>/dev/null; then
453     as_ln_s=ln
454   else
455     as_ln_s='cp -p'
456   fi
457 else
458   as_ln_s='cp -p'
459 fi
460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
461 rmdir conf$$.dir 2>/dev/null
462
463 if mkdir -p . 2>/dev/null; then
464   as_mkdir_p='mkdir -p'
465 elif mkdirs . 2>/dev/null; then
466   as_mkdir_p='mkdirs'
467 else
468   as_mkdir_p=''
469 fi
470 test -d ./-p && rmdir ./-p
471
472 if test -x / >/dev/null 2>&1; then
473   as_test_x='test -x'
474 else
475   if ls -dL / >/dev/null 2>&1; then
476     as_ls_L_option=L
477   else
478     as_ls_L_option=
479   fi
480   as_test_x='
481     eval sh -c '\''
482       if test -d "$1"; then
483         test -d "$1/.";
484       else
485         case $1 in @%:@(
486         -*)set "./$1";;
487         esac;
488         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
489         ???[sx]*):;;*)false;;esac;fi
490     '\'' sh
491   '
492 fi
493 as_executable_p=$as_test_x
494
495 # Sed expression to map a string onto a valid CPP name.
496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
497
498 # Sed expression to map a string onto a valid variable name.
499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
500
501 SHELL=${CONFIG_SHELL-/bin/sh}
502
503
504 test -n "$DJDIR" || exec 7<&0 </dev/null
505 exec 6>&1
506
507 # Name of the host.
508 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
509 # so uname gets run too.
510 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
511
512 #
513 # Initializations.
514 #
515 ac_default_prefix=/usr/local
516 ac_clean_files=
517 ac_config_libobj_dir=.
518 LIB@&t@OBJS=
519 cross_compiling=no
520 subdirs=
521 MFLAGS=
522 MAKEFLAGS=
523
524 # Identity of this package.
525 PACKAGE_NAME='bullet'
526 PACKAGE_TARNAME='bullet'
527 PACKAGE_VERSION='2.81'
528 PACKAGE_STRING='bullet 2.81'
529 PACKAGE_BUGREPORT='bullet@erwincoumans.com'
530 PACKAGE_URL=''
531
532 ac_unique_file="configure.ac"
533 # Factoring default headers for most tests.
534 ac_includes_default="\
535 #include <stdio.h>
536 #ifdef HAVE_SYS_TYPES_H
537 # include <sys/types.h>
538 #endif
539 #ifdef HAVE_SYS_STAT_H
540 # include <sys/stat.h>
541 #endif
542 #ifdef STDC_HEADERS
543 # include <stdlib.h>
544 # include <stddef.h>
545 #else
546 # ifdef HAVE_STDLIB_H
547 #  include <stdlib.h>
548 # endif
549 #endif
550 #ifdef HAVE_STRING_H
551 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
552 #  include <memory.h>
553 # endif
554 # include <string.h>
555 #endif
556 #ifdef HAVE_STRINGS_H
557 # include <strings.h>
558 #endif
559 #ifdef HAVE_INTTYPES_H
560 # include <inttypes.h>
561 #endif
562 #ifdef HAVE_STDINT_H
563 # include <stdint.h>
564 #endif
565 #ifdef HAVE_UNISTD_H
566 # include <unistd.h>
567 #endif"
568
569 ac_subst_vars='am__EXEEXT_FALSE
570 am__EXEEXT_TRUE
571 LTLIBOBJS
572 LIB@&t@OBJS
573 GL_LIBS
574 CONDITIONAL_BUILD_DEMOS_FALSE
575 CONDITIONAL_BUILD_DEMOS_TRUE
576 CONDITIONAL_BUILD_MULTITHREADED_FALSE
577 CONDITIONAL_BUILD_MULTITHREADED_TRUE
578 opengl_LIBS
579 CXXCPP
580 CPP
581 OTOOL64
582 OTOOL
583 LIPO
584 NMEDIT
585 DSYMUTIL
586 MANIFEST_TOOL
587 RANLIB
588 ac_ct_AR
589 AR
590 DLLTOOL
591 OBJDUMP
592 LN_S
593 NM
594 ac_ct_DUMPBIN
595 DUMPBIN
596 LD
597 FGREP
598 EGREP
599 GREP
600 SED
601 LIBTOOL
602 am__fastdepCXX_FALSE
603 am__fastdepCXX_TRUE
604 CXXDEPMODE
605 ac_ct_CXX
606 CXXFLAGS
607 CXX
608 am__fastdepCC_FALSE
609 am__fastdepCC_TRUE
610 CCDEPMODE
611 AMDEPBACKSLASH
612 AMDEP_FALSE
613 AMDEP_TRUE
614 am__quote
615 am__include
616 DEPDIR
617 OBJEXT
618 EXEEXT
619 ac_ct_CC
620 CPPFLAGS
621 LDFLAGS
622 CFLAGS
623 CC
624 am__untar
625 am__tar
626 AMTAR
627 am__leading_dot
628 SET_MAKE
629 AWK
630 mkdir_p
631 MKDIR_P
632 INSTALL_STRIP_PROGRAM
633 STRIP
634 install_sh
635 MAKEINFO
636 AUTOHEADER
637 AUTOMAKE
638 AUTOCONF
639 ACLOCAL
640 VERSION
641 PACKAGE
642 CYGPATH_W
643 am__isrc
644 INSTALL_DATA
645 INSTALL_SCRIPT
646 INSTALL_PROGRAM
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 target_alias
656 host_alias
657 build_alias
658 LIBS
659 ECHO_T
660 ECHO_N
661 ECHO_C
662 DEFS
663 mandir
664 localedir
665 libdir
666 psdir
667 pdfdir
668 dvidir
669 htmldir
670 infodir
671 docdir
672 oldincludedir
673 includedir
674 localstatedir
675 sharedstatedir
676 sysconfdir
677 datadir
678 datarootdir
679 libexecdir
680 sbindir
681 bindir
682 program_transform_name
683 prefix
684 exec_prefix
685 PACKAGE_URL
686 PACKAGE_BUGREPORT
687 PACKAGE_STRING
688 PACKAGE_VERSION
689 PACKAGE_TARNAME
690 PACKAGE_NAME
691 PATH_SEPARATOR
692 SHELL'
693 ac_subst_files=''
694 ac_user_opts='
695 enable_option_checking
696 enable_dependency_tracking
697 enable_shared
698 enable_static
699 with_pic
700 enable_fast_install
701 with_gnu_ld
702 with_sysroot
703 enable_libtool_lock
704 enable_multithreaded
705 enable_demos
706 enable_debug
707 '
708       ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CXX
717 CXXFLAGS
718 CCC
719 CPP
720 CXXCPP'
721
722
723 # Initialize some variables set by options.
724 ac_init_help=
725 ac_init_version=false
726 ac_unrecognized_opts=
727 ac_unrecognized_sep=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
730 cache_file=/dev/null
731 exec_prefix=NONE
732 no_create=
733 no_recursion=
734 prefix=NONE
735 program_prefix=NONE
736 program_suffix=NONE
737 program_transform_name=s,x,x,
738 silent=
739 site=
740 srcdir=
741 verbose=
742 x_includes=NONE
743 x_libraries=NONE
744
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
763 htmldir='${docdir}'
764 dvidir='${docdir}'
765 pdfdir='${docdir}'
766 psdir='${docdir}'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
770
771 ac_prev=
772 ac_dashdash=
773 for ac_option
774 do
775   # If the previous option needs an argument, assign it.
776   if test -n "$ac_prev"; then
777     eval $ac_prev=\$ac_option
778     ac_prev=
779     continue
780   fi
781
782   case $ac_option in
783   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784   *=)   ac_optarg= ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830       as_fn_error $? "invalid feature name: $ac_useropt"
831     ac_useropt_orig=$ac_useropt
832     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833     case $ac_user_opts in
834       *"
835 "enable_$ac_useropt"
836 "*) ;;
837       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838          ac_unrecognized_sep=', ';;
839     esac
840     eval enable_$ac_useropt=no ;;
841
842   -docdir | --docdir | --docdi | --doc | --do)
843     ac_prev=docdir ;;
844   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845     docdir=$ac_optarg ;;
846
847   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848     ac_prev=dvidir ;;
849   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850     dvidir=$ac_optarg ;;
851
852   -enable-* | --enable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       as_fn_error $? "invalid feature name: $ac_useropt"
857     ac_useropt_orig=$ac_useropt
858     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859     case $ac_user_opts in
860       *"
861 "enable_$ac_useropt"
862 "*) ;;
863       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864          ac_unrecognized_sep=', ';;
865     esac
866     eval enable_$ac_useropt=\$ac_optarg ;;
867
868   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870   | --exec | --exe | --ex)
871     ac_prev=exec_prefix ;;
872   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874   | --exec=* | --exe=* | --ex=*)
875     exec_prefix=$ac_optarg ;;
876
877   -gas | --gas | --ga | --g)
878     # Obsolete; use --with-gas.
879     with_gas=yes ;;
880
881   -help | --help | --hel | --he | -h)
882     ac_init_help=long ;;
883   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884     ac_init_help=recursive ;;
885   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886     ac_init_help=short ;;
887
888   -host | --host | --hos | --ho)
889     ac_prev=host_alias ;;
890   -host=* | --host=* | --hos=* | --ho=*)
891     host_alias=$ac_optarg ;;
892
893   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894     ac_prev=htmldir ;;
895   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896   | --ht=*)
897     htmldir=$ac_optarg ;;
898
899   -includedir | --includedir | --includedi | --included | --include \
900   | --includ | --inclu | --incl | --inc)
901     ac_prev=includedir ;;
902   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903   | --includ=* | --inclu=* | --incl=* | --inc=*)
904     includedir=$ac_optarg ;;
905
906   -infodir | --infodir | --infodi | --infod | --info | --inf)
907     ac_prev=infodir ;;
908   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909     infodir=$ac_optarg ;;
910
911   -libdir | --libdir | --libdi | --libd)
912     ac_prev=libdir ;;
913   -libdir=* | --libdir=* | --libdi=* | --libd=*)
914     libdir=$ac_optarg ;;
915
916   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917   | --libexe | --libex | --libe)
918     ac_prev=libexecdir ;;
919   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920   | --libexe=* | --libex=* | --libe=*)
921     libexecdir=$ac_optarg ;;
922
923   -localedir | --localedir | --localedi | --localed | --locale)
924     ac_prev=localedir ;;
925   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926     localedir=$ac_optarg ;;
927
928   -localstatedir | --localstatedir | --localstatedi | --localstated \
929   | --localstate | --localstat | --localsta | --localst | --locals)
930     ac_prev=localstatedir ;;
931   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933     localstatedir=$ac_optarg ;;
934
935   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936     ac_prev=mandir ;;
937   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938     mandir=$ac_optarg ;;
939
940   -nfp | --nfp | --nf)
941     # Obsolete; use --without-fp.
942     with_fp=no ;;
943
944   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945   | --no-cr | --no-c | -n)
946     no_create=yes ;;
947
948   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950     no_recursion=yes ;;
951
952   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954   | --oldin | --oldi | --old | --ol | --o)
955     ac_prev=oldincludedir ;;
956   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959     oldincludedir=$ac_optarg ;;
960
961   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962     ac_prev=prefix ;;
963   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964     prefix=$ac_optarg ;;
965
966   -program-prefix | --program-prefix | --program-prefi | --program-pref \
967   | --program-pre | --program-pr | --program-p)
968     ac_prev=program_prefix ;;
969   -program-prefix=* | --program-prefix=* | --program-prefi=* \
970   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971     program_prefix=$ac_optarg ;;
972
973   -program-suffix | --program-suffix | --program-suffi | --program-suff \
974   | --program-suf | --program-su | --program-s)
975     ac_prev=program_suffix ;;
976   -program-suffix=* | --program-suffix=* | --program-suffi=* \
977   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978     program_suffix=$ac_optarg ;;
979
980   -program-transform-name | --program-transform-name \
981   | --program-transform-nam | --program-transform-na \
982   | --program-transform-n | --program-transform- \
983   | --program-transform | --program-transfor \
984   | --program-transfo | --program-transf \
985   | --program-trans | --program-tran \
986   | --progr-tra | --program-tr | --program-t)
987     ac_prev=program_transform_name ;;
988   -program-transform-name=* | --program-transform-name=* \
989   | --program-transform-nam=* | --program-transform-na=* \
990   | --program-transform-n=* | --program-transform-=* \
991   | --program-transform=* | --program-transfor=* \
992   | --program-transfo=* | --program-transf=* \
993   | --program-trans=* | --program-tran=* \
994   | --progr-tra=* | --program-tr=* | --program-t=*)
995     program_transform_name=$ac_optarg ;;
996
997   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998     ac_prev=pdfdir ;;
999   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000     pdfdir=$ac_optarg ;;
1001
1002   -psdir | --psdir | --psdi | --psd | --ps)
1003     ac_prev=psdir ;;
1004   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005     psdir=$ac_optarg ;;
1006
1007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008   | -silent | --silent | --silen | --sile | --sil)
1009     silent=yes ;;
1010
1011   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012     ac_prev=sbindir ;;
1013   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014   | --sbi=* | --sb=*)
1015     sbindir=$ac_optarg ;;
1016
1017   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019   | --sharedst | --shareds | --shared | --share | --shar \
1020   | --sha | --sh)
1021     ac_prev=sharedstatedir ;;
1022   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025   | --sha=* | --sh=*)
1026     sharedstatedir=$ac_optarg ;;
1027
1028   -site | --site | --sit)
1029     ac_prev=site ;;
1030   -site=* | --site=* | --sit=*)
1031     site=$ac_optarg ;;
1032
1033   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034     ac_prev=srcdir ;;
1035   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036     srcdir=$ac_optarg ;;
1037
1038   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039   | --syscon | --sysco | --sysc | --sys | --sy)
1040     ac_prev=sysconfdir ;;
1041   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043     sysconfdir=$ac_optarg ;;
1044
1045   -target | --target | --targe | --targ | --tar | --ta | --t)
1046     ac_prev=target_alias ;;
1047   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048     target_alias=$ac_optarg ;;
1049
1050   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051     verbose=yes ;;
1052
1053   -version | --version | --versio | --versi | --vers | -V)
1054     ac_init_version=: ;;
1055
1056   -with-* | --with-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error $? "invalid package name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval with_$ac_useropt=\$ac_optarg ;;
1071
1072   -without-* | --without-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error $? "invalid package name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval with_$ac_useropt=no ;;
1087
1088   --x)
1089     # Obsolete; use --with-x.
1090     with_x=yes ;;
1091
1092   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093   | --x-incl | --x-inc | --x-in | --x-i)
1094     ac_prev=x_includes ;;
1095   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097     x_includes=$ac_optarg ;;
1098
1099   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101     ac_prev=x_libraries ;;
1102   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104     x_libraries=$ac_optarg ;;
1105
1106   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1108     ;;
1109
1110   *=*)
1111     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112     # Reject names that are not valid shell variable names.
1113     case $ac_envvar in #(
1114       '' | [0-9]* | *[!_$as_cr_alnum]* )
1115       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116     esac
1117     eval $ac_envvar=\$ac_optarg
1118     export $ac_envvar ;;
1119
1120   *)
1121     # FIXME: should be removed in autoconf 3.0.
1122     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126     ;;
1127
1128   esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133   as_fn_error $? "missing argument to $ac_option"
1134 fi
1135
1136 if test -n "$ac_unrecognized_opts"; then
1137   case $enable_option_checking in
1138     no) ;;
1139     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141   esac
1142 fi
1143
1144 # Check all directory arguments for consistency.
1145 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146                 datadir sysconfdir sharedstatedir localstatedir includedir \
1147                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148                 libdir localedir mandir
1149 do
1150   eval ac_val=\$$ac_var
1151   # Remove trailing slashes.
1152   case $ac_val in
1153     */ )
1154       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155       eval $ac_var=\$ac_val;;
1156   esac
1157   # Be sure to have absolute directory names.
1158   case $ac_val in
1159     [\\/$]* | ?:[\\/]* )  continue;;
1160     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161   esac
1162   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1163 done
1164
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1168 build=$build_alias
1169 host=$host_alias
1170 target=$target_alias
1171
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174   if test "x$build_alias" = x; then
1175     cross_compiling=maybe
1176     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1177     If a cross compiler is detected then cross compile mode will be used" >&2
1178   elif test "x$build_alias" != "x$host_alias"; then
1179     cross_compiling=yes
1180   fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192   as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194   as_fn_error $? "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199   ac_srcdir_defaulted=yes
1200   # Try the directory containing this script, then the parent directory.
1201   ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203          X"$as_myself" : 'X\(//\)[^/]' \| \
1204          X"$as_myself" : 'X\(//\)$' \| \
1205          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208             s//\1/
1209             q
1210           }
1211           /^X\(\/\/\)[^/].*/{
1212             s//\1/
1213             q
1214           }
1215           /^X\(\/\/\)$/{
1216             s//\1/
1217             q
1218           }
1219           /^X\(\/\).*/{
1220             s//\1/
1221             q
1222           }
1223           s/.*/./; q'`
1224   srcdir=$ac_confdir
1225   if test ! -r "$srcdir/$ac_unique_file"; then
1226     srcdir=..
1227   fi
1228 else
1229   ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238         pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241   srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251   eval ac_env_${ac_var}_value=\$${ac_var}
1252   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260   # Omit some internal or obsolete options to make the list less imposing.
1261   # This message is too long to be a string in the A/UX 3.1 sh.
1262   cat <<_ACEOF
1263 \`configure' configures bullet 2.81 to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE.  See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273   -h, --help              display this help and exit
1274       --help=short        display options specific to this package
1275       --help=recursive    display the short help of all the included packages
1276   -V, --version           display version information and exit
1277   -q, --quiet, --silent   do not print \`checking ...' messages
1278       --cache-file=FILE   cache test results in FILE [disabled]
1279   -C, --config-cache      alias for \`--cache-file=config.cache'
1280   -n, --no-create         do not create output files
1281       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284   --prefix=PREFIX         install architecture-independent files in PREFIX
1285                           @<:@@S|@ac_default_prefix@:>@
1286   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1287                           @<:@PREFIX@:>@
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297   --bindir=DIR            user executables [EPREFIX/bin]
1298   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1299   --libexecdir=DIR        program executables [EPREFIX/libexec]
1300   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1301   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1302   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1303   --libdir=DIR            object code libraries [EPREFIX/lib]
1304   --includedir=DIR        C header files [PREFIX/include]
1305   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1306   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1307   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1308   --infodir=DIR           info documentation [DATAROOTDIR/info]
1309   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1310   --mandir=DIR            man documentation [DATAROOTDIR/man]
1311   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/bullet@:>@
1312   --htmldir=DIR           html documentation [DOCDIR]
1313   --dvidir=DIR            dvi documentation [DOCDIR]
1314   --pdfdir=DIR            pdf documentation [DOCDIR]
1315   --psdir=DIR             ps documentation [DOCDIR]
1316 _ACEOF
1317
1318   cat <<\_ACEOF
1319
1320 Program names:
1321   --program-prefix=PREFIX            prepend PREFIX to installed program names
1322   --program-suffix=SUFFIX            append SUFFIX to installed program names
1323   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1324
1325 System types:
1326   --build=BUILD     configure for building on BUILD [guessed]
1327   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332   case $ac_init_help in
1333      short | recursive ) echo "Configuration of bullet 2.81:";;
1334    esac
1335   cat <<\_ACEOF
1336
1337 Optional Features:
1338   --disable-option-checking  ignore unrecognized --enable/--with options
1339   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1340   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1341   --disable-dependency-tracking  speeds up one-time build
1342   --enable-dependency-tracking   do not reject slow dependency extractors
1343   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1344   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1345   --enable-fast-install@<:@=PKGS@:>@ 
1346                           optimize for fast installation @<:@default=yes@:>@
1347   --disable-libtool-lock  avoid locking (might break parallel builds)
1348   --enable-multithreaded  build BulletMultiThreaded (default NO)
1349   --disable-demos         disable Bullet demos
1350   --enable-debug          build with debugging information (default NO)
1351
1352 Optional Packages:
1353   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1354   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1355   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1356                           both@:>@
1357   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1358   --with-sysroot=DIR Search for dependent libraries within DIR
1359                         (or the compiler's sysroot if not specified).
1360
1361 Some influential environment variables:
1362   CC          C compiler command
1363   CFLAGS      C compiler flags
1364   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1365               nonstandard directory <lib dir>
1366   LIBS        libraries to pass to the linker, e.g. -l<library>
1367   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368               you have headers in a nonstandard directory <include dir>
1369   CXX         C++ compiler command
1370   CXXFLAGS    C++ compiler flags
1371   CPP         C preprocessor
1372   CXXCPP      C++ preprocessor
1373
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1376
1377 Report bugs to <bullet@erwincoumans.com>.
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383   # If there are subdirs, report their specific --help.
1384   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385     test -d "$ac_dir" ||
1386       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387       continue
1388     ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394   # A ".." for each directory in $ac_dir_suffix.
1395   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396   case $ac_top_builddir_sub in
1397   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399   esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407   .)  # We are building in place.
1408     ac_srcdir=.
1409     ac_top_srcdir=$ac_top_builddir_sub
1410     ac_abs_top_srcdir=$ac_pwd ;;
1411   [\\/]* | ?:[\\/]* )  # Absolute name.
1412     ac_srcdir=$srcdir$ac_dir_suffix;
1413     ac_top_srcdir=$srcdir
1414     ac_abs_top_srcdir=$srcdir ;;
1415   *) # Relative name.
1416     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417     ac_top_srcdir=$ac_top_build_prefix$srcdir
1418     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422     cd "$ac_dir" || { ac_status=$?; continue; }
1423     # Check for guested configure.
1424     if test -f "$ac_srcdir/configure.gnu"; then
1425       echo &&
1426       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427     elif test -f "$ac_srcdir/configure"; then
1428       echo &&
1429       $SHELL "$ac_srcdir/configure" --help=recursive
1430     else
1431       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432     fi || ac_status=$?
1433     cd "$ac_pwd" || { ac_status=$?; break; }
1434   done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439   cat <<\_ACEOF
1440 bullet configure 2.81
1441 generated by GNU Autoconf 2.68
1442
1443 Copyright (C) 2010 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446 _ACEOF
1447   exit
1448 fi
1449
1450 ## ------------------------ ##
1451 ## Autoconf initialization. ##
1452 ## ------------------------ ##
1453
1454 @%:@ ac_fn_c_try_compile LINENO
1455 @%:@ --------------------------
1456 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_compile ()
1458 {
1459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460   rm -f conftest.$ac_objext
1461   if { { ac_try="$ac_compile"
1462 case "(($ac_try" in
1463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464   *) ac_try_echo=$ac_try;;
1465 esac
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468   (eval "$ac_compile") 2>conftest.err
1469   ac_status=$?
1470   if test -s conftest.err; then
1471     grep -v '^ *+' conftest.err >conftest.er1
1472     cat conftest.er1 >&5
1473     mv -f conftest.er1 conftest.err
1474   fi
1475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476   test $ac_status = 0; } && {
1477          test -z "$ac_c_werror_flag" ||
1478          test ! -s conftest.err
1479        } && test -s conftest.$ac_objext; then :
1480   ac_retval=0
1481 else
1482   $as_echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1484
1485         ac_retval=1
1486 fi
1487   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488   as_fn_set_status $ac_retval
1489
1490 } @%:@ ac_fn_c_try_compile
1491
1492 @%:@ ac_fn_cxx_try_compile LINENO
1493 @%:@ ----------------------------
1494 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1495 ac_fn_cxx_try_compile ()
1496 {
1497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498   rm -f conftest.$ac_objext
1499   if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502   *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506   (eval "$ac_compile") 2>conftest.err
1507   ac_status=$?
1508   if test -s conftest.err; then
1509     grep -v '^ *+' conftest.err >conftest.er1
1510     cat conftest.er1 >&5
1511     mv -f conftest.er1 conftest.err
1512   fi
1513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514   test $ac_status = 0; } && {
1515          test -z "$ac_cxx_werror_flag" ||
1516          test ! -s conftest.err
1517        } && test -s conftest.$ac_objext; then :
1518   ac_retval=0
1519 else
1520   $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523         ac_retval=1
1524 fi
1525   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526   as_fn_set_status $ac_retval
1527
1528 } @%:@ ac_fn_cxx_try_compile
1529
1530 @%:@ ac_fn_c_try_link LINENO
1531 @%:@ -----------------------
1532 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_link ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   rm -f conftest.$ac_objext conftest$ac_exeext
1537   if { { ac_try="$ac_link"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544   (eval "$ac_link") 2>conftest.err
1545   ac_status=$?
1546   if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550   fi
1551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552   test $ac_status = 0; } && {
1553          test -z "$ac_c_werror_flag" ||
1554          test ! -s conftest.err
1555        } && test -s conftest$ac_exeext && {
1556          test "$cross_compiling" = yes ||
1557          $as_test_x conftest$ac_exeext
1558        }; then :
1559   ac_retval=0
1560 else
1561   $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564         ac_retval=1
1565 fi
1566   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568   # interfere with the next link command; also delete a directory that is
1569   # left behind by Apple's compiler.  We do this before executing the actions.
1570   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572   as_fn_set_status $ac_retval
1573
1574 } @%:@ ac_fn_c_try_link
1575
1576 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577 @%:@ -------------------------------------------------------
1578 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1579 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1580 ac_fn_c_check_header_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586   $as_echo_n "(cached) " >&6
1587 else
1588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h.  */
1590 $4
1591 @%:@include <$2>
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594   eval "$3=yes"
1595 else
1596   eval "$3=no"
1597 fi
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 fi
1600 eval ac_res=\$$3
1601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1605 } @%:@ ac_fn_c_check_header_compile
1606
1607 @%:@ ac_fn_c_try_cpp LINENO
1608 @%:@ ----------------------
1609 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } > conftest.i && {
1629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } @%:@ ac_fn_c_try_cpp
1643
1644 @%:@ ac_fn_c_try_run LINENO
1645 @%:@ ----------------------
1646 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1647 @%:@ that executables *can* be run.
1648 ac_fn_c_try_run ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_link") 2>&5
1659   ac_status=$?
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662   { { case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_try") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; }; }; then :
1672   ac_retval=0
1673 else
1674   $as_echo "$as_me: program exited with status $ac_status" >&5
1675        $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678        ac_retval=$ac_status
1679 fi
1680   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } @%:@ ac_fn_c_try_run
1685
1686 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1687 @%:@ ----------------------------------
1688 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1701 #define $2 innocuous_$2
1702
1703 /* System header to define __stub macros and hopefully few prototypes,
1704     which can conflict with char $2 (); below.
1705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706     <limits.h> exists even on freestanding compilers.  */
1707
1708 #ifdef __STDC__
1709 # include <limits.h>
1710 #else
1711 # include <assert.h>
1712 #endif
1713
1714 #undef $2
1715
1716 /* Override any GCC internal prototype to avoid an error.
1717    Use char because int might match the return type of a GCC
1718    builtin and then its argument prototype would still apply.  */
1719 #ifdef __cplusplus
1720 extern "C"
1721 #endif
1722 char $2 ();
1723 /* The GNU C library defines this for functions which it implements
1724     to always fail with ENOSYS.  Some functions are actually named
1725     something starting with __ and the normal name is an alias.  */
1726 #if defined __stub_$2 || defined __stub___$2
1727 choke me
1728 #endif
1729
1730 int
1731 main ()
1732 {
1733 return $2 ();
1734   ;
1735   return 0;
1736 }
1737 _ACEOF
1738 if ac_fn_c_try_link "$LINENO"; then :
1739   eval "$3=yes"
1740 else
1741   eval "$3=no"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext \
1744     conftest$ac_exeext conftest.$ac_ext
1745 fi
1746 eval ac_res=\$$3
1747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } @%:@ ac_fn_c_check_func
1752
1753 @%:@ ac_fn_cxx_try_cpp LINENO
1754 @%:@ ------------------------
1755 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_cpp ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767   ac_status=$?
1768   if test -s conftest.err; then
1769     grep -v '^ *+' conftest.err >conftest.er1
1770     cat conftest.er1 >&5
1771     mv -f conftest.er1 conftest.err
1772   fi
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } > conftest.i && {
1775          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776          test ! -s conftest.err
1777        }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783     ac_retval=1
1784 fi
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } @%:@ ac_fn_cxx_try_cpp
1789
1790 @%:@ ac_fn_cxx_try_link LINENO
1791 @%:@ -------------------------
1792 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext conftest$ac_exeext
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_cxx_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest$ac_exeext && {
1816          test "$cross_compiling" = yes ||
1817          $as_test_x conftest$ac_exeext
1818        }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824         ac_retval=1
1825 fi
1826   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828   # interfere with the next link command; also delete a directory that is
1829   # left behind by Apple's compiler.  We do this before executing the actions.
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } @%:@ ac_fn_cxx_try_link
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1838
1839 It was created by bullet $as_me 2.81, which was
1840 generated by GNU Autoconf 2.68.  Invocation command line was
1841
1842   $ $0 $@
1843
1844 _ACEOF
1845 exec 5>>config.log
1846 {
1847 cat <<_ASUNAME
1848 ## --------- ##
1849 ## Platform. ##
1850 ## --------- ##
1851
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1860
1861 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1862 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1865 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1866 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1867 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1868
1869 _ASUNAME
1870
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876     $as_echo "PATH: $as_dir"
1877   done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903   for ac_arg
1904   do
1905     case $ac_arg in
1906     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908     | -silent | --silent | --silen | --sile | --sil)
1909       continue ;;
1910     *\'*)
1911       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     esac
1913     case $ac_pass in
1914     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915     2)
1916       as_fn_append ac_configure_args1 " '$ac_arg'"
1917       if test $ac_must_keep_next = true; then
1918         ac_must_keep_next=false # Got value, back to normal.
1919       else
1920         case $ac_arg in
1921           *=* | --config-cache | -C | -disable-* | --disable-* \
1922           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924           | -with-* | --with-* | -without-* | --without-* | --x)
1925             case "$ac_configure_args0 " in
1926               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927             esac
1928             ;;
1929           -* ) ac_must_keep_next=true ;;
1930         esac
1931       fi
1932       as_fn_append ac_configure_args " '$ac_arg'"
1933       ;;
1934     esac
1935   done
1936 done
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log.  We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946   # Save into config.log some information that might help in debugging.
1947   {
1948     echo
1949
1950     $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1953     echo
1954     # The following way of writing the cache mishandles newlines in values,
1955 (
1956   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957     eval ac_val=\$$ac_var
1958     case $ac_val in #(
1959     *${as_nl}*)
1960       case $ac_var in #(
1961       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963       esac
1964       case $ac_var in #(
1965       _ | IFS | as_nl) ;; #(
1966       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967       *) { eval $ac_var=; unset $ac_var;} ;;
1968       esac ;;
1969     esac
1970   done
1971   (set) 2>&1 |
1972     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973     *${as_nl}ac_space=\ *)
1974       sed -n \
1975         "s/'\''/'\''\\\\'\'''\''/g;
1976           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977       ;; #(
1978     *)
1979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980       ;;
1981     esac |
1982     sort
1983 )
1984     echo
1985
1986     $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1989     echo
1990     for ac_var in $ac_subst_vars
1991     do
1992       eval ac_val=\$$ac_var
1993       case $ac_val in
1994       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995       esac
1996       $as_echo "$ac_var='\''$ac_val'\''"
1997     done | sort
1998     echo
1999
2000     if test -n "$ac_subst_files"; then
2001       $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2004       echo
2005       for ac_var in $ac_subst_files
2006       do
2007         eval ac_val=\$$ac_var
2008         case $ac_val in
2009         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010         esac
2011         $as_echo "$ac_var='\''$ac_val'\''"
2012       done | sort
2013       echo
2014     fi
2015
2016     if test -s confdefs.h; then
2017       $as_echo "## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##"
2020       echo
2021       cat confdefs.h
2022       echo
2023     fi
2024     test "$ac_signal" != 0 &&
2025       $as_echo "$as_me: caught signal $ac_signal"
2026     $as_echo "$as_me: exit $exit_status"
2027   } >&5
2028   rm -f core *.core core.conftest.* &&
2029     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030     exit $exit_status
2031 ' 0
2032 for ac_signal in 1 2 13 15; do
2033   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 done
2035 ac_signal=0
2036
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2039
2040 $as_echo "/* confdefs.h */" > confdefs.h
2041
2042 # Predefined preprocessor variables.
2043
2044 cat >>confdefs.h <<_ACEOF
2045 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 @%:@define PACKAGE_URL "$PACKAGE_URL"
2066 _ACEOF
2067
2068
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2071 ac_site_file1=NONE
2072 ac_site_file2=NONE
2073 if test -n "$CONFIG_SITE"; then
2074   # We do not want a PATH search for config.site.
2075   case $CONFIG_SITE in @%:@((
2076     -*)  ac_site_file1=./$CONFIG_SITE;;
2077     */*) ac_site_file1=$CONFIG_SITE;;
2078     *)   ac_site_file1=./$CONFIG_SITE;;
2079   esac
2080 elif test "x$prefix" != xNONE; then
2081   ac_site_file1=$prefix/share/config.site
2082   ac_site_file2=$prefix/etc/config.site
2083 else
2084   ac_site_file1=$ac_default_prefix/share/config.site
2085   ac_site_file2=$ac_default_prefix/etc/config.site
2086 fi
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 do
2089   test "x$ac_site_file" = xNONE && continue
2090   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093     sed 's/^/| /' "$ac_site_file" >&5
2094     . "$ac_site_file" \
2095       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2099   fi
2100 done
2101
2102 if test -r "$cache_file"; then
2103   # Some versions of bash will fail to source /dev/null (special files
2104   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2105   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108     case $cache_file in
2109       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110       *)                      . "./$cache_file";;
2111     esac
2112   fi
2113 else
2114   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116   >$cache_file
2117 fi
2118
2119 # Check that the precious variables saved in the cache have kept the same
2120 # value.
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124   eval ac_new_set=\$ac_env_${ac_var}_set
2125   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126   eval ac_new_val=\$ac_env_${ac_var}_value
2127   case $ac_old_set,$ac_new_set in
2128     set,)
2129       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131       ac_cache_corrupted=: ;;
2132     ,set)
2133       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,);;
2137     *)
2138       if test "x$ac_old_val" != "x$ac_new_val"; then
2139         # differences in whitespace do not lead to failure.
2140         ac_old_val_w=`echo x $ac_old_val`
2141         ac_new_val_w=`echo x $ac_new_val`
2142         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145           ac_cache_corrupted=:
2146         else
2147           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149           eval $ac_var=\$ac_old_val
2150         fi
2151         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2152 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2153         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2155       fi;;
2156   esac
2157   # Pass precious variables to config.status.
2158   if test "$ac_new_set" = set; then
2159     case $ac_new_val in
2160     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161     *) ac_arg=$ac_var=$ac_new_val ;;
2162     esac
2163     case " $ac_configure_args " in
2164       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2165       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166     esac
2167   fi
2168 done
2169 if $ac_cache_corrupted; then
2170   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175 fi
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187 ac_aux_dir=
2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189   if test -f "$ac_dir/install-sh"; then
2190     ac_aux_dir=$ac_dir
2191     ac_install_sh="$ac_aux_dir/install-sh -c"
2192     break
2193   elif test -f "$ac_dir/install.sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install.sh -c"
2196     break
2197   elif test -f "$ac_dir/shtool"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/shtool install -c"
2200     break
2201   fi
2202 done
2203 if test -z "$ac_aux_dir"; then
2204   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2205 fi
2206
2207 # These three variables are undocumented and unsupported,
2208 # and are intended to be withdrawn in a future Autoconf release.
2209 # They can cause serious problems if a builder's source tree is in a directory
2210 # whose full name contains unusual characters.
2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2213 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2214
2215
2216 # Make sure we can run config.sub.
2217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2218   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2219
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2221 $as_echo_n "checking build system type... " >&6; }
2222 if ${ac_cv_build+:} false; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   ac_build_alias=$build_alias
2226 test "x$ac_build_alias" = x &&
2227   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2228 test "x$ac_build_alias" = x &&
2229   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2231   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2232
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2235 $as_echo "$ac_cv_build" >&6; }
2236 case $ac_cv_build in
2237 *-*-*) ;;
2238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2239 esac
2240 build=$ac_cv_build
2241 ac_save_IFS=$IFS; IFS='-'
2242 set x $ac_cv_build
2243 shift
2244 build_cpu=$1
2245 build_vendor=$2
2246 shift; shift
2247 # Remember, the first character of IFS is used to create $*,
2248 # except with old shells:
2249 build_os=$*
2250 IFS=$ac_save_IFS
2251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2252
2253
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2255 $as_echo_n "checking host system type... " >&6; }
2256 if ${ac_cv_host+:} false; then :
2257   $as_echo_n "(cached) " >&6
2258 else
2259   if test "x$host_alias" = x; then
2260   ac_cv_host=$ac_cv_build
2261 else
2262   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2263     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2264 fi
2265
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2268 $as_echo "$ac_cv_host" >&6; }
2269 case $ac_cv_host in
2270 *-*-*) ;;
2271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2272 esac
2273 host=$ac_cv_host
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_host
2276 shift
2277 host_cpu=$1
2278 host_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 host_os=$*
2283 IFS=$ac_save_IFS
2284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2285
2286
2287
2288 am__api_version='1.11'
2289
2290 # Find a good install program.  We prefer a C program (faster),
2291 # so one script is as good as another.  But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2296 # AIX /bin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315     # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in @%:@((
2317   ./ | .// | /[cC]/* | \
2318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2320   /usr/ucb/* ) ;;
2321   *)
2322     # OSF1 and SCO ODT 3.0 have their own names for install.
2323     # Don't use installbsd from OSF since it installs stuff as root
2324     # by default.
2325     for ac_prog in ginstall scoinst install; do
2326       for ac_exec_ext in '' $ac_executable_extensions; do
2327         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2328           if test $ac_prog = install &&
2329             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330             # AIX install.  It has an incompatible calling convention.
2331             :
2332           elif test $ac_prog = install &&
2333             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334             # program-specific install script used by HP pwplus--don't use.
2335             :
2336           else
2337             rm -rf conftest.one conftest.two conftest.dir
2338             echo one > conftest.one
2339             echo two > conftest.two
2340             mkdir conftest.dir
2341             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342               test -s conftest.one && test -s conftest.two &&
2343               test -s conftest.dir/conftest.one &&
2344               test -s conftest.dir/conftest.two
2345             then
2346               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347               break 3
2348             fi
2349           fi
2350         fi
2351       done
2352     done
2353     ;;
2354 esac
2355
2356   done
2357 IFS=$as_save_IFS
2358
2359 rm -rf conftest.one conftest.two conftest.dir
2360
2361 fi
2362   if test "${ac_cv_path_install+set}" = set; then
2363     INSTALL=$ac_cv_path_install
2364   else
2365     # As a last resort, use the slow shell script.  Don't cache a
2366     # value for INSTALL within a source directory, because that will
2367     # break other packages using the cache if that directory is
2368     # removed, or if the value is a relative name.
2369     INSTALL=$ac_install_sh
2370   fi
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2374
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2380
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2385 # Just in case
2386 sleep 1
2387 echo timestamp > conftest.file
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name.  Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393   *[\\\"\#\$\&\'\`$am_lf]*)
2394     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2398     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do `set' in a subshell so we don't clobber the current shell's
2402 # arguments.  Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408    if test "$*" = "X"; then
2409       # -L didn't work.
2410       set X `ls -t "$srcdir/configure" conftest.file`
2411    fi
2412    rm -f conftest.file
2413    if test "$*" != "X $srcdir/configure conftest.file" \
2414       && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416       # If neither matched, then we have a broken ls.  This can happen
2417       # if, for instance, CONFIG_SHELL is bash and it inherits a
2418       # broken ls alias from the environment.  This has actually
2419       # happened.  Such a system could not be considered "sane".
2420       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2422    fi
2423
2424    test "$2" = conftest.file
2425    )
2426 then
2427    # Ok.
2428    :
2429 else
2430    as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2432 fi
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 test "$program_prefix" != NONE &&
2436   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
2445 # expand $ac_aux_dir to an absolute path
2446 am_aux_dir=`cd $ac_aux_dir && pwd`
2447
2448 if test x"${MISSING+set}" != xset; then
2449   case $am_aux_dir in
2450   *\ * | *\     *)
2451     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2452   *)
2453     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2454   esac
2455 fi
2456 # Use eval to expand $SHELL
2457 if eval "$MISSING --run true"; then
2458   am_missing_run="$MISSING --run "
2459 else
2460   am_missing_run=
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2462 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2463 fi
2464
2465 if test x"${install_sh}" != xset; then
2466   case $am_aux_dir in
2467   *\ * | *\     *)
2468     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2469   *)
2470     install_sh="\${SHELL} $am_aux_dir/install-sh"
2471   esac
2472 fi
2473
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'.  However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479   if test -n "$ac_tool_prefix"; then
2480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_STRIP+:} false; then :
2485   $as_echo_n "(cached) " >&6
2486 else
2487   if test -n "$STRIP"; then
2488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502   done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2510 $as_echo "$STRIP" >&6; }
2511 else
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_STRIP"; then
2519   ac_ct_STRIP=$STRIP
2520   # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$ac_ct_STRIP"; then
2528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_ac_ct_STRIP="strip"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2550 $as_echo "$ac_ct_STRIP" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556   if test "x$ac_ct_STRIP" = x; then
2557     STRIP=":"
2558   else
2559     case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2564 esac
2565     STRIP=$ac_ct_STRIP
2566   fi
2567 else
2568   STRIP="$ac_cv_prog_STRIP"
2569 fi
2570
2571 fi
2572 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2575 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2576 if test -z "$MKDIR_P"; then
2577   if ${ac_cv_path_mkdir+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_prog in mkdir gmkdir; do
2586          for ac_exec_ext in '' $ac_executable_extensions; do
2587            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2588            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2589              'mkdir (GNU coreutils) '* | \
2590              'mkdir (coreutils) '* | \
2591              'mkdir (fileutils) '4.1*)
2592                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2593                break 3;;
2594            esac
2595          done
2596        done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601
2602   test -d ./--version && rmdir ./--version
2603   if test "${ac_cv_path_mkdir+set}" = set; then
2604     MKDIR_P="$ac_cv_path_mkdir -p"
2605   else
2606     # As a last resort, use the slow shell script.  Don't cache a
2607     # value for MKDIR_P within a source directory, because that will
2608     # break other packages using the cache if that directory is
2609     # removed, or if the value is a relative name.
2610     MKDIR_P="$ac_install_sh -d"
2611   fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2614 $as_echo "$MKDIR_P" >&6; }
2615
2616 mkdir_p="$MKDIR_P"
2617 case $mkdir_p in
2618   [\\/$]* | ?:[\\/]*) ;;
2619   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2620 esac
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$AWK"; then
2632   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_AWK="$ac_prog"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661   test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674         @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678   *@@@%%%=?*=@@@%%%*)
2679     eval ac_cv_prog_make_${ac_make}_set=yes;;
2680   *)
2681     eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688   SET_MAKE=
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692   SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698   am__leading_dot=.
2699 else
2700   am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706   # is not polluted with repeated "-I."
2707   am__isrc=' -I$(srcdir)'
2708   # test to see if srcdir already configured
2709   if test -f $srcdir/config.status; then
2710     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711   fi
2712 fi
2713
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716   if (cygpath --version) >/dev/null 2>/dev/null; then
2717     CYGPATH_W='cygpath -w'
2718   else
2719     CYGPATH_W=echo
2720   fi
2721 fi
2722
2723
2724 # Define the identity of the package.
2725  PACKAGE='bullet'
2726  VERSION='2.81'
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 @%:@define PACKAGE "$PACKAGE"
2731 _ACEOF
2732
2733  
2734 cat >>confdefs.h <<_ACEOF
2735 @%:@define VERSION "$VERSION"
2736 _ACEOF
2737
2738 # Some tools Automake needs.
2739
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2741
2742
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2744
2745
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2747
2748
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2750
2751
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753
2754 # We need awk for the "check" target.  The system "awk" is bad on
2755 # some platforms.
2756 # Always define AMTAR for backward compatibility.
2757
2758 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759
2760 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2761
2762
2763
2764
2765
2766 DEPDIR="${am__leading_dot}deps"
2767
2768 ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2773 am__doit:
2774         @echo this is the am__doit target
2775 .PHONY: am__doit
2776 END
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2780 am__include="#"
2781 am__quote=
2782 _am_result=none
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # Ignore all kinds of additional output from `make'.
2786 case `$am_make -s -f confmf 2> /dev/null` in #(
2787 *the\ am__doit\ target*)
2788   am__include=include
2789   am__quote=
2790   _am_result=GNU
2791   ;;
2792 esac
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795    echo '.include "confinc"' > confmf
2796    case `$am_make -s -f confmf 2> /dev/null` in #(
2797    *the\ am__doit\ target*)
2798      am__include=.include
2799      am__quote="\""
2800      _am_result=BSD
2801      ;;
2802    esac
2803 fi
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2809
2810 @%:@ Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812   enableval=$enable_dependency_tracking; 
2813 fi
2814
2815 if test "x$enable_dependency_tracking" != xno; then
2816   am_depcomp="$ac_aux_dir/depcomp"
2817   AMDEPBACKSLASH='\'
2818 fi
2819  if test "x$enable_dependency_tracking" != xno; then
2820   AMDEP_TRUE=
2821   AMDEP_FALSE='#'
2822 else
2823   AMDEP_TRUE='#'
2824   AMDEP_FALSE=
2825 fi
2826
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$CC"; then
2842   ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849     for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856   done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871 fi
2872 if test -z "$ac_cv_prog_CC"; then
2873   ac_ct_CC=$CC
2874   # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$ac_ct_CC"; then
2882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     ac_cv_prog_ac_ct_CC="gcc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910   if test "x$ac_ct_CC" = x; then
2911     CC=""
2912   else
2913     case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919     CC=$ac_ct_CC
2920   fi
2921 else
2922   CC="$ac_cv_prog_CC"
2923 fi
2924
2925 if test -z "$CC"; then
2926           if test -n "$ac_tool_prefix"; then
2927     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if test -n "$CC"; then
2935   ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942     for ac_exec_ext in '' $ac_executable_extensions; do
2943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944     ac_cv_prog_CC="${ac_tool_prefix}cc"
2945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949   done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964   fi
2965 fi
2966 if test -z "$CC"; then
2967   # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977   ac_prog_rejected=no
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986        ac_prog_rejected=yes
2987        continue
2988      fi
2989     ac_cv_prog_CC="cc"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 if test $ac_prog_rejected = yes; then
2998   # We found a bogon in the path, so make sure we never use it.
2999   set dummy $ac_cv_prog_CC
3000   shift
3001   if test $@%:@ != 0; then
3002     # We chose a different compiler from the bogus one.
3003     # However, it has the same basename, so the bogon will be chosen
3004     # first if we set CC to just the basename; use the full file name.
3005     shift
3006     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3007   fi
3008 fi
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 if test -z "$CC"; then
3023   if test -n "$ac_tool_prefix"; then
3024   for ac_prog in cl.exe
3025   do
3026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063     test -n "$CC" && break
3064   done
3065 fi
3066 if test -z "$CC"; then
3067   ac_ct_CC=$CC
3068   for ac_prog in cl.exe
3069 do
3070   # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$ac_ct_CC"; then
3078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087     ac_cv_prog_ac_ct_CC="$ac_prog"
3088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092   done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107   test -n "$ac_ct_CC" && break
3108 done
3109
3110   if test "x$ac_ct_CC" = x; then
3111     CC=""
3112   else
3113     case $cross_compiling:$ac_tool_warned in
3114 yes:)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3118 esac
3119     CC=$ac_ct_CC
3120   fi
3121 fi
3122
3123 fi
3124
3125
3126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details" "$LINENO" 5; }
3130
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3133 set X $ac_compile
3134 ac_compiler=$2
3135 for ac_option in --version -v -V -qversion; do
3136   { { ac_try="$ac_compiler $ac_option >&5"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144   ac_status=$?
3145   if test -s conftest.err; then
3146     sed '10a\
3147 ... rest of stderr output deleted ...
3148          10q' conftest.err >conftest.er1
3149     cat conftest.er1 >&5
3150   fi
3151   rm -f conftest.er1 conftest.err
3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153   test $ac_status = 0; }
3154 done
3155
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3171 # of exeext.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173 $as_echo_n "checking whether the C compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179 ac_rmfiles=
3180 for ac_file in $ac_files
3181 do
3182   case $ac_file in
3183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185   esac
3186 done
3187 rm -f $ac_rmfiles
3188
3189 if { { ac_try="$ac_link_default"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196   (eval "$ac_link_default") 2>&5
3197   ac_status=$?
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }; then :
3200   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3204 # Autoconf.
3205 for ac_file in $ac_files ''
3206 do
3207   test -f "$ac_file" || continue
3208   case $ac_file in
3209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210         ;;
3211     [ab].out )
3212         # We found the default executable, but exeext='' is most
3213         # certainly right.
3214         break;;
3215     *.* )
3216         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217         then :; else
3218            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219         fi
3220         # We set ac_cv_exeext here because the later test for it is not
3221         # safe: cross compilers may not add the suffix if given an `-o'
3222         # argument, so we may need to know it at that point already.
3223         # Even if this section looks crufty: it has the advantage of
3224         # actually working.
3225         break;;
3226     * )
3227         break;;
3228   esac
3229 done
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232 else
3233   ac_file=''
3234 fi
3235 if test -z "$ac_file"; then :
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 else
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3254
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_link") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269   test $ac_status = 0; }; then :
3270   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3273 # `rm'.
3274 for ac_file in conftest.exe conftest conftest.*; do
3275   test -f "$ac_file" || continue
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279           break;;
3280     * ) break;;
3281   esac
3282 done
3283 else
3284   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3288 fi
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3292
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3295 ac_exeext=$EXEEXT
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298 @%:@include <stdio.h>
3299 int
3300 main ()
3301 {
3302 FILE *f = fopen ("conftest.out", "w");
3303  return ferror (f) || fclose (f) != 0;
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run.  If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315   { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_link") 2>&5
3323   ac_status=$?
3324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325   test $ac_status = 0; }
3326   if { ac_try='./conftest$ac_cv_exeext'
3327   { { case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333   (eval "$ac_try") 2>&5
3334   ac_status=$?
3335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336   test $ac_status = 0; }; }; then
3337     cross_compiling=no
3338   else
3339     if test "$cross_compiling" = maybe; then
3340         cross_compiling=yes
3341     else
3342         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3347     fi
3348   fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3352
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_compile") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   for ac_file in conftest.o conftest.obj conftest.*; do
3384   test -f "$ac_file" || continue;
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388        break;;
3389   esac
3390 done
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3405 ac_objext=$OBJEXT
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if ${ac_cv_c_compiler_gnu+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h.  */
3413
3414 int
3415 main ()
3416 {
3417 #ifndef __GNUC__
3418        choke me
3419 #endif
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426   ac_compiler_gnu=yes
3427 else
3428   ac_compiler_gnu=no
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3437   GCC=yes
3438 else
3439   GCC=
3440 fi
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if ${ac_cv_prog_cc_g+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_save_c_werror_flag=$ac_c_werror_flag
3449    ac_c_werror_flag=yes
3450    ac_cv_prog_cc_g=no
3451    CFLAGS="-g"
3452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464   ac_cv_prog_cc_g=yes
3465 else
3466   CFLAGS=""
3467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479   
3480 else
3481   ac_c_werror_flag=$ac_save_c_werror_flag
3482          CFLAGS="-g"
3483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495   ac_cv_prog_cc_g=yes
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_c_werror_flag=$ac_save_c_werror_flag
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507   CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509   if test "$GCC" = yes; then
3510     CFLAGS="-g -O2"
3511   else
3512     CFLAGS="-g"
3513   fi
3514 else
3515   if test "$GCC" = yes; then
3516     CFLAGS="-O2"
3517   else
3518     CFLAGS=
3519   fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if ${ac_cv_prog_cc_c89+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   ac_cv_prog_cc_c89=no
3527 ac_save_CC=$CC
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530 #include <stdarg.h>
3531 #include <stdio.h>
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3538      char **p;
3539      int i;
3540 {
3541   return p[i];
3542 }
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3544 {
3545   char *s;
3546   va_list v;
3547   va_start (v,p);
3548   s = g (p, va_arg (v,int));
3549   va_end (v);
3550   return s;
3551 }
3552
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3554    function prototypes and stuff, but not '\xHH' hex character constants.
3555    These don't provoke an error unfortunately, instead are silently treated
3556    as 'x'.  The following induces an error, until -std is added to get
3557    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3558    array size at least.  It's necessary to write '\x00'==0 to get something
3559    that's true only with -std.  */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563    inside strings and character constants.  */
3564 #define FOO(x) 'x'
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 do
3584   CC="$ac_save_CC $ac_arg"
3585   if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_c89=$ac_arg
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext
3589   test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 done
3591 rm -f conftest.$ac_ext
3592 CC=$ac_save_CC
3593
3594 fi
3595 # AC_CACHE_VAL
3596 case "x$ac_cv_prog_cc_c89" in
3597   x)
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3600   xno)
3601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3603   *)
3604     CC="$CC $ac_cv_prog_cc_c89"
3605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607 esac
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609   
3610 fi
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 depcc="$CC"   am_compiler_list=
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626   # We make a subdir and do the tests there.  Otherwise we can end up
3627   # making bogus files that we don't know about and never remove.  For
3628   # instance it was reported that on HP-UX the gcc test will end up
3629   # making a dummy file named `D' -- because `-MD' means `put the output
3630   # in D'.
3631   mkdir conftest.dir
3632   # Copy depcomp to subdir because otherwise we won't find it if we're
3633   # using a relative directory.
3634   cp "$am_depcomp" conftest.dir
3635   cd conftest.dir
3636   # We will build objects and dependencies in a subdirectory because
3637   # it helps to detect inapplicable dependency modes.  For instance
3638   # both Tru64's cc and ICC support -MD to output dependencies as a
3639   # side effect of compilation, but ICC will put the dependencies in
3640   # the current directory while Tru64 will put them in the object
3641   # directory.
3642   mkdir sub
3643
3644   am_cv_CC_dependencies_compiler_type=none
3645   if test "$am_compiler_list" = ""; then
3646      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647   fi
3648   am__universal=false
3649   case " $depcc " in #(
3650      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3651      esac
3652
3653   for depmode in $am_compiler_list; do
3654     # Setup a source with many dependencies, because some compilers
3655     # like to wrap large dependency lists on column 80 (with \), and
3656     # we should not choose a depcomp mode which is confused by this.
3657     #
3658     # We need to recreate these files for each test, as the compiler may
3659     # overwrite some of them when testing with obscure command lines.
3660     # This happens at least with the AIX C compiler.
3661     : > sub/conftest.c
3662     for i in 1 2 3 4 5 6; do
3663       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665       # Solaris 8's {/usr,}/bin/sh.
3666       touch sub/conftst$i.h
3667     done
3668     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3669
3670     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671     # mode.  It turns out that the SunPro C++ compiler does not properly
3672     # handle `-M -o', and we need to detect this.  Also, some Intel
3673     # versions had trouble with output in subdirs
3674     am__obj=sub/conftest.${OBJEXT-o}
3675     am__minus_obj="-o $am__obj"
3676     case $depmode in
3677     gcc)
3678       # This depmode causes a compiler race in universal mode.
3679       test "$am__universal" = false || continue
3680       ;;
3681     nosideeffect)
3682       # after this tag, mechanisms are not by side-effect, so they'll
3683       # only be used when explicitly requested
3684       if test "x$enable_dependency_tracking" = xyes; then
3685         continue
3686       else
3687         break
3688       fi
3689       ;;
3690     msvisualcpp | msvcmsys)
3691       # This compiler won't grok `-c -o', but also, the minuso test has
3692       # not run yet.  These depmodes are late enough in the game, and
3693       # so weak that their functioning should not be impacted.
3694       am__obj=conftest.${OBJEXT-o}
3695       am__minus_obj=
3696       ;;
3697     none) break ;;
3698     esac
3699     if depmode=$depmode \
3700        source=sub/conftest.c object=$am__obj \
3701        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3703          >/dev/null 2>conftest.err &&
3704        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3705        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3706        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3707        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3708       # icc doesn't choke on unknown options, it will just issue warnings
3709       # or remarks (even with -Werror).  So we grep stderr for any message
3710       # that says an option was ignored or not supported.
3711       # When given -MP, icc 7.0 and 7.1 complain thusly:
3712       #   icc: Command line warning: ignoring option '-M'; no argument required
3713       # The diagnosis changed in icc 8.0:
3714       #   icc: Command line remark: option '-MP' not supported
3715       if (grep 'ignoring option' conftest.err ||
3716           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3717         am_cv_CC_dependencies_compiler_type=$depmode
3718         break
3719       fi
3720     fi
3721   done
3722
3723   cd ..
3724   rm -rf conftest.dir
3725 else
3726   am_cv_CC_dependencies_compiler_type=none
3727 fi
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3731 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3732 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3733
3734  if 
3735   test "x$enable_dependency_tracking" != xno \
3736   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3737   am__fastdepCC_TRUE=
3738   am__fastdepCC_FALSE='#'
3739 else
3740   am__fastdepCC_TRUE='#'
3741   am__fastdepCC_FALSE=
3742 fi
3743
3744
3745 if test "x$CC" != xcc; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3747 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3750 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3751 fi
3752 set dummy $CC; ac_cc=`$as_echo "$2" |
3753                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3754 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 # Make sure it works both with $CC and with simple cc.
3769 # We do the test twice because some compilers refuse to overwrite an
3770 # existing .o file with -o, though they will create one.
3771 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3772 rm -f conftest2.*
3773 if { { case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779   (eval "$ac_try") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; } &&
3783    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789   (eval "$ac_try") 2>&5
3790   ac_status=$?
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; };
3793 then
3794   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3795   if test "x$CC" != xcc; then
3796     # Test first that cc exists at all.
3797     if { ac_try='cc -c conftest.$ac_ext >&5'
3798   { { case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_try") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; }; then
3808       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3809       rm -f conftest2.*
3810       if { { case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_try") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; } &&
3820          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; };
3830       then
3831         # cc works too.
3832         :
3833       else
3834         # cc exists but doesn't like -o.
3835         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3836       fi
3837     fi
3838   fi
3839 else
3840   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3841 fi
3842 rm -f core conftest*
3843
3844 fi
3845 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3848 else
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851   
3852 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3853
3854 fi
3855
3856 # FIXME: we rely on the cache variable name because
3857 # there is no other way.
3858 set dummy $CC
3859 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3860 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3861 if test "$am_t" != yes; then
3862    # Losing compiler, so override with the script.
3863    # FIXME: It is wrong to rewrite CC.
3864    # But if we don't then we get into trouble of one sort or another.
3865    # A longer-term fix would be to have automake use am__CC in this case,
3866    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3867    CC="$am_aux_dir/compile $CC"
3868 fi
3869
3870
3871 ac_ext=cpp
3872 ac_cpp='$CXXCPP $CPPFLAGS'
3873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3876 if test -z "$CXX"; then
3877   if test -n "$CCC"; then
3878     CXX=$CCC
3879   else
3880     if test -n "$ac_tool_prefix"; then
3881   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3882   do
3883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CXX+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if test -n "$CXX"; then
3891   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_exec_ext in '' $ac_executable_extensions; do
3899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905   done
3906 IFS=$as_save_IFS
3907
3908 fi
3909 fi
3910 CXX=$ac_cv_prog_CXX
3911 if test -n "$CXX"; then
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3913 $as_echo "$CXX" >&6; }
3914 else
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919
3920     test -n "$CXX" && break
3921   done
3922 fi
3923 if test -z "$CXX"; then
3924   ac_ct_CXX=$CXX
3925   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3926 do
3927   # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test -n "$ac_ct_CXX"; then
3935   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940   IFS=$as_save_IFS
3941   test -z "$as_dir" && as_dir=.
3942     for ac_exec_ext in '' $ac_executable_extensions; do
3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944     ac_cv_prog_ac_ct_CXX="$ac_prog"
3945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949   done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3957 $as_echo "$ac_ct_CXX" >&6; }
3958 else
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963
3964   test -n "$ac_ct_CXX" && break
3965 done
3966
3967   if test "x$ac_ct_CXX" = x; then
3968     CXX="g++"
3969   else
3970     case $cross_compiling:$ac_tool_warned in
3971 yes:)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976     CXX=$ac_ct_CXX
3977   fi
3978 fi
3979
3980   fi
3981 fi
3982 # Provide some information about the compiler.
3983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3984 set X $ac_compile
3985 ac_compiler=$2
3986 for ac_option in --version -v -V -qversion; do
3987   { { ac_try="$ac_compiler $ac_option >&5"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3995   ac_status=$?
3996   if test -s conftest.err; then
3997     sed '10a\
3998 ... rest of stderr output deleted ...
3999          10q' conftest.err >conftest.er1
4000     cat conftest.er1 >&5
4001   fi
4002   rm -f conftest.er1 conftest.err
4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }
4005 done
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4008 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4009 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018 #ifndef __GNUC__
4019        choke me
4020 #endif
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_cxx_try_compile "$LINENO"; then :
4027   ac_compiler_gnu=yes
4028 else
4029   ac_compiler_gnu=no
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4036 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038   GXX=yes
4039 else
4040   GXX=
4041 fi
4042 ac_test_CXXFLAGS=${CXXFLAGS+set}
4043 ac_save_CXXFLAGS=$CXXFLAGS
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4045 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4046 if ${ac_cv_prog_cxx_g+:} false; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4050    ac_cxx_werror_flag=yes
4051    ac_cv_prog_cxx_g=no
4052    CXXFLAGS="-g"
4053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4065   ac_cv_prog_cxx_g=yes
4066 else
4067   CXXFLAGS=""
4068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_cxx_try_compile "$LINENO"; then :
4080   
4081 else
4082   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4083          CXXFLAGS="-g"
4084          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_cxx_try_compile "$LINENO"; then :
4096   ac_cv_prog_cxx_g=yes
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4106 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4107 if test "$ac_test_CXXFLAGS" = set; then
4108   CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110   if test "$GXX" = yes; then
4111     CXXFLAGS="-g -O2"
4112   else
4113     CXXFLAGS="-g"
4114   fi
4115 else
4116   if test "$GXX" = yes; then
4117     CXXFLAGS="-O2"
4118   else
4119     CXXFLAGS=
4120   fi
4121 fi
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128 depcc="$CXX"  am_compiler_list=
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136   # We make a subdir and do the tests there.  Otherwise we can end up
4137   # making bogus files that we don't know about and never remove.  For
4138   # instance it was reported that on HP-UX the gcc test will end up
4139   # making a dummy file named `D' -- because `-MD' means `put the output
4140   # in D'.
4141   mkdir conftest.dir
4142   # Copy depcomp to subdir because otherwise we won't find it if we're
4143   # using a relative directory.
4144   cp "$am_depcomp" conftest.dir
4145   cd conftest.dir
4146   # We will build objects and dependencies in a subdirectory because
4147   # it helps to detect inapplicable dependency modes.  For instance
4148   # both Tru64's cc and ICC support -MD to output dependencies as a
4149   # side effect of compilation, but ICC will put the dependencies in
4150   # the current directory while Tru64 will put them in the object
4151   # directory.
4152   mkdir sub
4153
4154   am_cv_CXX_dependencies_compiler_type=none
4155   if test "$am_compiler_list" = ""; then
4156      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157   fi
4158   am__universal=false
4159   case " $depcc " in #(
4160      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4161      esac
4162
4163   for depmode in $am_compiler_list; do
4164     # Setup a source with many dependencies, because some compilers
4165     # like to wrap large dependency lists on column 80 (with \), and
4166     # we should not choose a depcomp mode which is confused by this.
4167     #
4168     # We need to recreate these files for each test, as the compiler may
4169     # overwrite some of them when testing with obscure command lines.
4170     # This happens at least with the AIX C compiler.
4171     : > sub/conftest.c
4172     for i in 1 2 3 4 5 6; do
4173       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4175       # Solaris 8's {/usr,}/bin/sh.
4176       touch sub/conftst$i.h
4177     done
4178     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179
4180     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181     # mode.  It turns out that the SunPro C++ compiler does not properly
4182     # handle `-M -o', and we need to detect this.  Also, some Intel
4183     # versions had trouble with output in subdirs
4184     am__obj=sub/conftest.${OBJEXT-o}
4185     am__minus_obj="-o $am__obj"
4186     case $depmode in
4187     gcc)
4188       # This depmode causes a compiler race in universal mode.
4189       test "$am__universal" = false || continue
4190       ;;
4191     nosideeffect)
4192       # after this tag, mechanisms are not by side-effect, so they'll
4193       # only be used when explicitly requested
4194       if test "x$enable_dependency_tracking" = xyes; then
4195         continue
4196       else
4197         break
4198       fi
4199       ;;
4200     msvisualcpp | msvcmsys)
4201       # This compiler won't grok `-c -o', but also, the minuso test has
4202       # not run yet.  These depmodes are late enough in the game, and
4203       # so weak that their functioning should not be impacted.
4204       am__obj=conftest.${OBJEXT-o}
4205       am__minus_obj=
4206       ;;
4207     none) break ;;
4208     esac
4209     if depmode=$depmode \
4210        source=sub/conftest.c object=$am__obj \
4211        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213          >/dev/null 2>conftest.err &&
4214        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218       # icc doesn't choke on unknown options, it will just issue warnings
4219       # or remarks (even with -Werror).  So we grep stderr for any message
4220       # that says an option was ignored or not supported.
4221       # When given -MP, icc 7.0 and 7.1 complain thusly:
4222       #   icc: Command line warning: ignoring option '-M'; no argument required
4223       # The diagnosis changed in icc 8.0:
4224       #   icc: Command line remark: option '-MP' not supported
4225       if (grep 'ignoring option' conftest.err ||
4226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227         am_cv_CXX_dependencies_compiler_type=$depmode
4228         break
4229       fi
4230     fi
4231   done
4232
4233   cd ..
4234   rm -rf conftest.dir
4235 else
4236   am_cv_CXX_dependencies_compiler_type=none
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4243
4244  if 
4245   test "x$enable_dependency_tracking" != xno \
4246   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4247   am__fastdepCXX_TRUE=
4248   am__fastdepCXX_FALSE='#'
4249 else
4250   am__fastdepCXX_TRUE='#'
4251   am__fastdepCXX_FALSE=
4252 fi
4253
4254
4255 case `pwd` in
4256   *\ * | *\     *)
4257     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4258 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4259 esac
4260
4261
4262
4263 macro_version='2.4'
4264 macro_revision='1.3293'
4265
4266     
4267     
4268     
4269
4270
4271     
4272     
4273     
4274
4275
4276
4277
4278 ltmain="$ac_aux_dir/ltmain.sh"
4279
4280 # Backslashify metacharacters that are still active within
4281 # double-quoted strings.
4282 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4283
4284 # Same as above, but do not quote variable references.
4285 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4286
4287 # Sed substitution to delay expansion of an escaped shell variable in a
4288 # double_quote_subst'ed string.
4289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4290
4291 # Sed substitution to delay expansion of an escaped single quote.
4292 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4293
4294 # Sed substitution to avoid accidental globbing in evaled expressions
4295 no_glob_subst='s/\*/\\\*/g'
4296
4297 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4299 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4302 $as_echo_n "checking how to print strings... " >&6; }
4303 # Test print first, because it will be a builtin if present.
4304 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4305    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4306   ECHO='print -r --'
4307 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4308   ECHO='printf %s\n'
4309 else
4310   # Use this function as a fallback that always works.
4311   func_fallback_echo ()
4312   {
4313     eval 'cat <<_LTECHO_EOF
4314 $1
4315 _LTECHO_EOF'
4316   }
4317   ECHO='func_fallback_echo'
4318 fi
4319
4320 # func_echo_all arg...
4321 # Invoke $ECHO with all args, space-separated.
4322 func_echo_all ()
4323 {
4324     $ECHO "" 
4325 }
4326
4327 case "$ECHO" in
4328   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4329 $as_echo "printf" >&6; } ;;
4330   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4331 $as_echo "print -r" >&6; } ;;
4332   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4333 $as_echo "cat" >&6; } ;;
4334 esac
4335
4336
4337
4338
4339     
4340     
4341     
4342
4343
4344     
4345     
4346     
4347
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4351 if ${ac_cv_path_SED+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4355      for ac_i in 1 2 3 4 5 6 7; do
4356        ac_script="$ac_script$as_nl$ac_script"
4357      done
4358      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4359      { ac_script=; unset ac_script;}
4360      if test -z "$SED"; then
4361   ac_path_SED_found=false
4362   # Loop through the user's path and test for each of PROGNAME-LIST
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_prog in sed gsed; do
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4371       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4372 # Check for GNU ac_path_SED and select it if it is found.
4373   # Check for GNU $ac_path_SED
4374 case `"$ac_path_SED" --version 2>&1` in
4375 *GNU*)
4376   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4377 *)
4378   ac_count=0
4379   $as_echo_n 0123456789 >"conftest.in"
4380   while :
4381   do
4382     cat "conftest.in" "conftest.in" >"conftest.tmp"
4383     mv "conftest.tmp" "conftest.in"
4384     cp "conftest.in" "conftest.nl"
4385     $as_echo '' >> "conftest.nl"
4386     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388     as_fn_arith $ac_count + 1 && ac_count=$as_val
4389     if test $ac_count -gt ${ac_path_SED_max-0}; then
4390       # Best one so far, save it but keep looking for a better one
4391       ac_cv_path_SED="$ac_path_SED"
4392       ac_path_SED_max=$ac_count
4393     fi
4394     # 10*(2^10) chars as input seems more than enough
4395     test $ac_count -gt 10 && break
4396   done
4397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4399
4400       $ac_path_SED_found && break 3
4401     done
4402   done
4403   done
4404 IFS=$as_save_IFS
4405   if test -z "$ac_cv_path_SED"; then
4406     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4407   fi
4408 else
4409   ac_cv_path_SED=$SED
4410 fi
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4414 $as_echo "$ac_cv_path_SED" >&6; }
4415  SED="$ac_cv_path_SED"
4416   rm -f conftest.sed
4417
4418 test -z "$SED" && SED=sed
4419 Xsed="$SED -e 1s/^X//"
4420
4421     
4422     
4423     
4424
4425
4426     
4427     
4428     
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -z "$GREP"; then
4437   ac_path_GREP_found=false
4438   # Loop through the user's path and test for each of PROGNAME-LIST
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_prog in grep ggrep; do
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449   # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4451 *GNU*)
4452   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 *)
4454   ac_count=0
4455   $as_echo_n 0123456789 >"conftest.in"
4456   while :
4457   do
4458     cat "conftest.in" "conftest.in" >"conftest.tmp"
4459     mv "conftest.tmp" "conftest.in"
4460     cp "conftest.in" "conftest.nl"
4461     $as_echo 'GREP' >> "conftest.nl"
4462     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464     as_fn_arith $ac_count + 1 && ac_count=$as_val
4465     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466       # Best one so far, save it but keep looking for a better one
4467       ac_cv_path_GREP="$ac_path_GREP"
4468       ac_path_GREP_max=$ac_count
4469     fi
4470     # 10*(2^10) chars as input seems more than enough
4471     test $ac_count -gt 10 && break
4472   done
4473   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474 esac
4475
4476       $ac_path_GREP_found && break 3
4477     done
4478   done
4479   done
4480 IFS=$as_save_IFS
4481   if test -z "$ac_cv_path_GREP"; then
4482     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483   fi
4484 else
4485   ac_cv_path_GREP=$GREP
4486 fi
4487
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491  GREP="$ac_cv_path_GREP"
4492  
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500    then ac_cv_path_EGREP="$GREP -E"
4501    else
4502      if test -z "$EGREP"; then
4503   ac_path_EGREP_found=false
4504   # Loop through the user's path and test for each of PROGNAME-LIST
4505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_prog in egrep; do
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515   # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4517 *GNU*)
4518   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 *)
4520   ac_count=0
4521   $as_echo_n 0123456789 >"conftest.in"
4522   while :
4523   do
4524     cat "conftest.in" "conftest.in" >"conftest.tmp"
4525     mv "conftest.tmp" "conftest.in"
4526     cp "conftest.in" "conftest.nl"
4527     $as_echo 'EGREP' >> "conftest.nl"
4528     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530     as_fn_arith $ac_count + 1 && ac_count=$as_val
4531     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532       # Best one so far, save it but keep looking for a better one
4533       ac_cv_path_EGREP="$ac_path_EGREP"
4534       ac_path_EGREP_max=$ac_count
4535     fi
4536     # 10*(2^10) chars as input seems more than enough
4537     test $ac_count -gt 10 && break
4538   done
4539   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542       $ac_path_EGREP_found && break 3
4543     done
4544   done
4545   done
4546 IFS=$as_save_IFS
4547   if test -z "$ac_cv_path_EGREP"; then
4548     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549   fi
4550 else
4551   ac_cv_path_EGREP=$EGREP
4552 fi
4553
4554    fi
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558  EGREP="$ac_cv_path_EGREP"
4559  
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4562 $as_echo_n "checking for fgrep... " >&6; }
4563 if ${ac_cv_path_FGREP+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4567    then ac_cv_path_FGREP="$GREP -F"
4568    else
4569      if test -z "$FGREP"; then
4570   ac_path_FGREP_found=false
4571   # Loop through the user's path and test for each of PROGNAME-LIST
4572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577     for ac_prog in fgrep; do
4578     for ac_exec_ext in '' $ac_executable_extensions; do
4579       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4580       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4581 # Check for GNU ac_path_FGREP and select it if it is found.
4582   # Check for GNU $ac_path_FGREP
4583 case `"$ac_path_FGREP" --version 2>&1` in
4584 *GNU*)
4585   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4586 *)
4587   ac_count=0
4588   $as_echo_n 0123456789 >"conftest.in"
4589   while :
4590   do
4591     cat "conftest.in" "conftest.in" >"conftest.tmp"
4592     mv "conftest.tmp" "conftest.in"
4593     cp "conftest.in" "conftest.nl"
4594     $as_echo 'FGREP' >> "conftest.nl"
4595     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597     as_fn_arith $ac_count + 1 && ac_count=$as_val
4598     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4599       # Best one so far, save it but keep looking for a better one
4600       ac_cv_path_FGREP="$ac_path_FGREP"
4601       ac_path_FGREP_max=$ac_count
4602     fi
4603     # 10*(2^10) chars as input seems more than enough
4604     test $ac_count -gt 10 && break
4605   done
4606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609       $ac_path_FGREP_found && break 3
4610     done
4611   done
4612   done
4613 IFS=$as_save_IFS
4614   if test -z "$ac_cv_path_FGREP"; then
4615     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616   fi
4617 else
4618   ac_cv_path_FGREP=$FGREP
4619 fi
4620
4621    fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4624 $as_echo "$ac_cv_path_FGREP" >&6; }
4625  FGREP="$ac_cv_path_FGREP"
4626  
4627
4628 test -z "$GREP" && GREP=grep
4629
4630     
4631     
4632     
4633
4634
4635     
4636     
4637     
4638
4639
4640     
4641     
4642     
4643
4644
4645
4646
4647
4648 @%:@ Check whether --with-gnu-ld was given.
4649 if test "${with_gnu_ld+set}" = set; then :
4650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4651 else
4652   with_gnu_ld=no
4653 fi
4654
4655 ac_prog=ld
4656 if test "$GCC" = yes; then
4657   # Check if gcc -print-prog-name=ld gives a path.
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4659 $as_echo_n "checking for ld used by $CC... " >&6; }
4660   case $host in
4661   *-*-mingw*)
4662     # gcc leaves a trailing carriage return which upsets mingw
4663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4664   *)
4665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4666   esac
4667   case $ac_prog in
4668     # Accept absolute paths.
4669     [\\/]* | ?:[\\/]*)
4670       re_direlt='/[^/][^/]*/\.\./'
4671       # Canonicalize the pathname of ld
4672       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4673       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4674         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4675       done
4676       test -z "$LD" && LD="$ac_prog"
4677       ;;
4678   "")
4679     # If it fails, then pretend we aren't using GCC.
4680     ac_prog=ld
4681     ;;
4682   *)
4683     # If it is relative, then search for the first ld in PATH.
4684     with_gnu_ld=unknown
4685     ;;
4686   esac
4687 elif test "$with_gnu_ld" = yes; then
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4689 $as_echo_n "checking for GNU ld... " >&6; }
4690 else
4691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4692 $as_echo_n "checking for non-GNU ld... " >&6; }
4693 fi
4694 if ${lt_cv_path_LD+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -z "$LD"; then
4698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4699   for ac_dir in $PATH; do
4700     IFS="$lt_save_ifs"
4701     test -z "$ac_dir" && ac_dir=.
4702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4703       lt_cv_path_LD="$ac_dir/$ac_prog"
4704       # Check to see if the program is GNU ld.  I'd rather use --version,
4705       # but apparently some variants of GNU ld only accept -v.
4706       # Break only if it was the GNU/non-GNU ld that we prefer.
4707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4708       *GNU* | *'with BFD'*)
4709         test "$with_gnu_ld" != no && break
4710         ;;
4711       *)
4712         test "$with_gnu_ld" != yes && break
4713         ;;
4714       esac
4715     fi
4716   done
4717   IFS="$lt_save_ifs"
4718 else
4719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4720 fi
4721 fi
4722
4723 LD="$lt_cv_path_LD"
4724 if test -n "$LD"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4726 $as_echo "$LD" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4734 if ${lt_cv_prog_gnu_ld+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740   lt_cv_prog_gnu_ld=yes
4741   ;;
4742 *)
4743   lt_cv_prog_gnu_ld=no
4744   ;;
4745 esac
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4750
4751
4752
4753
4754     
4755     
4756     
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4760 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4761 if ${lt_cv_path_NM+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -n "$NM"; then
4765   # Let the user override the test.
4766   lt_cv_path_NM="$NM"
4767 else
4768   lt_nm_to_check="${ac_tool_prefix}nm"
4769   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4770     lt_nm_to_check="$lt_nm_to_check nm"
4771   fi
4772   for lt_tmp_nm in $lt_nm_to_check; do
4773     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4775       IFS="$lt_save_ifs"
4776       test -z "$ac_dir" && ac_dir=.
4777       tmp_nm="$ac_dir/$lt_tmp_nm"
4778       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4779         # Check to see if the nm accepts a BSD-compat flag.
4780         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4781         #   nm: unknown option "B" ignored
4782         # Tru64's nm complains that /dev/null is an invalid object file
4783         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4784         */dev/null* | *'Invalid file or object type'*)
4785           lt_cv_path_NM="$tmp_nm -B"
4786           break
4787           ;;
4788         *)
4789           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4790           */dev/null*)
4791             lt_cv_path_NM="$tmp_nm -p"
4792             break
4793             ;;
4794           *)
4795             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4796             continue # so that we can try to find one that supports BSD flags
4797             ;;
4798           esac
4799           ;;
4800         esac
4801       fi
4802     done
4803     IFS="$lt_save_ifs"
4804   done
4805   : ${lt_cv_path_NM=no}
4806 fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4809 $as_echo "$lt_cv_path_NM" >&6; }
4810 if test "$lt_cv_path_NM" != "no"; then
4811   NM="$lt_cv_path_NM"
4812 else
4813   # Didn't find any BSD compatible name lister, look for dumpbin.
4814   if test -n "$DUMPBIN"; then :
4815     # Let the user override the test.
4816   else
4817     if test -n "$ac_tool_prefix"; then
4818   for ac_prog in dumpbin "link -dump"
4819   do
4820     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_DUMPBIN+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -n "$DUMPBIN"; then
4828   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842   done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 DUMPBIN=$ac_cv_prog_DUMPBIN
4848 if test -n "$DUMPBIN"; then
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4850 $as_echo "$DUMPBIN" >&6; }
4851 else
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857     test -n "$DUMPBIN" && break
4858   done
4859 fi
4860 if test -z "$DUMPBIN"; then
4861   ac_ct_DUMPBIN=$DUMPBIN
4862   for ac_prog in dumpbin "link -dump"
4863 do
4864   # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if test -n "$ac_ct_DUMPBIN"; then
4872   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886   done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4892 if test -n "$ac_ct_DUMPBIN"; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4894 $as_echo "$ac_ct_DUMPBIN" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901   test -n "$ac_ct_DUMPBIN" && break
4902 done
4903
4904   if test "x$ac_ct_DUMPBIN" = x; then
4905     DUMPBIN=":"
4906   else
4907     case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913     DUMPBIN=$ac_ct_DUMPBIN
4914   fi
4915 fi
4916
4917     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4918     *COFF*)
4919       DUMPBIN="$DUMPBIN -symbols"
4920       ;;
4921     *)
4922       DUMPBIN=:
4923       ;;
4924     esac
4925   fi
4926   
4927   if test "$DUMPBIN" != ":"; then
4928     NM="$DUMPBIN"
4929   fi
4930 fi
4931 test -z "$NM" && NM=nm
4932
4933
4934     
4935     
4936     
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4940 if ${lt_cv_nm_interface+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   lt_cv_nm_interface="BSD nm"
4944   echo "int some_variable = 0;" > conftest.$ac_ext
4945   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4946   (eval "$ac_compile" 2>conftest.err)
4947   cat conftest.err >&5
4948   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4949   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4950   cat conftest.err >&5
4951   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4952   cat conftest.out >&5
4953   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4954     lt_cv_nm_interface="MS dumpbin"
4955   fi
4956   rm -f conftest*
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4959 $as_echo "$lt_cv_nm_interface" >&6; }
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4962 $as_echo_n "checking whether ln -s works... " >&6; }
4963 LN_S=$as_ln_s
4964 if test "$LN_S" = "ln -s"; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4969 $as_echo "no, using $LN_S" >&6; }
4970 fi
4971
4972 # find the maximum length of command line arguments
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4975 if ${lt_cv_sys_max_cmd_len+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978     i=0
4979   teststring="ABCD"
4980
4981   case $build_os in
4982   msdosdjgpp*)
4983     # On DJGPP, this test can blow up pretty badly due to problems in libc
4984     # (any single argument exceeding 2000 bytes causes a buffer overrun
4985     # during glob expansion).  Even if it were fixed, the result of this
4986     # check would be larger than it should be.
4987     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4988     ;;
4989
4990   gnu*)
4991     # Under GNU Hurd, this test is not required because there is
4992     # no limit to the length of command line arguments.
4993     # Libtool will interpret -1 as no limit whatsoever
4994     lt_cv_sys_max_cmd_len=-1;
4995     ;;
4996
4997   cygwin* | mingw* | cegcc*)
4998     # On Win9x/ME, this test blows up -- it succeeds, but takes
4999     # about 5 minutes as the teststring grows exponentially.
5000     # Worse, since 9x/ME are not pre-emptively multitasking,
5001     # you end up with a "frozen" computer, even though with patience
5002     # the test eventually succeeds (with a max line length of 256k).
5003     # Instead, let's just punt: use the minimum linelength reported by
5004     # all of the supported platforms: 8192 (on NT/2K/XP).
5005     lt_cv_sys_max_cmd_len=8192;
5006     ;;
5007
5008   mint*)
5009     # On MiNT this can take a long time and run out of memory.
5010     lt_cv_sys_max_cmd_len=8192;
5011     ;;
5012
5013   amigaos*)
5014     # On AmigaOS with pdksh, this test takes hours, literally.
5015     # So we just punt and use a minimum line length of 8192.
5016     lt_cv_sys_max_cmd_len=8192;
5017     ;;
5018
5019   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5020     # This has been around since 386BSD, at least.  Likely further.
5021     if test -x /sbin/sysctl; then
5022       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5023     elif test -x /usr/sbin/sysctl; then
5024       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5025     else
5026       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5027     fi
5028     # And add a safety zone
5029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5031     ;;
5032
5033   interix*)
5034     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5035     lt_cv_sys_max_cmd_len=196608
5036     ;;
5037
5038   osf*)
5039     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5040     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5041     # nice to cause kernel panics so lets avoid the loop below.
5042     # First set a reasonable default.
5043     lt_cv_sys_max_cmd_len=16384
5044     #
5045     if test -x /sbin/sysconfig; then
5046       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5047         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5048       esac
5049     fi
5050     ;;
5051   sco3.2v5*)
5052     lt_cv_sys_max_cmd_len=102400
5053     ;;
5054   sysv5* | sco5v6* | sysv4.2uw2*)
5055     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5056     if test -n "$kargmax"; then
5057       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5058     else
5059       lt_cv_sys_max_cmd_len=32768
5060     fi
5061     ;;
5062   *)
5063     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5064     if test -n "$lt_cv_sys_max_cmd_len"; then
5065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5067     else
5068       # Make teststring a little bigger before we do anything with it.
5069       # a 1K string should be a reasonable start.
5070       for i in 1 2 3 4 5 6 7 8 ; do
5071         teststring=$teststring$teststring
5072       done
5073       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5074       # If test is not a shell built-in, we'll probably end up computing a
5075       # maximum length that is only half of the actual maximum length, but
5076       # we can't tell.
5077       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5078                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5079               test $i != 17 # 1/2 MB should be enough
5080       do
5081         i=`expr $i + 1`
5082         teststring=$teststring$teststring
5083       done
5084       # Only check the string length outside the loop.
5085       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5086       teststring=
5087       # Add a significant safety factor because C++ compilers can tack on
5088       # massive amounts of additional arguments before passing them to the
5089       # linker.  It appears as though 1/2 is a usable value.
5090       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5091     fi
5092     ;;
5093   esac
5094
5095 fi
5096
5097 if test -n $lt_cv_sys_max_cmd_len ; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5102 $as_echo "none" >&6; }
5103 fi
5104 max_cmd_len=$lt_cv_sys_max_cmd_len
5105
5106     
5107     
5108     
5109
5110
5111 : ${CP="cp -f"}
5112 : ${MV="mv -f"}
5113 : ${RM="rm -f"}
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5117 # Try some XSI features
5118 xsi_shell=no
5119 ( _lt_dummy="a/b/c"
5120   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5121       = c,a/b,b/c, \
5122     && eval 'test $(( 1 + 1 )) -eq 2 \
5123     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5124   && xsi_shell=yes
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5126 $as_echo "$xsi_shell" >&6; }
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5131 lt_shell_append=no
5132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5133     >/dev/null 2>&1 \
5134   && lt_shell_append=yes
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5136 $as_echo "$lt_shell_append" >&6; }
5137
5138
5139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5140   lt_unset=unset
5141 else
5142   lt_unset=false
5143 fi
5144
5145     
5146     
5147     
5148
5149 # test EBCDIC or ASCII
5150 case `echo X|tr X '\101'` in
5151  A) # ASCII based system
5152     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5153   lt_SP2NL='tr \040 \012'
5154   lt_NL2SP='tr \015\012 \040\040'
5155   ;;
5156  *) # EBCDIC based system
5157   lt_SP2NL='tr \100 \n'
5158   lt_NL2SP='tr \r\n \100\100'
5159   ;;
5160 esac
5161
5162     
5163     
5164     
5165
5166     
5167     
5168     
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5171 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5172 if ${lt_cv_to_host_file_cmd+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   case $host in
5176   *-*-mingw* )
5177     case $build in
5178       *-*-mingw* ) # actually msys
5179         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5180         ;;
5181       *-*-cygwin* )
5182         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5183         ;;
5184       * ) # otherwise, assume *nix
5185         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5186         ;;
5187     esac
5188     ;;
5189   *-*-cygwin* )
5190     case $build in
5191       *-*-mingw* ) # actually msys
5192         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5193         ;;
5194       *-*-cygwin* )
5195         lt_cv_to_host_file_cmd=func_convert_file_noop
5196         ;;
5197       * ) # otherwise, assume *nix
5198         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5199         ;;
5200     esac
5201     ;;
5202   * ) # unhandled hosts (and "normal" native builds)
5203     lt_cv_to_host_file_cmd=func_convert_file_noop
5204     ;;
5205 esac
5206
5207 fi
5208
5209 to_host_file_cmd=$lt_cv_to_host_file_cmd
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5211 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5212
5213     
5214     
5215     
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5218 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5219 if ${lt_cv_to_tool_file_cmd+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   #assume ordinary cross tools, or native build.
5223 lt_cv_to_tool_file_cmd=func_convert_file_noop
5224 case $host in
5225   *-*-mingw* )
5226     case $build in
5227       *-*-mingw* ) # actually msys
5228         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5229         ;;
5230     esac
5231     ;;
5232 esac
5233
5234 fi
5235
5236 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5238 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5239
5240     
5241     
5242     
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5246 if ${lt_cv_ld_reload_flag+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   lt_cv_ld_reload_flag='-r'
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5253 reload_flag=$lt_cv_ld_reload_flag
5254 case $reload_flag in
5255 "" | " "*) ;;
5256 *) reload_flag=" $reload_flag" ;;
5257 esac
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5259 case $host_os in
5260   cygwin* | mingw* | pw32* | cegcc*)
5261     if test "$GCC" != yes; then
5262       reload_cmds=false
5263     fi
5264     ;;
5265   darwin*)
5266     if test "$GCC" = yes; then
5267       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5268     else
5269       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270     fi
5271     ;;
5272 esac
5273
5274     
5275     
5276     
5277
5278     
5279     
5280     
5281
5282 if test -n "$ac_tool_prefix"; then
5283   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_OBJDUMP+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   if test -n "$OBJDUMP"; then
5291   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 OBJDUMP=$ac_cv_prog_OBJDUMP
5311 if test -n "$OBJDUMP"; then
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313 $as_echo "$OBJDUMP" >&6; }
5314 else
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_OBJDUMP"; then
5322   ac_ct_OBJDUMP=$OBJDUMP
5323   # Extract the first word of "objdump", so it can be a program name with args.
5324 set dummy objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$ac_ct_OBJDUMP"; then
5331   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351 if test -n "$ac_ct_OBJDUMP"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353 $as_echo "$ac_ct_OBJDUMP" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359   if test "x$ac_ct_OBJDUMP" = x; then
5360     OBJDUMP="false"
5361   else
5362     case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368     OBJDUMP=$ac_ct_OBJDUMP
5369   fi
5370 else
5371   OBJDUMP="$ac_cv_prog_OBJDUMP"
5372 fi
5373
5374 test -z "$OBJDUMP" && OBJDUMP=objdump
5375
5376     
5377     
5378     
5379
5380
5381
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386 if ${lt_cv_deplibs_check_method+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   lt_cv_file_magic_cmd='$MAGIC_CMD'
5390 lt_cv_file_magic_test_file=
5391 lt_cv_deplibs_check_method='unknown'
5392 # Need to set the preceding variable on all platforms that support
5393 # interlibrary dependencies.
5394 # 'none' -- dependencies not supported.
5395 # `unknown' -- same as none, but documents that we really don't know.
5396 # 'pass_all' -- all dependencies passed with no checks.
5397 # 'test_compile' -- check by making test program.
5398 # 'file_magic [[regex]]' -- check by looking for files in library path
5399 # which responds to the $file_magic_cmd with a given extended regex.
5400 # If you have `file' or equivalent on your system and you're not sure
5401 # whether `pass_all' will *always* work, you probably want this one.
5402
5403 case $host_os in
5404 aix[4-9]*)
5405   lt_cv_deplibs_check_method=pass_all
5406   ;;
5407
5408 beos*)
5409   lt_cv_deplibs_check_method=pass_all
5410   ;;
5411
5412 bsdi[45]*)
5413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414   lt_cv_file_magic_cmd='/usr/bin/file -L'
5415   lt_cv_file_magic_test_file=/shlib/libc.so
5416   ;;
5417
5418 cygwin*)
5419   # func_win32_libid is a shell function defined in ltmain.sh
5420   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421   lt_cv_file_magic_cmd='func_win32_libid'
5422   ;;
5423
5424 mingw* | pw32*)
5425   # Base MSYS/MinGW do not provide the 'file' command needed by
5426   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427   # unless we find 'file', for example because we are cross-compiling.
5428   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431     lt_cv_file_magic_cmd='func_win32_libid'
5432   else
5433     # Keep this pattern in sync with the one in func_win32_libid.
5434     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5435     lt_cv_file_magic_cmd='$OBJDUMP -f'
5436   fi
5437   ;;
5438
5439 cegcc*)
5440   # use the weaker test based on 'objdump'. See mingw*.
5441   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442   lt_cv_file_magic_cmd='$OBJDUMP -f'
5443   ;;
5444
5445 darwin* | rhapsody*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 freebsd* | dragonfly*)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     case $host_cpu in
5452     i*86 )
5453       # Not sure whether the presence of OpenBSD here was a mistake.
5454       # Let's accept both of them until this is cleared up.
5455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456       lt_cv_file_magic_cmd=/usr/bin/file
5457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458       ;;
5459     esac
5460   else
5461     lt_cv_deplibs_check_method=pass_all
5462   fi
5463   ;;
5464
5465 gnu*)
5466   lt_cv_deplibs_check_method=pass_all
5467   ;;
5468
5469 haiku*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 hpux10.20* | hpux11*)
5474   lt_cv_file_magic_cmd=/usr/bin/file
5475   case $host_cpu in
5476   ia64*)
5477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479     ;;
5480   hppa*64*)
5481     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]'
5482     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483     ;;
5484   *)
5485     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487     ;;
5488   esac
5489   ;;
5490
5491 interix[3-9]*)
5492   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494   ;;
5495
5496 irix5* | irix6* | nonstopux*)
5497   case $LD in
5498   *-32|*"-32 ") libmagic=32-bit;;
5499   *-n32|*"-n32 ") libmagic=N32;;
5500   *-64|*"-64 ") libmagic=64-bit;;
5501   *) libmagic=never-match;;
5502   esac
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 netbsd*)
5512   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514   else
5515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516   fi
5517   ;;
5518
5519 newos6*)
5520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521   lt_cv_file_magic_cmd=/usr/bin/file
5522   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523   ;;
5524
5525 *nto* | *qnx*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 openbsd*)
5530   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 osf3* | osf4* | osf5*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 rdos*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 solaris*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 sysv4 | sysv4.3*)
5554   case $host_vendor in
5555   motorola)
5556     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]'
5557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558     ;;
5559   ncr)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562   sequent)
5563     lt_cv_file_magic_cmd='/bin/file'
5564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565     ;;
5566   sni)
5567     lt_cv_file_magic_cmd='/bin/file'
5568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569     lt_cv_file_magic_test_file=/lib/libc.so
5570     ;;
5571   siemens)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   pc)
5575     lt_cv_deplibs_check_method=pass_all
5576     ;;
5577   esac
5578   ;;
5579
5580 tpf*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583 esac
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5588
5589 file_magic_glob=
5590 want_nocaseglob=no
5591 if test "$build" = "$host"; then
5592   case $host_os in
5593   mingw* | pw32*)
5594     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5595       want_nocaseglob=yes
5596     else
5597       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5598     fi
5599     ;;
5600   esac
5601 fi
5602
5603 file_magic_cmd=$lt_cv_file_magic_cmd
5604 deplibs_check_method=$lt_cv_deplibs_check_method
5605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606
5607
5608     
5609     
5610     
5611
5612
5613     
5614     
5615     
5616
5617
5618     
5619     
5620     
5621
5622
5623     
5624     
5625     
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_DLLTOOL+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   if test -n "$DLLTOOL"; then
5637   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644     for ac_exec_ext in '' $ac_executable_extensions; do
5645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651   done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 DLLTOOL=$ac_cv_prog_DLLTOOL
5657 if test -n "$DLLTOOL"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659 $as_echo "$DLLTOOL" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_DLLTOOL"; then
5668   ac_ct_DLLTOOL=$DLLTOOL
5669   # Extract the first word of "dlltool", so it can be a program name with args.
5670 set dummy dlltool; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -n "$ac_ct_DLLTOOL"; then
5677   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691   done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697 if test -n "$ac_ct_DLLTOOL"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699 $as_echo "$ac_ct_DLLTOOL" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705   if test "x$ac_ct_DLLTOOL" = x; then
5706     DLLTOOL="false"
5707   else
5708     case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714     DLLTOOL=$ac_ct_DLLTOOL
5715   fi
5716 else
5717   DLLTOOL="$ac_cv_prog_DLLTOOL"
5718 fi
5719
5720 test -z "$DLLTOOL" && DLLTOOL=dlltool
5721
5722     
5723     
5724     
5725
5726
5727
5728
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   lt_cv_sharedlib_from_linklib_cmd='unknown'
5737
5738 case $host_os in
5739 cygwin* | mingw* | pw32* | cegcc*)
5740   # two different shell functions defined in ltmain.sh
5741   # decide which to use based on capabilities of $DLLTOOL
5742   case `$DLLTOOL --help 2>&1` in
5743   *--identify-strict*)
5744     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5745     ;;
5746   *)
5747     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5748     ;;
5749   esac
5750   ;;
5751 *)
5752   # fallback: assume linklib IS sharedlib
5753   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5754   ;;
5755 esac
5756
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5762
5763
5764     
5765     
5766     
5767
5768
5769
5770 if test -n "$ac_tool_prefix"; then
5771   for ac_prog in ar
5772   do
5773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_AR+:} false; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -n "$AR"; then
5781   ac_cv_prog_AR="$AR" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_exec_ext in '' $ac_executable_extensions; do
5789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795   done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 AR=$ac_cv_prog_AR
5801 if test -n "$AR"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803 $as_echo "$AR" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810     test -n "$AR" && break
5811   done
5812 fi
5813 if test -z "$AR"; then
5814   ac_ct_AR=$AR
5815   for ac_prog in ar
5816 do
5817   # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if test -n "$ac_ct_AR"; then
5825   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834     ac_cv_prog_ac_ct_AR="$ac_prog"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845 if test -n "$ac_ct_AR"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847 $as_echo "$ac_ct_AR" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853
5854   test -n "$ac_ct_AR" && break
5855 done
5856
5857   if test "x$ac_ct_AR" = x; then
5858     AR="false"
5859   else
5860     case $cross_compiling:$ac_tool_warned in
5861 yes:)
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864 ac_tool_warned=yes ;;
5865 esac
5866     AR=$ac_ct_AR
5867   fi
5868 fi
5869
5870 : ${AR=ar}
5871 : ${AR_FLAGS=cru}
5872
5873     
5874     
5875     
5876
5877
5878     
5879     
5880     
5881
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884 $as_echo_n "checking for archiver @FILE support... " >&6; }
5885 if ${lt_cv_ar_at_file+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   lt_cv_ar_at_file=no
5889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901   echo conftest.$ac_objext > conftest.lst
5902       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904   (eval $lt_ar_try) 2>&5
5905   ac_status=$?
5906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907   test $ac_status = 0; }
5908       if test "$ac_status" -eq 0; then
5909         # Ensure the archiver fails upon bogus file names.
5910         rm -f conftest.$ac_objext libconftest.a
5911         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912   (eval $lt_ar_try) 2>&5
5913   ac_status=$?
5914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915   test $ac_status = 0; }
5916         if test "$ac_status" -ne 0; then
5917           lt_cv_ar_at_file=@
5918         fi
5919       fi
5920       rm -f conftest.* libconftest.a
5921      
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924   
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927 $as_echo "$lt_cv_ar_at_file" >&6; }
5928
5929 if test "x$lt_cv_ar_at_file" = xno; then
5930   archiver_list_spec=
5931 else
5932   archiver_list_spec=$lt_cv_ar_at_file
5933 fi
5934
5935     
5936     
5937     
5938
5939
5940
5941 if test -n "$ac_tool_prefix"; then
5942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}strip; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_STRIP+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   if test -n "$STRIP"; then
5950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957     for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964   done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 STRIP=$ac_cv_prog_STRIP
5970 if test -n "$STRIP"; then
5971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972 $as_echo "$STRIP" >&6; }
5973 else
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_STRIP"; then
5981   ac_ct_STRIP=$STRIP
5982   # Extract the first word of "strip", so it can be a program name with args.
5983 set dummy strip; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   if test -n "$ac_ct_STRIP"; then
5990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999     ac_cv_prog_ac_ct_STRIP="strip"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010 if test -n "$ac_ct_STRIP"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012 $as_echo "$ac_ct_STRIP" >&6; }
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018   if test "x$ac_ct_STRIP" = x; then
6019     STRIP=":"
6020   else
6021     case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027     STRIP=$ac_ct_STRIP
6028   fi
6029 else
6030   STRIP="$ac_cv_prog_STRIP"
6031 fi
6032
6033 test -z "$STRIP" && STRIP=:
6034
6035     
6036     
6037     
6038
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_RANLIB+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$RANLIB"; then
6049   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071 $as_echo "$RANLIB" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080   ac_ct_RANLIB=$RANLIB
6081   # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$ac_ct_RANLIB"; then
6089   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_RANLIB="ranlib"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111 $as_echo "$ac_ct_RANLIB" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_RANLIB" = x; then
6118     RANLIB=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     RANLIB=$ac_ct_RANLIB
6127   fi
6128 else
6129   RANLIB="$ac_cv_prog_RANLIB"
6130 fi
6131
6132 test -z "$RANLIB" && RANLIB=:
6133
6134     
6135     
6136     
6137
6138
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6143
6144 if test -n "$RANLIB"; then
6145   case $host_os in
6146   openbsd*)
6147     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6148     ;;
6149   *)
6150     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6151     ;;
6152   esac
6153   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6154 fi
6155
6156 case $host_os in
6157   darwin*)
6158     lock_old_archive_extraction=yes ;;
6159   *)
6160     lock_old_archive_extraction=no ;;
6161 esac
6162
6163     
6164     
6165     
6166
6167
6168     
6169     
6170     
6171
6172
6173     
6174     
6175     
6176
6177
6178     
6179     
6180     
6181
6182
6183
6184
6185     
6186     
6187     
6188
6189     
6190     
6191     
6192
6193     
6194     
6195     
6196
6197     
6198     
6199     
6200
6201 # If no C compiler was specified, use CC.
6202 LTCC=${LTCC-"$CC"}
6203
6204 # If no C compiler flags were specified, use CFLAGS.
6205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6206
6207 # Allow CC to be a program name with arguments.
6208 compiler=$CC
6209
6210
6211 # Check for command to grab the raw symbol name followed by C symbol from nm.
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   
6218 # These are sane defaults that work on at least a few old systems.
6219 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6220
6221 # Character class describing NM global symbol codes.
6222 symcode='[BCDEGRST]'
6223
6224 # Regexp to match symbols that can be accessed directly from C.
6225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6226
6227 # Define system-specific variables.
6228 case $host_os in
6229 aix*)
6230   symcode='[BCDT]'
6231   ;;
6232 cygwin* | mingw* | pw32* | cegcc*)
6233   symcode='[ABCDGISTW]'
6234   ;;
6235 hpux*)
6236   if test "$host_cpu" = ia64; then
6237     symcode='[ABCDEGRST]'
6238   fi
6239   ;;
6240 irix* | nonstopux*)
6241   symcode='[BCDEGRST]'
6242   ;;
6243 osf*)
6244   symcode='[BCDEGQRST]'
6245   ;;
6246 solaris*)
6247   symcode='[BDRT]'
6248   ;;
6249 sco3.2v5*)
6250   symcode='[DT]'
6251   ;;
6252 sysv4.2uw2*)
6253   symcode='[DT]'
6254   ;;
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256   symcode='[ABDT]'
6257   ;;
6258 sysv4)
6259   symcode='[DFNSTU]'
6260   ;;
6261 esac
6262
6263 # If we're using GNU nm, then use its standard symbol codes.
6264 case `$NM -V 2>&1` in
6265 *GNU* | *'with BFD'*)
6266   symcode='[ABCDGIRSTW]' ;;
6267 esac
6268
6269 # Transform an extracted symbol line into a proper C declaration.
6270 # Some systems (esp. on ia64) link data and code symbols differently,
6271 # so use this general approach.
6272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6273
6274 # Transform an extracted symbol line into symbol name and symbol address
6275 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6276 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'"
6277
6278 # Handle CRLF in mingw tool chain
6279 opt_cr=
6280 case $build_os in
6281 mingw*)
6282   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6283   ;;
6284 esac
6285
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6288
6289   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290   symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292   # Write the raw and C identifiers.
6293   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294     # Fake it for dumpbin and say T for any non-static function
6295     # and D for any global variable.
6296     # Also find C++ and __fastcall symbols from MSVC++,
6297     # which start with @ or ?.
6298     lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 "     {last_section=section; section=\$ 3};"\
6300 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 "     \$ 0!~/External *\|/{next};"\
6302 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 "     {if(hide[section]) next};"\
6304 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 "     ' prfx=^$ac_symprfx"
6309   else
6310     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6311   fi
6312   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6313
6314   # Check to see that the pipe works correctly.
6315   pipe_works=no
6316
6317   rm -f conftest*
6318   cat > conftest.$ac_ext <<_LT_EOF
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322 char nm_test_var;
6323 void nm_test_func(void);
6324 void nm_test_func(void){}
6325 #ifdef __cplusplus
6326 }
6327 #endif
6328 int main(){nm_test_var='a';nm_test_func();return(0);}
6329 _LT_EOF
6330
6331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332   (eval $ac_compile) 2>&5
6333   ac_status=$?
6334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335   test $ac_status = 0; }; then
6336     # Now try to grab the symbols.
6337     nlist=conftest.nm
6338     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6339   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6340   ac_status=$?
6341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342   test $ac_status = 0; } && test -s "$nlist"; then
6343       # Try sorting and uniquifying the output.
6344       if sort "$nlist" | uniq > "$nlist"T; then
6345         mv -f "$nlist"T "$nlist"
6346       else
6347         rm -f "$nlist"T
6348       fi
6349
6350       # Make sure that we snagged all the symbols we need.
6351       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353           cat <<_LT_EOF > conftest.$ac_ext
6354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6355 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6356 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6357    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6358 # define LT@&t@_DLSYM_CONST
6359 #elif defined(__osf__)
6360 /* This system does not cope well with relocations in const data.  */
6361 # define LT@&t@_DLSYM_CONST
6362 #else
6363 # define LT@&t@_DLSYM_CONST const
6364 #endif
6365
6366 #ifdef __cplusplus
6367 extern "C" {
6368 #endif
6369
6370 _LT_EOF
6371           # Now generate the symbol file.
6372           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6373
6374           cat <<_LT_EOF >> conftest.$ac_ext
6375
6376 /* The mapping between symbol names and symbols.  */
6377 LT@&t@_DLSYM_CONST struct {
6378   const char *name;
6379   void       *address;
6380 }
6381 lt__PROGRAM__LTX_preloaded_symbols[] =
6382 {
6383   { "@PROGRAM@", (void *) 0 },
6384 _LT_EOF
6385           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6386           cat <<\_LT_EOF >> conftest.$ac_ext
6387   {0, (void *) 0}
6388 };
6389
6390 /* This works around a problem in FreeBSD linker */
6391 #ifdef FREEBSD_WORKAROUND
6392 static const void *lt_preloaded_setup() {
6393   return lt__PROGRAM__LTX_preloaded_symbols;
6394 }
6395 #endif
6396
6397 #ifdef __cplusplus
6398 }
6399 #endif
6400 _LT_EOF
6401           # Now try linking the two files.
6402           mv conftest.$ac_objext conftstm.$ac_objext
6403           lt_globsym_save_LIBS=$LIBS
6404           lt_globsym_save_CFLAGS=$CFLAGS
6405           LIBS="conftstm.$ac_objext"
6406           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6407           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6408   (eval $ac_link) 2>&5
6409   ac_status=$?
6410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6412             pipe_works=yes
6413           fi
6414           LIBS=$lt_globsym_save_LIBS
6415           CFLAGS=$lt_globsym_save_CFLAGS
6416         else
6417           echo "cannot find nm_test_func in $nlist" >&5
6418         fi
6419       else
6420         echo "cannot find nm_test_var in $nlist" >&5
6421       fi
6422     else
6423       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6424     fi
6425   else
6426     echo "$progname: failed program was:" >&5
6427     cat conftest.$ac_ext >&5
6428   fi
6429   rm -rf conftest* conftst*
6430
6431   # Do not use the global_symbol_pipe unless it works.
6432   if test "$pipe_works" = yes; then
6433     break
6434   else
6435     lt_cv_sys_global_symbol_pipe=
6436   fi
6437 done
6438
6439 fi
6440
6441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6442   lt_cv_sys_global_symbol_to_cdecl=
6443 fi
6444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6446 $as_echo "failed" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6449 $as_echo "ok" >&6; }
6450 fi
6451
6452 # Response file support.
6453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6454   nm_file_list_spec='@'
6455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6456   nm_file_list_spec='@'
6457 fi
6458
6459
6460     
6461     
6462     
6463
6464
6465     
6466     
6467     
6468
6469
6470     
6471     
6472     
6473
6474
6475     
6476     
6477     
6478
6479
6480     
6481     
6482     
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6486 $as_echo_n "checking for sysroot... " >&6; }
6487
6488 @%:@ Check whether --with-sysroot was given.
6489 if test "${with_sysroot+set}" = set; then :
6490   withval=$with_sysroot; 
6491 else
6492   with_sysroot=no
6493 fi
6494
6495
6496 lt_sysroot=
6497 case ${with_sysroot} in #(
6498  yes)
6499    if test "$GCC" = yes; then
6500      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6501    fi
6502    ;; #(
6503  /*)
6504    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6505    ;; #(
6506  no|'')
6507    ;; #(
6508  *)
6509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6510 $as_echo "${with_sysroot}" >&6; }
6511    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6512    ;;
6513 esac
6514
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6516 $as_echo "${lt_sysroot:-no}" >&6; }
6517
6518     
6519     
6520     
6521
6522 @%:@ Check whether --enable-libtool-lock was given.
6523 if test "${enable_libtool_lock+set}" = set; then :
6524   enableval=$enable_libtool_lock; 
6525 fi
6526
6527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6528
6529 # Some flags need to be propagated to the compiler or linker for good
6530 # libtool support.
6531 case $host in
6532 ia64-*-hpux*)
6533   # Find out which ABI we are using.
6534   echo 'int i;' > conftest.$ac_ext
6535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536   (eval $ac_compile) 2>&5
6537   ac_status=$?
6538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539   test $ac_status = 0; }; then
6540     case `/usr/bin/file conftest.$ac_objext` in
6541       *ELF-32*)
6542         HPUX_IA64_MODE="32"
6543         ;;
6544       *ELF-64*)
6545         HPUX_IA64_MODE="64"
6546         ;;
6547     esac
6548   fi
6549   rm -rf conftest*
6550   ;;
6551 *-*-irix6*)
6552   # Find out which ABI we are using.
6553   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555   (eval $ac_compile) 2>&5
6556   ac_status=$?
6557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558   test $ac_status = 0; }; then
6559     if test "$lt_cv_prog_gnu_ld" = yes; then
6560       case `/usr/bin/file conftest.$ac_objext` in
6561         *32-bit*)
6562           LD="${LD-ld} -melf32bsmip"
6563           ;;
6564         *N32*)
6565           LD="${LD-ld} -melf32bmipn32"
6566           ;;
6567         *64-bit*)
6568           LD="${LD-ld} -melf64bmip"
6569         ;;
6570       esac
6571     else
6572       case `/usr/bin/file conftest.$ac_objext` in
6573         *32-bit*)
6574           LD="${LD-ld} -32"
6575           ;;
6576         *N32*)
6577           LD="${LD-ld} -n32"
6578           ;;
6579         *64-bit*)
6580           LD="${LD-ld} -64"
6581           ;;
6582       esac
6583     fi
6584   fi
6585   rm -rf conftest*
6586   ;;
6587
6588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6590   # Find out which ABI we are using.
6591   echo 'int i;' > conftest.$ac_ext
6592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593   (eval $ac_compile) 2>&5
6594   ac_status=$?
6595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596   test $ac_status = 0; }; then
6597     case `/usr/bin/file conftest.o` in
6598       *32-bit*)
6599         case $host in
6600           x86_64-*kfreebsd*-gnu)
6601             LD="${LD-ld} -m elf_i386_fbsd"
6602             ;;
6603           x86_64-*linux*)
6604             LD="${LD-ld} -m elf_i386"
6605             ;;
6606           ppc64-*linux*|powerpc64-*linux*)
6607             LD="${LD-ld} -m elf32ppclinux"
6608             ;;
6609           s390x-*linux*)
6610             LD="${LD-ld} -m elf_s390"
6611             ;;
6612           sparc64-*linux*)
6613             LD="${LD-ld} -m elf32_sparc"
6614             ;;
6615         esac
6616         ;;
6617       *64-bit*)
6618         case $host in
6619           x86_64-*kfreebsd*-gnu)
6620             LD="${LD-ld} -m elf_x86_64_fbsd"
6621             ;;
6622           x86_64-*linux*)
6623             LD="${LD-ld} -m elf_x86_64"
6624             ;;
6625           ppc*-*linux*|powerpc*-*linux*)
6626             LD="${LD-ld} -m elf64ppc"
6627             ;;
6628           s390*-*linux*|s390*-*tpf*)
6629             LD="${LD-ld} -m elf64_s390"
6630             ;;
6631           sparc*-*linux*)
6632             LD="${LD-ld} -m elf64_sparc"
6633             ;;
6634         esac
6635         ;;
6636     esac
6637   fi
6638   rm -rf conftest*
6639   ;;
6640
6641 *-*-sco3.2v5*)
6642   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6643   SAVE_CFLAGS="$CFLAGS"
6644   CFLAGS="$CFLAGS -belf"
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6647 if ${lt_cv_cc_needs_belf+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h.  */
6658
6659 int
6660 main ()
6661 {
6662
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668   lt_cv_cc_needs_belf=yes
6669 else
6670   lt_cv_cc_needs_belf=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext \
6673     conftest$ac_exeext conftest.$ac_ext
6674      ac_ext=c
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6683   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685     CFLAGS="$SAVE_CFLAGS"
6686   fi
6687   ;;
6688 sparc*-*solaris*)
6689   # Find out which ABI we are using.
6690   echo 'int i;' > conftest.$ac_ext
6691   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692   (eval $ac_compile) 2>&5
6693   ac_status=$?
6694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695   test $ac_status = 0; }; then
6696     case `/usr/bin/file conftest.o` in
6697     *64-bit*)
6698       case $lt_cv_prog_gnu_ld in
6699       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6700       *)
6701         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6702           LD="${LD-ld} -64"
6703         fi
6704         ;;
6705       esac
6706       ;;
6707     esac
6708   fi
6709   rm -rf conftest*
6710   ;;
6711 esac
6712
6713 need_locks="$enable_libtool_lock"
6714
6715 if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}mt; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$MANIFEST_TOOL"; then
6724   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6744 if test -n "$MANIFEST_TOOL"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6746 $as_echo "$MANIFEST_TOOL" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6755   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6756   # Extract the first word of "mt", so it can be a program name with args.
6757 set dummy mt; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_MANIFEST_TOOL"; then
6764   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6784 if test -n "$ac_ct_MANIFEST_TOOL"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6786 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6793     MANIFEST_TOOL=":"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6802   fi
6803 else
6804   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6805 fi
6806
6807 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6809 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6810 if ${lt_cv_path_mainfest_tool+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   lt_cv_path_mainfest_tool=no
6814   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6815   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6816   cat conftest.err >&5
6817   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6818     lt_cv_path_mainfest_tool=yes
6819   fi
6820   rm -f conftest*
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6823 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6824 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6825   MANIFEST_TOOL=:
6826 fi
6827
6828     
6829     
6830     
6831
6832
6833   case $host_os in
6834     rhapsody* | darwin*)
6835     if test -n "$ac_tool_prefix"; then
6836   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$DSYMUTIL"; then
6844   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6864 if test -n "$DSYMUTIL"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6866 $as_echo "$DSYMUTIL" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_DSYMUTIL"; then
6875   ac_ct_DSYMUTIL=$DSYMUTIL
6876   # Extract the first word of "dsymutil", so it can be a program name with args.
6877 set dummy dsymutil; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$ac_ct_DSYMUTIL"; then
6884   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_exec_ext in '' $ac_executable_extensions; do
6892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898   done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6904 if test -n "$ac_ct_DSYMUTIL"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6906 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912   if test "x$ac_ct_DSYMUTIL" = x; then
6913     DSYMUTIL=":"
6914   else
6915     case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921     DSYMUTIL=$ac_ct_DSYMUTIL
6922   fi
6923 else
6924   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6925 fi
6926
6927     if test -n "$ac_tool_prefix"; then
6928   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_NMEDIT+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   if test -n "$NMEDIT"; then
6936   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943     for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950   done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 NMEDIT=$ac_cv_prog_NMEDIT
6956 if test -n "$NMEDIT"; then
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6958 $as_echo "$NMEDIT" >&6; }
6959 else
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_NMEDIT"; then
6967   ac_ct_NMEDIT=$NMEDIT
6968   # Extract the first word of "nmedit", so it can be a program name with args.
6969 set dummy nmedit; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   if test -n "$ac_ct_NMEDIT"; then
6976   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990   done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6996 if test -n "$ac_ct_NMEDIT"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6998 $as_echo "$ac_ct_NMEDIT" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004   if test "x$ac_ct_NMEDIT" = x; then
7005     NMEDIT=":"
7006   else
7007     case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013     NMEDIT=$ac_ct_NMEDIT
7014   fi
7015 else
7016   NMEDIT="$ac_cv_prog_NMEDIT"
7017 fi
7018
7019     if test -n "$ac_tool_prefix"; then
7020   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_LIPO+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   if test -n "$LIPO"; then
7028   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035     for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042   done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 LIPO=$ac_cv_prog_LIPO
7048 if test -n "$LIPO"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7050 $as_echo "$LIPO" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_LIPO"; then
7059   ac_ct_LIPO=$LIPO
7060   # Extract the first word of "lipo", so it can be a program name with args.
7061 set dummy lipo; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if test -n "$ac_ct_LIPO"; then
7068   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_prog_ac_ct_LIPO="lipo"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7088 if test -n "$ac_ct_LIPO"; then
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7090 $as_echo "$ac_ct_LIPO" >&6; }
7091 else
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096   if test "x$ac_ct_LIPO" = x; then
7097     LIPO=":"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     LIPO=$ac_ct_LIPO
7106   fi
7107 else
7108   LIPO="$ac_cv_prog_LIPO"
7109 fi
7110
7111     if test -n "$ac_tool_prefix"; then
7112   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_OTOOL+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$OTOOL"; then
7120   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 OTOOL=$ac_cv_prog_OTOOL
7140 if test -n "$OTOOL"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7142 $as_echo "$OTOOL" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_OTOOL"; then
7151   ac_ct_OTOOL=$OTOOL
7152   # Extract the first word of "otool", so it can be a program name with args.
7153 set dummy otool; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$ac_ct_OTOOL"; then
7160   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_prog_ac_ct_OTOOL="otool"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7180 if test -n "$ac_ct_OTOOL"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7182 $as_echo "$ac_ct_OTOOL" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188   if test "x$ac_ct_OTOOL" = x; then
7189     OTOOL=":"
7190   else
7191     case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197     OTOOL=$ac_ct_OTOOL
7198   fi
7199 else
7200   OTOOL="$ac_cv_prog_OTOOL"
7201 fi
7202
7203     if test -n "$ac_tool_prefix"; then
7204   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_OTOOL64+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$OTOOL64"; then
7212   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 OTOOL64=$ac_cv_prog_OTOOL64
7232 if test -n "$OTOOL64"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7234 $as_echo "$OTOOL64" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 fi
7242 if test -z "$ac_cv_prog_OTOOL64"; then
7243   ac_ct_OTOOL64=$OTOOL64
7244   # Extract the first word of "otool64", so it can be a program name with args.
7245 set dummy otool64; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -n "$ac_ct_OTOOL64"; then
7252   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259     for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_prog_ac_ct_OTOOL64="otool64"
7262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266   done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7272 if test -n "$ac_ct_OTOOL64"; then
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7274 $as_echo "$ac_ct_OTOOL64" >&6; }
7275 else
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280   if test "x$ac_ct_OTOOL64" = x; then
7281     OTOOL64=":"
7282   else
7283     case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289     OTOOL64=$ac_ct_OTOOL64
7290   fi
7291 else
7292   OTOOL64="$ac_cv_prog_OTOOL64"
7293 fi
7294
7295     
7296     
7297     
7298     
7299
7300     
7301     
7302     
7303     
7304
7305     
7306     
7307     
7308     
7309
7310     
7311     
7312     
7313     
7314
7315     
7316     
7317     
7318     
7319
7320
7321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7322 $as_echo_n "checking for -single_module linker flag... " >&6; }
7323 if ${lt_cv_apple_cc_single_mod+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   lt_cv_apple_cc_single_mod=no
7327       if test -z "${LT_MULTI_MODULE}"; then
7328         # By default we will add the -single_module flag. You can override
7329         # by either setting the environment variable LT_MULTI_MODULE
7330         # non-empty at configure time, or by adding -multi_module to the
7331         # link flags.
7332         rm -rf libconftest.dylib*
7333         echo "int foo(void){return 1;}" > conftest.c
7334         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335 -dynamiclib -Wl,-single_module conftest.c" >&5
7336         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7338         _lt_result=$?
7339         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7340           lt_cv_apple_cc_single_mod=yes
7341         else
7342           cat conftest.err >&5
7343         fi
7344         rm -rf libconftest.dylib*
7345         rm -f conftest.*
7346       fi
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7351 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   lt_cv_ld_exported_symbols_list=no
7356       save_LDFLAGS=$LDFLAGS
7357       echo "_main" > conftest.sym
7358       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361
7362 int
7363 main ()
7364 {
7365
7366   ;
7367   return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371   lt_cv_ld_exported_symbols_list=yes
7372 else
7373   lt_cv_ld_exported_symbols_list=no
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext \
7376     conftest$ac_exeext conftest.$ac_ext
7377         LDFLAGS="$save_LDFLAGS"
7378     
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7381 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7383 $as_echo_n "checking for -force_load linker flag... " >&6; }
7384 if ${lt_cv_ld_force_load+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   lt_cv_ld_force_load=no
7388       cat > conftest.c << _LT_EOF
7389 int forced_loaded() { return 2;}
7390 _LT_EOF
7391       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7392       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7393       echo "$AR cru libconftest.a conftest.o" >&5
7394       $AR cru libconftest.a conftest.o 2>&5
7395       echo "$RANLIB libconftest.a" >&5
7396       $RANLIB libconftest.a 2>&5
7397       cat > conftest.c << _LT_EOF
7398 int main() { return 0;}
7399 _LT_EOF
7400       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7401       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7402       _lt_result=$?
7403       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7404         lt_cv_ld_force_load=yes
7405       else
7406         cat conftest.err >&5
7407       fi
7408         rm -f conftest.err libconftest.a conftest conftest.c
7409         rm -rf conftest.dSYM
7410     
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7414     case $host_os in
7415     rhapsody* | darwin1.[012])
7416       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7417     darwin1.*)
7418       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419     darwin*) # darwin 5.x on
7420       # if running on 10.5 or later, the deployment target defaults
7421       # to the OS version, if on x86, and 10.4, the deployment
7422       # target defaults to 10.4. Don't you love it?
7423       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426         10.[012]*)
7427           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7428         10.*)
7429           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430       esac
7431     ;;
7432   esac
7433     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7434       _lt_dar_single_mod='$single_module'
7435     fi
7436     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7437       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7438     else
7439       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7440     fi
7441     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7442       _lt_dsymutil='~$DSYMUTIL $lib || :'
7443     else
7444       _lt_dsymutil=
7445     fi
7446     ;;
7447   esac
7448
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7456 # On Suns, sometimes $CPP names a directory.
7457 if test -n "$CPP" && test -d "$CPP"; then
7458   CPP=
7459 fi
7460 if test -z "$CPP"; then
7461   if ${ac_cv_prog_CPP+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464       # Double quotes because CPP needs to be expanded
7465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7466     do
7467       ac_preproc_ok=false
7468 for ac_c_preproc_warn_flag in '' yes
7469 do
7470   # Use a header file that comes with gcc, so configuring glibc
7471   # with a fresh cross-compiler works.
7472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473   # <limits.h> exists even on freestanding compilers.
7474   # On the NeXT, cc -E runs the code through the compiler's parser,
7475   # not just through cpp. "Syntax error" is here to catch this case.
7476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h.  */
7478 @%:@ifdef __STDC__
7479 @%:@ include <limits.h>
7480 @%:@else
7481 @%:@ include <assert.h>
7482 @%:@endif
7483                      Syntax error
7484 _ACEOF
7485 if ac_fn_c_try_cpp "$LINENO"; then :
7486   
7487 else
7488   # Broken: fails on valid input.
7489 continue
7490 fi
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493   # OK, works on sane cases.  Now check whether nonexistent headers
7494   # can be detected and how.
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497 @%:@include <ac_nonexistent.h>
7498 _ACEOF
7499 if ac_fn_c_try_cpp "$LINENO"; then :
7500   # Broken: success on invalid input.
7501 continue
7502 else
7503   # Passes both tests.
7504 ac_preproc_ok=:
7505 break
7506 fi
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7508
7509 done
7510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7511 rm -f conftest.i conftest.err conftest.$ac_ext
7512 if $ac_preproc_ok; then :
7513   break
7514 fi
7515
7516     done
7517     ac_cv_prog_CPP=$CPP
7518   
7519 fi
7520   CPP=$ac_cv_prog_CPP
7521 else
7522   ac_cv_prog_CPP=$CPP
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7525 $as_echo "$CPP" >&6; }
7526 ac_preproc_ok=false
7527 for ac_c_preproc_warn_flag in '' yes
7528 do
7529   # Use a header file that comes with gcc, so configuring glibc
7530   # with a fresh cross-compiler works.
7531   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532   # <limits.h> exists even on freestanding compilers.
7533   # On the NeXT, cc -E runs the code through the compiler's parser,
7534   # not just through cpp. "Syntax error" is here to catch this case.
7535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h.  */
7537 @%:@ifdef __STDC__
7538 @%:@ include <limits.h>
7539 @%:@else
7540 @%:@ include <assert.h>
7541 @%:@endif
7542                      Syntax error
7543 _ACEOF
7544 if ac_fn_c_try_cpp "$LINENO"; then :
7545   
7546 else
7547   # Broken: fails on valid input.
7548 continue
7549 fi
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7551
7552   # OK, works on sane cases.  Now check whether nonexistent headers
7553   # can be detected and how.
7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556 @%:@include <ac_nonexistent.h>
7557 _ACEOF
7558 if ac_fn_c_try_cpp "$LINENO"; then :
7559   # Broken: success on invalid input.
7560 continue
7561 else
7562   # Passes both tests.
7563 ac_preproc_ok=:
7564 break
7565 fi
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7567
7568 done
7569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7570 rm -f conftest.i conftest.err conftest.$ac_ext
7571 if $ac_preproc_ok; then :
7572   
7573 else
7574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7577 See \`config.log' for more details" "$LINENO" 5; }
7578 fi
7579
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7588 $as_echo_n "checking for ANSI C header files... " >&6; }
7589 if ${ac_cv_header_stdc+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594 #include <stdlib.h>
7595 #include <stdarg.h>
7596 #include <string.h>
7597 #include <float.h>
7598
7599 int
7600 main ()
7601 {
7602
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608   ac_cv_header_stdc=yes
7609 else
7610   ac_cv_header_stdc=no
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613
7614 if test $ac_cv_header_stdc = yes; then
7615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h.  */
7618 #include <string.h>
7619
7620 _ACEOF
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622   $EGREP "memchr" >/dev/null 2>&1; then :
7623   
7624 else
7625   ac_cv_header_stdc=no
7626 fi
7627 rm -f conftest*
7628
7629 fi
7630
7631 if test $ac_cv_header_stdc = yes; then
7632   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635 #include <stdlib.h>
7636
7637 _ACEOF
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639   $EGREP "free" >/dev/null 2>&1; then :
7640   
7641 else
7642   ac_cv_header_stdc=no
7643 fi
7644 rm -f conftest*
7645
7646 fi
7647
7648 if test $ac_cv_header_stdc = yes; then
7649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7650   if test "$cross_compiling" = yes; then :
7651   :
7652 else
7653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #include <ctype.h>
7656 #include <stdlib.h>
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7660 #else
7661 # define ISLOWER(c) \
7662                    (('a' <= (c) && (c) <= 'i') \
7663                      || ('j' <= (c) && (c) <= 'r') \
7664                      || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7666 #endif
7667
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7669 int
7670 main ()
7671 {
7672   int i;
7673   for (i = 0; i < 256; i++)
7674     if (XOR (islower (i), ISLOWER (i))
7675         || toupper (i) != TOUPPER (i))
7676       return 2;
7677   return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_run "$LINENO"; then :
7681   
7682 else
7683   ac_cv_header_stdc=no
7684 fi
7685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7686   conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 fi
7688
7689 fi
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7692 $as_echo "$ac_cv_header_stdc" >&6; }
7693 if test $ac_cv_header_stdc = yes; then
7694   
7695 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7696
7697 fi
7698
7699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7701                   inttypes.h stdint.h unistd.h
7702 do :
7703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7705 "
7706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7707   cat >>confdefs.h <<_ACEOF
7708 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7709 _ACEOF
7710  
7711 fi
7712
7713 done
7714
7715
7716 for ac_header in dlfcn.h
7717 do :
7718   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7719 "
7720 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7721   cat >>confdefs.h <<_ACEOF
7722 @%:@define HAVE_DLFCN_H 1
7723 _ACEOF
7724  
7725 fi
7726
7727 done
7728
7729
7730
7731
7732 func_stripname_cnf ()
7733 {
7734   case ${2} in
7735   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7736   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7737   esac
7738 } # func_stripname_cnf
7739
7740
7741
7742
7743
7744 # Set options
7745
7746
7747
7748         enable_dlopen=no
7749   
7750
7751   enable_win32_dll=no
7752   
7753
7754             @%:@ Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756   enableval=$enable_shared; p=${PACKAGE-default}
7757     case $enableval in
7758     yes) enable_shared=yes ;;
7759     no) enable_shared=no ;;
7760     *)
7761       enable_shared=no
7762       # Look at the argument we got.  We use all the common list separators.
7763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764       for pkg in $enableval; do
7765         IFS="$lt_save_ifs"
7766         if test "X$pkg" = "X$p"; then
7767           enable_shared=yes
7768         fi
7769       done
7770       IFS="$lt_save_ifs"
7771       ;;
7772     esac
7773 else
7774   enable_shared=yes
7775 fi
7776
7777
7778     
7779     
7780     
7781     
7782
7783
7784
7785   @%:@ Check whether --enable-static was given.
7786 if test "${enable_static+set}" = set; then :
7787   enableval=$enable_static; p=${PACKAGE-default}
7788     case $enableval in
7789     yes) enable_static=yes ;;
7790     no) enable_static=no ;;
7791     *)
7792      enable_static=no
7793       # Look at the argument we got.  We use all the common list separators.
7794       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795       for pkg in $enableval; do
7796         IFS="$lt_save_ifs"
7797         if test "X$pkg" = "X$p"; then
7798           enable_static=yes
7799         fi
7800       done
7801       IFS="$lt_save_ifs"
7802       ;;
7803     esac
7804 else
7805   enable_static=yes
7806 fi
7807
7808
7809     
7810     
7811     
7812     
7813
7814
7815
7816   
7817 @%:@ Check whether --with-pic was given.
7818 if test "${with_pic+set}" = set; then :
7819   withval=$with_pic; pic_mode="$withval"
7820 else
7821   pic_mode=default
7822 fi
7823
7824
7825 test -z "$pic_mode" && pic_mode=default
7826
7827
7828     
7829     
7830     
7831
7832
7833   @%:@ Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835   enableval=$enable_fast_install; p=${PACKAGE-default}
7836     case $enableval in
7837     yes) enable_fast_install=yes ;;
7838     no) enable_fast_install=no ;;
7839     *)
7840       enable_fast_install=no
7841       # Look at the argument we got.  We use all the common list separators.
7842       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843       for pkg in $enableval; do
7844         IFS="$lt_save_ifs"
7845         if test "X$pkg" = "X$p"; then
7846           enable_fast_install=yes
7847         fi
7848       done
7849       IFS="$lt_save_ifs"
7850       ;;
7851     esac
7852 else
7853   enable_fast_install=yes
7854 fi
7855
7856
7857
7858     
7859     
7860     
7861
7862
7863   
7864
7865
7866 # This can be used to rebuild libtool when needed
7867 LIBTOOL_DEPS="$ltmain"
7868
7869 # Always use our own libtool.
7870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7871
7872
7873
7874     
7875     
7876     
7877
7878     
7879     
7880     
7881
7882     
7883     
7884     
7885
7886     
7887     
7888     
7889
7890     
7891     
7892     
7893
7894     
7895     
7896     
7897 test -z "$LN_S" && LN_S="ln -s"
7898
7899     
7900     
7901     
7902
7903     
7904     
7905     
7906
7907     
7908     
7909     
7910
7911
7912 if test -n "${ZSH_VERSION+set}" ; then
7913    setopt NO_GLOB_SUBST
7914 fi
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7924   lt_cv_objdir=.libs
7925 else
7926   # MS-DOS does not allow filenames that begin with a dot.
7927   lt_cv_objdir=_libs
7928 fi
7929 rmdir .libs 2>/dev/null
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7934
7935     
7936     
7937     
7938
7939 cat >>confdefs.h <<_ACEOF
7940 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7941 _ACEOF
7942
7943
7944
7945
7946 case $host_os in
7947 aix3*)
7948   # AIX sometimes has problems with the GCC collect2 program.  For some
7949   # reason, if we set the COLLECT_NAMES environment variable, the problems
7950   # vanish in a puff of smoke.
7951   if test "X${COLLECT_NAMES+set}" != Xset; then
7952     COLLECT_NAMES=
7953     export COLLECT_NAMES
7954   fi
7955   ;;
7956 esac
7957
7958 # Global variables:
7959 ofile=libtool
7960 can_build_shared=yes
7961
7962 # All known linkers require a `.a' archive for static linking (except MSVC,
7963 # which needs '.lib').
7964 libext=a
7965
7966 with_gnu_ld="$lt_cv_prog_gnu_ld"
7967
7968 old_CC="$CC"
7969 old_CFLAGS="$CFLAGS"
7970
7971 # Set sane defaults for various variables
7972 test -z "$CC" && CC=cc
7973 test -z "$LTCC" && LTCC=$CC
7974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7975 test -z "$LD" && LD=ld
7976 test -z "$ac_objext" && ac_objext=o
7977
7978 for cc_temp in $compiler""; do
7979   case $cc_temp in
7980     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7982     \-*) ;;
7983     *) break;;
7984   esac
7985 done
7986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7987
7988
7989 # Only perform the check for file, if the check method requires it
7990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7991 case $deplibs_check_method in
7992 file_magic*)
7993   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   case $MAGIC_CMD in
8000 [\\/*] |  ?:[\\/]*)
8001   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002   ;;
8003 *)
8004   lt_save_MAGIC_CMD="$MAGIC_CMD"
8005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8006   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007   for ac_dir in $ac_dummy; do
8008     IFS="$lt_save_ifs"
8009     test -z "$ac_dir" && ac_dir=.
8010     if test -f $ac_dir/${ac_tool_prefix}file; then
8011       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8012       if test -n "$file_magic_test_file"; then
8013         case $deplibs_check_method in
8014         "file_magic "*)
8015           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018             $EGREP "$file_magic_regex" > /dev/null; then
8019             :
8020           else
8021             cat <<_LT_EOF 1>&2
8022
8023 *** Warning: the command libtool uses to detect shared libraries,
8024 *** $file_magic_cmd, produces output that libtool cannot recognize.
8025 *** The result is that libtool may fail to recognize shared libraries
8026 *** as such.  This will affect the creation of libtool libraries that
8027 *** depend on shared libraries, but programs linked with such libtool
8028 *** libraries will work regardless of this problem.  Nevertheless, you
8029 *** may want to report the problem to your system manager and/or to
8030 *** bug-libtool@gnu.org
8031
8032 _LT_EOF
8033           fi ;;
8034         esac
8035       fi
8036       break
8037     fi
8038   done
8039   IFS="$lt_save_ifs"
8040   MAGIC_CMD="$lt_save_MAGIC_CMD"
8041   ;;
8042 esac
8043 fi
8044
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if test -n "$MAGIC_CMD"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048 $as_echo "$MAGIC_CMD" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054     
8055     
8056     
8057
8058 if test -z "$lt_cv_path_MAGIC_CMD"; then
8059   if test -n "$ac_tool_prefix"; then
8060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8061 $as_echo_n "checking for file... " >&6; }
8062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   case $MAGIC_CMD in
8066 [\\/*] |  ?:[\\/]*)
8067   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8068   ;;
8069 *)
8070   lt_save_MAGIC_CMD="$MAGIC_CMD"
8071   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8072   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8073   for ac_dir in $ac_dummy; do
8074     IFS="$lt_save_ifs"
8075     test -z "$ac_dir" && ac_dir=.
8076     if test -f $ac_dir/file; then
8077       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8078       if test -n "$file_magic_test_file"; then
8079         case $deplibs_check_method in
8080         "file_magic "*)
8081           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8082           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8084             $EGREP "$file_magic_regex" > /dev/null; then
8085             :
8086           else
8087             cat <<_LT_EOF 1>&2
8088
8089 *** Warning: the command libtool uses to detect shared libraries,
8090 *** $file_magic_cmd, produces output that libtool cannot recognize.
8091 *** The result is that libtool may fail to recognize shared libraries
8092 *** as such.  This will affect the creation of libtool libraries that
8093 *** depend on shared libraries, but programs linked with such libtool
8094 *** libraries will work regardless of this problem.  Nevertheless, you
8095 *** may want to report the problem to your system manager and/or to
8096 *** bug-libtool@gnu.org
8097
8098 _LT_EOF
8099           fi ;;
8100         esac
8101       fi
8102       break
8103     fi
8104   done
8105   IFS="$lt_save_ifs"
8106   MAGIC_CMD="$lt_save_MAGIC_CMD"
8107   ;;
8108 esac
8109 fi
8110
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if test -n "$MAGIC_CMD"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8114 $as_echo "$MAGIC_CMD" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121   else
8122     MAGIC_CMD=:
8123   fi
8124 fi
8125
8126   fi
8127   ;;
8128 esac
8129
8130 # Use C for the default configuration in the libtool script
8131
8132 lt_save_CC="$CC"
8133 ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139
8140 # Source file extension for C test sources.
8141 ac_ext=c
8142
8143 # Object file extension for compiled C test sources.
8144 objext=o
8145 objext=$objext
8146
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="int some_variable = 0;"
8149
8150 # Code to be used in simple link tests
8151 lt_simple_link_test_code='int main(){return(0);}'
8152
8153
8154
8155
8156
8157
8158
8159 # If no C compiler was specified, use CC.
8160 LTCC=${LTCC-"$CC"}
8161
8162 # If no C compiler flags were specified, use CFLAGS.
8163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8164
8165 # Allow CC to be a program name with arguments.
8166 compiler=$CC
8167
8168 # Save the default compiler, since it gets overwritten when the other
8169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8170 compiler_DEFAULT=$CC
8171
8172 # save warnings/boilerplate of simple test code
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176 _lt_compiler_boilerplate=`cat conftest.err`
8177 $RM conftest*
8178
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182 _lt_linker_boilerplate=`cat conftest.err`
8183 $RM -r conftest*
8184
8185
8186 ## CAVEAT EMPTOR:
8187 ## There is no encapsulation within the following macros, do not change
8188 ## the running order or otherwise move them around unless you know exactly
8189 ## what you are doing...
8190 if test -n "$compiler"; then
8191   
8192 lt_prog_compiler_no_builtin_flag=
8193
8194 if test "$GCC" = yes; then
8195   case $cc_basename in
8196   nvcc*)
8197     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8198   *)
8199     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8200   esac
8201
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8203 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8204 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   lt_cv_prog_compiler_rtti_exceptions=no
8208    ac_outfile=conftest.$ac_objext
8209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8210    lt_compiler_flag="-fno-rtti -fno-exceptions"
8211    # Insert the option either (1) after the last *FLAGS variable, or
8212    # (2) before a word containing "conftest.", or (3) at the end.
8213    # Note that $ac_compile itself does not contain backslashes and begins
8214    # with a dollar sign (not a hyphen), so the echo should work correctly.
8215    # The option is referenced via a variable to avoid confusing sed.
8216    lt_compile=`echo "$ac_compile" | $SED \
8217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8219    -e 's:$: $lt_compiler_flag:'`
8220    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8221    (eval "$lt_compile" 2>conftest.err)
8222    ac_status=$?
8223    cat conftest.err >&5
8224    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225    if (exit $ac_status) && test -s "$ac_outfile"; then
8226      # The compiler can only warn and ignore the option if not recognized
8227      # So say no if there are warnings other than the usual output.
8228      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8229      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8230      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8231        lt_cv_prog_compiler_rtti_exceptions=yes
8232      fi
8233    fi
8234    $RM conftest*
8235
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8238 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8239
8240 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8241     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8242 else
8243     :
8244 fi
8245
8246 fi
8247
8248     
8249     
8250     
8251
8252
8253   lt_prog_compiler_wl=
8254 lt_prog_compiler_pic=
8255 lt_prog_compiler_static=
8256
8257
8258   if test "$GCC" = yes; then
8259     lt_prog_compiler_wl='-Wl,'
8260     lt_prog_compiler_static='-static'
8261
8262     case $host_os in
8263       aix*)
8264       # All AIX code is PIC.
8265       if test "$host_cpu" = ia64; then
8266         # AIX 5 now supports IA64 processor
8267         lt_prog_compiler_static='-Bstatic'
8268       fi
8269       ;;
8270
8271     amigaos*)
8272       case $host_cpu in
8273       powerpc)
8274             # see comment about AmigaOS4 .so support
8275             lt_prog_compiler_pic='-fPIC'
8276         ;;
8277       m68k)
8278             # FIXME: we need at least 68020 code to build shared libraries, but
8279             # adding the `-m68020' flag to GCC prevents building anything better,
8280             # like `-m68040'.
8281             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8282         ;;
8283       esac
8284       ;;
8285
8286     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8287       # PIC is the default for these OSes.
8288       ;;
8289
8290     mingw* | cygwin* | pw32* | os2* | cegcc*)
8291       # This hack is so that the source file can tell whether it is being
8292       # built for inclusion in a dll (and should export symbols for example).
8293       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8294       # (--disable-auto-import) libraries
8295       lt_prog_compiler_pic='-DDLL_EXPORT'
8296       ;;
8297
8298     darwin* | rhapsody*)
8299       # PIC is the default on this platform
8300       # Common symbols not allowed in MH_DYLIB files
8301       lt_prog_compiler_pic='-fno-common'
8302       ;;
8303
8304     haiku*)
8305       # PIC is the default for Haiku.
8306       # The "-static" flag exists, but is broken.
8307       lt_prog_compiler_static=
8308       ;;
8309
8310     hpux*)
8311       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8312       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8313       # sets the default TLS model and affects inlining.
8314       case $host_cpu in
8315       hppa*64*)
8316         # +Z the default
8317         ;;
8318       *)
8319         lt_prog_compiler_pic='-fPIC'
8320         ;;
8321       esac
8322       ;;
8323
8324     interix[3-9]*)
8325       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8326       # Instead, we relocate shared libraries at runtime.
8327       ;;
8328
8329     msdosdjgpp*)
8330       # Just because we use GCC doesn't mean we suddenly get shared libraries
8331       # on systems that don't support them.
8332       lt_prog_compiler_can_build_shared=no
8333       enable_shared=no
8334       ;;
8335
8336     *nto* | *qnx*)
8337       # QNX uses GNU C++, but need to define -shared option too, otherwise
8338       # it will coredump.
8339       lt_prog_compiler_pic='-fPIC -shared'
8340       ;;
8341
8342     sysv4*MP*)
8343       if test -d /usr/nec; then
8344         lt_prog_compiler_pic=-Kconform_pic
8345       fi
8346       ;;
8347
8348     *)
8349       lt_prog_compiler_pic='-fPIC'
8350       ;;
8351     esac
8352
8353     case $cc_basename in
8354     nvcc*) # Cuda Compiler Driver 2.2
8355       lt_prog_compiler_wl='-Xlinker '
8356       lt_prog_compiler_pic='-Xcompiler -fPIC'
8357       ;;
8358     esac
8359   else
8360     # PORTME Check for flag to pass linker flags through the system compiler.
8361     case $host_os in
8362     aix*)
8363       lt_prog_compiler_wl='-Wl,'
8364       if test "$host_cpu" = ia64; then
8365         # AIX 5 now supports IA64 processor
8366         lt_prog_compiler_static='-Bstatic'
8367       else
8368         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8369       fi
8370       ;;
8371
8372     mingw* | cygwin* | pw32* | os2* | cegcc*)
8373       # This hack is so that the source file can tell whether it is being
8374       # built for inclusion in a dll (and should export symbols for example).
8375       lt_prog_compiler_pic='-DDLL_EXPORT'
8376       ;;
8377
8378     hpux9* | hpux10* | hpux11*)
8379       lt_prog_compiler_wl='-Wl,'
8380       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381       # not for PA HP-UX.
8382       case $host_cpu in
8383       hppa*64*|ia64*)
8384         # +Z the default
8385         ;;
8386       *)
8387         lt_prog_compiler_pic='+Z'
8388         ;;
8389       esac
8390       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391       lt_prog_compiler_static='${wl}-a ${wl}archive'
8392       ;;
8393
8394     irix5* | irix6* | nonstopux*)
8395       lt_prog_compiler_wl='-Wl,'
8396       # PIC (with -KPIC) is the default.
8397       lt_prog_compiler_static='-non_shared'
8398       ;;
8399
8400     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8401       case $cc_basename in
8402       # old Intel for x86_64 which still supported -KPIC.
8403       ecc*)
8404         lt_prog_compiler_wl='-Wl,'
8405         lt_prog_compiler_pic='-KPIC'
8406         lt_prog_compiler_static='-static'
8407         ;;
8408       # icc used to be incompatible with GCC.
8409       # ICC 10 doesn't accept -KPIC any more.
8410       icc* | ifort*)
8411         lt_prog_compiler_wl='-Wl,'
8412         lt_prog_compiler_pic='-fPIC'
8413         lt_prog_compiler_static='-static'
8414         ;;
8415       # Lahey Fortran 8.1.
8416       lf95*)
8417         lt_prog_compiler_wl='-Wl,'
8418         lt_prog_compiler_pic='--shared'
8419         lt_prog_compiler_static='--static'
8420         ;;
8421       nagfor*)
8422         # NAG Fortran compiler
8423         lt_prog_compiler_wl='-Wl,-Wl,,'
8424         lt_prog_compiler_pic='-PIC'
8425         lt_prog_compiler_static='-Bstatic'
8426         ;;
8427       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8428         # Portland Group compilers (*not* the Pentium gcc compiler,
8429         # which looks to be a dead project)
8430         lt_prog_compiler_wl='-Wl,'
8431         lt_prog_compiler_pic='-fpic'
8432         lt_prog_compiler_static='-Bstatic'
8433         ;;
8434       ccc*)
8435         lt_prog_compiler_wl='-Wl,'
8436         # All Alpha code is PIC.
8437         lt_prog_compiler_static='-non_shared'
8438         ;;
8439       xl* | bgxl* | bgf* | mpixl*)
8440         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8441         lt_prog_compiler_wl='-Wl,'
8442         lt_prog_compiler_pic='-qpic'
8443         lt_prog_compiler_static='-qstaticlink'
8444         ;;
8445       *)
8446         case `$CC -V 2>&1 | sed 5q` in
8447         *Sun\ F* | *Sun*Fortran*)
8448           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8449           lt_prog_compiler_pic='-KPIC'
8450           lt_prog_compiler_static='-Bstatic'
8451           lt_prog_compiler_wl=''
8452           ;;
8453         *Sun\ C*)
8454           # Sun C 5.9
8455           lt_prog_compiler_pic='-KPIC'
8456           lt_prog_compiler_static='-Bstatic'
8457           lt_prog_compiler_wl='-Wl,'
8458           ;;
8459         esac
8460         ;;
8461       esac
8462       ;;
8463
8464     newsos6)
8465       lt_prog_compiler_pic='-KPIC'
8466       lt_prog_compiler_static='-Bstatic'
8467       ;;
8468
8469     *nto* | *qnx*)
8470       # QNX uses GNU C++, but need to define -shared option too, otherwise
8471       # it will coredump.
8472       lt_prog_compiler_pic='-fPIC -shared'
8473       ;;
8474
8475     osf3* | osf4* | osf5*)
8476       lt_prog_compiler_wl='-Wl,'
8477       # All OSF/1 code is PIC.
8478       lt_prog_compiler_static='-non_shared'
8479       ;;
8480
8481     rdos*)
8482       lt_prog_compiler_static='-non_shared'
8483       ;;
8484
8485     solaris*)
8486       lt_prog_compiler_pic='-KPIC'
8487       lt_prog_compiler_static='-Bstatic'
8488       case $cc_basename in
8489       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8490         lt_prog_compiler_wl='-Qoption ld ';;
8491       *)
8492         lt_prog_compiler_wl='-Wl,';;
8493       esac
8494       ;;
8495
8496     sunos4*)
8497       lt_prog_compiler_wl='-Qoption ld '
8498       lt_prog_compiler_pic='-PIC'
8499       lt_prog_compiler_static='-Bstatic'
8500       ;;
8501
8502     sysv4 | sysv4.2uw2* | sysv4.3*)
8503       lt_prog_compiler_wl='-Wl,'
8504       lt_prog_compiler_pic='-KPIC'
8505       lt_prog_compiler_static='-Bstatic'
8506       ;;
8507
8508     sysv4*MP*)
8509       if test -d /usr/nec ;then
8510         lt_prog_compiler_pic='-Kconform_pic'
8511         lt_prog_compiler_static='-Bstatic'
8512       fi
8513       ;;
8514
8515     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8516       lt_prog_compiler_wl='-Wl,'
8517       lt_prog_compiler_pic='-KPIC'
8518       lt_prog_compiler_static='-Bstatic'
8519       ;;
8520
8521     unicos*)
8522       lt_prog_compiler_wl='-Wl,'
8523       lt_prog_compiler_can_build_shared=no
8524       ;;
8525
8526     uts4*)
8527       lt_prog_compiler_pic='-pic'
8528       lt_prog_compiler_static='-Bstatic'
8529       ;;
8530
8531     *)
8532       lt_prog_compiler_can_build_shared=no
8533       ;;
8534     esac
8535   fi
8536
8537 case $host_os in
8538   # For platforms which do not support PIC, -DPIC is meaningless:
8539   *djgpp*)
8540     lt_prog_compiler_pic=
8541     ;;
8542   *)
8543     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8544     ;;
8545 esac
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8548 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8549 if ${lt_cv_prog_compiler_pic+:} false; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8555 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8556 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8557
8558 #
8559 # Check to make sure the PIC flag actually works.
8560 #
8561 if test -n "$lt_prog_compiler_pic"; then
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8563 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8564 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   lt_cv_prog_compiler_pic_works=no
8568    ac_outfile=conftest.$ac_objext
8569    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8571    # Insert the option either (1) after the last *FLAGS variable, or
8572    # (2) before a word containing "conftest.", or (3) at the end.
8573    # Note that $ac_compile itself does not contain backslashes and begins
8574    # with a dollar sign (not a hyphen), so the echo should work correctly.
8575    # The option is referenced via a variable to avoid confusing sed.
8576    lt_compile=`echo "$ac_compile" | $SED \
8577    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579    -e 's:$: $lt_compiler_flag:'`
8580    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581    (eval "$lt_compile" 2>conftest.err)
8582    ac_status=$?
8583    cat conftest.err >&5
8584    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585    if (exit $ac_status) && test -s "$ac_outfile"; then
8586      # The compiler can only warn and ignore the option if not recognized
8587      # So say no if there are warnings other than the usual output.
8588      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8589      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8591        lt_cv_prog_compiler_pic_works=yes
8592      fi
8593    fi
8594    $RM conftest*
8595
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8598 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8599
8600 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8601     case $lt_prog_compiler_pic in
8602      "" | " "*) ;;
8603      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8604      esac
8605 else
8606     lt_prog_compiler_pic=
8607      lt_prog_compiler_can_build_shared=no
8608 fi
8609
8610 fi
8611
8612     
8613     
8614     
8615
8616
8617
8618     
8619     
8620     
8621
8622 #
8623 # Check to make sure the static flag actually works.
8624 #
8625 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8628 if ${lt_cv_prog_compiler_static_works+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   lt_cv_prog_compiler_static_works=no
8632    save_LDFLAGS="$LDFLAGS"
8633    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8634    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8635    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8636      # The linker can only warn and ignore the option if not recognized
8637      # So say no if there are warnings
8638      if test -s conftest.err; then
8639        # Append any errors to the config.log.
8640        cat conftest.err 1>&5
8641        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8642        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643        if diff conftest.exp conftest.er2 >/dev/null; then
8644          lt_cv_prog_compiler_static_works=yes
8645        fi
8646      else
8647        lt_cv_prog_compiler_static_works=yes
8648      fi
8649    fi
8650    $RM -r conftest*
8651    LDFLAGS="$save_LDFLAGS"
8652
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8655 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8656
8657 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8658     :
8659 else
8660     lt_prog_compiler_static=
8661 fi
8662
8663
8664     
8665     
8666     
8667
8668
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8671 if ${lt_cv_prog_compiler_c_o+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   lt_cv_prog_compiler_c_o=no
8675    $RM -r conftest 2>/dev/null
8676    mkdir conftest
8677    cd conftest
8678    mkdir out
8679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
8681    lt_compiler_flag="-o out/conftest2.$ac_objext"
8682    # Insert the option either (1) after the last *FLAGS variable, or
8683    # (2) before a word containing "conftest.", or (3) at the end.
8684    # Note that $ac_compile itself does not contain backslashes and begins
8685    # with a dollar sign (not a hyphen), so the echo should work correctly.
8686    lt_compile=`echo "$ac_compile" | $SED \
8687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689    -e 's:$: $lt_compiler_flag:'`
8690    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8691    (eval "$lt_compile" 2>out/conftest.err)
8692    ac_status=$?
8693    cat out/conftest.err >&5
8694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8696    then
8697      # The compiler can only warn and ignore the option if not recognized
8698      # So say no if there are warnings
8699      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8700      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8701      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8702        lt_cv_prog_compiler_c_o=yes
8703      fi
8704    fi
8705    chmod u+w . 2>&5
8706    $RM conftest*
8707    # SGI C++ compiler will create directory out/ii_files/ for
8708    # template instantiation
8709    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8710    $RM out/* && rmdir out
8711    cd ..
8712    $RM -r conftest
8713    $RM conftest*
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8718
8719     
8720     
8721     
8722
8723
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8726 if ${lt_cv_prog_compiler_c_o+:} false; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   lt_cv_prog_compiler_c_o=no
8730    $RM -r conftest 2>/dev/null
8731    mkdir conftest
8732    cd conftest
8733    mkdir out
8734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8735
8736    lt_compiler_flag="-o out/conftest2.$ac_objext"
8737    # Insert the option either (1) after the last *FLAGS variable, or
8738    # (2) before a word containing "conftest.", or (3) at the end.
8739    # Note that $ac_compile itself does not contain backslashes and begins
8740    # with a dollar sign (not a hyphen), so the echo should work correctly.
8741    lt_compile=`echo "$ac_compile" | $SED \
8742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744    -e 's:$: $lt_compiler_flag:'`
8745    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746    (eval "$lt_compile" 2>out/conftest.err)
8747    ac_status=$?
8748    cat out/conftest.err >&5
8749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8751    then
8752      # The compiler can only warn and ignore the option if not recognized
8753      # So say no if there are warnings
8754      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8755      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8756      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8757        lt_cv_prog_compiler_c_o=yes
8758      fi
8759    fi
8760    chmod u+w . 2>&5
8761    $RM conftest*
8762    # SGI C++ compiler will create directory out/ii_files/ for
8763    # template instantiation
8764    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8765    $RM out/* && rmdir out
8766    cd ..
8767    $RM -r conftest
8768    $RM conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8772 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8773
8774
8775
8776
8777 hard_links="nottested"
8778 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8779   # do not overwrite the value of need_locks provided by the user
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8781 $as_echo_n "checking if we can lock with hard links... " >&6; }
8782   hard_links=yes
8783   $RM conftest*
8784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8785   touch conftest.a
8786   ln conftest.a conftest.b 2>&5 || hard_links=no
8787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8789 $as_echo "$hard_links" >&6; }
8790   if test "$hard_links" = no; then
8791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8793     need_locks=warn
8794   fi
8795 else
8796   need_locks=no
8797 fi
8798
8799     
8800     
8801     
8802
8803
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8806
8807   runpath_var=
8808   allow_undefined_flag=
8809   always_export_symbols=no
8810   archive_cmds=
8811   archive_expsym_cmds=
8812   compiler_needs_object=no
8813   enable_shared_with_static_runtimes=no
8814   export_dynamic_flag_spec=
8815   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8816   hardcode_automatic=no
8817   hardcode_direct=no
8818   hardcode_direct_absolute=no
8819   hardcode_libdir_flag_spec=
8820   hardcode_libdir_flag_spec_ld=
8821   hardcode_libdir_separator=
8822   hardcode_minus_L=no
8823   hardcode_shlibpath_var=unsupported
8824   inherit_rpath=no
8825   link_all_deplibs=unknown
8826   module_cmds=
8827   module_expsym_cmds=
8828   old_archive_from_new_cmds=
8829   old_archive_from_expsyms_cmds=
8830   thread_safe_flag_spec=
8831   whole_archive_flag_spec=
8832   # include_expsyms should be a list of space-separated symbols to be *always*
8833   # included in the symbol list
8834   include_expsyms=
8835   # exclude_expsyms can be an extended regexp of symbols to exclude
8836   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8837   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8838   # as well as any symbol that contains `d'.
8839   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8840   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8841   # platforms (ab)use it in PIC code, but their linkers get confused if
8842   # the symbol is explicitly referenced.  Since portable code cannot
8843   # rely on this symbol name, it's probably fine to never include it in
8844   # preloaded symbol tables.
8845   # Exclude shared library initialization/finalization symbols.
8846   extract_expsyms_cmds=
8847
8848   case $host_os in
8849   cygwin* | mingw* | pw32* | cegcc*)
8850     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8851     # When not using gcc, we currently assume that we are using
8852     # Microsoft Visual C++.
8853     if test "$GCC" != yes; then
8854       with_gnu_ld=no
8855     fi
8856     ;;
8857   interix*)
8858     # we just hope/assume this is gcc and not c89 (= MSVC++)
8859     with_gnu_ld=yes
8860     ;;
8861   openbsd*)
8862     with_gnu_ld=no
8863     ;;
8864   esac
8865
8866   ld_shlibs=yes
8867
8868   # On some targets, GNU ld is compatible enough with the native linker
8869   # that we're better off using the native interface for both.
8870   lt_use_gnu_ld_interface=no
8871   if test "$with_gnu_ld" = yes; then
8872     case $host_os in
8873       aix*)
8874         # The AIX port of GNU ld has always aspired to compatibility
8875         # with the native linker.  However, as the warning in the GNU ld
8876         # block says, versions before 2.19.5* couldn't really create working
8877         # shared libraries, regardless of the interface used.
8878         case `$LD -v 2>&1` in
8879           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8880           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8881           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8882           *)
8883             lt_use_gnu_ld_interface=yes
8884             ;;
8885         esac
8886         ;;
8887       *)
8888         lt_use_gnu_ld_interface=yes
8889         ;;
8890     esac
8891   fi
8892
8893   if test "$lt_use_gnu_ld_interface" = yes; then
8894     # If archive_cmds runs LD, not CC, wlarc should be empty
8895     wlarc='${wl}'
8896
8897     # Set some defaults for GNU ld with shared library support. These
8898     # are reset later if shared libraries are not supported. Putting them
8899     # here allows them to be overridden if necessary.
8900     runpath_var=LD_RUN_PATH
8901     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902     export_dynamic_flag_spec='${wl}--export-dynamic'
8903     # ancient GNU ld didn't support --whole-archive et. al.
8904     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8905       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8906     else
8907       whole_archive_flag_spec=
8908     fi
8909     supports_anon_versioning=no
8910     case `$LD -v 2>&1` in
8911       *GNU\ gold*) supports_anon_versioning=yes ;;
8912       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8913       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8914       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8915       *\ 2.11.*) ;; # other 2.11 versions
8916       *) supports_anon_versioning=yes ;;
8917     esac
8918
8919     # See if GNU ld supports shared libraries.
8920     case $host_os in
8921     aix[3-9]*)
8922       # On AIX/PPC, the GNU linker is very broken
8923       if test "$host_cpu" != ia64; then
8924         ld_shlibs=no
8925         cat <<_LT_EOF 1>&2
8926
8927 *** Warning: the GNU linker, at least up to release 2.19, is reported
8928 *** to be unable to reliably create shared libraries on AIX.
8929 *** Therefore, libtool is disabling shared libraries support.  If you
8930 *** really care for shared libraries, you may want to install binutils
8931 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8932 *** You will then need to restart the configuration process.
8933
8934 _LT_EOF
8935       fi
8936       ;;
8937
8938     amigaos*)
8939       case $host_cpu in
8940       powerpc)
8941             # see comment about AmigaOS4 .so support
8942             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943             archive_expsym_cmds=''
8944         ;;
8945       m68k)
8946             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)'
8947             hardcode_libdir_flag_spec='-L$libdir'
8948             hardcode_minus_L=yes
8949         ;;
8950       esac
8951       ;;
8952
8953     beos*)
8954       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955         allow_undefined_flag=unsupported
8956         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8957         # support --undefined.  This deserves some investigation.  FIXME
8958         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959       else
8960         ld_shlibs=no
8961       fi
8962       ;;
8963
8964     cygwin* | mingw* | pw32* | cegcc*)
8965       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8966       # as there is no search path for DLLs.
8967       hardcode_libdir_flag_spec='-L$libdir'
8968       export_dynamic_flag_spec='${wl}--export-all-symbols'
8969       allow_undefined_flag=unsupported
8970       always_export_symbols=no
8971       enable_shared_with_static_runtimes=yes
8972       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'
8973       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8974
8975       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8976         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977         # If the export-symbols file already is a .def file (1st line
8978         # is EXPORTS), use it as is; otherwise, prepend...
8979         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8980           cp $export_symbols $output_objdir/$soname.def;
8981         else
8982           echo EXPORTS > $output_objdir/$soname.def;
8983           cat $export_symbols >> $output_objdir/$soname.def;
8984         fi~
8985         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8986       else
8987         ld_shlibs=no
8988       fi
8989       ;;
8990
8991     haiku*)
8992       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993       link_all_deplibs=yes
8994       ;;
8995
8996     interix[3-9]*)
8997       hardcode_direct=no
8998       hardcode_shlibpath_var=no
8999       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9000       export_dynamic_flag_spec='${wl}-E'
9001       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9002       # Instead, shared libraries are loaded at an image base (0x10000000 by
9003       # default) and relocated if they conflict, which is a slow very memory
9004       # consuming and fragmenting process.  To avoid this, we pick a random,
9005       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9006       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9007       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9008       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'
9009       ;;
9010
9011     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9012       tmp_diet=no
9013       if test "$host_os" = linux-dietlibc; then
9014         case $cc_basename in
9015           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9016         esac
9017       fi
9018       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9019          && test "$tmp_diet" = no
9020       then
9021         tmp_addflag=' $pic_flag'
9022         tmp_sharedflag='-shared'
9023         case $cc_basename,$host_cpu in
9024         pgcc*)                          # Portland Group C compiler
9025           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'
9026           tmp_addflag=' $pic_flag'
9027           ;;
9028         pgf77* | pgf90* | pgf95* | pgfortran*)
9029                                         # Portland Group f77 and f90 compilers
9030           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'
9031           tmp_addflag=' $pic_flag -Mnomain' ;;
9032         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9033           tmp_addflag=' -i_dynamic' ;;
9034         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9035           tmp_addflag=' -i_dynamic -nofor_main' ;;
9036         ifc* | ifort*)                  # Intel Fortran compiler
9037           tmp_addflag=' -nofor_main' ;;
9038         lf95*)                          # Lahey Fortran 8.1
9039           whole_archive_flag_spec=
9040           tmp_sharedflag='--shared' ;;
9041         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9042           tmp_sharedflag='-qmkshrobj'
9043           tmp_addflag= ;;
9044         nvcc*)  # Cuda Compiler Driver 2.2
9045           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'
9046           compiler_needs_object=yes
9047           ;;
9048         esac
9049         case `$CC -V 2>&1 | sed 5q` in
9050         *Sun\ C*)                       # Sun C 5.9
9051           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'
9052           compiler_needs_object=yes
9053           tmp_sharedflag='-G' ;;
9054         *Sun\ F*)                       # Sun Fortran 8.3
9055           tmp_sharedflag='-G' ;;
9056         esac
9057         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058
9059         if test "x$supports_anon_versioning" = xyes; then
9060           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9061             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9062             echo "local: *; };" >> $output_objdir/$libname.ver~
9063             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9064         fi
9065
9066         case $cc_basename in
9067         xlf* | bgf* | bgxlf* | mpixlf*)
9068           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9069           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9070           hardcode_libdir_flag_spec=
9071           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9072           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9073           if test "x$supports_anon_versioning" = xyes; then
9074             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9075               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9076               echo "local: *; };" >> $output_objdir/$libname.ver~
9077               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9078           fi
9079           ;;
9080         esac
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085
9086     netbsd*)
9087       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9089         wlarc=
9090       else
9091         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9093       fi
9094       ;;
9095
9096     solaris*)
9097       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9098         ld_shlibs=no
9099         cat <<_LT_EOF 1>&2
9100
9101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9102 *** create shared libraries on Solaris systems.  Therefore, libtool
9103 *** is disabling shared libraries support.  We urge you to upgrade GNU
9104 *** binutils to release 2.9.1 or newer.  Another option is to modify
9105 *** your PATH or compiler configuration so that the native linker is
9106 *** used, and then restart.
9107
9108 _LT_EOF
9109       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9112       else
9113         ld_shlibs=no
9114       fi
9115       ;;
9116
9117     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9118       case `$LD -v 2>&1` in
9119         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9120         ld_shlibs=no
9121         cat <<_LT_EOF 1>&2
9122
9123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9124 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9125 *** is disabling shared libraries support.  We urge you to upgrade GNU
9126 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9127 *** your PATH or compiler configuration so that the native linker is
9128 *** used, and then restart.
9129
9130 _LT_EOF
9131         ;;
9132         *)
9133           # For security reasons, it is highly recommended that you always
9134           # use absolute paths for naming shared libraries, and exclude the
9135           # DT_RUNPATH tag from executables and libraries.  But doing so
9136           # requires that you compile everything twice, which is a pain.
9137           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141           else
9142             ld_shlibs=no
9143           fi
9144         ;;
9145       esac
9146       ;;
9147
9148     sunos4*)
9149       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9150       wlarc=
9151       hardcode_direct=yes
9152       hardcode_shlibpath_var=no
9153       ;;
9154
9155     *)
9156       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159       else
9160         ld_shlibs=no
9161       fi
9162       ;;
9163     esac
9164
9165     if test "$ld_shlibs" = no; then
9166       runpath_var=
9167       hardcode_libdir_flag_spec=
9168       export_dynamic_flag_spec=
9169       whole_archive_flag_spec=
9170     fi
9171   else
9172     # PORTME fill in a description of your system's linker (not GNU ld)
9173     case $host_os in
9174     aix3*)
9175       allow_undefined_flag=unsupported
9176       always_export_symbols=yes
9177       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'
9178       # Note: this linker hardcodes the directories in LIBPATH if there
9179       # are no directories specified by -L.
9180       hardcode_minus_L=yes
9181       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9182         # Neither direct hardcoding nor static linking is supported with a
9183         # broken collect2.
9184         hardcode_direct=unsupported
9185       fi
9186       ;;
9187
9188     aix[4-9]*)
9189       if test "$host_cpu" = ia64; then
9190         # On IA64, the linker does run time linking by default, so we don't
9191         # have to do anything special.
9192         aix_use_runtimelinking=no
9193         exp_sym_flag='-Bexport'
9194         no_entry_flag=""
9195       else
9196         # If we're using GNU nm, then we don't want the "-C" option.
9197         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9198         # Also, AIX nm treats weak defined symbols like other global
9199         # defined symbols, whereas GNU nm marks them as "W".
9200         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9201           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'
9202         else
9203           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'
9204         fi
9205         aix_use_runtimelinking=no
9206
9207         # Test if we are trying to use run time linking or normal
9208         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9209         # need to do runtime linking.
9210         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9211           for ld_flag in $LDFLAGS; do
9212           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9213             aix_use_runtimelinking=yes
9214             break
9215           fi
9216           done
9217           ;;
9218         esac
9219
9220         exp_sym_flag='-bexport'
9221         no_entry_flag='-bnoentry'
9222       fi
9223
9224       # When large executables or shared objects are built, AIX ld can
9225       # have problems creating the table of contents.  If linking a library
9226       # or program results in "error TOC overflow" add -mminimal-toc to
9227       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9228       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9229
9230       archive_cmds=''
9231       hardcode_direct=yes
9232       hardcode_direct_absolute=yes
9233       hardcode_libdir_separator=':'
9234       link_all_deplibs=yes
9235       file_list_spec='${wl}-f,'
9236
9237       if test "$GCC" = yes; then
9238         case $host_os in aix4.[012]|aix4.[012].*)
9239         # We only want to do this on AIX 4.2 and lower, the check
9240         # below for broken collect2 doesn't work under 4.3+
9241           collect2name=`${CC} -print-prog-name=collect2`
9242           if test -f "$collect2name" &&
9243            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9244           then
9245           # We have reworked collect2
9246           :
9247           else
9248           # We have old collect2
9249           hardcode_direct=unsupported
9250           # It fails to find uninstalled libraries when the uninstalled
9251           # path is not listed in the libpath.  Setting hardcode_minus_L
9252           # to unsupported forces relinking
9253           hardcode_minus_L=yes
9254           hardcode_libdir_flag_spec='-L$libdir'
9255           hardcode_libdir_separator=
9256           fi
9257           ;;
9258         esac
9259         shared_flag='-shared'
9260         if test "$aix_use_runtimelinking" = yes; then
9261           shared_flag="$shared_flag "'${wl}-G'
9262         fi
9263       else
9264         # not using gcc
9265         if test "$host_cpu" = ia64; then
9266         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9267         # chokes on -Wl,-G. The following line is correct:
9268           shared_flag='-G'
9269         else
9270           if test "$aix_use_runtimelinking" = yes; then
9271             shared_flag='${wl}-G'
9272           else
9273             shared_flag='${wl}-bM:SRE'
9274           fi
9275         fi
9276       fi
9277
9278       export_dynamic_flag_spec='${wl}-bexpall'
9279       # It seems that -bexpall does not export symbols beginning with
9280       # underscore (_), so it is better to generate a list of symbols to export.
9281       always_export_symbols=yes
9282       if test "$aix_use_runtimelinking" = yes; then
9283         # Warning - without using the other runtime loading flags (-brtl),
9284         # -berok will link without error, but may produce a broken library.
9285         allow_undefined_flag='-berok'
9286         # Determine the default libpath from the value encoded in an
9287         # empty executable.
9288         if test "${lt_cv_aix_libpath+set}" = set; then
9289   aix_libpath=$lt_cv_aix_libpath
9290 else
9291   if ${lt_cv_aix_libpath_+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h.  */
9296
9297 int
9298 main ()
9299 {
9300
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_link "$LINENO"; then :
9306   
9307   lt_aix_libpath_sed='
9308       /Import File Strings/,/^$/ {
9309           /^0/ {
9310               s/^0  *\([^ ]*\) *$/\1/
9311               p
9312           }
9313       }'
9314   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9315   # Check for a 64-bit object if we didn't find anything.
9316   if test -z "$lt_cv_aix_libpath_"; then
9317     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9318   fi
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322   if test -z "$lt_cv_aix_libpath_"; then
9323     lt_cv_aix_libpath_="/usr/lib:/lib"
9324   fi
9325   
9326 fi
9327
9328   aix_libpath=$lt_cv_aix_libpath_
9329 fi
9330
9331         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9332         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"
9333       else
9334         if test "$host_cpu" = ia64; then
9335           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9336           allow_undefined_flag="-z nodefs"
9337           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"
9338         else
9339          # Determine the default libpath from the value encoded in an
9340          # empty executable.
9341          if test "${lt_cv_aix_libpath+set}" = set; then
9342   aix_libpath=$lt_cv_aix_libpath
9343 else
9344   if ${lt_cv_aix_libpath_+:} false; then :
9345   $as_echo_n "(cached) " >&6
9346 else
9347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h.  */
9349
9350 int
9351 main ()
9352 {
9353
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 if ac_fn_c_try_link "$LINENO"; then :
9359   
9360   lt_aix_libpath_sed='
9361       /Import File Strings/,/^$/ {
9362           /^0/ {
9363               s/^0  *\([^ ]*\) *$/\1/
9364               p
9365           }
9366       }'
9367   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9368   # Check for a 64-bit object if we didn't find anything.
9369   if test -z "$lt_cv_aix_libpath_"; then
9370     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9371   fi
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374     conftest$ac_exeext conftest.$ac_ext
9375   if test -z "$lt_cv_aix_libpath_"; then
9376     lt_cv_aix_libpath_="/usr/lib:/lib"
9377   fi
9378   
9379 fi
9380
9381   aix_libpath=$lt_cv_aix_libpath_
9382 fi
9383
9384          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9385           # Warning - without using the other run time loading flags,
9386           # -berok will link without error, but may produce a broken library.
9387           no_undefined_flag=' ${wl}-bernotok'
9388           allow_undefined_flag=' ${wl}-berok'
9389           if test "$with_gnu_ld" = yes; then
9390             # We only use this code for GNU lds that support --whole-archive.
9391             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9392           else
9393             # Exported symbols can be pulled into shared objects from archives
9394             whole_archive_flag_spec='$convenience'
9395           fi
9396           archive_cmds_need_lc=yes
9397           # This is similar to how AIX traditionally builds its shared libraries.
9398           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'
9399         fi
9400       fi
9401       ;;
9402
9403     amigaos*)
9404       case $host_cpu in
9405       powerpc)
9406             # see comment about AmigaOS4 .so support
9407             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408             archive_expsym_cmds=''
9409         ;;
9410       m68k)
9411             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)'
9412             hardcode_libdir_flag_spec='-L$libdir'
9413             hardcode_minus_L=yes
9414         ;;
9415       esac
9416       ;;
9417
9418     bsdi[45]*)
9419       export_dynamic_flag_spec=-rdynamic
9420       ;;
9421
9422     cygwin* | mingw* | pw32* | cegcc*)
9423       # When not using gcc, we currently assume that we are using
9424       # Microsoft Visual C++.
9425       # hardcode_libdir_flag_spec is actually meaningless, as there is
9426       # no search path for DLLs.
9427       case $cc_basename in
9428       cl*)
9429         # Native MSVC
9430         hardcode_libdir_flag_spec=' '
9431         allow_undefined_flag=unsupported
9432         always_export_symbols=yes
9433         file_list_spec='@'
9434         # Tell ltmain to make .lib files, not .a files.
9435         libext=lib
9436         # Tell ltmain to make .dll files, not .so files.
9437         shrext_cmds=".dll"
9438         # FIXME: Setting linknames here is a bad hack.
9439         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9440         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9441             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9442           else
9443             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9444           fi~
9445           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9446           linknames='
9447         # The linker will not automatically build a static lib if we build a DLL.
9448         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9449         enable_shared_with_static_runtimes=yes
9450         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9451         # Don't use ranlib
9452         old_postinstall_cmds='chmod 644 $oldlib'
9453         postlink_cmds='lt_outputfile="@OUTPUT@"~
9454           lt_tool_outputfile="@TOOL_OUTPUT@"~
9455           case $lt_outputfile in
9456             *.exe|*.EXE) ;;
9457             *)
9458               lt_outputfile="$lt_outputfile.exe"
9459               lt_tool_outputfile="$lt_tool_outputfile.exe"
9460               ;;
9461           esac~
9462           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9463             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9464             $RM "$lt_outputfile.manifest";
9465           fi'
9466         ;;
9467       *)
9468         # Assume MSVC wrapper
9469         hardcode_libdir_flag_spec=' '
9470         allow_undefined_flag=unsupported
9471         # Tell ltmain to make .lib files, not .a files.
9472         libext=lib
9473         # Tell ltmain to make .dll files, not .so files.
9474         shrext_cmds=".dll"
9475         # FIXME: Setting linknames here is a bad hack.
9476         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9477         # The linker will automatically build a .lib file if we build a DLL.
9478         old_archive_from_new_cmds='true'
9479         # FIXME: Should let the user specify the lib program.
9480         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9481         enable_shared_with_static_runtimes=yes
9482         ;;
9483       esac
9484       ;;
9485
9486     darwin* | rhapsody*)
9487       
9488   
9489   archive_cmds_need_lc=no
9490   hardcode_direct=no
9491   hardcode_automatic=yes
9492   hardcode_shlibpath_var=unsupported
9493   if test "$lt_cv_ld_force_load" = "yes"; then
9494     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\"`'
9495   else
9496     whole_archive_flag_spec=''
9497   fi
9498   link_all_deplibs=yes
9499   allow_undefined_flag="$_lt_dar_allow_undefined"
9500   case $cc_basename in
9501      ifort*) _lt_dar_can_shared=yes ;;
9502      *) _lt_dar_can_shared=$GCC ;;
9503   esac
9504   if test "$_lt_dar_can_shared" = "yes"; then
9505     output_verbose_link_cmd=func_echo_all
9506     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9507     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9508     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}"
9509     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}"
9510     
9511   else
9512   ld_shlibs=no
9513   fi
9514
9515       ;;
9516
9517     dgux*)
9518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519       hardcode_libdir_flag_spec='-L$libdir'
9520       hardcode_shlibpath_var=no
9521       ;;
9522
9523     freebsd1*)
9524       ld_shlibs=no
9525       ;;
9526
9527     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9528     # support.  Future versions do this automatically, but an explicit c++rt0.o
9529     # does not break anything, and helps significantly (at the cost of a little
9530     # extra space).
9531     freebsd2.2*)
9532       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9533       hardcode_libdir_flag_spec='-R$libdir'
9534       hardcode_direct=yes
9535       hardcode_shlibpath_var=no
9536       ;;
9537
9538     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9539     freebsd2*)
9540       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541       hardcode_direct=yes
9542       hardcode_minus_L=yes
9543       hardcode_shlibpath_var=no
9544       ;;
9545
9546     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9547     freebsd* | dragonfly*)
9548       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549       hardcode_libdir_flag_spec='-R$libdir'
9550       hardcode_direct=yes
9551       hardcode_shlibpath_var=no
9552       ;;
9553
9554     hpux9*)
9555       if test "$GCC" = yes; then
9556         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'
9557       else
9558         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'
9559       fi
9560       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561       hardcode_libdir_separator=:
9562       hardcode_direct=yes
9563
9564       # hardcode_minus_L: Not really in the search PATH,
9565       # but as the default location of the library.
9566       hardcode_minus_L=yes
9567       export_dynamic_flag_spec='${wl}-E'
9568       ;;
9569
9570     hpux10*)
9571       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9572         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9573       else
9574         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9575       fi
9576       if test "$with_gnu_ld" = no; then
9577         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578         hardcode_libdir_flag_spec_ld='+b $libdir'
9579         hardcode_libdir_separator=:
9580         hardcode_direct=yes
9581         hardcode_direct_absolute=yes
9582         export_dynamic_flag_spec='${wl}-E'
9583         # hardcode_minus_L: Not really in the search PATH,
9584         # but as the default location of the library.
9585         hardcode_minus_L=yes
9586       fi
9587       ;;
9588
9589     hpux11*)
9590       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9591         case $host_cpu in
9592         hppa*64*)
9593           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594           ;;
9595         ia64*)
9596           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9597           ;;
9598         *)
9599           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9600           ;;
9601         esac
9602       else
9603         case $host_cpu in
9604         hppa*64*)
9605           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606           ;;
9607         ia64*)
9608           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9609           ;;
9610         *)
9611         
9612           # Older versions of the 11.00 compiler do not understand -b yet
9613           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9614           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9615 $as_echo_n "checking if $CC understands -b... " >&6; }
9616 if ${lt_cv_prog_compiler__b+:} false; then :
9617   $as_echo_n "(cached) " >&6
9618 else
9619   lt_cv_prog_compiler__b=no
9620    save_LDFLAGS="$LDFLAGS"
9621    LDFLAGS="$LDFLAGS -b"
9622    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624      # The linker can only warn and ignore the option if not recognized
9625      # So say no if there are warnings
9626      if test -s conftest.err; then
9627        # Append any errors to the config.log.
9628        cat conftest.err 1>&5
9629        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631        if diff conftest.exp conftest.er2 >/dev/null; then
9632          lt_cv_prog_compiler__b=yes
9633        fi
9634      else
9635        lt_cv_prog_compiler__b=yes
9636      fi
9637    fi
9638    $RM -r conftest*
9639    LDFLAGS="$save_LDFLAGS"
9640
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9644
9645 if test x"$lt_cv_prog_compiler__b" = xyes; then
9646     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647 else
9648     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9649 fi
9650
9651           ;;
9652         esac
9653       fi
9654       if test "$with_gnu_ld" = no; then
9655         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656         hardcode_libdir_separator=:
9657
9658         case $host_cpu in
9659         hppa*64*|ia64*)
9660           hardcode_direct=no
9661           hardcode_shlibpath_var=no
9662           ;;
9663         *)
9664           hardcode_direct=yes
9665           hardcode_direct_absolute=yes
9666           export_dynamic_flag_spec='${wl}-E'
9667
9668           # hardcode_minus_L: Not really in the search PATH,
9669           # but as the default location of the library.
9670           hardcode_minus_L=yes
9671           ;;
9672         esac
9673       fi
9674       ;;
9675
9676     irix5* | irix6* | nonstopux*)
9677       if test "$GCC" = yes; then
9678         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'
9679         # Try to use the -exported_symbol ld option, if it does not
9680         # work, assume that -exports_file does not work either and
9681         # implicitly export all symbols.
9682         # This should be the same for all languages, so no per-tag cache variable.
9683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9684 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9685 if ${lt_cv_irix_exported_symbol+:} false; then :
9686   $as_echo_n "(cached) " >&6
9687 else
9688   save_LDFLAGS="$LDFLAGS"
9689            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9690            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h.  */
9692 int foo (void) { return 0; }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695   lt_cv_irix_exported_symbol=yes
9696 else
9697   lt_cv_irix_exported_symbol=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701            LDFLAGS="$save_LDFLAGS"
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9704 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9705         if test "$lt_cv_irix_exported_symbol" = yes; then
9706           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'
9707         fi
9708       else
9709         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'
9710         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'
9711       fi
9712       archive_cmds_need_lc='no'
9713       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714       hardcode_libdir_separator=:
9715       inherit_rpath=yes
9716       link_all_deplibs=yes
9717       ;;
9718
9719     netbsd*)
9720       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9722       else
9723         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9724       fi
9725       hardcode_libdir_flag_spec='-R$libdir'
9726       hardcode_direct=yes
9727       hardcode_shlibpath_var=no
9728       ;;
9729
9730     newsos6)
9731       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732       hardcode_direct=yes
9733       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734       hardcode_libdir_separator=:
9735       hardcode_shlibpath_var=no
9736       ;;
9737
9738     *nto* | *qnx*)
9739       ;;
9740
9741     openbsd*)
9742       if test -f /usr/libexec/ld.so; then
9743         hardcode_direct=yes
9744         hardcode_shlibpath_var=no
9745         hardcode_direct_absolute=yes
9746         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9747           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9749           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9750           export_dynamic_flag_spec='${wl}-E'
9751         else
9752           case $host_os in
9753            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9754              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9755              hardcode_libdir_flag_spec='-R$libdir'
9756              ;;
9757            *)
9758              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9759              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9760              ;;
9761           esac
9762         fi
9763       else
9764         ld_shlibs=no
9765       fi
9766       ;;
9767
9768     os2*)
9769       hardcode_libdir_flag_spec='-L$libdir'
9770       hardcode_minus_L=yes
9771       allow_undefined_flag=unsupported
9772       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'
9773       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9774       ;;
9775
9776     osf3*)
9777       if test "$GCC" = yes; then
9778         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9779         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'
9780       else
9781         allow_undefined_flag=' -expect_unresolved \*'
9782         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'
9783       fi
9784       archive_cmds_need_lc='no'
9785       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786       hardcode_libdir_separator=:
9787       ;;
9788
9789     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9790       if test "$GCC" = yes; then
9791         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9792         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'
9793         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794       else
9795         allow_undefined_flag=' -expect_unresolved \*'
9796         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'
9797         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~
9798         $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'
9799
9800         # Both c and cxx compiler support -rpath directly
9801         hardcode_libdir_flag_spec='-rpath $libdir'
9802       fi
9803       archive_cmds_need_lc='no'
9804       hardcode_libdir_separator=:
9805       ;;
9806
9807     solaris*)
9808       no_undefined_flag=' -z defs'
9809       if test "$GCC" = yes; then
9810         wlarc='${wl}'
9811         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9813           $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'
9814       else
9815         case `$CC -V 2>&1` in
9816         *"Compilers 5.0"*)
9817           wlarc=''
9818           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9820           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9821           ;;
9822         *)
9823           wlarc='${wl}'
9824           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9825           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9826           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9827           ;;
9828         esac
9829       fi
9830       hardcode_libdir_flag_spec='-R$libdir'
9831       hardcode_shlibpath_var=no
9832       case $host_os in
9833       solaris2.[0-5] | solaris2.[0-5].*) ;;
9834       *)
9835         # The compiler driver will combine and reorder linker options,
9836         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9837         # but is careful enough not to reorder.
9838         # Supported since Solaris 2.6 (maybe 2.5.1?)
9839         if test "$GCC" = yes; then
9840           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9841         else
9842           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9843         fi
9844         ;;
9845       esac
9846       link_all_deplibs=yes
9847       ;;
9848
9849     sunos4*)
9850       if test "x$host_vendor" = xsequent; then
9851         # Use $CC to link under sequent, because it throws in some extra .o
9852         # files that make .init and .fini sections work.
9853         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9854       else
9855         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9856       fi
9857       hardcode_libdir_flag_spec='-L$libdir'
9858       hardcode_direct=yes
9859       hardcode_minus_L=yes
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     sysv4)
9864       case $host_vendor in
9865         sni)
9866           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867           hardcode_direct=yes # is this really true???
9868         ;;
9869         siemens)
9870           ## LD is ld it makes a PLAMLIB
9871           ## CC just makes a GrossModule.
9872           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9873           reload_cmds='$CC -r -o $output$reload_objs'
9874           hardcode_direct=no
9875         ;;
9876         motorola)
9877           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9879         ;;
9880       esac
9881       runpath_var='LD_RUN_PATH'
9882       hardcode_shlibpath_var=no
9883       ;;
9884
9885     sysv4.3*)
9886       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887       hardcode_shlibpath_var=no
9888       export_dynamic_flag_spec='-Bexport'
9889       ;;
9890
9891     sysv4*MP*)
9892       if test -d /usr/nec; then
9893         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894         hardcode_shlibpath_var=no
9895         runpath_var=LD_RUN_PATH
9896         hardcode_runpath_var=yes
9897         ld_shlibs=yes
9898       fi
9899       ;;
9900
9901     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9902       no_undefined_flag='${wl}-z,text'
9903       archive_cmds_need_lc=no
9904       hardcode_shlibpath_var=no
9905       runpath_var='LD_RUN_PATH'
9906
9907       if test "$GCC" = yes; then
9908         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910       else
9911         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913       fi
9914       ;;
9915
9916     sysv5* | sco3.2v5* | sco5v6*)
9917       # Note: We can NOT use -z defs as we might desire, because we do not
9918       # link with -lc, and that would cause any symbols used from libc to
9919       # always be unresolved, which means just about no library would
9920       # ever link correctly.  If we're not using GNU ld we use -z text
9921       # though, which does catch some bad symbols but isn't as heavy-handed
9922       # as -z defs.
9923       no_undefined_flag='${wl}-z,text'
9924       allow_undefined_flag='${wl}-z,nodefs'
9925       archive_cmds_need_lc=no
9926       hardcode_shlibpath_var=no
9927       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9928       hardcode_libdir_separator=':'
9929       link_all_deplibs=yes
9930       export_dynamic_flag_spec='${wl}-Bexport'
9931       runpath_var='LD_RUN_PATH'
9932
9933       if test "$GCC" = yes; then
9934         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936       else
9937         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939       fi
9940       ;;
9941
9942     uts4*)
9943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944       hardcode_libdir_flag_spec='-L$libdir'
9945       hardcode_shlibpath_var=no
9946       ;;
9947
9948     *)
9949       ld_shlibs=no
9950       ;;
9951     esac
9952
9953     if test x$host_vendor = xsni; then
9954       case $host in
9955       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9956         export_dynamic_flag_spec='${wl}-Blargedynsym'
9957         ;;
9958       esac
9959     fi
9960   fi
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9963 $as_echo "$ld_shlibs" >&6; }
9964 test "$ld_shlibs" = no && can_build_shared=no
9965
9966 with_gnu_ld=$with_gnu_ld
9967
9968
9969     
9970     
9971     
9972
9973     
9974     
9975     
9976
9977     
9978     
9979     
9980
9981
9982 #
9983 # Do we need to explicitly link libc?
9984 #
9985 case "x$archive_cmds_need_lc" in
9986 x|xyes)
9987   # Assume -lc should be added
9988   archive_cmds_need_lc=yes
9989
9990   if test "$enable_shared" = yes && test "$GCC" = yes; then
9991     case $archive_cmds in
9992     *'~'*)
9993       # FIXME: we may have to deal with multi-command sequences.
9994       ;;
9995     '$CC '*)
9996       # Test whether the compiler implicitly links with -lc since on some
9997       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9998       # to ld, don't add -lc before -lgcc.
9999       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10000 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10001 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   $RM conftest*
10005         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006
10007         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10008   (eval $ac_compile) 2>&5
10009   ac_status=$?
10010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10011   test $ac_status = 0; } 2>conftest.err; then
10012           soname=conftest
10013           lib=conftest
10014           libobjs=conftest.$ac_objext
10015           deplibs=
10016           wl=$lt_prog_compiler_wl
10017           pic_flag=$lt_prog_compiler_pic
10018           compiler_flags=-v
10019           linker_flags=-v
10020           verstring=
10021           output_objdir=.
10022           libname=conftest
10023           lt_save_allow_undefined_flag=$allow_undefined_flag
10024           allow_undefined_flag=
10025           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10026   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10027   ac_status=$?
10028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029   test $ac_status = 0; }
10030           then
10031             lt_cv_archive_cmds_need_lc=no
10032           else
10033             lt_cv_archive_cmds_need_lc=yes
10034           fi
10035           allow_undefined_flag=$lt_save_allow_undefined_flag
10036         else
10037           cat conftest.err 1>&5
10038         fi
10039         $RM conftest*
10040         
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10043 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10044       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10045       ;;
10046     esac
10047   fi
10048   ;;
10049 esac
10050
10051
10052     
10053     
10054     
10055
10056
10057     
10058     
10059     
10060
10061
10062     
10063     
10064     
10065
10066
10067     
10068     
10069     
10070
10071
10072     
10073     
10074     
10075
10076
10077     
10078     
10079     
10080
10081
10082     
10083     
10084     
10085
10086
10087     
10088     
10089     
10090
10091
10092     
10093     
10094     
10095
10096
10097     
10098     
10099     
10100
10101
10102     
10103     
10104     
10105
10106
10107     
10108     
10109     
10110
10111
10112     
10113     
10114     
10115
10116
10117     
10118     
10119     
10120
10121
10122     
10123     
10124     
10125
10126
10127     
10128     
10129     
10130
10131
10132     
10133     
10134     
10135
10136
10137     
10138     
10139     
10140
10141
10142     
10143     
10144     
10145
10146
10147     
10148     
10149     
10150
10151
10152     
10153     
10154     
10155
10156
10157     
10158     
10159     
10160
10161
10162     
10163     
10164     
10165
10166
10167     
10168     
10169     
10170
10171
10172     
10173     
10174     
10175
10176
10177     
10178     
10179     
10180
10181
10182     
10183     
10184     
10185
10186
10187     
10188     
10189     
10190
10191
10192     
10193     
10194     
10195
10196
10197     
10198     
10199     
10200
10201
10202     
10203     
10204     
10205
10206
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10208 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10209
10210 if test "$GCC" = yes; then
10211   case $host_os in
10212     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10213     *) lt_awk_arg="/^libraries:/" ;;
10214   esac
10215   case $host_os in
10216     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10217     *) lt_sed_strip_eq="s,=/,/,g" ;;
10218   esac
10219   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10220   case $lt_search_path_spec in
10221   *\;*)
10222     # if the path contains ";" then we assume it to be the separator
10223     # otherwise default to the standard path separator (i.e. ":") - it is
10224     # assumed that no part of a normal pathname contains ";" but that should
10225     # okay in the real world where ";" in dirpaths is itself problematic.
10226     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10227     ;;
10228   *)
10229     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10230     ;;
10231   esac
10232   # Ok, now we have the path, separated by spaces, we can step through it
10233   # and add multilib dir if necessary.
10234   lt_tmp_lt_search_path_spec=
10235   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10236   for lt_sys_path in $lt_search_path_spec; do
10237     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10238       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10239     else
10240       test -d "$lt_sys_path" && \
10241         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10242     fi
10243   done
10244   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10245 BEGIN {RS=" "; FS="/|\n";} {
10246   lt_foo="";
10247   lt_count=0;
10248   for (lt_i = NF; lt_i > 0; lt_i--) {
10249     if ($lt_i != "" && $lt_i != ".") {
10250       if ($lt_i == "..") {
10251         lt_count++;
10252       } else {
10253         if (lt_count == 0) {
10254           lt_foo="/" $lt_i lt_foo;
10255         } else {
10256           lt_count--;
10257         }
10258       }
10259     }
10260   }
10261   if (lt_foo != "") { lt_freq[lt_foo]++; }
10262   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10263 }'`
10264   # AWK program above erroneously prepends '/' to C:/dos/paths
10265   # for these hosts.
10266   case $host_os in
10267     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10268       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10269   esac
10270   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10271 else
10272   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10273 fi
10274 library_names_spec=
10275 libname_spec='lib$name'
10276 soname_spec=
10277 shrext_cmds=".so"
10278 postinstall_cmds=
10279 postuninstall_cmds=
10280 finish_cmds=
10281 finish_eval=
10282 shlibpath_var=
10283 shlibpath_overrides_runpath=unknown
10284 version_type=none
10285 dynamic_linker="$host_os ld.so"
10286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10287 need_lib_prefix=unknown
10288 hardcode_into_libs=no
10289
10290 # when you set need_version to no, make sure it does not cause -set_version
10291 # flags to be left without arguments
10292 need_version=unknown
10293
10294 case $host_os in
10295 aix3*)
10296   version_type=linux
10297   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10298   shlibpath_var=LIBPATH
10299
10300   # AIX 3 has no versioning support, so we append a major version to the name.
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   ;;
10303
10304 aix[4-9]*)
10305   version_type=linux
10306   need_lib_prefix=no
10307   need_version=no
10308   hardcode_into_libs=yes
10309   if test "$host_cpu" = ia64; then
10310     # AIX 5 supports IA64
10311     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10312     shlibpath_var=LD_LIBRARY_PATH
10313   else
10314     # With GCC up to 2.95.x, collect2 would create an import file
10315     # for dependence libraries.  The import file would start with
10316     # the line `#! .'.  This would cause the generated library to
10317     # depend on `.', always an invalid library.  This was fixed in
10318     # development snapshots of GCC prior to 3.0.
10319     case $host_os in
10320       aix4 | aix4.[01] | aix4.[01].*)
10321       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10322            echo ' yes '
10323            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10324         :
10325       else
10326         can_build_shared=no
10327       fi
10328       ;;
10329     esac
10330     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10331     # soname into executable. Probably we can add versioning support to
10332     # collect2, so additional links can be useful in future.
10333     if test "$aix_use_runtimelinking" = yes; then
10334       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10335       # instead of lib<name>.a to let people know that these are not
10336       # typical AIX shared libraries.
10337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338     else
10339       # We preserve .a as extension for shared libraries through AIX4.2
10340       # and later when we are not doing run time linking.
10341       library_names_spec='${libname}${release}.a $libname.a'
10342       soname_spec='${libname}${release}${shared_ext}$major'
10343     fi
10344     shlibpath_var=LIBPATH
10345   fi
10346   ;;
10347
10348 amigaos*)
10349   case $host_cpu in
10350   powerpc)
10351     # Since July 2007 AmigaOS4 officially supports .so libraries.
10352     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354     ;;
10355   m68k)
10356     library_names_spec='$libname.ixlibrary $libname.a'
10357     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10358     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'
10359     ;;
10360   esac
10361   ;;
10362
10363 beos*)
10364   library_names_spec='${libname}${shared_ext}'
10365   dynamic_linker="$host_os ld.so"
10366   shlibpath_var=LIBRARY_PATH
10367   ;;
10368
10369 bsdi[45]*)
10370   version_type=linux
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378   # the default ld.so.conf also contains /usr/contrib/lib and
10379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380   # libtool to hard-code these into programs
10381   ;;
10382
10383 cygwin* | mingw* | pw32* | cegcc*)
10384   version_type=windows
10385   shrext_cmds=".dll"
10386   need_version=no
10387   need_lib_prefix=no
10388
10389   case $GCC,$cc_basename in
10390   yes,*)
10391     # gcc
10392     library_names_spec='$libname.dll.a'
10393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10394     postinstall_cmds='base_file=`basename \${file}`~
10395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10396       dldir=$destdir/`dirname \$dlpath`~
10397       test -d \$dldir || mkdir -p \$dldir~
10398       $install_prog $dir/$dlname \$dldir/$dlname~
10399       chmod a+x \$dldir/$dlname~
10400       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10401         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10402       fi'
10403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10404       dlpath=$dir/\$dldll~
10405        $RM \$dlpath'
10406     shlibpath_overrides_runpath=yes
10407
10408     case $host_os in
10409     cygwin*)
10410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412
10413       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10414       ;;
10415     mingw* | cegcc*)
10416       # MinGW DLLs use traditional 'lib' prefix
10417       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10418       ;;
10419     pw32*)
10420       # pw32 DLLs use 'pw' prefix rather than 'lib'
10421       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422       ;;
10423     esac
10424     dynamic_linker='Win32 ld.exe'
10425     ;;
10426
10427   *,cl*)
10428     # Native MSVC
10429     libname_spec='$name'
10430     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10431     library_names_spec='${libname}.dll.lib'
10432
10433     case $build_os in
10434     mingw*)
10435       sys_lib_search_path_spec=
10436       lt_save_ifs=$IFS
10437       IFS=';'
10438       for lt_path in $LIB
10439       do
10440         IFS=$lt_save_ifs
10441         # Let DOS variable expansion print the short 8.3 style file name.
10442         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10443         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10444       done
10445       IFS=$lt_save_ifs
10446       # Convert to MSYS style.
10447       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10448       ;;
10449     cygwin*)
10450       # Convert to unix form, then to dos form, then back to unix form
10451       # but this time dos style (no spaces!) so that the unix form looks
10452       # like /cygdrive/c/PROGRA~1:/cygdr...
10453       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10454       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10455       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10456       ;;
10457     *)
10458       sys_lib_search_path_spec="$LIB"
10459       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10460         # It is most probably a Windows format PATH.
10461         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10462       else
10463         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10464       fi
10465       # FIXME: find the short name or the path components, as spaces are
10466       # common. (e.g. "Program Files" -> "PROGRA~1")
10467       ;;
10468     esac
10469
10470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471     postinstall_cmds='base_file=`basename \${file}`~
10472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473       dldir=$destdir/`dirname \$dlpath`~
10474       test -d \$dldir || mkdir -p \$dldir~
10475       $install_prog $dir/$dlname \$dldir/$dlname'
10476     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10477       dlpath=$dir/\$dldll~
10478        $RM \$dlpath'
10479     shlibpath_overrides_runpath=yes
10480     dynamic_linker='Win32 link.exe'
10481     ;;
10482
10483   *)
10484     # Assume MSVC wrapper
10485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10486     dynamic_linker='Win32 ld.exe'
10487     ;;
10488   esac
10489   # FIXME: first we should search . and the directory the executable is in
10490   shlibpath_var=PATH
10491   ;;
10492
10493 darwin* | rhapsody*)
10494   dynamic_linker="$host_os dyld"
10495   version_type=darwin
10496   need_lib_prefix=no
10497   need_version=no
10498   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10499   soname_spec='${libname}${release}${major}$shared_ext'
10500   shlibpath_overrides_runpath=yes
10501   shlibpath_var=DYLD_LIBRARY_PATH
10502   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10503
10504   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10505   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10506   ;;
10507
10508 dgux*)
10509   version_type=linux
10510   need_lib_prefix=no
10511   need_version=no
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   shlibpath_var=LD_LIBRARY_PATH
10515   ;;
10516
10517 freebsd1*)
10518   dynamic_linker=no
10519   ;;
10520
10521 freebsd* | dragonfly*)
10522   # DragonFly does not have aout.  When/if they implement a new
10523   # versioning mechanism, adjust this.
10524   if test -x /usr/bin/objformat; then
10525     objformat=`/usr/bin/objformat`
10526   else
10527     case $host_os in
10528     freebsd[123]*) objformat=aout ;;
10529     *) objformat=elf ;;
10530     esac
10531   fi
10532   version_type=freebsd-$objformat
10533   case $version_type in
10534     freebsd-elf*)
10535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10536       need_version=no
10537       need_lib_prefix=no
10538       ;;
10539     freebsd-*)
10540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10541       need_version=yes
10542       ;;
10543   esac
10544   shlibpath_var=LD_LIBRARY_PATH
10545   case $host_os in
10546   freebsd2*)
10547     shlibpath_overrides_runpath=yes
10548     ;;
10549   freebsd3.[01]* | freebsdelf3.[01]*)
10550     shlibpath_overrides_runpath=yes
10551     hardcode_into_libs=yes
10552     ;;
10553   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10554   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10555     shlibpath_overrides_runpath=no
10556     hardcode_into_libs=yes
10557     ;;
10558   *) # from 4.6 on, and DragonFly
10559     shlibpath_overrides_runpath=yes
10560     hardcode_into_libs=yes
10561     ;;
10562   esac
10563   ;;
10564
10565 gnu*)
10566   version_type=linux
10567   need_lib_prefix=no
10568   need_version=no
10569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10570   soname_spec='${libname}${release}${shared_ext}$major'
10571   shlibpath_var=LD_LIBRARY_PATH
10572   hardcode_into_libs=yes
10573   ;;
10574
10575 haiku*)
10576   version_type=linux
10577   need_lib_prefix=no
10578   need_version=no
10579   dynamic_linker="$host_os runtime_loader"
10580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581   soname_spec='${libname}${release}${shared_ext}$major'
10582   shlibpath_var=LIBRARY_PATH
10583   shlibpath_overrides_runpath=yes
10584   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10585   hardcode_into_libs=yes
10586   ;;
10587
10588 hpux9* | hpux10* | hpux11*)
10589   # Give a soname corresponding to the major version so that dld.sl refuses to
10590   # link against other versions.
10591   version_type=sunos
10592   need_lib_prefix=no
10593   need_version=no
10594   case $host_cpu in
10595   ia64*)
10596     shrext_cmds='.so'
10597     hardcode_into_libs=yes
10598     dynamic_linker="$host_os dld.so"
10599     shlibpath_var=LD_LIBRARY_PATH
10600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602     soname_spec='${libname}${release}${shared_ext}$major'
10603     if test "X$HPUX_IA64_MODE" = X32; then
10604       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10605     else
10606       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10607     fi
10608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10609     ;;
10610   hppa*64*)
10611     shrext_cmds='.sl'
10612     hardcode_into_libs=yes
10613     dynamic_linker="$host_os dld.sl"
10614     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617     soname_spec='${libname}${release}${shared_ext}$major'
10618     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10620     ;;
10621   *)
10622     shrext_cmds='.sl'
10623     dynamic_linker="$host_os dld.sl"
10624     shlibpath_var=SHLIB_PATH
10625     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627     soname_spec='${libname}${release}${shared_ext}$major'
10628     ;;
10629   esac
10630   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10631   postinstall_cmds='chmod 555 $lib'
10632   # or fails outright, so override atomically:
10633   install_override_mode=555
10634   ;;
10635
10636 interix[3-9]*)
10637   version_type=linux
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   shlibpath_overrides_runpath=no
10645   hardcode_into_libs=yes
10646   ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649   case $host_os in
10650     nonstopux*) version_type=nonstopux ;;
10651     *)
10652         if test "$lt_cv_prog_gnu_ld" = yes; then
10653                 version_type=linux
10654         else
10655                 version_type=irix
10656         fi ;;
10657   esac
10658   need_lib_prefix=no
10659   need_version=no
10660   soname_spec='${libname}${release}${shared_ext}$major'
10661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10662   case $host_os in
10663   irix5* | nonstopux*)
10664     libsuff= shlibsuff=
10665     ;;
10666   *)
10667     case $LD in # libtool.m4 will add one of these switches to LD
10668     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10669       libsuff= shlibsuff= libmagic=32-bit;;
10670     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10671       libsuff=32 shlibsuff=N32 libmagic=N32;;
10672     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10673       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10674     *) libsuff= shlibsuff= libmagic=never-match;;
10675     esac
10676     ;;
10677   esac
10678   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10679   shlibpath_overrides_runpath=no
10680   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10681   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10682   hardcode_into_libs=yes
10683   ;;
10684
10685 # No shared lib support for Linux oldld, aout, or coff.
10686 linux*oldld* | linux*aout* | linux*coff*)
10687   dynamic_linker=no
10688   ;;
10689
10690 # This must be Linux ELF.
10691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10692   version_type=linux
10693   need_lib_prefix=no
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10698   shlibpath_var=LD_LIBRARY_PATH
10699   shlibpath_overrides_runpath=no
10700
10701   # Some binutils ld are patched to set DT_RUNPATH
10702   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10703   $as_echo_n "(cached) " >&6
10704 else
10705   lt_cv_shlibpath_overrides_runpath=no
10706     save_LDFLAGS=$LDFLAGS
10707     save_libdir=$libdir
10708     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10709          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h.  */
10712
10713 int
10714 main ()
10715 {
10716
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10723   lt_cv_shlibpath_overrides_runpath=yes
10724 fi
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727     conftest$ac_exeext conftest.$ac_ext
10728     LDFLAGS=$save_LDFLAGS
10729     libdir=$save_libdir
10730     
10731 fi
10732
10733   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10734
10735   # This implies no fast_install, which is unacceptable.
10736   # Some rework will be needed to allow for fast_install
10737   # before this can be enabled.
10738   hardcode_into_libs=yes
10739
10740   # Append ld.so.conf contents to the search path
10741   if test -f /etc/ld.so.conf; then
10742     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' ' '`
10743     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10744   fi
10745
10746   # We used to test for /lib/ld.so.1 and disable shared libraries on
10747   # powerpc, because MkLinux only supported shared libraries with the
10748   # GNU dynamic linker.  Since this was broken with cross compilers,
10749   # most powerpc-linux boxes support dynamic linking these days and
10750   # people can always --disable-shared, the test was removed, and we
10751   # assume the GNU/Linux dynamic linker is in use.
10752   dynamic_linker='GNU/Linux ld.so'
10753   ;;
10754
10755 netbsd*)
10756   version_type=sunos
10757   need_lib_prefix=no
10758   need_version=no
10759   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10762     dynamic_linker='NetBSD (a.out) ld.so'
10763   else
10764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10765     soname_spec='${libname}${release}${shared_ext}$major'
10766     dynamic_linker='NetBSD ld.elf_so'
10767   fi
10768   shlibpath_var=LD_LIBRARY_PATH
10769   shlibpath_overrides_runpath=yes
10770   hardcode_into_libs=yes
10771   ;;
10772
10773 newsos6)
10774   version_type=linux
10775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   shlibpath_overrides_runpath=yes
10778   ;;
10779
10780 *nto* | *qnx*)
10781   version_type=qnx
10782   need_lib_prefix=no
10783   need_version=no
10784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785   soname_spec='${libname}${release}${shared_ext}$major'
10786   shlibpath_var=LD_LIBRARY_PATH
10787   shlibpath_overrides_runpath=no
10788   hardcode_into_libs=yes
10789   dynamic_linker='ldqnx.so'
10790   ;;
10791
10792 openbsd*)
10793   version_type=sunos
10794   sys_lib_dlsearch_path_spec="/usr/lib"
10795   need_lib_prefix=no
10796   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10797   case $host_os in
10798     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10799     *)                          need_version=no  ;;
10800   esac
10801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10803   shlibpath_var=LD_LIBRARY_PATH
10804   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10805     case $host_os in
10806       openbsd2.[89] | openbsd2.[89].*)
10807         shlibpath_overrides_runpath=no
10808         ;;
10809       *)
10810         shlibpath_overrides_runpath=yes
10811         ;;
10812       esac
10813   else
10814     shlibpath_overrides_runpath=yes
10815   fi
10816   ;;
10817
10818 os2*)
10819   libname_spec='$name'
10820   shrext_cmds=".dll"
10821   need_lib_prefix=no
10822   library_names_spec='$libname${shared_ext} $libname.a'
10823   dynamic_linker='OS/2 ld.exe'
10824   shlibpath_var=LIBPATH
10825   ;;
10826
10827 osf3* | osf4* | osf5*)
10828   version_type=osf
10829   need_lib_prefix=no
10830   need_version=no
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833   shlibpath_var=LD_LIBRARY_PATH
10834   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10835   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10836   ;;
10837
10838 rdos*)
10839   dynamic_linker=no
10840   ;;
10841
10842 solaris*)
10843   version_type=linux
10844   need_lib_prefix=no
10845   need_version=no
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847   soname_spec='${libname}${release}${shared_ext}$major'
10848   shlibpath_var=LD_LIBRARY_PATH
10849   shlibpath_overrides_runpath=yes
10850   hardcode_into_libs=yes
10851   # ldd complains unless libraries are executable
10852   postinstall_cmds='chmod +x $lib'
10853   ;;
10854
10855 sunos4*)
10856   version_type=sunos
10857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10858   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10859   shlibpath_var=LD_LIBRARY_PATH
10860   shlibpath_overrides_runpath=yes
10861   if test "$with_gnu_ld" = yes; then
10862     need_lib_prefix=no
10863   fi
10864   need_version=yes
10865   ;;
10866
10867 sysv4 | sysv4.3*)
10868   version_type=linux
10869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870   soname_spec='${libname}${release}${shared_ext}$major'
10871   shlibpath_var=LD_LIBRARY_PATH
10872   case $host_vendor in
10873     sni)
10874       shlibpath_overrides_runpath=no
10875       need_lib_prefix=no
10876       runpath_var=LD_RUN_PATH
10877       ;;
10878     siemens)
10879       need_lib_prefix=no
10880       ;;
10881     motorola)
10882       need_lib_prefix=no
10883       need_version=no
10884       shlibpath_overrides_runpath=no
10885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10886       ;;
10887   esac
10888   ;;
10889
10890 sysv4*MP*)
10891   if test -d /usr/nec ;then
10892     version_type=linux
10893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10894     soname_spec='$libname${shared_ext}.$major'
10895     shlibpath_var=LD_LIBRARY_PATH
10896   fi
10897   ;;
10898
10899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10900   version_type=freebsd-elf
10901   need_lib_prefix=no
10902   need_version=no
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10904   soname_spec='${libname}${release}${shared_ext}$major'
10905   shlibpath_var=LD_LIBRARY_PATH
10906   shlibpath_overrides_runpath=yes
10907   hardcode_into_libs=yes
10908   if test "$with_gnu_ld" = yes; then
10909     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10910   else
10911     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10912     case $host_os in
10913       sco3.2v5*)
10914         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10915         ;;
10916     esac
10917   fi
10918   sys_lib_dlsearch_path_spec='/usr/lib'
10919   ;;
10920
10921 tpf*)
10922   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10923   version_type=linux
10924   need_lib_prefix=no
10925   need_version=no
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=no
10929   hardcode_into_libs=yes
10930   ;;
10931
10932 uts4*)
10933   version_type=linux
10934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935   soname_spec='${libname}${release}${shared_ext}$major'
10936   shlibpath_var=LD_LIBRARY_PATH
10937   ;;
10938
10939 *)
10940   dynamic_linker=no
10941   ;;
10942 esac
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10944 $as_echo "$dynamic_linker" >&6; }
10945 test "$dynamic_linker" = no && can_build_shared=no
10946
10947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10948 if test "$GCC" = yes; then
10949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10950 fi
10951
10952 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10953   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10954 fi
10955 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10956   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10957 fi
10958
10959
10960     
10961     
10962     
10963
10964
10965     
10966     
10967     
10968
10969
10970     
10971     
10972     
10973
10974
10975     
10976     
10977     
10978
10979
10980     
10981     
10982     
10983
10984
10985     
10986     
10987     
10988
10989
10990     
10991     
10992     
10993
10994
10995     
10996     
10997     
10998
10999
11000     
11001     
11002     
11003
11004
11005     
11006     
11007     
11008
11009
11010     
11011     
11012     
11013
11014
11015     
11016     
11017     
11018
11019
11020     
11021     
11022     
11023
11024
11025     
11026     
11027     
11028
11029
11030     
11031     
11032     
11033
11034
11035     
11036     
11037     
11038
11039
11040     
11041     
11042     
11043
11044
11045     
11046     
11047     
11048
11049
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11052 hardcode_action=
11053 if test -n "$hardcode_libdir_flag_spec" ||
11054    test -n "$runpath_var" ||
11055    test "X$hardcode_automatic" = "Xyes" ; then
11056
11057   # We can hardcode non-existent directories.
11058   if test "$hardcode_direct" != no &&
11059      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11060      # have to relink, otherwise we might link with an installed library
11061      # when we should be linking with a yet-to-be-installed one
11062      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11063      test "$hardcode_minus_L" != no; then
11064     # Linking always hardcodes the temporary library directory.
11065     hardcode_action=relink
11066   else
11067     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11068     hardcode_action=immediate
11069   fi
11070 else
11071   # We cannot hardcode anything, or else we can only hardcode existing
11072   # directories.
11073   hardcode_action=unsupported
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11076 $as_echo "$hardcode_action" >&6; }
11077
11078 if test "$hardcode_action" = relink ||
11079    test "$inherit_rpath" = yes; then
11080   # Fast installation is not supported
11081   enable_fast_install=no
11082 elif test "$shlibpath_overrides_runpath" = yes ||
11083      test "$enable_shared" = no; then
11084   # Fast installation is not necessary
11085   enable_fast_install=needless
11086 fi
11087
11088     
11089     
11090     
11091
11092
11093   if test "x$enable_dlopen" != xyes; then
11094   enable_dlopen=unknown
11095   enable_dlopen_self=unknown
11096   enable_dlopen_self_static=unknown
11097 else
11098   lt_cv_dlopen=no
11099   lt_cv_dlopen_libs=
11100
11101   case $host_os in
11102   beos*)
11103     lt_cv_dlopen="load_add_on"
11104     lt_cv_dlopen_libs=
11105     lt_cv_dlopen_self=yes
11106     ;;
11107
11108   mingw* | pw32* | cegcc*)
11109     lt_cv_dlopen="LoadLibrary"
11110     lt_cv_dlopen_libs=
11111     ;;
11112
11113   cygwin*)
11114     lt_cv_dlopen="dlopen"
11115     lt_cv_dlopen_libs=
11116     ;;
11117
11118   darwin*)
11119   # if libdl is installed we need to link against it
11120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11122 if ${ac_cv_lib_dl_dlopen+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-ldl  $LIBS"
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h.  */
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131    Use char because int might match the return type of a GCC
11132    builtin and then its argument prototype would still apply.  */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char dlopen ();
11137 int
11138 main ()
11139 {
11140 return dlopen ();
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 if ac_fn_c_try_link "$LINENO"; then :
11146   ac_cv_lib_dl_dlopen=yes
11147 else
11148   ac_cv_lib_dl_dlopen=no
11149 fi
11150 rm -f core conftest.err conftest.$ac_objext \
11151     conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11156 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11157   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11158 else
11159   
11160     lt_cv_dlopen="dyld"
11161     lt_cv_dlopen_libs=
11162     lt_cv_dlopen_self=yes
11163     
11164 fi
11165
11166     ;;
11167
11168   *)
11169     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11170 if test "x$ac_cv_func_shl_load" = xyes; then :
11171   lt_cv_dlopen="shl_load"
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11174 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11175 if ${ac_cv_lib_dld_shl_load+:} false; then :
11176   $as_echo_n "(cached) " >&6
11177 else
11178   ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-ldld  $LIBS"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h.  */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184    Use char because int might match the return type of a GCC
11185    builtin and then its argument prototype would still apply.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char shl_load ();
11190 int
11191 main ()
11192 {
11193 return shl_load ();
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199   ac_cv_lib_dld_shl_load=yes
11200 else
11201   ac_cv_lib_dld_shl_load=no
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext \
11204     conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11208 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11209 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11210   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11211 else
11212   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11213 if test "x$ac_cv_func_dlopen" = xyes; then :
11214   lt_cv_dlopen="dlopen"
11215 else
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if ${ac_cv_lib_dl_dlopen+:} false; then :
11219   $as_echo_n "(cached) " >&6
11220 else
11221   ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldl  $LIBS"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h.  */
11225
11226 /* Override any GCC internal prototype to avoid an error.
11227    Use char because int might match the return type of a GCC
11228    builtin and then its argument prototype would still apply.  */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char dlopen ();
11233 int
11234 main ()
11235 {
11236 return dlopen ();
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242   ac_cv_lib_dl_dlopen=yes
11243 else
11244   ac_cv_lib_dl_dlopen=no
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247     conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11253   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254 else
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11256 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11257 if ${ac_cv_lib_svld_dlopen+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   ac_check_lib_save_LIBS=$LIBS
11261 LIBS="-lsvld  $LIBS"
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h.  */
11264
11265 /* Override any GCC internal prototype to avoid an error.
11266    Use char because int might match the return type of a GCC
11267    builtin and then its argument prototype would still apply.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 char dlopen ();
11272 int
11273 main ()
11274 {
11275 return dlopen ();
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 if ac_fn_c_try_link "$LINENO"; then :
11281   ac_cv_lib_svld_dlopen=yes
11282 else
11283   ac_cv_lib_svld_dlopen=no
11284 fi
11285 rm -f core conftest.err conftest.$ac_objext \
11286     conftest$ac_exeext conftest.$ac_ext
11287 LIBS=$ac_check_lib_save_LIBS
11288 fi
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11290 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11291 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11295 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11296 if ${ac_cv_lib_dld_dld_link+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   ac_check_lib_save_LIBS=$LIBS
11300 LIBS="-ldld  $LIBS"
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h.  */
11303
11304 /* Override any GCC internal prototype to avoid an error.
11305    Use char because int might match the return type of a GCC
11306    builtin and then its argument prototype would still apply.  */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 char dld_link ();
11311 int
11312 main ()
11313 {
11314 return dld_link ();
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_link "$LINENO"; then :
11320   ac_cv_lib_dld_dld_link=yes
11321 else
11322   ac_cv_lib_dld_dld_link=no
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325     conftest$ac_exeext conftest.$ac_ext
11326 LIBS=$ac_check_lib_save_LIBS
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11329 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11330 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11331   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11332 fi
11333
11334               
11335 fi
11336
11337             
11338 fi
11339
11340           
11341 fi
11342
11343         
11344 fi
11345
11346       
11347 fi
11348
11349     ;;
11350   esac
11351
11352   if test "x$lt_cv_dlopen" != xno; then
11353     enable_dlopen=yes
11354   else
11355     enable_dlopen=no
11356   fi
11357
11358   case $lt_cv_dlopen in
11359   dlopen)
11360     save_CPPFLAGS="$CPPFLAGS"
11361     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11362
11363     save_LDFLAGS="$LDFLAGS"
11364     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11365
11366     save_LIBS="$LIBS"
11367     LIBS="$lt_cv_dlopen_libs $LIBS"
11368
11369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11370 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11371 if ${lt_cv_dlopen_self+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374           if test "$cross_compiling" = yes; then :
11375   lt_cv_dlopen_self=cross
11376 else
11377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11378   lt_status=$lt_dlunknown
11379   cat > conftest.$ac_ext <<_LT_EOF
11380 #line $LINENO "configure"
11381 #include "confdefs.h"
11382
11383 #if HAVE_DLFCN_H
11384 #include <dlfcn.h>
11385 #endif
11386
11387 #include <stdio.h>
11388
11389 #ifdef RTLD_GLOBAL
11390 #  define LT_DLGLOBAL           RTLD_GLOBAL
11391 #else
11392 #  ifdef DL_GLOBAL
11393 #    define LT_DLGLOBAL         DL_GLOBAL
11394 #  else
11395 #    define LT_DLGLOBAL         0
11396 #  endif
11397 #endif
11398
11399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11400    find out it does not work in some platform. */
11401 #ifndef LT_DLLAZY_OR_NOW
11402 #  ifdef RTLD_LAZY
11403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11404 #  else
11405 #    ifdef DL_LAZY
11406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11407 #    else
11408 #      ifdef RTLD_NOW
11409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11410 #      else
11411 #        ifdef DL_NOW
11412 #          define LT_DLLAZY_OR_NOW      DL_NOW
11413 #        else
11414 #          define LT_DLLAZY_OR_NOW      0
11415 #        endif
11416 #      endif
11417 #    endif
11418 #  endif
11419 #endif
11420
11421 /* When -fvisbility=hidden is used, assume the code has been annotated
11422    correspondingly for the symbols needed.  */
11423 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11424 int fnord () __attribute__((visibility("default")));
11425 #endif
11426
11427 int fnord () { return 42; }
11428 int main ()
11429 {
11430   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11431   int status = $lt_dlunknown;
11432
11433   if (self)
11434     {
11435       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11436       else
11437         {
11438           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11439           else puts (dlerror ());
11440         }
11441       /* dlclose (self); */
11442     }
11443   else
11444     puts (dlerror ());
11445
11446   return status;
11447 }
11448 _LT_EOF
11449   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11450   (eval $ac_link) 2>&5
11451   ac_status=$?
11452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11453   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11454     (./conftest; exit; ) >&5 2>/dev/null
11455     lt_status=$?
11456     case x$lt_status in
11457       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11458       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11459       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11460     esac
11461   else :
11462     # compilation failed
11463     lt_cv_dlopen_self=no
11464   fi
11465 fi
11466 rm -fr conftest*
11467
11468     
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11471 $as_echo "$lt_cv_dlopen_self" >&6; }
11472
11473     if test "x$lt_cv_dlopen_self" = xyes; then
11474       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11475       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11476 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11477 if ${lt_cv_dlopen_self_static+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480           if test "$cross_compiling" = yes; then :
11481   lt_cv_dlopen_self_static=cross
11482 else
11483   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484   lt_status=$lt_dlunknown
11485   cat > conftest.$ac_ext <<_LT_EOF
11486 #line $LINENO "configure"
11487 #include "confdefs.h"
11488
11489 #if HAVE_DLFCN_H
11490 #include <dlfcn.h>
11491 #endif
11492
11493 #include <stdio.h>
11494
11495 #ifdef RTLD_GLOBAL
11496 #  define LT_DLGLOBAL           RTLD_GLOBAL
11497 #else
11498 #  ifdef DL_GLOBAL
11499 #    define LT_DLGLOBAL         DL_GLOBAL
11500 #  else
11501 #    define LT_DLGLOBAL         0
11502 #  endif
11503 #endif
11504
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506    find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11508 #  ifdef RTLD_LAZY
11509 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11510 #  else
11511 #    ifdef DL_LAZY
11512 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11513 #    else
11514 #      ifdef RTLD_NOW
11515 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11516 #      else
11517 #        ifdef DL_NOW
11518 #          define LT_DLLAZY_OR_NOW      DL_NOW
11519 #        else
11520 #          define LT_DLLAZY_OR_NOW      0
11521 #        endif
11522 #      endif
11523 #    endif
11524 #  endif
11525 #endif
11526
11527 /* When -fvisbility=hidden is used, assume the code has been annotated
11528    correspondingly for the symbols needed.  */
11529 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11530 int fnord () __attribute__((visibility("default")));
11531 #endif
11532
11533 int fnord () { return 42; }
11534 int main ()
11535 {
11536   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11537   int status = $lt_dlunknown;
11538
11539   if (self)
11540     {
11541       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11542       else
11543         {
11544           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11545           else puts (dlerror ());
11546         }
11547       /* dlclose (self); */
11548     }
11549   else
11550     puts (dlerror ());
11551
11552   return status;
11553 }
11554 _LT_EOF
11555   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11556   (eval $ac_link) 2>&5
11557   ac_status=$?
11558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11560     (./conftest; exit; ) >&5 2>/dev/null
11561     lt_status=$?
11562     case x$lt_status in
11563       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11564       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11565       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11566     esac
11567   else :
11568     # compilation failed
11569     lt_cv_dlopen_self_static=no
11570   fi
11571 fi
11572 rm -fr conftest*
11573
11574       
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11577 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11578     fi
11579
11580     CPPFLAGS="$save_CPPFLAGS"
11581     LDFLAGS="$save_LDFLAGS"
11582     LIBS="$save_LIBS"
11583     ;;
11584   esac
11585
11586   case $lt_cv_dlopen_self in
11587   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11588   *) enable_dlopen_self=unknown ;;
11589   esac
11590
11591   case $lt_cv_dlopen_self_static in
11592   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11593   *) enable_dlopen_self_static=unknown ;;
11594   esac
11595 fi
11596
11597     
11598     
11599     
11600
11601
11602     
11603     
11604     
11605
11606
11607     
11608     
11609     
11610
11611
11612   
11613 striplib=
11614 old_striplib=
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11616 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11617 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11618   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11619   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621 $as_echo "yes" >&6; }
11622 else
11623 # FIXME - insert some real tests, host_os isn't really good enough
11624   case $host_os in
11625   darwin*)
11626     if test -n "$STRIP" ; then
11627       striplib="$STRIP -x"
11628       old_striplib="$STRIP -S"
11629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631     else
11632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11634     fi
11635     ;;
11636   *)
11637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11639     ;;
11640   esac
11641 fi
11642
11643     
11644     
11645     
11646
11647
11648     
11649     
11650     
11651
11652
11653
11654   # Report which library types will actually be built
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11656 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11658 $as_echo "$can_build_shared" >&6; }
11659
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11661 $as_echo_n "checking whether to build shared libraries... " >&6; }
11662   test "$can_build_shared" = "no" && enable_shared=no
11663
11664   # On AIX, shared libraries and static libraries use the same namespace, and
11665   # are all built from PIC.
11666   case $host_os in
11667   aix3*)
11668     test "$enable_shared" = yes && enable_static=no
11669     if test -n "$RANLIB"; then
11670       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11671       postinstall_cmds='$RANLIB $lib'
11672     fi
11673     ;;
11674
11675   aix[4-9]*)
11676     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11677       test "$enable_shared" = yes && enable_static=no
11678     fi
11679     ;;
11680   esac
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11682 $as_echo "$enable_shared" >&6; }
11683
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11685 $as_echo_n "checking whether to build static libraries... " >&6; }
11686   # Make sure either enable_shared or enable_static is yes.
11687   test "$enable_shared" = yes || enable_static=yes
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11689 $as_echo "$enable_static" >&6; }
11690
11691   
11692
11693
11694 fi
11695 ac_ext=c
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700
11701 CC="$lt_save_CC"
11702
11703       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11704     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11705     (test "X$CXX" != "Xg++"))) ; then
11706   ac_ext=cpp
11707 ac_cpp='$CXXCPP $CPPFLAGS'
11708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11712 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11713 if test -z "$CXXCPP"; then
11714   if ${ac_cv_prog_CXXCPP+:} false; then :
11715   $as_echo_n "(cached) " >&6
11716 else
11717       # Double quotes because CXXCPP needs to be expanded
11718     for CXXCPP in "$CXX -E" "/lib/cpp"
11719     do
11720       ac_preproc_ok=false
11721 for ac_cxx_preproc_warn_flag in '' yes
11722 do
11723   # Use a header file that comes with gcc, so configuring glibc
11724   # with a fresh cross-compiler works.
11725   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726   # <limits.h> exists even on freestanding compilers.
11727   # On the NeXT, cc -E runs the code through the compiler's parser,
11728   # not just through cpp. "Syntax error" is here to catch this case.
11729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h.  */
11731 @%:@ifdef __STDC__
11732 @%:@ include <limits.h>
11733 @%:@else
11734 @%:@ include <assert.h>
11735 @%:@endif
11736                      Syntax error
11737 _ACEOF
11738 if ac_fn_cxx_try_cpp "$LINENO"; then :
11739   
11740 else
11741   # Broken: fails on valid input.
11742 continue
11743 fi
11744 rm -f conftest.err conftest.i conftest.$ac_ext
11745
11746   # OK, works on sane cases.  Now check whether nonexistent headers
11747   # can be detected and how.
11748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h.  */
11750 @%:@include <ac_nonexistent.h>
11751 _ACEOF
11752 if ac_fn_cxx_try_cpp "$LINENO"; then :
11753   # Broken: success on invalid input.
11754 continue
11755 else
11756   # Passes both tests.
11757 ac_preproc_ok=:
11758 break
11759 fi
11760 rm -f conftest.err conftest.i conftest.$ac_ext
11761
11762 done
11763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11764 rm -f conftest.i conftest.err conftest.$ac_ext
11765 if $ac_preproc_ok; then :
11766   break
11767 fi
11768
11769     done
11770     ac_cv_prog_CXXCPP=$CXXCPP
11771   
11772 fi
11773   CXXCPP=$ac_cv_prog_CXXCPP
11774 else
11775   ac_cv_prog_CXXCPP=$CXXCPP
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11778 $as_echo "$CXXCPP" >&6; }
11779 ac_preproc_ok=false
11780 for ac_cxx_preproc_warn_flag in '' yes
11781 do
11782   # Use a header file that comes with gcc, so configuring glibc
11783   # with a fresh cross-compiler works.
11784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785   # <limits.h> exists even on freestanding compilers.
11786   # On the NeXT, cc -E runs the code through the compiler's parser,
11787   # not just through cpp. "Syntax error" is here to catch this case.
11788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790 @%:@ifdef __STDC__
11791 @%:@ include <limits.h>
11792 @%:@else
11793 @%:@ include <assert.h>
11794 @%:@endif
11795                      Syntax error
11796 _ACEOF
11797 if ac_fn_cxx_try_cpp "$LINENO"; then :
11798   
11799 else
11800   # Broken: fails on valid input.
11801 continue
11802 fi
11803 rm -f conftest.err conftest.i conftest.$ac_ext
11804
11805   # OK, works on sane cases.  Now check whether nonexistent headers
11806   # can be detected and how.
11807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809 @%:@include <ac_nonexistent.h>
11810 _ACEOF
11811 if ac_fn_cxx_try_cpp "$LINENO"; then :
11812   # Broken: success on invalid input.
11813 continue
11814 else
11815   # Passes both tests.
11816 ac_preproc_ok=:
11817 break
11818 fi
11819 rm -f conftest.err conftest.i conftest.$ac_ext
11820
11821 done
11822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11823 rm -f conftest.i conftest.err conftest.$ac_ext
11824 if $ac_preproc_ok; then :
11825   
11826 else
11827   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11829 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11830 See \`config.log' for more details" "$LINENO" 5; }
11831 fi
11832
11833 ac_ext=c
11834 ac_cpp='$CPP $CPPFLAGS'
11835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838
11839 else
11840   _lt_caught_CXX_error=yes
11841 fi
11842
11843 ac_ext=cpp
11844 ac_cpp='$CXXCPP $CPPFLAGS'
11845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11848
11849 archive_cmds_need_lc_CXX=no
11850 allow_undefined_flag_CXX=
11851 always_export_symbols_CXX=no
11852 archive_expsym_cmds_CXX=
11853 compiler_needs_object_CXX=no
11854 export_dynamic_flag_spec_CXX=
11855 hardcode_direct_CXX=no
11856 hardcode_direct_absolute_CXX=no
11857 hardcode_libdir_flag_spec_CXX=
11858 hardcode_libdir_flag_spec_ld_CXX=
11859 hardcode_libdir_separator_CXX=
11860 hardcode_minus_L_CXX=no
11861 hardcode_shlibpath_var_CXX=unsupported
11862 hardcode_automatic_CXX=no
11863 inherit_rpath_CXX=no
11864 module_cmds_CXX=
11865 module_expsym_cmds_CXX=
11866 link_all_deplibs_CXX=unknown
11867 old_archive_cmds_CXX=$old_archive_cmds
11868 reload_flag_CXX=$reload_flag
11869 reload_cmds_CXX=$reload_cmds
11870 no_undefined_flag_CXX=
11871 whole_archive_flag_spec_CXX=
11872 enable_shared_with_static_runtimes_CXX=no
11873
11874 # Source file extension for C++ test sources.
11875 ac_ext=cpp
11876
11877 # Object file extension for compiled C++ test sources.
11878 objext=o
11879 objext_CXX=$objext
11880
11881 # No sense in running all these tests if we already determined that
11882 # the CXX compiler isn't working.  Some variables (like enable_shared)
11883 # are currently assumed to apply to all compilers on this platform,
11884 # and will be corrupted by setting them based on a non-working compiler.
11885 if test "$_lt_caught_CXX_error" != yes; then
11886   # Code to be used in simple compile tests
11887   lt_simple_compile_test_code="int some_variable = 0;"
11888
11889   # Code to be used in simple link tests
11890   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11891
11892   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11893   
11894
11895
11896
11897
11898
11899 # If no C compiler was specified, use CC.
11900 LTCC=${LTCC-"$CC"}
11901
11902 # If no C compiler flags were specified, use CFLAGS.
11903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11904
11905 # Allow CC to be a program name with arguments.
11906 compiler=$CC
11907
11908
11909   # save warnings/boilerplate of simple test code
11910   ac_outfile=conftest.$ac_objext
11911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11913 _lt_compiler_boilerplate=`cat conftest.err`
11914 $RM conftest*
11915
11916   ac_outfile=conftest.$ac_objext
11917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11919 _lt_linker_boilerplate=`cat conftest.err`
11920 $RM -r conftest*
11921
11922
11923   # Allow CC to be a program name with arguments.
11924   lt_save_CC=$CC
11925   lt_save_CFLAGS=$CFLAGS
11926   lt_save_LD=$LD
11927   lt_save_GCC=$GCC
11928   GCC=$GXX
11929   lt_save_with_gnu_ld=$with_gnu_ld
11930   lt_save_path_LD=$lt_cv_path_LD
11931   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11932     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11933   else
11934     $as_unset lt_cv_prog_gnu_ld
11935   fi
11936   if test -n "${lt_cv_path_LDCXX+set}"; then
11937     lt_cv_path_LD=$lt_cv_path_LDCXX
11938   else
11939     $as_unset lt_cv_path_LD
11940   fi
11941   test -z "${LDCXX+set}" || LD=$LDCXX
11942   CC=${CXX-"c++"}
11943   CFLAGS=$CXXFLAGS
11944   compiler=$CC
11945   compiler_CXX=$CC
11946   for cc_temp in $compiler""; do
11947   case $cc_temp in
11948     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11949     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11950     \-*) ;;
11951     *) break;;
11952   esac
11953 done
11954 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11955
11956
11957   if test -n "$compiler"; then
11958     # We don't want -fno-exception when compiling C++ code, so set the
11959     # no_builtin_flag separately
11960     if test "$GXX" = yes; then
11961       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11962     else
11963       lt_prog_compiler_no_builtin_flag_CXX=
11964     fi
11965
11966     if test "$GXX" = yes; then
11967       # Set up default GNU C++ configuration
11968
11969       
11970
11971 @%:@ Check whether --with-gnu-ld was given.
11972 if test "${with_gnu_ld+set}" = set; then :
11973   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11974 else
11975   with_gnu_ld=no
11976 fi
11977
11978 ac_prog=ld
11979 if test "$GCC" = yes; then
11980   # Check if gcc -print-prog-name=ld gives a path.
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11982 $as_echo_n "checking for ld used by $CC... " >&6; }
11983   case $host in
11984   *-*-mingw*)
11985     # gcc leaves a trailing carriage return which upsets mingw
11986     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11987   *)
11988     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11989   esac
11990   case $ac_prog in
11991     # Accept absolute paths.
11992     [\\/]* | ?:[\\/]*)
11993       re_direlt='/[^/][^/]*/\.\./'
11994       # Canonicalize the pathname of ld
11995       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11996       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11997         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11998       done
11999       test -z "$LD" && LD="$ac_prog"
12000       ;;
12001   "")
12002     # If it fails, then pretend we aren't using GCC.
12003     ac_prog=ld
12004     ;;
12005   *)
12006     # If it is relative, then search for the first ld in PATH.
12007     with_gnu_ld=unknown
12008     ;;
12009   esac
12010 elif test "$with_gnu_ld" = yes; then
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12012 $as_echo_n "checking for GNU ld... " >&6; }
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12015 $as_echo_n "checking for non-GNU ld... " >&6; }
12016 fi
12017 if ${lt_cv_path_LD+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   if test -z "$LD"; then
12021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12022   for ac_dir in $PATH; do
12023     IFS="$lt_save_ifs"
12024     test -z "$ac_dir" && ac_dir=.
12025     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12026       lt_cv_path_LD="$ac_dir/$ac_prog"
12027       # Check to see if the program is GNU ld.  I'd rather use --version,
12028       # but apparently some variants of GNU ld only accept -v.
12029       # Break only if it was the GNU/non-GNU ld that we prefer.
12030       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12031       *GNU* | *'with BFD'*)
12032         test "$with_gnu_ld" != no && break
12033         ;;
12034       *)
12035         test "$with_gnu_ld" != yes && break
12036         ;;
12037       esac
12038     fi
12039   done
12040   IFS="$lt_save_ifs"
12041 else
12042   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12043 fi
12044 fi
12045
12046 LD="$lt_cv_path_LD"
12047 if test -n "$LD"; then
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12049 $as_echo "$LD" >&6; }
12050 else
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12057 if ${lt_cv_prog_gnu_ld+:} false; then :
12058   $as_echo_n "(cached) " >&6
12059 else
12060   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12061 case `$LD -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063   lt_cv_prog_gnu_ld=yes
12064   ;;
12065 *)
12066   lt_cv_prog_gnu_ld=no
12067   ;;
12068 esac
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12072 with_gnu_ld=$lt_cv_prog_gnu_ld
12073
12074
12075
12076
12077
12078
12079
12080       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12081       # archiving commands below assume that GNU ld is being used.
12082       if test "$with_gnu_ld" = yes; then
12083         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084         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'
12085
12086         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12087         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12088
12089         # If archive_cmds runs LD, not CC, wlarc should be empty
12090         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12091         #     investigate it a little bit more. (MM)
12092         wlarc='${wl}'
12093
12094         # ancient GNU ld didn't support --whole-archive et. al.
12095         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12096           $GREP 'no-whole-archive' > /dev/null; then
12097           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12098         else
12099           whole_archive_flag_spec_CXX=
12100         fi
12101       else
12102         with_gnu_ld=no
12103         wlarc=
12104
12105         # A generic and very simple default shared library creation
12106         # command for GNU C++ for the case where it uses the native
12107         # linker, instead of GNU ld.  If possible, this setting should
12108         # overridden to take advantage of the native linker features on
12109         # the platform it is being used on.
12110         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12111       fi
12112
12113       # Commands to make compiler produce verbose output that lists
12114       # what "hidden" libraries, object files and flags are used when
12115       # linking a shared library.
12116       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12117
12118     else
12119       GXX=no
12120       with_gnu_ld=no
12121       wlarc=
12122     fi
12123
12124     # PORTME: fill in a description of your system's C++ link characteristics
12125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12127     ld_shlibs_CXX=yes
12128     case $host_os in
12129       aix3*)
12130         # FIXME: insert proper C++ library support
12131         ld_shlibs_CXX=no
12132         ;;
12133       aix[4-9]*)
12134         if test "$host_cpu" = ia64; then
12135           # On IA64, the linker does run time linking by default, so we don't
12136           # have to do anything special.
12137           aix_use_runtimelinking=no
12138           exp_sym_flag='-Bexport'
12139           no_entry_flag=""
12140         else
12141           aix_use_runtimelinking=no
12142
12143           # Test if we are trying to use run time linking or normal
12144           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12145           # need to do runtime linking.
12146           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12147             for ld_flag in $LDFLAGS; do
12148               case $ld_flag in
12149               *-brtl*)
12150                 aix_use_runtimelinking=yes
12151                 break
12152                 ;;
12153               esac
12154             done
12155             ;;
12156           esac
12157
12158           exp_sym_flag='-bexport'
12159           no_entry_flag='-bnoentry'
12160         fi
12161
12162         # When large executables or shared objects are built, AIX ld can
12163         # have problems creating the table of contents.  If linking a library
12164         # or program results in "error TOC overflow" add -mminimal-toc to
12165         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12166         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12167
12168         archive_cmds_CXX=''
12169         hardcode_direct_CXX=yes
12170         hardcode_direct_absolute_CXX=yes
12171         hardcode_libdir_separator_CXX=':'
12172         link_all_deplibs_CXX=yes
12173         file_list_spec_CXX='${wl}-f,'
12174
12175         if test "$GXX" = yes; then
12176           case $host_os in aix4.[012]|aix4.[012].*)
12177           # We only want to do this on AIX 4.2 and lower, the check
12178           # below for broken collect2 doesn't work under 4.3+
12179           collect2name=`${CC} -print-prog-name=collect2`
12180           if test -f "$collect2name" &&
12181              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12182           then
12183             # We have reworked collect2
12184             :
12185           else
12186             # We have old collect2
12187             hardcode_direct_CXX=unsupported
12188             # It fails to find uninstalled libraries when the uninstalled
12189             # path is not listed in the libpath.  Setting hardcode_minus_L
12190             # to unsupported forces relinking
12191             hardcode_minus_L_CXX=yes
12192             hardcode_libdir_flag_spec_CXX='-L$libdir'
12193             hardcode_libdir_separator_CXX=
12194           fi
12195           esac
12196           shared_flag='-shared'
12197           if test "$aix_use_runtimelinking" = yes; then
12198             shared_flag="$shared_flag "'${wl}-G'
12199           fi
12200         else
12201           # not using gcc
12202           if test "$host_cpu" = ia64; then
12203           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12204           # chokes on -Wl,-G. The following line is correct:
12205           shared_flag='-G'
12206           else
12207             if test "$aix_use_runtimelinking" = yes; then
12208               shared_flag='${wl}-G'
12209             else
12210               shared_flag='${wl}-bM:SRE'
12211             fi
12212           fi
12213         fi
12214
12215         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12216         # It seems that -bexpall does not export symbols beginning with
12217         # underscore (_), so it is better to generate a list of symbols to
12218         # export.
12219         always_export_symbols_CXX=yes
12220         if test "$aix_use_runtimelinking" = yes; then
12221           # Warning - without using the other runtime loading flags (-brtl),
12222           # -berok will link without error, but may produce a broken library.
12223           allow_undefined_flag_CXX='-berok'
12224           # Determine the default libpath from the value encoded in an empty
12225           # executable.
12226           if test "${lt_cv_aix_libpath+set}" = set; then
12227   aix_libpath=$lt_cv_aix_libpath
12228 else
12229   if ${lt_cv_aix_libpath__CXX+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h.  */
12234
12235 int
12236 main ()
12237 {
12238
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_cxx_try_link "$LINENO"; then :
12244   
12245   lt_aix_libpath_sed='
12246       /Import File Strings/,/^$/ {
12247           /^0/ {
12248               s/^0  *\([^ ]*\) *$/\1/
12249               p
12250           }
12251       }'
12252   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12253   # Check for a 64-bit object if we didn't find anything.
12254   if test -z "$lt_cv_aix_libpath__CXX"; then
12255     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12256   fi
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259     conftest$ac_exeext conftest.$ac_ext
12260   if test -z "$lt_cv_aix_libpath__CXX"; then
12261     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12262   fi
12263   
12264 fi
12265
12266   aix_libpath=$lt_cv_aix_libpath__CXX
12267 fi
12268
12269           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12270
12271           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"
12272         else
12273           if test "$host_cpu" = ia64; then
12274             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12275             allow_undefined_flag_CXX="-z nodefs"
12276             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"
12277           else
12278             # Determine the default libpath from the value encoded in an
12279             # empty executable.
12280             if test "${lt_cv_aix_libpath+set}" = set; then
12281   aix_libpath=$lt_cv_aix_libpath
12282 else
12283   if ${lt_cv_aix_libpath__CXX+:} false; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288
12289 int
12290 main ()
12291 {
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_cxx_try_link "$LINENO"; then :
12298   
12299   lt_aix_libpath_sed='
12300       /Import File Strings/,/^$/ {
12301           /^0/ {
12302               s/^0  *\([^ ]*\) *$/\1/
12303               p
12304           }
12305       }'
12306   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12307   # Check for a 64-bit object if we didn't find anything.
12308   if test -z "$lt_cv_aix_libpath__CXX"; then
12309     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12310   fi
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext \
12313     conftest$ac_exeext conftest.$ac_ext
12314   if test -z "$lt_cv_aix_libpath__CXX"; then
12315     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12316   fi
12317   
12318 fi
12319
12320   aix_libpath=$lt_cv_aix_libpath__CXX
12321 fi
12322
12323             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12324             # Warning - without using the other run time loading flags,
12325             # -berok will link without error, but may produce a broken library.
12326             no_undefined_flag_CXX=' ${wl}-bernotok'
12327             allow_undefined_flag_CXX=' ${wl}-berok'
12328             if test "$with_gnu_ld" = yes; then
12329               # We only use this code for GNU lds that support --whole-archive.
12330               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12331             else
12332               # Exported symbols can be pulled into shared objects from archives
12333               whole_archive_flag_spec_CXX='$convenience'
12334             fi
12335             archive_cmds_need_lc_CXX=yes
12336             # This is similar to how AIX traditionally builds its shared
12337             # libraries.
12338             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'
12339           fi
12340         fi
12341         ;;
12342
12343       beos*)
12344         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12345           allow_undefined_flag_CXX=unsupported
12346           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12347           # support --undefined.  This deserves some investigation.  FIXME
12348           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12349         else
12350           ld_shlibs_CXX=no
12351         fi
12352         ;;
12353
12354       chorus*)
12355         case $cc_basename in
12356           *)
12357           # FIXME: insert proper C++ library support
12358           ld_shlibs_CXX=no
12359           ;;
12360         esac
12361         ;;
12362
12363       cygwin* | mingw* | pw32* | cegcc*)
12364         case $GXX,$cc_basename in
12365         ,cl* | no,cl*)
12366           # Native MSVC
12367           # hardcode_libdir_flag_spec is actually meaningless, as there is
12368           # no search path for DLLs.
12369           hardcode_libdir_flag_spec_CXX=' '
12370           allow_undefined_flag_CXX=unsupported
12371           always_export_symbols_CXX=yes
12372           file_list_spec_CXX='@'
12373           # Tell ltmain to make .lib files, not .a files.
12374           libext=lib
12375           # Tell ltmain to make .dll files, not .so files.
12376           shrext_cmds=".dll"
12377           # FIXME: Setting linknames here is a bad hack.
12378           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12379           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12380               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12381             else
12382               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12383             fi~
12384             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12385             linknames='
12386           # The linker will not automatically build a static lib if we build a DLL.
12387           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12388           enable_shared_with_static_runtimes_CXX=yes
12389           # Don't use ranlib
12390           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12391           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12392             lt_tool_outputfile="@TOOL_OUTPUT@"~
12393             case $lt_outputfile in
12394               *.exe|*.EXE) ;;
12395               *)
12396                 lt_outputfile="$lt_outputfile.exe"
12397                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12398                 ;;
12399             esac~
12400             func_to_tool_file "$lt_outputfile"~
12401             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12402               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12403               $RM "$lt_outputfile.manifest";
12404             fi'
12405           ;;
12406         *)
12407           # g++
12408           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12409           # as there is no search path for DLLs.
12410           hardcode_libdir_flag_spec_CXX='-L$libdir'
12411           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12412           allow_undefined_flag_CXX=unsupported
12413           always_export_symbols_CXX=no
12414           enable_shared_with_static_runtimes_CXX=yes
12415
12416           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12417             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'
12418             # If the export-symbols file already is a .def file (1st line
12419             # is EXPORTS), use it as is; otherwise, prepend...
12420             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12421               cp $export_symbols $output_objdir/$soname.def;
12422             else
12423               echo EXPORTS > $output_objdir/$soname.def;
12424               cat $export_symbols >> $output_objdir/$soname.def;
12425             fi~
12426             $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'
12427           else
12428             ld_shlibs_CXX=no
12429           fi
12430           ;;
12431         esac
12432         ;;
12433       darwin* | rhapsody*)
12434         
12435   
12436   archive_cmds_need_lc_CXX=no
12437   hardcode_direct_CXX=no
12438   hardcode_automatic_CXX=yes
12439   hardcode_shlibpath_var_CXX=unsupported
12440   if test "$lt_cv_ld_force_load" = "yes"; then
12441     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\"`'
12442   else
12443     whole_archive_flag_spec_CXX=''
12444   fi
12445   link_all_deplibs_CXX=yes
12446   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12447   case $cc_basename in
12448      ifort*) _lt_dar_can_shared=yes ;;
12449      *) _lt_dar_can_shared=$GCC ;;
12450   esac
12451   if test "$_lt_dar_can_shared" = "yes"; then
12452     output_verbose_link_cmd=func_echo_all
12453     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}"
12454     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12455     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}"
12456     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}"
12457        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12458       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}"
12459       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}"
12460     fi
12461
12462   else
12463   ld_shlibs_CXX=no
12464   fi
12465
12466         ;;
12467
12468       dgux*)
12469         case $cc_basename in
12470           ec++*)
12471             # FIXME: insert proper C++ library support
12472             ld_shlibs_CXX=no
12473             ;;
12474           ghcx*)
12475             # Green Hills C++ Compiler
12476             # FIXME: insert proper C++ library support
12477             ld_shlibs_CXX=no
12478             ;;
12479           *)
12480             # FIXME: insert proper C++ library support
12481             ld_shlibs_CXX=no
12482             ;;
12483         esac
12484         ;;
12485
12486       freebsd[12]*)
12487         # C++ shared libraries reported to be fairly broken before
12488         # switch to ELF
12489         ld_shlibs_CXX=no
12490         ;;
12491
12492       freebsd-elf*)
12493         archive_cmds_need_lc_CXX=no
12494         ;;
12495
12496       freebsd* | dragonfly*)
12497         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12498         # conventions
12499         ld_shlibs_CXX=yes
12500         ;;
12501
12502       gnu*)
12503         ;;
12504
12505       haiku*)
12506         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507         link_all_deplibs_CXX=yes
12508         ;;
12509
12510       hpux9*)
12511         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12512         hardcode_libdir_separator_CXX=:
12513         export_dynamic_flag_spec_CXX='${wl}-E'
12514         hardcode_direct_CXX=yes
12515         hardcode_minus_L_CXX=yes # Not in the search PATH,
12516                                              # but as the default
12517                                              # location of the library.
12518
12519         case $cc_basename in
12520           CC*)
12521             # FIXME: insert proper C++ library support
12522             ld_shlibs_CXX=no
12523             ;;
12524           aCC*)
12525             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'
12526             # Commands to make compiler produce verbose output that lists
12527             # what "hidden" libraries, object files and flags are used when
12528             # linking a shared library.
12529             #
12530             # There doesn't appear to be a way to prevent this compiler from
12531             # explicitly linking system object files so we need to strip them
12532             # from the output so that they don't get included in the library
12533             # dependencies.
12534             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"'
12535             ;;
12536           *)
12537             if test "$GXX" = yes; then
12538               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'
12539             else
12540               # FIXME: insert proper C++ library support
12541               ld_shlibs_CXX=no
12542             fi
12543             ;;
12544         esac
12545         ;;
12546
12547       hpux10*|hpux11*)
12548         if test $with_gnu_ld = no; then
12549           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12550           hardcode_libdir_separator_CXX=:
12551
12552           case $host_cpu in
12553             hppa*64*|ia64*)
12554               ;;
12555             *)
12556               export_dynamic_flag_spec_CXX='${wl}-E'
12557               ;;
12558           esac
12559         fi
12560         case $host_cpu in
12561           hppa*64*|ia64*)
12562             hardcode_direct_CXX=no
12563             hardcode_shlibpath_var_CXX=no
12564             ;;
12565           *)
12566             hardcode_direct_CXX=yes
12567             hardcode_direct_absolute_CXX=yes
12568             hardcode_minus_L_CXX=yes # Not in the search PATH,
12569                                                  # but as the default
12570                                                  # location of the library.
12571             ;;
12572         esac
12573
12574         case $cc_basename in
12575           CC*)
12576             # FIXME: insert proper C++ library support
12577             ld_shlibs_CXX=no
12578             ;;
12579           aCC*)
12580             case $host_cpu in
12581               hppa*64*)
12582                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12583                 ;;
12584               ia64*)
12585                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586                 ;;
12587               *)
12588                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589                 ;;
12590             esac
12591             # Commands to make compiler produce verbose output that lists
12592             # what "hidden" libraries, object files and flags are used when
12593             # linking a shared library.
12594             #
12595             # There doesn't appear to be a way to prevent this compiler from
12596             # explicitly linking system object files so we need to strip them
12597             # from the output so that they don't get included in the library
12598             # dependencies.
12599             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"'
12600             ;;
12601           *)
12602             if test "$GXX" = yes; then
12603               if test $with_gnu_ld = no; then
12604                 case $host_cpu in
12605                   hppa*64*)
12606                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12607                     ;;
12608                   ia64*)
12609                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610                     ;;
12611                   *)
12612                     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'
12613                     ;;
12614                 esac
12615               fi
12616             else
12617               # FIXME: insert proper C++ library support
12618               ld_shlibs_CXX=no
12619             fi
12620             ;;
12621         esac
12622         ;;
12623
12624       interix[3-9]*)
12625         hardcode_direct_CXX=no
12626         hardcode_shlibpath_var_CXX=no
12627         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12628         export_dynamic_flag_spec_CXX='${wl}-E'
12629         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12630         # Instead, shared libraries are loaded at an image base (0x10000000 by
12631         # default) and relocated if they conflict, which is a slow very memory
12632         # consuming and fragmenting process.  To avoid this, we pick a random,
12633         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12634         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12635         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'
12636         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'
12637         ;;
12638       irix5* | irix6*)
12639         case $cc_basename in
12640           CC*)
12641             # SGI C++
12642             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'
12643
12644             # Archives containing C++ object files must be created using
12645             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12646             # necessary to make sure instantiated templates are included
12647             # in the archive.
12648             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12649             ;;
12650           *)
12651             if test "$GXX" = yes; then
12652               if test "$with_gnu_ld" = no; then
12653                 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'
12654               else
12655                 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'
12656               fi
12657             fi
12658             link_all_deplibs_CXX=yes
12659             ;;
12660         esac
12661         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12662         hardcode_libdir_separator_CXX=:
12663         inherit_rpath_CXX=yes
12664         ;;
12665
12666       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12667         case $cc_basename in
12668           KCC*)
12669             # Kuck and Associates, Inc. (KAI) C++ Compiler
12670
12671             # KCC will only create a shared library if the output file
12672             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673             # to its proper name (with version) after linking.
12674             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'
12675             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'
12676             # Commands to make compiler produce verbose output that lists
12677             # what "hidden" libraries, object files and flags are used when
12678             # linking a shared library.
12679             #
12680             # There doesn't appear to be a way to prevent this compiler from
12681             # explicitly linking system object files so we need to strip them
12682             # from the output so that they don't get included in the library
12683             # dependencies.
12684             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"'
12685
12686             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12687             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12688
12689             # Archives containing C++ object files must be created using
12690             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12691             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12692             ;;
12693           icpc* | ecpc* )
12694             # Intel C++
12695             with_gnu_ld=yes
12696             # version 8.0 and above of icpc choke on multiply defined symbols
12697             # if we add $predep_objects and $postdep_objects, however 7.1 and
12698             # earlier do not add the objects themselves.
12699             case `$CC -V 2>&1` in
12700               *"Version 7."*)
12701                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702                 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'
12703                 ;;
12704               *)  # Version 8.0 or newer
12705                 tmp_idyn=
12706                 case $host_cpu in
12707                   ia64*) tmp_idyn=' -i_dynamic';;
12708                 esac
12709                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710                 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'
12711                 ;;
12712             esac
12713             archive_cmds_need_lc_CXX=no
12714             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12715             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12716             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12717             ;;
12718           pgCC* | pgcpp*)
12719             # Portland Group C++ compiler
12720             case `$CC -V` in
12721             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12722               prelink_cmds_CXX='tpldir=Template.dir~
12723                 rm -rf $tpldir~
12724                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12725                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12726               old_archive_cmds_CXX='tpldir=Template.dir~
12727                 rm -rf $tpldir~
12728                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12729                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12730                 $RANLIB $oldlib'
12731               archive_cmds_CXX='tpldir=Template.dir~
12732                 rm -rf $tpldir~
12733                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12735               archive_expsym_cmds_CXX='tpldir=Template.dir~
12736                 rm -rf $tpldir~
12737                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12738                 $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'
12739               ;;
12740             *) # Version 6 and above use weak symbols
12741               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12742               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'
12743               ;;
12744             esac
12745
12746             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12747             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12748             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'
12749             ;;
12750           cxx*)
12751             # Compaq C++
12752             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753             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'
12754
12755             runpath_var=LD_RUN_PATH
12756             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757             hardcode_libdir_separator_CXX=:
12758
12759             # Commands to make compiler produce verbose output that lists
12760             # what "hidden" libraries, object files and flags are used when
12761             # linking a shared library.
12762             #
12763             # There doesn't appear to be a way to prevent this compiler from
12764             # explicitly linking system object files so we need to strip them
12765             # from the output so that they don't get included in the library
12766             # dependencies.
12767             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'
12768             ;;
12769           xl* | mpixl* | bgxl*)
12770             # IBM XL 8.0 on PPC, with GNU ld
12771             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774             if test "x$supports_anon_versioning" = xyes; then
12775               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12776                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12777                 echo "local: *; };" >> $output_objdir/$libname.ver~
12778                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12779             fi
12780             ;;
12781           *)
12782             case `$CC -V 2>&1 | sed 5q` in
12783             *Sun\ C*)
12784               # Sun C++ 5.9
12785               no_undefined_flag_CXX=' -zdefs'
12786               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787               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'
12788               hardcode_libdir_flag_spec_CXX='-R$libdir'
12789               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'
12790               compiler_needs_object_CXX=yes
12791
12792               # Not sure whether something based on
12793               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12794               # would be better.
12795               output_verbose_link_cmd='func_echo_all'
12796
12797               # Archives containing C++ object files must be created using
12798               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12799               # necessary to make sure instantiated templates are included
12800               # in the archive.
12801               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12802               ;;
12803             esac
12804             ;;
12805         esac
12806         ;;
12807
12808       lynxos*)
12809         # FIXME: insert proper C++ library support
12810         ld_shlibs_CXX=no
12811         ;;
12812
12813       m88k*)
12814         # FIXME: insert proper C++ library support
12815         ld_shlibs_CXX=no
12816         ;;
12817
12818       mvs*)
12819         case $cc_basename in
12820           cxx*)
12821             # FIXME: insert proper C++ library support
12822             ld_shlibs_CXX=no
12823             ;;
12824           *)
12825             # FIXME: insert proper C++ library support
12826             ld_shlibs_CXX=no
12827             ;;
12828         esac
12829         ;;
12830
12831       netbsd*)
12832         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12833           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12834           wlarc=
12835           hardcode_libdir_flag_spec_CXX='-R$libdir'
12836           hardcode_direct_CXX=yes
12837           hardcode_shlibpath_var_CXX=no
12838         fi
12839         # Workaround some broken pre-1.5 toolchains
12840         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12841         ;;
12842
12843       *nto* | *qnx*)
12844         ld_shlibs_CXX=yes
12845         ;;
12846
12847       openbsd2*)
12848         # C++ shared libraries are fairly broken
12849         ld_shlibs_CXX=no
12850         ;;
12851
12852       openbsd*)
12853         if test -f /usr/libexec/ld.so; then
12854           hardcode_direct_CXX=yes
12855           hardcode_shlibpath_var_CXX=no
12856           hardcode_direct_absolute_CXX=yes
12857           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12858           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12860             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12861             export_dynamic_flag_spec_CXX='${wl}-E'
12862             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12863           fi
12864           output_verbose_link_cmd=func_echo_all
12865         else
12866           ld_shlibs_CXX=no
12867         fi
12868         ;;
12869
12870       osf3* | osf4* | osf5*)
12871         case $cc_basename in
12872           KCC*)
12873             # Kuck and Associates, Inc. (KAI) C++ Compiler
12874
12875             # KCC will only create a shared library if the output file
12876             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12877             # to its proper name (with version) after linking.
12878             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'
12879
12880             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881             hardcode_libdir_separator_CXX=:
12882
12883             # Archives containing C++ object files must be created using
12884             # the KAI C++ compiler.
12885             case $host in
12886               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12887               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12888             esac
12889             ;;
12890           RCC*)
12891             # Rational C++ 2.4.1
12892             # FIXME: insert proper C++ library support
12893             ld_shlibs_CXX=no
12894             ;;
12895           cxx*)
12896             case $host in
12897               osf3*)
12898                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12899                 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'
12900                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12901                 ;;
12902               *)
12903                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12904                 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'
12905                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12906                   echo "-hidden">> $lib.exp~
12907                   $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~
12908                   $RM $lib.exp'
12909                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12910                 ;;
12911             esac
12912
12913             hardcode_libdir_separator_CXX=:
12914
12915             # Commands to make compiler produce verbose output that lists
12916             # what "hidden" libraries, object files and flags are used when
12917             # linking a shared library.
12918             #
12919             # There doesn't appear to be a way to prevent this compiler from
12920             # explicitly linking system object files so we need to strip them
12921             # from the output so that they don't get included in the library
12922             # dependencies.
12923             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"'
12924             ;;
12925           *)
12926             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12927               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12928               case $host in
12929                 osf3*)
12930                   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'
12931                   ;;
12932                 *)
12933                   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'
12934                   ;;
12935               esac
12936
12937               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938               hardcode_libdir_separator_CXX=:
12939
12940               # Commands to make compiler produce verbose output that lists
12941               # what "hidden" libraries, object files and flags are used when
12942               # linking a shared library.
12943               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12944
12945             else
12946               # FIXME: insert proper C++ library support
12947               ld_shlibs_CXX=no
12948             fi
12949             ;;
12950         esac
12951         ;;
12952
12953       psos*)
12954         # FIXME: insert proper C++ library support
12955         ld_shlibs_CXX=no
12956         ;;
12957
12958       sunos4*)
12959         case $cc_basename in
12960           CC*)
12961             # Sun C++ 4.x
12962             # FIXME: insert proper C++ library support
12963             ld_shlibs_CXX=no
12964             ;;
12965           lcc*)
12966             # Lucid
12967             # FIXME: insert proper C++ library support
12968             ld_shlibs_CXX=no
12969             ;;
12970           *)
12971             # FIXME: insert proper C++ library support
12972             ld_shlibs_CXX=no
12973             ;;
12974         esac
12975         ;;
12976
12977       solaris*)
12978         case $cc_basename in
12979           CC* | sunCC*)
12980             # Sun C++ 4.2, 5.x and Centerline C++
12981             archive_cmds_need_lc_CXX=yes
12982             no_undefined_flag_CXX=' -zdefs'
12983             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985               $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'
12986
12987             hardcode_libdir_flag_spec_CXX='-R$libdir'
12988             hardcode_shlibpath_var_CXX=no
12989             case $host_os in
12990               solaris2.[0-5] | solaris2.[0-5].*) ;;
12991               *)
12992                 # The compiler driver will combine and reorder linker options,
12993                 # but understands `-z linker_flag'.
12994                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12995                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12996                 ;;
12997             esac
12998             link_all_deplibs_CXX=yes
12999
13000             output_verbose_link_cmd='func_echo_all'
13001
13002             # Archives containing C++ object files must be created using
13003             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13004             # necessary to make sure instantiated templates are included
13005             # in the archive.
13006             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13007             ;;
13008           gcx*)
13009             # Green Hills C++ Compiler
13010             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13011
13012             # The C++ compiler must be used to create the archive.
13013             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13014             ;;
13015           *)
13016             # GNU C++ compiler with Solaris linker
13017             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13018               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13019               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13020                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13021                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13022                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13023
13024                 # Commands to make compiler produce verbose output that lists
13025                 # what "hidden" libraries, object files and flags are used when
13026                 # linking a shared library.
13027                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13028               else
13029                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13030                 # platform.
13031                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13032                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13034
13035                 # Commands to make compiler produce verbose output that lists
13036                 # what "hidden" libraries, object files and flags are used when
13037                 # linking a shared library.
13038                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13039               fi
13040
13041               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13042               case $host_os in
13043                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13044                 *)
13045                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13046                   ;;
13047               esac
13048             fi
13049             ;;
13050         esac
13051         ;;
13052
13053     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13054       no_undefined_flag_CXX='${wl}-z,text'
13055       archive_cmds_need_lc_CXX=no
13056       hardcode_shlibpath_var_CXX=no
13057       runpath_var='LD_RUN_PATH'
13058
13059       case $cc_basename in
13060         CC*)
13061           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063           ;;
13064         *)
13065           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067           ;;
13068       esac
13069       ;;
13070
13071       sysv5* | sco3.2v5* | sco5v6*)
13072         # Note: We can NOT use -z defs as we might desire, because we do not
13073         # link with -lc, and that would cause any symbols used from libc to
13074         # always be unresolved, which means just about no library would
13075         # ever link correctly.  If we're not using GNU ld we use -z text
13076         # though, which does catch some bad symbols but isn't as heavy-handed
13077         # as -z defs.
13078         no_undefined_flag_CXX='${wl}-z,text'
13079         allow_undefined_flag_CXX='${wl}-z,nodefs'
13080         archive_cmds_need_lc_CXX=no
13081         hardcode_shlibpath_var_CXX=no
13082         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13083         hardcode_libdir_separator_CXX=':'
13084         link_all_deplibs_CXX=yes
13085         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13086         runpath_var='LD_RUN_PATH'
13087
13088         case $cc_basename in
13089           CC*)
13090             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13093               '"$old_archive_cmds_CXX"
13094             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13095               '"$reload_cmds_CXX"
13096             ;;
13097           *)
13098             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100             ;;
13101         esac
13102       ;;
13103
13104       tandem*)
13105         case $cc_basename in
13106           NCC*)
13107             # NonStop-UX NCC 3.20
13108             # FIXME: insert proper C++ library support
13109             ld_shlibs_CXX=no
13110             ;;
13111           *)
13112             # FIXME: insert proper C++ library support
13113             ld_shlibs_CXX=no
13114             ;;
13115         esac
13116         ;;
13117
13118       vxworks*)
13119         # FIXME: insert proper C++ library support
13120         ld_shlibs_CXX=no
13121         ;;
13122
13123       *)
13124         # FIXME: insert proper C++ library support
13125         ld_shlibs_CXX=no
13126         ;;
13127     esac
13128
13129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13130 $as_echo "$ld_shlibs_CXX" >&6; }
13131     test "$ld_shlibs_CXX" = no && can_build_shared=no
13132
13133     GCC_CXX="$GXX"
13134     LD_CXX="$LD"
13135
13136     ## CAVEAT EMPTOR:
13137     ## There is no encapsulation within the following macros, do not change
13138     ## the running order or otherwise move them around unless you know exactly
13139     ## what you are doing...
13140     # Dependencies to place before and after the object being linked:
13141 predep_objects_CXX=
13142 postdep_objects_CXX=
13143 predeps_CXX=
13144 postdeps_CXX=
13145 compiler_lib_search_path_CXX=
13146
13147 cat > conftest.$ac_ext <<_LT_EOF
13148 class Foo
13149 {
13150 public:
13151   Foo (void) { a = 0; }
13152 private:
13153   int a;
13154 };
13155 _LT_EOF
13156
13157
13158 _lt_libdeps_save_CFLAGS=$CFLAGS
13159 case "$CC $CFLAGS " in #(
13160 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13161 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13162 esac
13163
13164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13165   (eval $ac_compile) 2>&5
13166   ac_status=$?
13167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168   test $ac_status = 0; }; then
13169   # Parse the compiler output and extract the necessary
13170   # objects, libraries and library flags.
13171
13172   # Sentinel used to keep track of whether or not we are before
13173   # the conftest object file.
13174   pre_test_object_deps_done=no
13175
13176   for p in `eval "$output_verbose_link_cmd"`; do
13177     case ${prev}${p} in
13178
13179     -L* | -R* | -l*)
13180        # Some compilers place space between "-{L,R}" and the path.
13181        # Remove the space.
13182        if test $p = "-L" ||
13183           test $p = "-R"; then
13184          prev=$p
13185          continue
13186        fi
13187
13188        # Expand the sysroot to ease extracting the directories later.
13189        if test -z "$prev"; then
13190          case $p in
13191          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13192          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13193          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13194          esac
13195        fi
13196        case $p in
13197        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13198        esac
13199        if test "$pre_test_object_deps_done" = no; then
13200          case ${prev} in
13201          -L | -R)
13202            # Internal compiler library paths should come after those
13203            # provided the user.  The postdeps already come after the
13204            # user supplied libs so there is no need to process them.
13205            if test -z "$compiler_lib_search_path_CXX"; then
13206              compiler_lib_search_path_CXX="${prev}${p}"
13207            else
13208              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13209            fi
13210            ;;
13211          # The "-l" case would never come before the object being
13212          # linked, so don't bother handling this case.
13213          esac
13214        else
13215          if test -z "$postdeps_CXX"; then
13216            postdeps_CXX="${prev}${p}"
13217          else
13218            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13219          fi
13220        fi
13221        prev=
13222        ;;
13223
13224     *.lto.$objext) ;; # Ignore GCC LTO objects
13225     *.$objext)
13226        # This assumes that the test object file only shows up
13227        # once in the compiler output.
13228        if test "$p" = "conftest.$objext"; then
13229          pre_test_object_deps_done=yes
13230          continue
13231        fi
13232
13233        if test "$pre_test_object_deps_done" = no; then
13234          if test -z "$predep_objects_CXX"; then
13235            predep_objects_CXX="$p"
13236          else
13237            predep_objects_CXX="$predep_objects_CXX $p"
13238          fi
13239        else
13240          if test -z "$postdep_objects_CXX"; then
13241            postdep_objects_CXX="$p"
13242          else
13243            postdep_objects_CXX="$postdep_objects_CXX $p"
13244          fi
13245        fi
13246        ;;
13247
13248     *) ;; # Ignore the rest.
13249
13250     esac
13251   done
13252
13253   # Clean up.
13254   rm -f a.out a.exe
13255 else
13256   echo "libtool.m4: error: problem compiling CXX test program"
13257 fi
13258
13259 $RM -f confest.$objext
13260 CFLAGS=$_lt_libdeps_save_CFLAGS
13261
13262 # PORTME: override above test on systems where it is broken
13263 case $host_os in
13264 interix[3-9]*)
13265   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13266   # hack all around it, let's just trust "g++" to DTRT.
13267   predep_objects_CXX=
13268   postdep_objects_CXX=
13269   postdeps_CXX=
13270   ;;
13271
13272 linux*)
13273   case `$CC -V 2>&1 | sed 5q` in
13274   *Sun\ C*)
13275     # Sun C++ 5.9
13276
13277     # The more standards-conforming stlport4 library is
13278     # incompatible with the Cstd library. Avoid specifying
13279     # it if it's in CXXFLAGS. Ignore libCrun as
13280     # -library=stlport4 depends on it.
13281     case " $CXX $CXXFLAGS " in
13282     *" -library=stlport4 "*)
13283       solaris_use_stlport4=yes
13284       ;;
13285     esac
13286
13287     if test "$solaris_use_stlport4" != yes; then
13288       postdeps_CXX='-library=Cstd -library=Crun'
13289     fi
13290     ;;
13291   esac
13292   ;;
13293
13294 solaris*)
13295   case $cc_basename in
13296   CC* | sunCC*)
13297     # The more standards-conforming stlport4 library is
13298     # incompatible with the Cstd library. Avoid specifying
13299     # it if it's in CXXFLAGS. Ignore libCrun as
13300     # -library=stlport4 depends on it.
13301     case " $CXX $CXXFLAGS " in
13302     *" -library=stlport4 "*)
13303       solaris_use_stlport4=yes
13304       ;;
13305     esac
13306
13307     # Adding this requires a known-good setup of shared libraries for
13308     # Sun compiler versions before 5.6, else PIC objects from an old
13309     # archive will be linked into the output, leading to subtle bugs.
13310     if test "$solaris_use_stlport4" != yes; then
13311       postdeps_CXX='-library=Cstd -library=Crun'
13312     fi
13313     ;;
13314   esac
13315   ;;
13316 esac
13317
13318
13319 case " $postdeps_CXX " in
13320 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13321 esac
13322  compiler_lib_search_dirs_CXX=
13323 if test -n "${compiler_lib_search_path_CXX}"; then
13324  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13325 fi
13326
13327     
13328     
13329     
13330
13331
13332     
13333     
13334     
13335
13336
13337     
13338     
13339     
13340
13341
13342     
13343     
13344     
13345
13346
13347     
13348     
13349     
13350
13351
13352     
13353     
13354     
13355
13356
13357     lt_prog_compiler_wl_CXX=
13358 lt_prog_compiler_pic_CXX=
13359 lt_prog_compiler_static_CXX=
13360
13361
13362   # C++ specific cases for pic, static, wl, etc.
13363   if test "$GXX" = yes; then
13364     lt_prog_compiler_wl_CXX='-Wl,'
13365     lt_prog_compiler_static_CXX='-static'
13366
13367     case $host_os in
13368     aix*)
13369       # All AIX code is PIC.
13370       if test "$host_cpu" = ia64; then
13371         # AIX 5 now supports IA64 processor
13372         lt_prog_compiler_static_CXX='-Bstatic'
13373       fi
13374       ;;
13375
13376     amigaos*)
13377       case $host_cpu in
13378       powerpc)
13379             # see comment about AmigaOS4 .so support
13380             lt_prog_compiler_pic_CXX='-fPIC'
13381         ;;
13382       m68k)
13383             # FIXME: we need at least 68020 code to build shared libraries, but
13384             # adding the `-m68020' flag to GCC prevents building anything better,
13385             # like `-m68040'.
13386             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13387         ;;
13388       esac
13389       ;;
13390
13391     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13392       # PIC is the default for these OSes.
13393       ;;
13394     mingw* | cygwin* | os2* | pw32* | cegcc*)
13395       # This hack is so that the source file can tell whether it is being
13396       # built for inclusion in a dll (and should export symbols for example).
13397       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13398       # (--disable-auto-import) libraries
13399       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13400       ;;
13401     darwin* | rhapsody*)
13402       # PIC is the default on this platform
13403       # Common symbols not allowed in MH_DYLIB files
13404       lt_prog_compiler_pic_CXX='-fno-common'
13405       ;;
13406     *djgpp*)
13407       # DJGPP does not support shared libraries at all
13408       lt_prog_compiler_pic_CXX=
13409       ;;
13410     haiku*)
13411       # PIC is the default for Haiku.
13412       # The "-static" flag exists, but is broken.
13413       lt_prog_compiler_static_CXX=
13414       ;;
13415     interix[3-9]*)
13416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13417       # Instead, we relocate shared libraries at runtime.
13418       ;;
13419     sysv4*MP*)
13420       if test -d /usr/nec; then
13421         lt_prog_compiler_pic_CXX=-Kconform_pic
13422       fi
13423       ;;
13424     hpux*)
13425       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13426       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13427       # sets the default TLS model and affects inlining.
13428       case $host_cpu in
13429       hppa*64*)
13430         ;;
13431       *)
13432         lt_prog_compiler_pic_CXX='-fPIC'
13433         ;;
13434       esac
13435       ;;
13436     *qnx* | *nto*)
13437       # QNX uses GNU C++, but need to define -shared option too, otherwise
13438       # it will coredump.
13439       lt_prog_compiler_pic_CXX='-fPIC -shared'
13440       ;;
13441     *)
13442       lt_prog_compiler_pic_CXX='-fPIC'
13443       ;;
13444     esac
13445   else
13446     case $host_os in
13447       aix[4-9]*)
13448         # All AIX code is PIC.
13449         if test "$host_cpu" = ia64; then
13450           # AIX 5 now supports IA64 processor
13451           lt_prog_compiler_static_CXX='-Bstatic'
13452         else
13453           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13454         fi
13455         ;;
13456       chorus*)
13457         case $cc_basename in
13458         cxch68*)
13459           # Green Hills C++ Compiler
13460           # _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"
13461           ;;
13462         esac
13463         ;;
13464       mingw* | cygwin* | os2* | pw32* | cegcc*)
13465         # This hack is so that the source file can tell whether it is being
13466         # built for inclusion in a dll (and should export symbols for example).
13467         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13468         ;;
13469       dgux*)
13470         case $cc_basename in
13471           ec++*)
13472             lt_prog_compiler_pic_CXX='-KPIC'
13473             ;;
13474           ghcx*)
13475             # Green Hills C++ Compiler
13476             lt_prog_compiler_pic_CXX='-pic'
13477             ;;
13478           *)
13479             ;;
13480         esac
13481         ;;
13482       freebsd* | dragonfly*)
13483         # FreeBSD uses GNU C++
13484         ;;
13485       hpux9* | hpux10* | hpux11*)
13486         case $cc_basename in
13487           CC*)
13488             lt_prog_compiler_wl_CXX='-Wl,'
13489             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13490             if test "$host_cpu" != ia64; then
13491               lt_prog_compiler_pic_CXX='+Z'
13492             fi
13493             ;;
13494           aCC*)
13495             lt_prog_compiler_wl_CXX='-Wl,'
13496             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13497             case $host_cpu in
13498             hppa*64*|ia64*)
13499               # +Z the default
13500               ;;
13501             *)
13502               lt_prog_compiler_pic_CXX='+Z'
13503               ;;
13504             esac
13505             ;;
13506           *)
13507             ;;
13508         esac
13509         ;;
13510       interix*)
13511         # This is c89, which is MS Visual C++ (no shared libs)
13512         # Anyone wants to do a port?
13513         ;;
13514       irix5* | irix6* | nonstopux*)
13515         case $cc_basename in
13516           CC*)
13517             lt_prog_compiler_wl_CXX='-Wl,'
13518             lt_prog_compiler_static_CXX='-non_shared'
13519             # CC pic flag -KPIC is the default.
13520             ;;
13521           *)
13522             ;;
13523         esac
13524         ;;
13525       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13526         case $cc_basename in
13527           KCC*)
13528             # KAI C++ Compiler
13529             lt_prog_compiler_wl_CXX='--backend -Wl,'
13530             lt_prog_compiler_pic_CXX='-fPIC'
13531             ;;
13532           ecpc* )
13533             # old Intel C++ for x86_64 which still supported -KPIC.
13534             lt_prog_compiler_wl_CXX='-Wl,'
13535             lt_prog_compiler_pic_CXX='-KPIC'
13536             lt_prog_compiler_static_CXX='-static'
13537             ;;
13538           icpc* )
13539             # Intel C++, used to be incompatible with GCC.
13540             # ICC 10 doesn't accept -KPIC any more.
13541             lt_prog_compiler_wl_CXX='-Wl,'
13542             lt_prog_compiler_pic_CXX='-fPIC'
13543             lt_prog_compiler_static_CXX='-static'
13544             ;;
13545           pgCC* | pgcpp*)
13546             # Portland Group C++ compiler
13547             lt_prog_compiler_wl_CXX='-Wl,'
13548             lt_prog_compiler_pic_CXX='-fpic'
13549             lt_prog_compiler_static_CXX='-Bstatic'
13550             ;;
13551           cxx*)
13552             # Compaq C++
13553             # Make sure the PIC flag is empty.  It appears that all Alpha
13554             # Linux and Compaq Tru64 Unix objects are PIC.
13555             lt_prog_compiler_pic_CXX=
13556             lt_prog_compiler_static_CXX='-non_shared'
13557             ;;
13558           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13559             # IBM XL 8.0, 9.0 on PPC and BlueGene
13560             lt_prog_compiler_wl_CXX='-Wl,'
13561             lt_prog_compiler_pic_CXX='-qpic'
13562             lt_prog_compiler_static_CXX='-qstaticlink'
13563             ;;
13564           *)
13565             case `$CC -V 2>&1 | sed 5q` in
13566             *Sun\ C*)
13567               # Sun C++ 5.9
13568               lt_prog_compiler_pic_CXX='-KPIC'
13569               lt_prog_compiler_static_CXX='-Bstatic'
13570               lt_prog_compiler_wl_CXX='-Qoption ld '
13571               ;;
13572             esac
13573             ;;
13574         esac
13575         ;;
13576       lynxos*)
13577         ;;
13578       m88k*)
13579         ;;
13580       mvs*)
13581         case $cc_basename in
13582           cxx*)
13583             lt_prog_compiler_pic_CXX='-W c,exportall'
13584             ;;
13585           *)
13586             ;;
13587         esac
13588         ;;
13589       netbsd*)
13590         ;;
13591       *qnx* | *nto*)
13592         # QNX uses GNU C++, but need to define -shared option too, otherwise
13593         # it will coredump.
13594         lt_prog_compiler_pic_CXX='-fPIC -shared'
13595         ;;
13596       osf3* | osf4* | osf5*)
13597         case $cc_basename in
13598           KCC*)
13599             lt_prog_compiler_wl_CXX='--backend -Wl,'
13600             ;;
13601           RCC*)
13602             # Rational C++ 2.4.1
13603             lt_prog_compiler_pic_CXX='-pic'
13604             ;;
13605           cxx*)
13606             # Digital/Compaq C++
13607             lt_prog_compiler_wl_CXX='-Wl,'
13608             # Make sure the PIC flag is empty.  It appears that all Alpha
13609             # Linux and Compaq Tru64 Unix objects are PIC.
13610             lt_prog_compiler_pic_CXX=
13611             lt_prog_compiler_static_CXX='-non_shared'
13612             ;;
13613           *)
13614             ;;
13615         esac
13616         ;;
13617       psos*)
13618         ;;
13619       solaris*)
13620         case $cc_basename in
13621           CC* | sunCC*)
13622             # Sun C++ 4.2, 5.x and Centerline C++
13623             lt_prog_compiler_pic_CXX='-KPIC'
13624             lt_prog_compiler_static_CXX='-Bstatic'
13625             lt_prog_compiler_wl_CXX='-Qoption ld '
13626             ;;
13627           gcx*)
13628             # Green Hills C++ Compiler
13629             lt_prog_compiler_pic_CXX='-PIC'
13630             ;;
13631           *)
13632             ;;
13633         esac
13634         ;;
13635       sunos4*)
13636         case $cc_basename in
13637           CC*)
13638             # Sun C++ 4.x
13639             lt_prog_compiler_pic_CXX='-pic'
13640             lt_prog_compiler_static_CXX='-Bstatic'
13641             ;;
13642           lcc*)
13643             # Lucid
13644             lt_prog_compiler_pic_CXX='-pic'
13645             ;;
13646           *)
13647             ;;
13648         esac
13649         ;;
13650       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13651         case $cc_basename in
13652           CC*)
13653             lt_prog_compiler_wl_CXX='-Wl,'
13654             lt_prog_compiler_pic_CXX='-KPIC'
13655             lt_prog_compiler_static_CXX='-Bstatic'
13656             ;;
13657         esac
13658         ;;
13659       tandem*)
13660         case $cc_basename in
13661           NCC*)
13662             # NonStop-UX NCC 3.20
13663             lt_prog_compiler_pic_CXX='-KPIC'
13664             ;;
13665           *)
13666             ;;
13667         esac
13668         ;;
13669       vxworks*)
13670         ;;
13671       *)
13672         lt_prog_compiler_can_build_shared_CXX=no
13673         ;;
13674     esac
13675   fi
13676
13677 case $host_os in
13678   # For platforms which do not support PIC, -DPIC is meaningless:
13679   *djgpp*)
13680     lt_prog_compiler_pic_CXX=
13681     ;;
13682   *)
13683     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13684     ;;
13685 esac
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13689 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13690   $as_echo_n "(cached) " >&6
13691 else
13692   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13695 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13696 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13697
13698 #
13699 # Check to make sure the PIC flag actually works.
13700 #
13701 if test -n "$lt_prog_compiler_pic_CXX"; then
13702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13704 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   lt_cv_prog_compiler_pic_works_CXX=no
13708    ac_outfile=conftest.$ac_objext
13709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13710    lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13711    # Insert the option either (1) after the last *FLAGS variable, or
13712    # (2) before a word containing "conftest.", or (3) at the end.
13713    # Note that $ac_compile itself does not contain backslashes and begins
13714    # with a dollar sign (not a hyphen), so the echo should work correctly.
13715    # The option is referenced via a variable to avoid confusing sed.
13716    lt_compile=`echo "$ac_compile" | $SED \
13717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719    -e 's:$: $lt_compiler_flag:'`
13720    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13721    (eval "$lt_compile" 2>conftest.err)
13722    ac_status=$?
13723    cat conftest.err >&5
13724    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725    if (exit $ac_status) && test -s "$ac_outfile"; then
13726      # The compiler can only warn and ignore the option if not recognized
13727      # So say no if there are warnings other than the usual output.
13728      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13731        lt_cv_prog_compiler_pic_works_CXX=yes
13732      fi
13733    fi
13734    $RM conftest*
13735
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13739
13740 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13741     case $lt_prog_compiler_pic_CXX in
13742      "" | " "*) ;;
13743      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13744      esac
13745 else
13746     lt_prog_compiler_pic_CXX=
13747      lt_prog_compiler_can_build_shared_CXX=no
13748 fi
13749
13750 fi
13751
13752
13753
13754
13755
13756 #
13757 # Check to make sure the static flag actually works.
13758 #
13759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   lt_cv_prog_compiler_static_works_CXX=no
13766    save_LDFLAGS="$LDFLAGS"
13767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13770      # The linker can only warn and ignore the option if not recognized
13771      # So say no if there are warnings
13772      if test -s conftest.err; then
13773        # Append any errors to the config.log.
13774        cat conftest.err 1>&5
13775        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13777        if diff conftest.exp conftest.er2 >/dev/null; then
13778          lt_cv_prog_compiler_static_works_CXX=yes
13779        fi
13780      else
13781        lt_cv_prog_compiler_static_works_CXX=yes
13782      fi
13783    fi
13784    $RM -r conftest*
13785    LDFLAGS="$save_LDFLAGS"
13786
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13790
13791 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13792     :
13793 else
13794     lt_prog_compiler_static_CXX=
13795 fi
13796
13797
13798
13799
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13803   $as_echo_n "(cached) " >&6
13804 else
13805   lt_cv_prog_compiler_c_o_CXX=no
13806    $RM -r conftest 2>/dev/null
13807    mkdir conftest
13808    cd conftest
13809    mkdir out
13810    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812    lt_compiler_flag="-o out/conftest2.$ac_objext"
13813    # Insert the option either (1) after the last *FLAGS variable, or
13814    # (2) before a word containing "conftest.", or (3) at the end.
13815    # Note that $ac_compile itself does not contain backslashes and begins
13816    # with a dollar sign (not a hyphen), so the echo should work correctly.
13817    lt_compile=`echo "$ac_compile" | $SED \
13818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820    -e 's:$: $lt_compiler_flag:'`
13821    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822    (eval "$lt_compile" 2>out/conftest.err)
13823    ac_status=$?
13824    cat out/conftest.err >&5
13825    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827    then
13828      # The compiler can only warn and ignore the option if not recognized
13829      # So say no if there are warnings
13830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833        lt_cv_prog_compiler_c_o_CXX=yes
13834      fi
13835    fi
13836    chmod u+w . 2>&5
13837    $RM conftest*
13838    # SGI C++ compiler will create directory out/ii_files/ for
13839    # template instantiation
13840    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841    $RM out/* && rmdir out
13842    cd ..
13843    $RM -r conftest
13844    $RM conftest*
13845
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13849
13850
13851
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13855   $as_echo_n "(cached) " >&6
13856 else
13857   lt_cv_prog_compiler_c_o_CXX=no
13858    $RM -r conftest 2>/dev/null
13859    mkdir conftest
13860    cd conftest
13861    mkdir out
13862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13863
13864    lt_compiler_flag="-o out/conftest2.$ac_objext"
13865    # Insert the option either (1) after the last *FLAGS variable, or
13866    # (2) before a word containing "conftest.", or (3) at the end.
13867    # Note that $ac_compile itself does not contain backslashes and begins
13868    # with a dollar sign (not a hyphen), so the echo should work correctly.
13869    lt_compile=`echo "$ac_compile" | $SED \
13870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872    -e 's:$: $lt_compiler_flag:'`
13873    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13874    (eval "$lt_compile" 2>out/conftest.err)
13875    ac_status=$?
13876    cat out/conftest.err >&5
13877    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13879    then
13880      # The compiler can only warn and ignore the option if not recognized
13881      # So say no if there are warnings
13882      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885        lt_cv_prog_compiler_c_o_CXX=yes
13886      fi
13887    fi
13888    chmod u+w . 2>&5
13889    $RM conftest*
13890    # SGI C++ compiler will create directory out/ii_files/ for
13891    # template instantiation
13892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893    $RM out/* && rmdir out
13894    cd ..
13895    $RM -r conftest
13896    $RM conftest*
13897
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13901
13902
13903
13904
13905 hard_links="nottested"
13906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13907   # do not overwrite the value of need_locks provided by the user
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13909 $as_echo_n "checking if we can lock with hard links... " >&6; }
13910   hard_links=yes
13911   $RM conftest*
13912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913   touch conftest.a
13914   ln conftest.a conftest.b 2>&5 || hard_links=no
13915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13917 $as_echo "$hard_links" >&6; }
13918   if test "$hard_links" = no; then
13919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13921     need_locks=warn
13922   fi
13923 else
13924   need_locks=no
13925 fi
13926
13927
13928
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13931
13932   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13934   case $host_os in
13935   aix[4-9]*)
13936     # If we're using GNU nm, then we don't want the "-C" option.
13937     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13938     # Also, AIX nm treats weak defined symbols like other global defined
13939     # symbols, whereas GNU nm marks them as "W".
13940     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13941       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'
13942     else
13943       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'
13944     fi
13945     ;;
13946   pw32*)
13947     export_symbols_cmds_CXX="$ltdll_cmds"
13948     ;;
13949   cygwin* | mingw* | cegcc*)
13950     case $cc_basename in
13951     cl*) ;;
13952     *)
13953       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'
13954       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13955       ;;
13956     esac
13957     ;;
13958   *)
13959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960     ;;
13961   esac
13962
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13964 $as_echo "$ld_shlibs_CXX" >&6; }
13965 test "$ld_shlibs_CXX" = no && can_build_shared=no
13966
13967 with_gnu_ld_CXX=$with_gnu_ld
13968
13969
13970
13971
13972
13973
13974 #
13975 # Do we need to explicitly link libc?
13976 #
13977 case "x$archive_cmds_need_lc_CXX" in
13978 x|xyes)
13979   # Assume -lc should be added
13980   archive_cmds_need_lc_CXX=yes
13981
13982   if test "$enable_shared" = yes && test "$GCC" = yes; then
13983     case $archive_cmds_CXX in
13984     *'~'*)
13985       # FIXME: we may have to deal with multi-command sequences.
13986       ;;
13987     '$CC '*)
13988       # Test whether the compiler implicitly links with -lc since on some
13989       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13990       # to ld, don't add -lc before -lgcc.
13991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13993 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   $RM conftest*
13997         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13998
13999         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000   (eval $ac_compile) 2>&5
14001   ac_status=$?
14002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003   test $ac_status = 0; } 2>conftest.err; then
14004           soname=conftest
14005           lib=conftest
14006           libobjs=conftest.$ac_objext
14007           deplibs=
14008           wl=$lt_prog_compiler_wl_CXX
14009           pic_flag=$lt_prog_compiler_pic_CXX
14010           compiler_flags=-v
14011           linker_flags=-v
14012           verstring=
14013           output_objdir=.
14014           libname=conftest
14015           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14016           allow_undefined_flag_CXX=
14017           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14018   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14019   ac_status=$?
14020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021   test $ac_status = 0; }
14022           then
14023             lt_cv_archive_cmds_need_lc_CXX=no
14024           else
14025             lt_cv_archive_cmds_need_lc_CXX=yes
14026           fi
14027           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14028         else
14029           cat conftest.err 1>&5
14030         fi
14031         $RM conftest*
14032         
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14035 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14036       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14037       ;;
14038     esac
14039   fi
14040   ;;
14041 esac
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14107 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14108
14109 library_names_spec=
14110 libname_spec='lib$name'
14111 soname_spec=
14112 shrext_cmds=".so"
14113 postinstall_cmds=
14114 postuninstall_cmds=
14115 finish_cmds=
14116 finish_eval=
14117 shlibpath_var=
14118 shlibpath_overrides_runpath=unknown
14119 version_type=none
14120 dynamic_linker="$host_os ld.so"
14121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14122 need_lib_prefix=unknown
14123 hardcode_into_libs=no
14124
14125 # when you set need_version to no, make sure it does not cause -set_version
14126 # flags to be left without arguments
14127 need_version=unknown
14128
14129 case $host_os in
14130 aix3*)
14131   version_type=linux
14132   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14133   shlibpath_var=LIBPATH
14134
14135   # AIX 3 has no versioning support, so we append a major version to the name.
14136   soname_spec='${libname}${release}${shared_ext}$major'
14137   ;;
14138
14139 aix[4-9]*)
14140   version_type=linux
14141   need_lib_prefix=no
14142   need_version=no
14143   hardcode_into_libs=yes
14144   if test "$host_cpu" = ia64; then
14145     # AIX 5 supports IA64
14146     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14147     shlibpath_var=LD_LIBRARY_PATH
14148   else
14149     # With GCC up to 2.95.x, collect2 would create an import file
14150     # for dependence libraries.  The import file would start with
14151     # the line `#! .'.  This would cause the generated library to
14152     # depend on `.', always an invalid library.  This was fixed in
14153     # development snapshots of GCC prior to 3.0.
14154     case $host_os in
14155       aix4 | aix4.[01] | aix4.[01].*)
14156       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14157            echo ' yes '
14158            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14159         :
14160       else
14161         can_build_shared=no
14162       fi
14163       ;;
14164     esac
14165     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14166     # soname into executable. Probably we can add versioning support to
14167     # collect2, so additional links can be useful in future.
14168     if test "$aix_use_runtimelinking" = yes; then
14169       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14170       # instead of lib<name>.a to let people know that these are not
14171       # typical AIX shared libraries.
14172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173     else
14174       # We preserve .a as extension for shared libraries through AIX4.2
14175       # and later when we are not doing run time linking.
14176       library_names_spec='${libname}${release}.a $libname.a'
14177       soname_spec='${libname}${release}${shared_ext}$major'
14178     fi
14179     shlibpath_var=LIBPATH
14180   fi
14181   ;;
14182
14183 amigaos*)
14184   case $host_cpu in
14185   powerpc)
14186     # Since July 2007 AmigaOS4 officially supports .so libraries.
14187     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189     ;;
14190   m68k)
14191     library_names_spec='$libname.ixlibrary $libname.a'
14192     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14193     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'
14194     ;;
14195   esac
14196   ;;
14197
14198 beos*)
14199   library_names_spec='${libname}${shared_ext}'
14200   dynamic_linker="$host_os ld.so"
14201   shlibpath_var=LIBRARY_PATH
14202   ;;
14203
14204 bsdi[45]*)
14205   version_type=linux
14206   need_version=no
14207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208   soname_spec='${libname}${release}${shared_ext}$major'
14209   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14210   shlibpath_var=LD_LIBRARY_PATH
14211   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14212   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14213   # the default ld.so.conf also contains /usr/contrib/lib and
14214   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14215   # libtool to hard-code these into programs
14216   ;;
14217
14218 cygwin* | mingw* | pw32* | cegcc*)
14219   version_type=windows
14220   shrext_cmds=".dll"
14221   need_version=no
14222   need_lib_prefix=no
14223
14224   case $GCC,$cc_basename in
14225   yes,*)
14226     # gcc
14227     library_names_spec='$libname.dll.a'
14228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14229     postinstall_cmds='base_file=`basename \${file}`~
14230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14231       dldir=$destdir/`dirname \$dlpath`~
14232       test -d \$dldir || mkdir -p \$dldir~
14233       $install_prog $dir/$dlname \$dldir/$dlname~
14234       chmod a+x \$dldir/$dlname~
14235       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14236         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14237       fi'
14238     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14239       dlpath=$dir/\$dldll~
14240        $RM \$dlpath'
14241     shlibpath_overrides_runpath=yes
14242
14243     case $host_os in
14244     cygwin*)
14245       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14246       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247
14248       ;;
14249     mingw* | cegcc*)
14250       # MinGW DLLs use traditional 'lib' prefix
14251       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252       ;;
14253     pw32*)
14254       # pw32 DLLs use 'pw' prefix rather than 'lib'
14255       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14256       ;;
14257     esac
14258     dynamic_linker='Win32 ld.exe'
14259     ;;
14260
14261   *,cl*)
14262     # Native MSVC
14263     libname_spec='$name'
14264     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14265     library_names_spec='${libname}.dll.lib'
14266
14267     case $build_os in
14268     mingw*)
14269       sys_lib_search_path_spec=
14270       lt_save_ifs=$IFS
14271       IFS=';'
14272       for lt_path in $LIB
14273       do
14274         IFS=$lt_save_ifs
14275         # Let DOS variable expansion print the short 8.3 style file name.
14276         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14277         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14278       done
14279       IFS=$lt_save_ifs
14280       # Convert to MSYS style.
14281       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14282       ;;
14283     cygwin*)
14284       # Convert to unix form, then to dos form, then back to unix form
14285       # but this time dos style (no spaces!) so that the unix form looks
14286       # like /cygdrive/c/PROGRA~1:/cygdr...
14287       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14288       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14289       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14290       ;;
14291     *)
14292       sys_lib_search_path_spec="$LIB"
14293       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14294         # It is most probably a Windows format PATH.
14295         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14296       else
14297         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14298       fi
14299       # FIXME: find the short name or the path components, as spaces are
14300       # common. (e.g. "Program Files" -> "PROGRA~1")
14301       ;;
14302     esac
14303
14304     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14305     postinstall_cmds='base_file=`basename \${file}`~
14306       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14307       dldir=$destdir/`dirname \$dlpath`~
14308       test -d \$dldir || mkdir -p \$dldir~
14309       $install_prog $dir/$dlname \$dldir/$dlname'
14310     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14311       dlpath=$dir/\$dldll~
14312        $RM \$dlpath'
14313     shlibpath_overrides_runpath=yes
14314     dynamic_linker='Win32 link.exe'
14315     ;;
14316
14317   *)
14318     # Assume MSVC wrapper
14319     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14320     dynamic_linker='Win32 ld.exe'
14321     ;;
14322   esac
14323   # FIXME: first we should search . and the directory the executable is in
14324   shlibpath_var=PATH
14325   ;;
14326
14327 darwin* | rhapsody*)
14328   dynamic_linker="$host_os dyld"
14329   version_type=darwin
14330   need_lib_prefix=no
14331   need_version=no
14332   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14333   soname_spec='${libname}${release}${major}$shared_ext'
14334   shlibpath_overrides_runpath=yes
14335   shlibpath_var=DYLD_LIBRARY_PATH
14336   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14337
14338   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14339   ;;
14340
14341 dgux*)
14342   version_type=linux
14343   need_lib_prefix=no
14344   need_version=no
14345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14346   soname_spec='${libname}${release}${shared_ext}$major'
14347   shlibpath_var=LD_LIBRARY_PATH
14348   ;;
14349
14350 freebsd1*)
14351   dynamic_linker=no
14352   ;;
14353
14354 freebsd* | dragonfly*)
14355   # DragonFly does not have aout.  When/if they implement a new
14356   # versioning mechanism, adjust this.
14357   if test -x /usr/bin/objformat; then
14358     objformat=`/usr/bin/objformat`
14359   else
14360     case $host_os in
14361     freebsd[123]*) objformat=aout ;;
14362     *) objformat=elf ;;
14363     esac
14364   fi
14365   version_type=freebsd-$objformat
14366   case $version_type in
14367     freebsd-elf*)
14368       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14369       need_version=no
14370       need_lib_prefix=no
14371       ;;
14372     freebsd-*)
14373       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14374       need_version=yes
14375       ;;
14376   esac
14377   shlibpath_var=LD_LIBRARY_PATH
14378   case $host_os in
14379   freebsd2*)
14380     shlibpath_overrides_runpath=yes
14381     ;;
14382   freebsd3.[01]* | freebsdelf3.[01]*)
14383     shlibpath_overrides_runpath=yes
14384     hardcode_into_libs=yes
14385     ;;
14386   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14387   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14388     shlibpath_overrides_runpath=no
14389     hardcode_into_libs=yes
14390     ;;
14391   *) # from 4.6 on, and DragonFly
14392     shlibpath_overrides_runpath=yes
14393     hardcode_into_libs=yes
14394     ;;
14395   esac
14396   ;;
14397
14398 gnu*)
14399   version_type=linux
14400   need_lib_prefix=no
14401   need_version=no
14402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14403   soname_spec='${libname}${release}${shared_ext}$major'
14404   shlibpath_var=LD_LIBRARY_PATH
14405   hardcode_into_libs=yes
14406   ;;
14407
14408 haiku*)
14409   version_type=linux
14410   need_lib_prefix=no
14411   need_version=no
14412   dynamic_linker="$host_os runtime_loader"
14413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414   soname_spec='${libname}${release}${shared_ext}$major'
14415   shlibpath_var=LIBRARY_PATH
14416   shlibpath_overrides_runpath=yes
14417   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14418   hardcode_into_libs=yes
14419   ;;
14420
14421 hpux9* | hpux10* | hpux11*)
14422   # Give a soname corresponding to the major version so that dld.sl refuses to
14423   # link against other versions.
14424   version_type=sunos
14425   need_lib_prefix=no
14426   need_version=no
14427   case $host_cpu in
14428   ia64*)
14429     shrext_cmds='.so'
14430     hardcode_into_libs=yes
14431     dynamic_linker="$host_os dld.so"
14432     shlibpath_var=LD_LIBRARY_PATH
14433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435     soname_spec='${libname}${release}${shared_ext}$major'
14436     if test "X$HPUX_IA64_MODE" = X32; then
14437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14438     else
14439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14440     fi
14441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14442     ;;
14443   hppa*64*)
14444     shrext_cmds='.sl'
14445     hardcode_into_libs=yes
14446     dynamic_linker="$host_os dld.sl"
14447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450     soname_spec='${libname}${release}${shared_ext}$major'
14451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14453     ;;
14454   *)
14455     shrext_cmds='.sl'
14456     dynamic_linker="$host_os dld.sl"
14457     shlibpath_var=SHLIB_PATH
14458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460     soname_spec='${libname}${release}${shared_ext}$major'
14461     ;;
14462   esac
14463   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14464   postinstall_cmds='chmod 555 $lib'
14465   # or fails outright, so override atomically:
14466   install_override_mode=555
14467   ;;
14468
14469 interix[3-9]*)
14470   version_type=linux
14471   need_lib_prefix=no
14472   need_version=no
14473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14474   soname_spec='${libname}${release}${shared_ext}$major'
14475   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14476   shlibpath_var=LD_LIBRARY_PATH
14477   shlibpath_overrides_runpath=no
14478   hardcode_into_libs=yes
14479   ;;
14480
14481 irix5* | irix6* | nonstopux*)
14482   case $host_os in
14483     nonstopux*) version_type=nonstopux ;;
14484     *)
14485         if test "$lt_cv_prog_gnu_ld" = yes; then
14486                 version_type=linux
14487         else
14488                 version_type=irix
14489         fi ;;
14490   esac
14491   need_lib_prefix=no
14492   need_version=no
14493   soname_spec='${libname}${release}${shared_ext}$major'
14494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14495   case $host_os in
14496   irix5* | nonstopux*)
14497     libsuff= shlibsuff=
14498     ;;
14499   *)
14500     case $LD in # libtool.m4 will add one of these switches to LD
14501     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502       libsuff= shlibsuff= libmagic=32-bit;;
14503     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504       libsuff=32 shlibsuff=N32 libmagic=N32;;
14505     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507     *) libsuff= shlibsuff= libmagic=never-match;;
14508     esac
14509     ;;
14510   esac
14511   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512   shlibpath_overrides_runpath=no
14513   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515   hardcode_into_libs=yes
14516   ;;
14517
14518 # No shared lib support for Linux oldld, aout, or coff.
14519 linux*oldld* | linux*aout* | linux*coff*)
14520   dynamic_linker=no
14521   ;;
14522
14523 # This must be Linux ELF.
14524 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14525   version_type=linux
14526   need_lib_prefix=no
14527   need_version=no
14528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529   soname_spec='${libname}${release}${shared_ext}$major'
14530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   shlibpath_overrides_runpath=no
14533
14534   # Some binutils ld are patched to set DT_RUNPATH
14535   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538   lt_cv_shlibpath_overrides_runpath=no
14539     save_LDFLAGS=$LDFLAGS
14540     save_libdir=$libdir
14541     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14542          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h.  */
14545
14546 int
14547 main ()
14548 {
14549
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_cxx_try_link "$LINENO"; then :
14555   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14556   lt_cv_shlibpath_overrides_runpath=yes
14557 fi
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext \
14560     conftest$ac_exeext conftest.$ac_ext
14561     LDFLAGS=$save_LDFLAGS
14562     libdir=$save_libdir
14563     
14564 fi
14565
14566   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14567
14568   # This implies no fast_install, which is unacceptable.
14569   # Some rework will be needed to allow for fast_install
14570   # before this can be enabled.
14571   hardcode_into_libs=yes
14572
14573   # Append ld.so.conf contents to the search path
14574   if test -f /etc/ld.so.conf; then
14575     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' ' '`
14576     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14577   fi
14578
14579   # We used to test for /lib/ld.so.1 and disable shared libraries on
14580   # powerpc, because MkLinux only supported shared libraries with the
14581   # GNU dynamic linker.  Since this was broken with cross compilers,
14582   # most powerpc-linux boxes support dynamic linking these days and
14583   # people can always --disable-shared, the test was removed, and we
14584   # assume the GNU/Linux dynamic linker is in use.
14585   dynamic_linker='GNU/Linux ld.so'
14586   ;;
14587
14588 netbsd*)
14589   version_type=sunos
14590   need_lib_prefix=no
14591   need_version=no
14592   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595     dynamic_linker='NetBSD (a.out) ld.so'
14596   else
14597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598     soname_spec='${libname}${release}${shared_ext}$major'
14599     dynamic_linker='NetBSD ld.elf_so'
14600   fi
14601   shlibpath_var=LD_LIBRARY_PATH
14602   shlibpath_overrides_runpath=yes
14603   hardcode_into_libs=yes
14604   ;;
14605
14606 newsos6)
14607   version_type=linux
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609   shlibpath_var=LD_LIBRARY_PATH
14610   shlibpath_overrides_runpath=yes
14611   ;;
14612
14613 *nto* | *qnx*)
14614   version_type=qnx
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618   soname_spec='${libname}${release}${shared_ext}$major'
14619   shlibpath_var=LD_LIBRARY_PATH
14620   shlibpath_overrides_runpath=no
14621   hardcode_into_libs=yes
14622   dynamic_linker='ldqnx.so'
14623   ;;
14624
14625 openbsd*)
14626   version_type=sunos
14627   sys_lib_dlsearch_path_spec="/usr/lib"
14628   need_lib_prefix=no
14629   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14630   case $host_os in
14631     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14632     *)                          need_version=no  ;;
14633   esac
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14638     case $host_os in
14639       openbsd2.[89] | openbsd2.[89].*)
14640         shlibpath_overrides_runpath=no
14641         ;;
14642       *)
14643         shlibpath_overrides_runpath=yes
14644         ;;
14645       esac
14646   else
14647     shlibpath_overrides_runpath=yes
14648   fi
14649   ;;
14650
14651 os2*)
14652   libname_spec='$name'
14653   shrext_cmds=".dll"
14654   need_lib_prefix=no
14655   library_names_spec='$libname${shared_ext} $libname.a'
14656   dynamic_linker='OS/2 ld.exe'
14657   shlibpath_var=LIBPATH
14658   ;;
14659
14660 osf3* | osf4* | osf5*)
14661   version_type=osf
14662   need_lib_prefix=no
14663   need_version=no
14664   soname_spec='${libname}${release}${shared_ext}$major'
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666   shlibpath_var=LD_LIBRARY_PATH
14667   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14668   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14669   ;;
14670
14671 rdos*)
14672   dynamic_linker=no
14673   ;;
14674
14675 solaris*)
14676   version_type=linux
14677   need_lib_prefix=no
14678   need_version=no
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=yes
14683   hardcode_into_libs=yes
14684   # ldd complains unless libraries are executable
14685   postinstall_cmds='chmod +x $lib'
14686   ;;
14687
14688 sunos4*)
14689   version_type=sunos
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14691   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   shlibpath_overrides_runpath=yes
14694   if test "$with_gnu_ld" = yes; then
14695     need_lib_prefix=no
14696   fi
14697   need_version=yes
14698   ;;
14699
14700 sysv4 | sysv4.3*)
14701   version_type=linux
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   case $host_vendor in
14706     sni)
14707       shlibpath_overrides_runpath=no
14708       need_lib_prefix=no
14709       runpath_var=LD_RUN_PATH
14710       ;;
14711     siemens)
14712       need_lib_prefix=no
14713       ;;
14714     motorola)
14715       need_lib_prefix=no
14716       need_version=no
14717       shlibpath_overrides_runpath=no
14718       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14719       ;;
14720   esac
14721   ;;
14722
14723 sysv4*MP*)
14724   if test -d /usr/nec ;then
14725     version_type=linux
14726     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14727     soname_spec='$libname${shared_ext}.$major'
14728     shlibpath_var=LD_LIBRARY_PATH
14729   fi
14730   ;;
14731
14732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14733   version_type=freebsd-elf
14734   need_lib_prefix=no
14735   need_version=no
14736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737   soname_spec='${libname}${release}${shared_ext}$major'
14738   shlibpath_var=LD_LIBRARY_PATH
14739   shlibpath_overrides_runpath=yes
14740   hardcode_into_libs=yes
14741   if test "$with_gnu_ld" = yes; then
14742     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14743   else
14744     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14745     case $host_os in
14746       sco3.2v5*)
14747         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14748         ;;
14749     esac
14750   fi
14751   sys_lib_dlsearch_path_spec='/usr/lib'
14752   ;;
14753
14754 tpf*)
14755   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14756   version_type=linux
14757   need_lib_prefix=no
14758   need_version=no
14759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760   shlibpath_var=LD_LIBRARY_PATH
14761   shlibpath_overrides_runpath=no
14762   hardcode_into_libs=yes
14763   ;;
14764
14765 uts4*)
14766   version_type=linux
14767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768   soname_spec='${libname}${release}${shared_ext}$major'
14769   shlibpath_var=LD_LIBRARY_PATH
14770   ;;
14771
14772 *)
14773   dynamic_linker=no
14774   ;;
14775 esac
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14777 $as_echo "$dynamic_linker" >&6; }
14778 test "$dynamic_linker" = no && can_build_shared=no
14779
14780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14781 if test "$GCC" = yes; then
14782   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14783 fi
14784
14785 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14786   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14787 fi
14788 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14789   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14790 fi
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14831 hardcode_action_CXX=
14832 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14833    test -n "$runpath_var_CXX" ||
14834    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14835
14836   # We can hardcode non-existent directories.
14837   if test "$hardcode_direct_CXX" != no &&
14838      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14839      # have to relink, otherwise we might link with an installed library
14840      # when we should be linking with a yet-to-be-installed one
14841      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14842      test "$hardcode_minus_L_CXX" != no; then
14843     # Linking always hardcodes the temporary library directory.
14844     hardcode_action_CXX=relink
14845   else
14846     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14847     hardcode_action_CXX=immediate
14848   fi
14849 else
14850   # We cannot hardcode anything, or else we can only hardcode existing
14851   # directories.
14852   hardcode_action_CXX=unsupported
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14855 $as_echo "$hardcode_action_CXX" >&6; }
14856
14857 if test "$hardcode_action_CXX" = relink ||
14858    test "$inherit_rpath_CXX" = yes; then
14859   # Fast installation is not supported
14860   enable_fast_install=no
14861 elif test "$shlibpath_overrides_runpath" = yes ||
14862      test "$enable_shared" = no; then
14863   # Fast installation is not necessary
14864   enable_fast_install=needless
14865 fi
14866
14867
14868
14869
14870     
14871
14872
14873   fi # test -n "$compiler"
14874
14875   CC=$lt_save_CC
14876   CFLAGS=$lt_save_CFLAGS
14877   LDCXX=$LD
14878   LD=$lt_save_LD
14879   GCC=$lt_save_GCC
14880   with_gnu_ld=$lt_save_with_gnu_ld
14881   lt_cv_path_LDCXX=$lt_cv_path_LD
14882   lt_cv_path_LD=$lt_save_path_LD
14883   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14884   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14885 fi # test "$_lt_caught_CXX_error" != yes
14886
14887 ac_ext=c
14888 ac_cpp='$CPP $CPPFLAGS'
14889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892
14893
14894
14895
14896
14897
14898
14899
14900        
14901        
14902
14903
14904
14905         ac_config_commands="$ac_config_commands libtool"
14906
14907
14908
14909
14910 # Only expand once:
14911
14912
14913
14914 case "$host" in
14915         *-*-mingw*|*-*-cygwin*)
14916                 
14917 $as_echo "@%:@define PLATFORM_WIN32 1" >>confdefs.h
14918
14919                 opengl_LIBS="-lunsupported_platform"
14920                 PLATFORM_STRING="Win32"
14921                 ;;
14922         *-*-linux*)
14923                 
14924 $as_echo "@%:@define PLATFORM_LINUX 1" >>confdefs.h
14925
14926                 opengl_LIBS="-lGL -lGLU -lglut"
14927                 PLATFORM_STRING="Linux"
14928                 ;;
14929         *-*-darwin*)
14930                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hello" >&5
14931 $as_echo "$as_me: WARNING: Hello" >&2;}
14932                 
14933 $as_echo "@%:@define PLATFORM_APPLE 1" >>confdefs.h
14934
14935                 opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
14936                 PLATFORM_STRING="Apple"
14937                 ;;
14938         *)
14939                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please add $host to configure.ac checks!" >&5
14940 $as_echo "$as_me: WARNING: *** Please add $host to configure.ac checks!" >&2;}
14941                 ;;
14942 esac
14943
14944
14945 case "$host" in
14946         i?86-* | k?-* | athlon-* | pentium*-)
14947                 
14948 $as_echo "@%:@define ARCH_X86 1" >>confdefs.h
14949
14950                 ARCH_SPECIFIC_CFLAGS=""
14951                 ARCH_STRING="X86"
14952                 ;;
14953         x86_64-*)
14954                 
14955 $as_echo "@%:@define ARCH_X86_64 1" >>confdefs.h
14956
14957                 ARCH_SPECIFIC_CFLAGS="-DUSE_ADDR64"
14958                 ARCH_STRING="X86-64"
14959                 ;;
14960         ppc-* | powerpc-*)
14961                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HI THERE!" >&5
14962 $as_echo "$as_me: WARNING: HI THERE!" >&2;}
14963                 
14964 $as_echo "@%:@define ARCH_PPC 1" >>confdefs.h
14965
14966                 ARCH_SPECIFIC_CFLAGS=""
14967                 ARCH_STRING="PowerPC"
14968                 ;;
14969         *)
14970                 as_fn_error $? "Unknown Architecture" "$LINENO" 5
14971                 ;;
14972 esac
14973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14974 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14975 if ${ac_cv_c_bigendian+:} false; then :
14976   $as_echo_n "(cached) " >&6
14977 else
14978   ac_cv_c_bigendian=unknown
14979     # See if we're dealing with a universal compiler.
14980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h.  */
14982 #ifndef __APPLE_CC__
14983                not a universal capable compiler
14984              #endif
14985              typedef int dummy;
14986             
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"; then :
14989   
14990         # Check for potential -arch flags.  It is not universal unless
14991         # there are at least two -arch flags with different values.
14992         ac_arch=
14993         ac_prev=
14994         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14995          if test -n "$ac_prev"; then
14996            case $ac_word in
14997              i?86 | x86_64 | ppc | ppc64)
14998                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14999                  ac_arch=$ac_word
15000                else
15001                  ac_cv_c_bigendian=universal
15002                  break
15003                fi
15004                ;;
15005            esac
15006            ac_prev=
15007          elif test "x$ac_word" = "x-arch"; then
15008            ac_prev=arch
15009          fi
15010        done
15011 fi
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013     if test $ac_cv_c_bigendian = unknown; then
15014       # See if sys/param.h defines the BYTE_ORDER macro.
15015       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h.  */
15017 #include <sys/types.h>
15018              #include <sys/param.h>
15019            
15020 int
15021 main ()
15022 {
15023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15024                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15025                      && LITTLE_ENDIAN)
15026               bogus endian macros
15027              #endif
15028            
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034   # It does; now see whether it defined to BIG_ENDIAN or not.
15035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037 #include <sys/types.h>
15038                 #include <sys/param.h>
15039               
15040 int
15041 main ()
15042 {
15043 #if BYTE_ORDER != BIG_ENDIAN
15044                  not big endian
15045                 #endif
15046               
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 if ac_fn_c_try_compile "$LINENO"; then :
15052   ac_cv_c_bigendian=yes
15053 else
15054   ac_cv_c_bigendian=no
15055 fi
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059     fi
15060     if test $ac_cv_c_bigendian = unknown; then
15061       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h.  */
15064 #include <limits.h>
15065            
15066 int
15067 main ()
15068 {
15069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15070               bogus endian macros
15071              #endif
15072            
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 if ac_fn_c_try_compile "$LINENO"; then :
15078   # It does; now see whether it defined to _BIG_ENDIAN or not.
15079          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h.  */
15081 #include <limits.h>
15082               
15083 int
15084 main ()
15085 {
15086 #ifndef _BIG_ENDIAN
15087                  not big endian
15088                 #endif
15089               
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095   ac_cv_c_bigendian=yes
15096 else
15097   ac_cv_c_bigendian=no
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102     fi
15103     if test $ac_cv_c_bigendian = unknown; then
15104       # Compile a test program.
15105       if test "$cross_compiling" = yes; then :
15106   # Try to guess by grepping values from an object file.
15107          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h.  */
15109 short int ascii_mm[] =
15110                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15111                 short int ascii_ii[] =
15112                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15113                 int use_ascii (int i) {
15114                   return ascii_mm[i] + ascii_ii[i];
15115                 }
15116                 short int ebcdic_ii[] =
15117                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15118                 short int ebcdic_mm[] =
15119                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15120                 int use_ebcdic (int i) {
15121                   return ebcdic_mm[i] + ebcdic_ii[i];
15122                 }
15123                 extern int foo;
15124               
15125 int
15126 main ()
15127 {
15128 return use_ascii (foo) == use_ebcdic (foo);
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15135               ac_cv_c_bigendian=yes
15136             fi
15137             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15138               if test "$ac_cv_c_bigendian" = unknown; then
15139                 ac_cv_c_bigendian=no
15140               else
15141                 # finding both strings is unlikely to happen, but who knows?
15142                 ac_cv_c_bigendian=unknown
15143               fi
15144             fi
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 else
15148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 int
15152 main ()
15153 {
15154
15155              /* Are we little or big endian?  From Harbison&Steele.  */
15156              union
15157              {
15158                long int l;
15159                char c[sizeof (long int)];
15160              } u;
15161              u.l = 1;
15162              return u.c[sizeof (long int) - 1] == 1;
15163            
15164   ;
15165   return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_run "$LINENO"; then :
15169   ac_cv_c_bigendian=no
15170 else
15171   ac_cv_c_bigendian=yes
15172 fi
15173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15174   conftest.$ac_objext conftest.beam conftest.$ac_ext
15175 fi
15176
15177     fi
15178 fi
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15180 $as_echo "$ac_cv_c_bigendian" >&6; }
15181  case $ac_cv_c_bigendian in #(
15182    yes)
15183      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
15184 ;; #(
15185    no)
15186       ;; #(
15187    universal)
15188         
15189 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15190
15191      ;; #(
15192    *)
15193      as_fn_error $? "unknown endianness
15194  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15195  esac
15196
15197
15198
15199 #----------------------------------------------------------------------------
15200 # Setup for the configuration header.
15201 #----------------------------------------------------------------------------
15202 ac_config_headers="$ac_config_headers config.h"
15203
15204 #----------------------------------------------------------------------------
15205 # Package configuration switches.
15206 #----------------------------------------------------------------------------
15207 @%:@ Check whether --enable-multithreaded was given.
15208 if test "${enable_multithreaded+set}" = set; then :
15209   enableval=$enable_multithreaded; disable_multithreaded=no
15210 else
15211   disable_multithreaded=yes
15212 fi
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking BulletMultiThreaded" >&5
15215 $as_echo_n "checking BulletMultiThreaded... " >&6; }
15216 if test "$disable_multithreaded" = yes; then :
15217   build_multithreaded=no
15218 else
15219   build_multithreaded=yes
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_multithreaded" >&5
15222 $as_echo "$build_multithreaded" >&6; }
15223  if test "$build_multithreaded" = yes; then
15224   CONDITIONAL_BUILD_MULTITHREADED_TRUE=
15225   CONDITIONAL_BUILD_MULTITHREADED_FALSE='#'
15226 else
15227   CONDITIONAL_BUILD_MULTITHREADED_TRUE='#'
15228   CONDITIONAL_BUILD_MULTITHREADED_FALSE=
15229 fi
15230
15231
15232 @%:@ Check whether --enable-demos was given.
15233 if test "${enable_demos+set}" = set; then :
15234   enableval=$enable_demos; 
15235 else
15236   enable_demos=yes
15237 fi
15238
15239  if false; then
15240   CONDITIONAL_BUILD_DEMOS_TRUE=
15241   CONDITIONAL_BUILD_DEMOS_FALSE='#'
15242 else
15243   CONDITIONAL_BUILD_DEMOS_TRUE='#'
15244   CONDITIONAL_BUILD_DEMOS_FALSE=
15245 fi
15246
15247
15248
15249
15250 case "$host" in
15251         *-*-darwin*)
15252                   
15253 $as_echo "@%:@define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h
15254
15255                   GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
15256                   have_glut=yes
15257                   have_glu=yes
15258                   have_gl=yes
15259                 ;;
15260         *)
15261                      have_gl_headers=yes
15262                       for ac_header in GL/gl.h GL/glu.h GL/glext.h GL/glut.h
15263 do :
15264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef WIN32
15266                              #include <windows.h>
15267                              #endif
15268                              #if HAVE_GL_GL_H
15269                              #include <GL/gl.h>
15270                              #endif
15271                                  #if HAVE_GL_GLU_H
15272                              #include <GL/glu.h>
15273                              #endif
15274                            
15275 "
15276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15277   cat >>confdefs.h <<_ACEOF
15278 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15279 _ACEOF
15280  
15281 else
15282   have_gl_headers=no
15283 fi
15284
15285 done
15286
15287                       have_gl=no
15288                       have_glu=no
15289                       have_glut=no
15290                       TEMP_LDFLAGS="$LDFLAGS"
15291                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
15292 $as_echo_n "checking for main in -lGL... " >&6; }
15293 if ${ac_cv_lib_GL_main+:} false; then :
15294   $as_echo_n "(cached) " >&6
15295 else
15296   ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lGL  $LIBS"
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h.  */
15300
15301
15302 int
15303 main ()
15304 {
15305 return main ();
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 if ac_fn_c_try_link "$LINENO"; then :
15311   ac_cv_lib_GL_main=yes
15312 else
15313   ac_cv_lib_GL_main=no
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext \
15316     conftest$ac_exeext conftest.$ac_ext
15317 LIBS=$ac_check_lib_save_LIBS
15318 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
15320 $as_echo "$ac_cv_lib_GL_main" >&6; }
15321 if test "x$ac_cv_lib_GL_main" = xyes; then :
15322   GL_LIBS="-lGL"; have_gl=yes
15323 fi
15324
15325                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
15326 $as_echo_n "checking for main in -lGLU... " >&6; }
15327 if ${ac_cv_lib_GLU_main+:} false; then :
15328   $as_echo_n "(cached) " >&6
15329 else
15330   ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lGLU -lGL $LIBS"
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334
15335
15336 int
15337 main ()
15338 {
15339 return main ();
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 if ac_fn_c_try_link "$LINENO"; then :
15345   ac_cv_lib_GLU_main=yes
15346 else
15347   ac_cv_lib_GLU_main=no
15348 fi
15349 rm -f core conftest.err conftest.$ac_objext \
15350     conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15352 fi
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
15354 $as_echo "$ac_cv_lib_GLU_main" >&6; }
15355 if test "x$ac_cv_lib_GLU_main" = xyes; then :
15356   GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes
15357 fi
15358
15359                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLUT" >&5
15360 $as_echo_n "checking for main in -lGLUT... " >&6; }
15361 if ${ac_cv_lib_GLUT_main+:} false; then :
15362   $as_echo_n "(cached) " >&6
15363 else
15364   ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lGLUT -lGLUT $LIBS"
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h.  */
15368
15369
15370 int
15371 main ()
15372 {
15373 return main ();
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_c_try_link "$LINENO"; then :
15379   ac_cv_lib_GLUT_main=yes
15380 else
15381   ac_cv_lib_GLUT_main=no
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext \
15384     conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLUT_main" >&5
15388 $as_echo "$ac_cv_lib_GLUT_main" >&6; }
15389 if test "x$ac_cv_lib_GLUT_main" = xyes; then :
15390   GL_LIBS="-lGLUT -LGLU  $GL_LIBS"; have_glut=yes
15391 fi
15392
15393                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
15394 $as_echo_n "checking for main in -lopengl32... " >&6; }
15395 if ${ac_cv_lib_opengl32_main+:} false; then :
15396   $as_echo_n "(cached) " >&6
15397 else
15398   ac_check_lib_save_LIBS=$LIBS
15399 LIBS="-lopengl32  $LIBS"
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h.  */
15402
15403
15404 int
15405 main ()
15406 {
15407 return main ();
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_c_try_link "$LINENO"; then :
15413   ac_cv_lib_opengl32_main=yes
15414 else
15415   ac_cv_lib_opengl32_main=no
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext \
15418     conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5
15422 $as_echo "$ac_cv_lib_opengl32_main" >&6; }
15423 if test "x$ac_cv_lib_opengl32_main" = xyes; then :
15424   GL_LIBS="-lopengl32"; have_gl=yes
15425 fi
15426
15427                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglu32" >&5
15428 $as_echo_n "checking for main in -lglu32... " >&6; }
15429 if ${ac_cv_lib_glu32_main+:} false; then :
15430   $as_echo_n "(cached) " >&6
15431 else
15432   ac_check_lib_save_LIBS=$LIBS
15433 LIBS="-lglu32 -lopengl32 $LIBS"
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h.  */
15436
15437
15438 int
15439 main ()
15440 {
15441 return main ();
15442   ;
15443   return 0;
15444 }
15445 _ACEOF
15446 if ac_fn_c_try_link "$LINENO"; then :
15447   ac_cv_lib_glu32_main=yes
15448 else
15449   ac_cv_lib_glu32_main=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext \
15452     conftest$ac_exeext conftest.$ac_ext
15453 LIBS=$ac_check_lib_save_LIBS
15454 fi
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glu32_main" >&5
15456 $as_echo "$ac_cv_lib_glu32_main" >&6; }
15457 if test "x$ac_cv_lib_glu32_main" = xyes; then :
15458   GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes
15459 fi
15460
15461                       LDFLAGS="$TEMP_LDFLAGS"
15462                       if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
15463                         if test x$enable_demos = xyes; then
15464                           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&5
15465 $as_echo "$as_me: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&2;}
15466                         fi
15467                         enable_demos=no
15468                       else
15469                       { $as_echo "$as_me:${as_lineno-$LINENO}: Found OpenGL" >&5
15470 $as_echo "$as_me: Found OpenGL" >&6;}
15471                       fi
15472                 ;;
15473 esac
15474
15475
15476
15477
15478
15479
15480 if test "x$enable_demos" != xno; then
15481     { $as_echo "$as_me:${as_lineno-$LINENO}: Building Bullet demos" >&5
15482 $as_echo "$as_me: Building Bullet demos" >&6;}
15483      if true; then
15484   CONDITIONAL_BUILD_DEMOS_TRUE=
15485   CONDITIONAL_BUILD_DEMOS_FALSE='#'
15486 else
15487   CONDITIONAL_BUILD_DEMOS_TRUE='#'
15488   CONDITIONAL_BUILD_DEMOS_FALSE=
15489 fi
15490
15491 fi
15492
15493
15494
15495 @%:@ Check whether --enable-debug was given.
15496 if test "${enable_debug+set}" = set; then :
15497   enableval=$enable_debug; 
15498 else
15499   enable_debug=no
15500 fi
15501
15502
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build mode" >&5
15504 $as_echo_n "checking build mode... " >&6; }
15505 if test $enable_debug = yes; then :
15506   build_mode=debug
15507 else
15508   build_mode=optimize
15509 fi
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_mode" >&5
15511 $as_echo "$build_mode" >&6; }
15512
15513
15514
15515 CFLAGS="$ARCH_SPECIFIC_CFLAGS $CFLAGS"
15516 CXXFLAGS="$ARCH_SPECIFIC_CFLAGS $CXXFLAGS $CFLAGS"
15517 #----------------------------------------------------------------------------
15518 # Emit generated files.
15519 #----------------------------------------------------------------------------
15520 ac_config_files="$ac_config_files bullet.pc Makefile Demos/Makefile Demos/SoftDemo/Makefile Demos/AllBulletDemos/Makefile Demos/MultiThreadedDemo/Makefile Demos/OpenGL/Makefile Demos/BasicDemo/Makefile Demos/CcdPhysicsDemo/Makefile Demos/VehicleDemo/Makefile Demos/TerrainDemo/Makefile src/Makefile Extras/Makefile"
15521
15522 cat >confcache <<\_ACEOF
15523 # This file is a shell script that caches the results of configure
15524 # tests run on this system so they can be shared between configure
15525 # scripts and configure runs, see configure's option --config-cache.
15526 # It is not useful on other systems.  If it contains results you don't
15527 # want to keep, you may remove or edit it.
15528 #
15529 # config.status only pays attention to the cache file if you give it
15530 # the --recheck option to rerun configure.
15531 #
15532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15534 # following values.
15535
15536 _ACEOF
15537
15538 # The following way of writing the cache mishandles newlines in values,
15539 # but we know of no workaround that is simple, portable, and efficient.
15540 # So, we kill variables containing newlines.
15541 # Ultrix sh set writes to stderr and can't be redirected directly,
15542 # and sets the high bit in the cache file unless we assign to the vars.
15543 (
15544   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15545     eval ac_val=\$$ac_var
15546     case $ac_val in #(
15547     *${as_nl}*)
15548       case $ac_var in #(
15549       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15551       esac
15552       case $ac_var in #(
15553       _ | IFS | as_nl) ;; #(
15554       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15555       *) { eval $ac_var=; unset $ac_var;} ;;
15556       esac ;;
15557     esac
15558   done
15559
15560   (set) 2>&1 |
15561     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562     *${as_nl}ac_space=\ *)
15563       # `set' does not quote correctly, so add quotes: double-quote
15564       # substitution turns \\\\ into \\, and sed turns \\ into \.
15565       sed -n \
15566         "s/'/'\\\\''/g;
15567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15568       ;; #(
15569     *)
15570       # `set' quotes correctly as required by POSIX, so do not add quotes.
15571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15572       ;;
15573     esac |
15574     sort
15575 ) |
15576   sed '
15577      /^ac_cv_env_/b end
15578      t clear
15579      :clear
15580      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15581      t end
15582      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15583      :end' >>confcache
15584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15585   if test -w "$cache_file"; then
15586     if test "x$cache_file" != "x/dev/null"; then
15587       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15588 $as_echo "$as_me: updating cache $cache_file" >&6;}
15589       if test ! -f "$cache_file" || test -h "$cache_file"; then
15590         cat confcache >"$cache_file"
15591       else
15592         case $cache_file in #(
15593         */* | ?:*)
15594           mv -f confcache "$cache_file"$$ &&
15595           mv -f "$cache_file"$$ "$cache_file" ;; #(
15596         *)
15597           mv -f confcache "$cache_file" ;;
15598         esac
15599       fi
15600     fi
15601   else
15602     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15603 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15604   fi
15605 fi
15606 rm -f confcache
15607
15608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15609 # Let make expand exec_prefix.
15610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15611
15612 DEFS=-DHAVE_CONFIG_H
15613
15614 ac_libobjs=
15615 ac_ltlibobjs=
15616 U=
15617 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15618   # 1. Remove the extension, and $U if already installed.
15619   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15620   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15621   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15622   #    will be set to the directory where LIBOBJS objects are built.
15623   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15624   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15625 done
15626 LIB@&t@OBJS=$ac_libobjs
15627
15628 LTLIBOBJS=$ac_ltlibobjs
15629
15630
15631  if test -n "$EXEEXT"; then
15632   am__EXEEXT_TRUE=
15633   am__EXEEXT_FALSE='#'
15634 else
15635   am__EXEEXT_TRUE='#'
15636   am__EXEEXT_FALSE=
15637 fi
15638
15639 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15640   as_fn_error $? "conditional \"AMDEP\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15644   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 fi
15647 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15648   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 fi
15651
15652 if test -z "${CONDITIONAL_BUILD_MULTITHREADED_TRUE}" && test -z "${CONDITIONAL_BUILD_MULTITHREADED_FALSE}"; then
15653   as_fn_error $? "conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 fi
15656 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15657   as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 fi
15660 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15661   as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 fi
15664
15665 : "${CONFIG_STATUS=./config.status}"
15666 ac_write_fail=0
15667 ac_clean_files_save=$ac_clean_files
15668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15671 as_write_fail=0
15672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15673 #! $SHELL
15674 # Generated by $as_me.
15675 # Run this file to recreate the current configuration.
15676 # Compiler output produced by configure, useful for debugging
15677 # configure, is in config.log if it exists.
15678
15679 debug=false
15680 ac_cs_recheck=false
15681 ac_cs_silent=false
15682
15683 SHELL=\${CONFIG_SHELL-$SHELL}
15684 export SHELL
15685 _ASEOF
15686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15687 ## -------------------- ##
15688 ## M4sh Initialization. ##
15689 ## -------------------- ##
15690
15691 # Be more Bourne compatible
15692 DUALCASE=1; export DUALCASE # for MKS sh
15693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15694   emulate sh
15695   NULLCMD=:
15696   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15697   # is contrary to our usage.  Disable this feature.
15698   alias -g '${1+"$@"}'='"$@"'
15699   setopt NO_GLOB_SUBST
15700 else
15701   case `(set -o) 2>/dev/null` in @%:@(
15702   *posix*) :
15703     set -o posix ;; @%:@(
15704   *) :
15705      ;;
15706 esac
15707 fi
15708
15709
15710 as_nl='
15711 '
15712 export as_nl
15713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15717 # Prefer a ksh shell builtin over an external printf program on Solaris,
15718 # but without wasting forks for bash or zsh.
15719 if test -z "$BASH_VERSION$ZSH_VERSION" \
15720     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15721   as_echo='print -r --'
15722   as_echo_n='print -rn --'
15723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15724   as_echo='printf %s\n'
15725   as_echo_n='printf %s'
15726 else
15727   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15728     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15729     as_echo_n='/usr/ucb/echo -n'
15730   else
15731     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15732     as_echo_n_body='eval
15733       arg=$1;
15734       case $arg in @%:@(
15735       *"$as_nl"*)
15736         expr "X$arg" : "X\\(.*\\)$as_nl";
15737         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15738       esac;
15739       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15740     '
15741     export as_echo_n_body
15742     as_echo_n='sh -c $as_echo_n_body as_echo'
15743   fi
15744   export as_echo_body
15745   as_echo='sh -c $as_echo_body as_echo'
15746 fi
15747
15748 # The user is always right.
15749 if test "${PATH_SEPARATOR+set}" != set; then
15750   PATH_SEPARATOR=:
15751   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15752     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15753       PATH_SEPARATOR=';'
15754   }
15755 fi
15756
15757
15758 # IFS
15759 # We need space, tab and new line, in precisely that order.  Quoting is
15760 # there to prevent editors from complaining about space-tab.
15761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15762 # splitting by setting IFS to empty value.)
15763 IFS=" ""        $as_nl"
15764
15765 # Find who we are.  Look in the path if we contain no directory separator.
15766 as_myself=
15767 case $0 in @%:@((
15768   *[\\/]* ) as_myself=$0 ;;
15769   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15771 do
15772   IFS=$as_save_IFS
15773   test -z "$as_dir" && as_dir=.
15774     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15775   done
15776 IFS=$as_save_IFS
15777
15778      ;;
15779 esac
15780 # We did not find ourselves, most probably we were run as `sh COMMAND'
15781 # in which case we are not to be found in the path.
15782 if test "x$as_myself" = x; then
15783   as_myself=$0
15784 fi
15785 if test ! -f "$as_myself"; then
15786   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15787   exit 1
15788 fi
15789
15790 # Unset variables that we do not need and which cause bugs (e.g. in
15791 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15792 # suppresses any "Segmentation fault" message there.  '((' could
15793 # trigger a bug in pdksh 5.2.14.
15794 for as_var in BASH_ENV ENV MAIL MAILPATH
15795 do eval test x\${$as_var+set} = xset \
15796   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15797 done
15798 PS1='$ '
15799 PS2='> '
15800 PS4='+ '
15801
15802 # NLS nuisances.
15803 LC_ALL=C
15804 export LC_ALL
15805 LANGUAGE=C
15806 export LANGUAGE
15807
15808 # CDPATH.
15809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15810
15811
15812 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15813 @%:@ ----------------------------------------
15814 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15815 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15816 @%:@ script with STATUS, using 1 if that was 0.
15817 as_fn_error ()
15818 {
15819   as_status=$1; test $as_status -eq 0 && as_status=1
15820   if test "$4"; then
15821     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15822     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15823   fi
15824   $as_echo "$as_me: error: $2" >&2
15825   as_fn_exit $as_status
15826 } @%:@ as_fn_error
15827
15828
15829 @%:@ as_fn_set_status STATUS
15830 @%:@ -----------------------
15831 @%:@ Set @S|@? to STATUS, without forking.
15832 as_fn_set_status ()
15833 {
15834   return $1
15835 } @%:@ as_fn_set_status
15836
15837 @%:@ as_fn_exit STATUS
15838 @%:@ -----------------
15839 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15840 as_fn_exit ()
15841 {
15842   set +e
15843   as_fn_set_status $1
15844   exit $1
15845 } @%:@ as_fn_exit
15846
15847 @%:@ as_fn_unset VAR
15848 @%:@ ---------------
15849 @%:@ Portably unset VAR.
15850 as_fn_unset ()
15851 {
15852   { eval $1=; unset $1;}
15853 }
15854 as_unset=as_fn_unset
15855 @%:@ as_fn_append VAR VALUE
15856 @%:@ ----------------------
15857 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15858 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15859 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15860 @%:@ implementations.
15861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15862   eval 'as_fn_append ()
15863   {
15864     eval $1+=\$2
15865   }'
15866 else
15867   as_fn_append ()
15868   {
15869     eval $1=\$$1\$2
15870   }
15871 fi # as_fn_append
15872
15873 @%:@ as_fn_arith ARG...
15874 @%:@ ------------------
15875 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15876 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15877 @%:@ must be portable across @S|@(()) and expr.
15878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15879   eval 'as_fn_arith ()
15880   {
15881     as_val=$(( $* ))
15882   }'
15883 else
15884   as_fn_arith ()
15885   {
15886     as_val=`expr "$@" || test $? -eq 1`
15887   }
15888 fi # as_fn_arith
15889
15890
15891 if expr a : '\(a\)' >/dev/null 2>&1 &&
15892    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15893   as_expr=expr
15894 else
15895   as_expr=false
15896 fi
15897
15898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15899   as_basename=basename
15900 else
15901   as_basename=false
15902 fi
15903
15904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15905   as_dirname=dirname
15906 else
15907   as_dirname=false
15908 fi
15909
15910 as_me=`$as_basename -- "$0" ||
15911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15912          X"$0" : 'X\(//\)$' \| \
15913          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15914 $as_echo X/"$0" |
15915     sed '/^.*\/\([^/][^/]*\)\/*$/{
15916             s//\1/
15917             q
15918           }
15919           /^X\/\(\/\/\)$/{
15920             s//\1/
15921             q
15922           }
15923           /^X\/\(\/\).*/{
15924             s//\1/
15925             q
15926           }
15927           s/.*/./; q'`
15928
15929 # Avoid depending upon Character Ranges.
15930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15933 as_cr_digits='0123456789'
15934 as_cr_alnum=$as_cr_Letters$as_cr_digits
15935
15936 ECHO_C= ECHO_N= ECHO_T=
15937 case `echo -n x` in @%:@(((((
15938 -n*)
15939   case `echo 'xy\c'` in
15940   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15941   xy)  ECHO_C='\c';;
15942   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15943        ECHO_T=' ';;
15944   esac;;
15945 *)
15946   ECHO_N='-n';;
15947 esac
15948
15949 rm -f conf$$ conf$$.exe conf$$.file
15950 if test -d conf$$.dir; then
15951   rm -f conf$$.dir/conf$$.file
15952 else
15953   rm -f conf$$.dir
15954   mkdir conf$$.dir 2>/dev/null
15955 fi
15956 if (echo >conf$$.file) 2>/dev/null; then
15957   if ln -s conf$$.file conf$$ 2>/dev/null; then
15958     as_ln_s='ln -s'
15959     # ... but there are two gotchas:
15960     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15961     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15962     # In both cases, we have to default to `cp -p'.
15963     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15964       as_ln_s='cp -p'
15965   elif ln conf$$.file conf$$ 2>/dev/null; then
15966     as_ln_s=ln
15967   else
15968     as_ln_s='cp -p'
15969   fi
15970 else
15971   as_ln_s='cp -p'
15972 fi
15973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15974 rmdir conf$$.dir 2>/dev/null
15975
15976 if mkdir -p . 2>/dev/null; then
15977   as_mkdir_p='mkdir -p'
15978 elif mkdirs . 2>/dev/null; then
15979   as_mkdir_p='mkdirs'
15980 else
15981   as_mkdir_p=''
15982 fi
15983 test -d ./-p && rmdir ./-p
15984
15985 if test -x / >/dev/null 2>&1; then
15986   as_test_x='test -x'
15987 else
15988   if ls -dL / >/dev/null 2>&1; then
15989     as_ls_L_option=L
15990   else
15991     as_ls_L_option=
15992   fi
15993   as_test_x='
15994     eval sh -c '\''
15995       if test -d "$1"; then
15996         test -d "$1/.";
15997       else
15998         case $1 in @%:@(
15999         -*)set "./$1";;
16000         esac;
16001         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
16002         ???[sx]*):;;*)false;;esac;fi
16003     '\'' sh
16004   '
16005 fi
16006 as_executable_p=$as_test_x
16007
16008 # Sed expression to map a string onto a valid CPP name.
16009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16010
16011 # Sed expression to map a string onto a valid variable name.
16012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16013
16014
16015 exec 6>&1
16016 ## ----------------------------------- ##
16017 ## Main body of $CONFIG_STATUS script. ##
16018 ## ----------------------------------- ##
16019 _ASEOF
16020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16021
16022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16023 # Save the log message, to keep $0 and so on meaningful, and to
16024 # report actual input values of CONFIG_FILES etc. instead of their
16025 # values after options handling.
16026 ac_log="
16027 This file was extended by bullet $as_me 2.81, which was
16028 generated by GNU Autoconf 2.68.  Invocation command line was
16029
16030   CONFIG_FILES    = $CONFIG_FILES
16031   CONFIG_HEADERS  = $CONFIG_HEADERS
16032   CONFIG_LINKS    = $CONFIG_LINKS
16033   CONFIG_COMMANDS = $CONFIG_COMMANDS
16034   $ $0 $@
16035
16036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16037 "
16038
16039 _ACEOF
16040
16041 case $ac_config_files in *"
16042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16043 esac
16044
16045 case $ac_config_headers in *"
16046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16047 esac
16048
16049
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 # Files that config.status was made for.
16052 config_files="$ac_config_files"
16053 config_headers="$ac_config_headers"
16054 config_commands="$ac_config_commands"
16055
16056 _ACEOF
16057
16058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 ac_cs_usage="\
16060 \`$as_me' instantiates files and other configuration actions
16061 from templates according to the current configuration.  Unless the files
16062 and actions are specified as TAGs, all are instantiated by default.
16063
16064 Usage: $0 [OPTION]... [TAG]...
16065
16066   -h, --help       print this help, then exit
16067   -V, --version    print version number and configuration settings, then exit
16068       --config     print configuration, then exit
16069   -q, --quiet, --silent
16070                    do not print progress messages
16071   -d, --debug      don't remove temporary files
16072       --recheck    update $as_me by reconfiguring in the same conditions
16073       --file=FILE[:TEMPLATE] 
16074                    instantiate the configuration file FILE
16075       --header=FILE[:TEMPLATE] 
16076                    instantiate the configuration header FILE
16077
16078 Configuration files:
16079 $config_files
16080
16081 Configuration headers:
16082 $config_headers
16083
16084 Configuration commands:
16085 $config_commands
16086
16087 Report bugs to <bullet@erwincoumans.com>."
16088
16089 _ACEOF
16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16092 ac_cs_version="\\
16093 bullet config.status 2.81
16094 configured by $0, generated by GNU Autoconf 2.68,
16095   with options \\"\$ac_cs_config\\"
16096
16097 Copyright (C) 2010 Free Software Foundation, Inc.
16098 This config.status script is free software; the Free Software Foundation
16099 gives unlimited permission to copy, distribute and modify it."
16100
16101 ac_pwd='$ac_pwd'
16102 srcdir='$srcdir'
16103 INSTALL='$INSTALL'
16104 MKDIR_P='$MKDIR_P'
16105 AWK='$AWK'
16106 test -n "\$AWK" || AWK=awk
16107 _ACEOF
16108
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 # The default lists apply if the user does not specify any file.
16111 ac_need_defaults=:
16112 while test $# != 0
16113 do
16114   case $1 in
16115   --*=?*)
16116     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16117     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16118     ac_shift=:
16119     ;;
16120   --*=)
16121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16122     ac_optarg=
16123     ac_shift=:
16124     ;;
16125   *)
16126     ac_option=$1
16127     ac_optarg=$2
16128     ac_shift=shift
16129     ;;
16130   esac
16131
16132   case $ac_option in
16133   # Handling of the options.
16134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16135     ac_cs_recheck=: ;;
16136   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16137     $as_echo "$ac_cs_version"; exit ;;
16138   --config | --confi | --conf | --con | --co | --c )
16139     $as_echo "$ac_cs_config"; exit ;;
16140   --debug | --debu | --deb | --de | --d | -d )
16141     debug=: ;;
16142   --file | --fil | --fi | --f )
16143     $ac_shift
16144     case $ac_optarg in
16145     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16146     '') as_fn_error $? "missing file argument" ;;
16147     esac
16148     as_fn_append CONFIG_FILES " '$ac_optarg'"
16149     ac_need_defaults=false;;
16150   --header | --heade | --head | --hea )
16151     $ac_shift
16152     case $ac_optarg in
16153     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16154     esac
16155     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16156     ac_need_defaults=false;;
16157   --he | --h)
16158     # Conflict between --help and --header
16159     as_fn_error $? "ambiguous option: \`$1'
16160 Try \`$0 --help' for more information.";;
16161   --help | --hel | -h )
16162     $as_echo "$ac_cs_usage"; exit ;;
16163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16164   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16165     ac_cs_silent=: ;;
16166
16167   # This is an error.
16168   -*) as_fn_error $? "unrecognized option: \`$1'
16169 Try \`$0 --help' for more information." ;;
16170
16171   *) as_fn_append ac_config_targets " $1"
16172      ac_need_defaults=false ;;
16173
16174   esac
16175   shift
16176 done
16177
16178 ac_configure_extra_args=
16179
16180 if $ac_cs_silent; then
16181   exec 6>/dev/null
16182   ac_configure_extra_args="$ac_configure_extra_args --silent"
16183 fi
16184
16185 _ACEOF
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 if \$ac_cs_recheck; then
16188   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16189   shift
16190   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16191   CONFIG_SHELL='$SHELL'
16192   export CONFIG_SHELL
16193   exec "\$@"
16194 fi
16195
16196 _ACEOF
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 exec 5>>config.log
16199 {
16200   echo
16201   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16202 @%:@@%:@ Running $as_me. @%:@@%:@
16203 _ASBOX
16204   $as_echo "$ac_log"
16205 } >&5
16206
16207 _ACEOF
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 #
16210 # INIT-COMMANDS
16211 #
16212 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16213
16214
16215 # The HP-UX ksh and POSIX shell print the target directory to stdout
16216 # if CDPATH is set.
16217 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16218
16219 sed_quote_subst='$sed_quote_subst'
16220 double_quote_subst='$double_quote_subst'
16221 delay_variable_subst='$delay_variable_subst'
16222 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16223 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16224 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16225 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16226 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16227 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16228 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16229 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16230 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16231 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16232 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16233 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16234 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16235 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16236 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16237 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16238 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16239 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16240 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16241 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16242 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16243 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16244 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16245 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16246 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16247 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16248 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16249 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16250 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16251 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16252 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16253 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16254 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16255 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16256 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16257 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16258 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16259 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16260 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16261 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16262 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16263 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16264 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16265 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16266 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16267 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16268 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16269 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16270 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16271 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16272 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16273 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16277 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"`'
16278 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16279 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16280 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16281 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16282 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16283 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16286 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16287 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16288 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16321 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16322 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16323 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16324 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16325 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16326 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16352 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16353 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16354 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16355 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16356 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16357 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16358 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16359 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16360 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16361 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16362 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16363 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16369 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16370 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16371 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16372 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16373 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16374 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16377 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16378 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16379 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16380 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16382 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16385 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16386 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16387 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16388 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16389 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16390 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16391 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16392 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16393 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16394 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16396 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16397 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16398 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16399 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16400 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16401 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16402 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16403 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16404 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16405 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16406 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16407
16408 LTCC='$LTCC'
16409 LTCFLAGS='$LTCFLAGS'
16410 compiler='$compiler_DEFAULT'
16411
16412 # A function that is used when there is no print builtin or printf.
16413 func_fallback_echo ()
16414 {
16415   eval 'cat <<_LTECHO_EOF
16416 \$1
16417 _LTECHO_EOF'
16418 }
16419
16420 # Quote evaled strings.
16421 for var in SHELL \
16422 ECHO \
16423 SED \
16424 GREP \
16425 EGREP \
16426 FGREP \
16427 LD \
16428 NM \
16429 LN_S \
16430 lt_SP2NL \
16431 lt_NL2SP \
16432 reload_flag \
16433 OBJDUMP \
16434 deplibs_check_method \
16435 file_magic_cmd \
16436 file_magic_glob \
16437 want_nocaseglob \
16438 DLLTOOL \
16439 sharedlib_from_linklib_cmd \
16440 AR \
16441 AR_FLAGS \
16442 archiver_list_spec \
16443 STRIP \
16444 RANLIB \
16445 CC \
16446 CFLAGS \
16447 compiler \
16448 lt_cv_sys_global_symbol_pipe \
16449 lt_cv_sys_global_symbol_to_cdecl \
16450 lt_cv_sys_global_symbol_to_c_name_address \
16451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16452 nm_file_list_spec \
16453 lt_prog_compiler_no_builtin_flag \
16454 lt_prog_compiler_pic \
16455 lt_prog_compiler_wl \
16456 lt_prog_compiler_static \
16457 lt_cv_prog_compiler_c_o \
16458 need_locks \
16459 MANIFEST_TOOL \
16460 DSYMUTIL \
16461 NMEDIT \
16462 LIPO \
16463 OTOOL \
16464 OTOOL64 \
16465 shrext_cmds \
16466 export_dynamic_flag_spec \
16467 whole_archive_flag_spec \
16468 compiler_needs_object \
16469 with_gnu_ld \
16470 allow_undefined_flag \
16471 no_undefined_flag \
16472 hardcode_libdir_flag_spec \
16473 hardcode_libdir_flag_spec_ld \
16474 hardcode_libdir_separator \
16475 exclude_expsyms \
16476 include_expsyms \
16477 file_list_spec \
16478 variables_saved_for_relink \
16479 libname_spec \
16480 library_names_spec \
16481 soname_spec \
16482 install_override_mode \
16483 finish_eval \
16484 old_striplib \
16485 striplib \
16486 compiler_lib_search_dirs \
16487 predep_objects \
16488 postdep_objects \
16489 predeps \
16490 postdeps \
16491 compiler_lib_search_path \
16492 LD_CXX \
16493 reload_flag_CXX \
16494 compiler_CXX \
16495 lt_prog_compiler_no_builtin_flag_CXX \
16496 lt_prog_compiler_pic_CXX \
16497 lt_prog_compiler_wl_CXX \
16498 lt_prog_compiler_static_CXX \
16499 lt_cv_prog_compiler_c_o_CXX \
16500 export_dynamic_flag_spec_CXX \
16501 whole_archive_flag_spec_CXX \
16502 compiler_needs_object_CXX \
16503 with_gnu_ld_CXX \
16504 allow_undefined_flag_CXX \
16505 no_undefined_flag_CXX \
16506 hardcode_libdir_flag_spec_CXX \
16507 hardcode_libdir_flag_spec_ld_CXX \
16508 hardcode_libdir_separator_CXX \
16509 exclude_expsyms_CXX \
16510 include_expsyms_CXX \
16511 file_list_spec_CXX \
16512 compiler_lib_search_dirs_CXX \
16513 predep_objects_CXX \
16514 postdep_objects_CXX \
16515 predeps_CXX \
16516 postdeps_CXX \
16517 compiler_lib_search_path_CXX; do
16518     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16519     *[\\\\\\\`\\"\\\$]*)
16520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16521       ;;
16522     *)
16523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16524       ;;
16525     esac
16526 done
16527
16528 # Double-quote double-evaled strings.
16529 for var in reload_cmds \
16530 old_postinstall_cmds \
16531 old_postuninstall_cmds \
16532 old_archive_cmds \
16533 extract_expsyms_cmds \
16534 old_archive_from_new_cmds \
16535 old_archive_from_expsyms_cmds \
16536 archive_cmds \
16537 archive_expsym_cmds \
16538 module_cmds \
16539 module_expsym_cmds \
16540 export_symbols_cmds \
16541 prelink_cmds \
16542 postlink_cmds \
16543 postinstall_cmds \
16544 postuninstall_cmds \
16545 finish_cmds \
16546 sys_lib_search_path_spec \
16547 sys_lib_dlsearch_path_spec \
16548 reload_cmds_CXX \
16549 old_archive_cmds_CXX \
16550 old_archive_from_new_cmds_CXX \
16551 old_archive_from_expsyms_cmds_CXX \
16552 archive_cmds_CXX \
16553 archive_expsym_cmds_CXX \
16554 module_cmds_CXX \
16555 module_expsym_cmds_CXX \
16556 export_symbols_cmds_CXX \
16557 prelink_cmds_CXX \
16558 postlink_cmds_CXX; do
16559     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16560     *[\\\\\\\`\\"\\\$]*)
16561       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16562       ;;
16563     *)
16564       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16565       ;;
16566     esac
16567 done
16568
16569 ac_aux_dir='$ac_aux_dir'
16570 xsi_shell='$xsi_shell'
16571 lt_shell_append='$lt_shell_append'
16572
16573 # See if we are running on zsh, and set the options which allow our
16574 # commands through without removal of \ escapes INIT.
16575 if test -n "\${ZSH_VERSION+set}" ; then
16576    setopt NO_GLOB_SUBST
16577 fi
16578
16579
16580     PACKAGE='$PACKAGE'
16581     VERSION='$VERSION'
16582     TIMESTAMP='$TIMESTAMP'
16583     RM='$RM'
16584     ofile='$ofile'
16585
16586
16587
16588
16589
16590
16591 _ACEOF
16592
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594
16595 # Handling of arguments.
16596 for ac_config_target in $ac_config_targets
16597 do
16598   case $ac_config_target in
16599     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16600     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16601     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16602     "bullet.pc") CONFIG_FILES="$CONFIG_FILES bullet.pc" ;;
16603     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16604     "Demos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/Makefile" ;;
16605     "Demos/SoftDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/SoftDemo/Makefile" ;;
16606     "Demos/AllBulletDemos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/AllBulletDemos/Makefile" ;;
16607     "Demos/MultiThreadedDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/MultiThreadedDemo/Makefile" ;;
16608     "Demos/OpenGL/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/OpenGL/Makefile" ;;
16609     "Demos/BasicDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/BasicDemo/Makefile" ;;
16610     "Demos/CcdPhysicsDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/CcdPhysicsDemo/Makefile" ;;
16611     "Demos/VehicleDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/VehicleDemo/Makefile" ;;
16612     "Demos/TerrainDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/TerrainDemo/Makefile" ;;
16613     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16614     "Extras/Makefile") CONFIG_FILES="$CONFIG_FILES Extras/Makefile" ;;
16615
16616   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16617   esac
16618 done
16619
16620
16621 # If the user did not use the arguments to specify the items to instantiate,
16622 # then the envvar interface is used.  Set only those that are not.
16623 # We use the long form for the default assignment because of an extremely
16624 # bizarre bug on SunOS 4.1.3.
16625 if $ac_need_defaults; then
16626   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16627   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16628   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16629 fi
16630
16631 # Have a temporary directory for convenience.  Make it in the build tree
16632 # simply because there is no reason against having it here, and in addition,
16633 # creating and moving files from /tmp can sometimes cause problems.
16634 # Hook for its removal unless debugging.
16635 # Note that there is a small window in which the directory will not be cleaned:
16636 # after its creation but before its name has been assigned to `$tmp'.
16637 $debug ||
16638 {
16639   tmp= ac_tmp=
16640   trap 'exit_status=$?
16641   : "${ac_tmp:=$tmp}"
16642   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16643 ' 0
16644   trap 'as_fn_exit 1' 1 2 13 15
16645 }
16646 # Create a (secure) tmp directory for tmp files.
16647
16648 {
16649   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16650   test -d "$tmp"
16651 }  ||
16652 {
16653   tmp=./conf$$-$RANDOM
16654   (umask 077 && mkdir "$tmp")
16655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16656 ac_tmp=$tmp
16657
16658 # Set up the scripts for CONFIG_FILES section.
16659 # No need to generate them if there are no CONFIG_FILES.
16660 # This happens for instance with `./config.status config.h'.
16661 if test -n "$CONFIG_FILES"; then
16662
16663
16664 ac_cr=`echo X | tr X '\015'`
16665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16666 # But we know of no other shell where ac_cr would be empty at this
16667 # point, so we can use a bashism as a fallback.
16668 if test "x$ac_cr" = x; then
16669   eval ac_cr=\$\'\\r\'
16670 fi
16671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16673   ac_cs_awk_cr='\\r'
16674 else
16675   ac_cs_awk_cr=$ac_cr
16676 fi
16677
16678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16679 _ACEOF
16680
16681
16682 {
16683   echo "cat >conf$$subs.awk <<_ACEOF" &&
16684   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16685   echo "_ACEOF"
16686 } >conf$$subs.sh ||
16687   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16689 ac_delim='%!_!# '
16690 for ac_last_try in false false false false false :; do
16691   . ./conf$$subs.sh ||
16692     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16693
16694   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16695   if test $ac_delim_n = $ac_delim_num; then
16696     break
16697   elif $ac_last_try; then
16698     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16699   else
16700     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16701   fi
16702 done
16703 rm -f conf$$subs.sh
16704
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16707 _ACEOF
16708 sed -n '
16709 h
16710 s/^/S["/; s/!.*/"]=/
16711 p
16712 g
16713 s/^[^!]*!//
16714 :repl
16715 t repl
16716 s/'"$ac_delim"'$//
16717 t delim
16718 :nl
16719 h
16720 s/\(.\{148\}\)..*/\1/
16721 t more1
16722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16723 p
16724 n
16725 b repl
16726 :more1
16727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16728 p
16729 g
16730 s/.\{148\}//
16731 t nl
16732 :delim
16733 h
16734 s/\(.\{148\}\)..*/\1/
16735 t more2
16736 s/["\\]/\\&/g; s/^/"/; s/$/"/
16737 p
16738 b
16739 :more2
16740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16741 p
16742 g
16743 s/.\{148\}//
16744 t delim
16745 ' <conf$$subs.awk | sed '
16746 /^[^""]/{
16747   N
16748   s/\n//
16749 }
16750 ' >>$CONFIG_STATUS || ac_write_fail=1
16751 rm -f conf$$subs.awk
16752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16753 _ACAWK
16754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16755   for (key in S) S_is_set[key] = 1
16756   FS = "\a"
16757
16758 }
16759 {
16760   line = $ 0
16761   nfields = split(line, field, "@")
16762   substed = 0
16763   len = length(field[1])
16764   for (i = 2; i < nfields; i++) {
16765     key = field[i]
16766     keylen = length(key)
16767     if (S_is_set[key]) {
16768       value = S[key]
16769       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16770       len += length(value) + length(field[++i])
16771       substed = 1
16772     } else
16773       len += 1 + keylen
16774   }
16775
16776   print line
16777 }
16778
16779 _ACAWK
16780 _ACEOF
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16783   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16784 else
16785   cat
16786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16787   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16788 _ACEOF
16789
16790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16792 # trailing colons and then remove the whole line if VPATH becomes empty
16793 # (actually we leave an empty line to preserve line numbers).
16794 if test "x$srcdir" = x.; then
16795   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16796 h
16797 s///
16798 s/^/:/
16799 s/[      ]*$/:/
16800 s/:\$(srcdir):/:/g
16801 s/:\${srcdir}:/:/g
16802 s/:@srcdir@:/:/g
16803 s/^:*//
16804 s/:*$//
16805 x
16806 s/\(=[   ]*\).*/\1/
16807 G
16808 s/\n//
16809 s/^[^=]*=[       ]*$//
16810 }'
16811 fi
16812
16813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16814 fi # test -n "$CONFIG_FILES"
16815
16816 # Set up the scripts for CONFIG_HEADERS section.
16817 # No need to generate them if there are no CONFIG_HEADERS.
16818 # This happens for instance with `./config.status Makefile'.
16819 if test -n "$CONFIG_HEADERS"; then
16820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16821 BEGIN {
16822 _ACEOF
16823
16824 # Transform confdefs.h into an awk script `defines.awk', embedded as
16825 # here-document in config.status, that substitutes the proper values into
16826 # config.h.in to produce config.h.
16827
16828 # Create a delimiter string that does not exist in confdefs.h, to ease
16829 # handling of long lines.
16830 ac_delim='%!_!# '
16831 for ac_last_try in false false :; do
16832   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16833   if test -z "$ac_tt"; then
16834     break
16835   elif $ac_last_try; then
16836     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16837   else
16838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16839   fi
16840 done
16841
16842 # For the awk script, D is an array of macro values keyed by name,
16843 # likewise P contains macro parameters if any.  Preserve backslash
16844 # newline sequences.
16845
16846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16847 sed -n '
16848 s/.\{148\}/&'"$ac_delim"'/g
16849 t rset
16850 :rset
16851 s/^[     ]*#[    ]*define[       ][      ]*/ /
16852 t def
16853 d
16854 :def
16855 s/\\$//
16856 t bsnl
16857 s/["\\]/\\&/g
16858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16859 D["\1"]=" \3"/p
16860 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16861 d
16862 :bsnl
16863 s/["\\]/\\&/g
16864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16865 D["\1"]=" \3\\\\\\n"\\/p
16866 t cont
16867 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16868 t cont
16869 d
16870 :cont
16871 n
16872 s/.\{148\}/&'"$ac_delim"'/g
16873 t clear
16874 :clear
16875 s/\\$//
16876 t bsnlc
16877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16878 d
16879 :bsnlc
16880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16881 b cont
16882 ' <confdefs.h | sed '
16883 s/'"$ac_delim"'/"\\\
16884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16885
16886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16887   for (key in D) D_is_set[key] = 1
16888   FS = "\a"
16889 }
16890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16891   line = \$ 0
16892   split(line, arg, " ")
16893   if (arg[1] == "#") {
16894     defundef = arg[2]
16895     mac1 = arg[3]
16896   } else {
16897     defundef = substr(arg[1], 2)
16898     mac1 = arg[2]
16899   }
16900   split(mac1, mac2, "(") #)
16901   macro = mac2[1]
16902   prefix = substr(line, 1, index(line, defundef) - 1)
16903   if (D_is_set[macro]) {
16904     # Preserve the white space surrounding the "#".
16905     print prefix "define", macro P[macro] D[macro]
16906     next
16907   } else {
16908     # Replace #undef with comments.  This is necessary, for example,
16909     # in the case of _POSIX_SOURCE, which is predefined and required
16910     # on some systems where configure will not decide to define it.
16911     if (defundef == "undef") {
16912       print "/*", prefix defundef, macro, "*/"
16913       next
16914     }
16915   }
16916 }
16917 { print }
16918 _ACAWK
16919 _ACEOF
16920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16921   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16922 fi # test -n "$CONFIG_HEADERS"
16923
16924
16925 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16926 shift
16927 for ac_tag
16928 do
16929   case $ac_tag in
16930   :[FHLC]) ac_mode=$ac_tag; continue;;
16931   esac
16932   case $ac_mode$ac_tag in
16933   :[FHL]*:*);;
16934   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16935   :[FH]-) ac_tag=-:-;;
16936   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16937   esac
16938   ac_save_IFS=$IFS
16939   IFS=:
16940   set x $ac_tag
16941   IFS=$ac_save_IFS
16942   shift
16943   ac_file=$1
16944   shift
16945
16946   case $ac_mode in
16947   :L) ac_source=$1;;
16948   :[FH])
16949     ac_file_inputs=
16950     for ac_f
16951     do
16952       case $ac_f in
16953       -) ac_f="$ac_tmp/stdin";;
16954       *) # Look for the file first in the build tree, then in the source tree
16955          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16956          # because $ac_f cannot contain `:'.
16957          test -f "$ac_f" ||
16958            case $ac_f in
16959            [\\/$]*) false;;
16960            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16961            esac ||
16962            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16963       esac
16964       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16965       as_fn_append ac_file_inputs " '$ac_f'"
16966     done
16967
16968     # Let's still pretend it is `configure' which instantiates (i.e., don't
16969     # use $as_me), people would be surprised to read:
16970     #    /* config.h.  Generated by config.status.  */
16971     configure_input='Generated from '`
16972           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16973         `' by configure.'
16974     if test x"$ac_file" != x-; then
16975       configure_input="$ac_file.  $configure_input"
16976       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16977 $as_echo "$as_me: creating $ac_file" >&6;}
16978     fi
16979     # Neutralize special characters interpreted by sed in replacement strings.
16980     case $configure_input in #(
16981     *\&* | *\|* | *\\* )
16982        ac_sed_conf_input=`$as_echo "$configure_input" |
16983        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16984     *) ac_sed_conf_input=$configure_input;;
16985     esac
16986
16987     case $ac_tag in
16988     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16989       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16990     esac
16991     ;;
16992   esac
16993
16994   ac_dir=`$as_dirname -- "$ac_file" ||
16995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16996          X"$ac_file" : 'X\(//\)[^/]' \| \
16997          X"$ac_file" : 'X\(//\)$' \| \
16998          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16999 $as_echo X"$ac_file" |
17000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17001             s//\1/
17002             q
17003           }
17004           /^X\(\/\/\)[^/].*/{
17005             s//\1/
17006             q
17007           }
17008           /^X\(\/\/\)$/{
17009             s//\1/
17010             q
17011           }
17012           /^X\(\/\).*/{
17013             s//\1/
17014             q
17015           }
17016           s/.*/./; q'`
17017   { if test -n "$as_mkdir_p"; then
17018     $as_mkdir_p "$ac_dir"
17019   else
17020     as_dir="$ac_dir"
17021     as_dirs=
17022     while test ! -d "$as_dir"; do
17023       as_dirs="$as_dir $as_dirs"
17024       as_dir=`$as_dirname -- "$as_dir" ||
17025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17026          X"$as_dir" : 'X\(//\)[^/]' \| \
17027          X"$as_dir" : 'X\(//\)$' \| \
17028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17029 $as_echo X"$as_dir" |
17030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17031             s//\1/
17032             q
17033           }
17034           /^X\(\/\/\)[^/].*/{
17035             s//\1/
17036             q
17037           }
17038           /^X\(\/\/\)$/{
17039             s//\1/
17040             q
17041           }
17042           /^X\(\/\).*/{
17043             s//\1/
17044             q
17045           }
17046           s/.*/./; q'`
17047     done
17048     test ! -n "$as_dirs" || mkdir $as_dirs
17049   fi || as_fn_error $? "cannot create directory \"$ac_dir\"" "$LINENO" 5; }
17050
17051   ac_builddir=.
17052
17053 case "$ac_dir" in
17054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17055 *)
17056   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17057   # A ".." for each directory in $ac_dir_suffix.
17058   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17059   case $ac_top_builddir_sub in
17060   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17061   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17062   esac ;;
17063 esac
17064 ac_abs_top_builddir=$ac_pwd
17065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17066 # for backward compatibility:
17067 ac_top_builddir=$ac_top_build_prefix
17068
17069 case $srcdir in
17070   .)  # We are building in place.
17071     ac_srcdir=.
17072     ac_top_srcdir=$ac_top_builddir_sub
17073     ac_abs_top_srcdir=$ac_pwd ;;
17074   [\\/]* | ?:[\\/]* )  # Absolute name.
17075     ac_srcdir=$srcdir$ac_dir_suffix;
17076     ac_top_srcdir=$srcdir
17077     ac_abs_top_srcdir=$srcdir ;;
17078   *) # Relative name.
17079     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17080     ac_top_srcdir=$ac_top_build_prefix$srcdir
17081     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17082 esac
17083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17084
17085
17086   case $ac_mode in
17087   :F)
17088   #
17089   # CONFIG_FILE
17090   #
17091
17092   case $INSTALL in
17093   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17094   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17095   esac
17096   ac_MKDIR_P=$MKDIR_P
17097   case $MKDIR_P in
17098   [\\/$]* | ?:[\\/]* ) ;;
17099   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17100   esac
17101 _ACEOF
17102
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104 # If the template does not know about datarootdir, expand it.
17105 # FIXME: This hack should be removed a few years after 2.60.
17106 ac_datarootdir_hack=; ac_datarootdir_seen=
17107 ac_sed_dataroot='
17108 /datarootdir/ {
17109   p
17110   q
17111 }
17112 /@datadir@/p
17113 /@docdir@/p
17114 /@infodir@/p
17115 /@localedir@/p
17116 /@mandir@/p'
17117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17118 *datarootdir*) ac_datarootdir_seen=yes;;
17119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17120   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17122 _ACEOF
17123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124   ac_datarootdir_hack='
17125   s&@datadir@&$datadir&g
17126   s&@docdir@&$docdir&g
17127   s&@infodir@&$infodir&g
17128   s&@localedir@&$localedir&g
17129   s&@mandir@&$mandir&g
17130   s&\\\${datarootdir}&$datarootdir&g' ;;
17131 esac
17132 _ACEOF
17133
17134 # Neutralize VPATH when `$srcdir' = `.'.
17135 # Shell code in configure.ac might set extrasub.
17136 # FIXME: do we really want to maintain this feature?
17137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17138 ac_sed_extra="$ac_vpsub
17139 $extrasub
17140 _ACEOF
17141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17142 :t
17143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17144 s|@configure_input@|$ac_sed_conf_input|;t t
17145 s&@top_builddir@&$ac_top_builddir_sub&;t t
17146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17147 s&@srcdir@&$ac_srcdir&;t t
17148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17149 s&@top_srcdir@&$ac_top_srcdir&;t t
17150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17151 s&@builddir@&$ac_builddir&;t t
17152 s&@abs_builddir@&$ac_abs_builddir&;t t
17153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17154 s&@INSTALL@&$ac_INSTALL&;t t
17155 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17156 $ac_datarootdir_hack
17157 "
17158 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17159   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17160
17161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17162   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17163   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17164       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17165   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17166 which seems to be undefined.  Please make sure it is defined" >&5
17167 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17168 which seems to be undefined.  Please make sure it is defined" >&2;}
17169
17170   rm -f "$ac_tmp/stdin"
17171   case $ac_file in
17172   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17173   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17174   esac \
17175   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17176  ;;
17177   :H)
17178   #
17179   # CONFIG_HEADER
17180   #
17181   if test x"$ac_file" != x-; then
17182     {
17183       $as_echo "/* $configure_input  */" \
17184       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17185     } >"$ac_tmp/config.h" \
17186       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17187     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17188       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17189 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17190     else
17191       rm -f "$ac_file"
17192       mv "$ac_tmp/config.h" "$ac_file" \
17193         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17194     fi
17195   else
17196     $as_echo "/* $configure_input  */" \
17197       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17198       || as_fn_error $? "could not create -" "$LINENO" 5
17199   fi
17200 # Compute "$ac_file"'s index in $config_headers.
17201 _am_arg="$ac_file"
17202 _am_stamp_count=1
17203 for _am_header in $config_headers :; do
17204   case $_am_header in
17205     $_am_arg | $_am_arg:* )
17206       break ;;
17207     * )
17208       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17209   esac
17210 done
17211 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17212 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17213          X"$_am_arg" : 'X\(//\)[^/]' \| \
17214          X"$_am_arg" : 'X\(//\)$' \| \
17215          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17216 $as_echo X"$_am_arg" |
17217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17218             s//\1/
17219             q
17220           }
17221           /^X\(\/\/\)[^/].*/{
17222             s//\1/
17223             q
17224           }
17225           /^X\(\/\/\)$/{
17226             s//\1/
17227             q
17228           }
17229           /^X\(\/\).*/{
17230             s//\1/
17231             q
17232           }
17233           s/.*/./; q'`/stamp-h$_am_stamp_count
17234  ;;
17235   
17236   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17237 $as_echo "$as_me: executing $ac_file commands" >&6;}
17238  ;;
17239   esac
17240
17241
17242   case $ac_file$ac_mode in
17243     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17244   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17245   # are listed without --file.  Let's play safe and only enable the eval
17246   # if we detect the quoting.
17247   case $CONFIG_FILES in
17248   *\'*) eval set x "$CONFIG_FILES" ;;
17249   *)   set x $CONFIG_FILES ;;
17250   esac
17251   shift
17252   for mf
17253   do
17254     # Strip MF so we end up with the name of the file.
17255     mf=`echo "$mf" | sed -e 's/:.*$//'`
17256     # Check whether this is an Automake generated Makefile or not.
17257     # We used to match only the files named `Makefile.in', but
17258     # some people rename them; so instead we look at the file content.
17259     # Grep'ing the first line is not enough: some people post-process
17260     # each Makefile.in and add a new line on top of each file to say so.
17261     # Grep'ing the whole file is not good either: AIX grep has a line
17262     # limit of 2048, but all sed's we know have understand at least 4000.
17263     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17264       dirpart=`$as_dirname -- "$mf" ||
17265 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17266          X"$mf" : 'X\(//\)[^/]' \| \
17267          X"$mf" : 'X\(//\)$' \| \
17268          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17269 $as_echo X"$mf" |
17270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17271             s//\1/
17272             q
17273           }
17274           /^X\(\/\/\)[^/].*/{
17275             s//\1/
17276             q
17277           }
17278           /^X\(\/\/\)$/{
17279             s//\1/
17280             q
17281           }
17282           /^X\(\/\).*/{
17283             s//\1/
17284             q
17285           }
17286           s/.*/./; q'`
17287     else
17288       continue
17289     fi
17290     # Extract the definition of DEPDIR, am__include, and am__quote
17291     # from the Makefile without running `make'.
17292     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17293     test -z "$DEPDIR" && continue
17294     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17295     test -z "am__include" && continue
17296     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17297     # When using ansi2knr, U may be empty or an underscore; expand it
17298     U=`sed -n 's/^U = //p' < "$mf"`
17299     # Find all dependency output files, they are included files with
17300     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17301     # simplest approach to changing $(DEPDIR) to its actual value in the
17302     # expansion.
17303     for file in `sed -n "
17304       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17305          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17306       # Make sure the directory exists.
17307       test -f "$dirpart/$file" && continue
17308       fdir=`$as_dirname -- "$file" ||
17309 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310          X"$file" : 'X\(//\)[^/]' \| \
17311          X"$file" : 'X\(//\)$' \| \
17312          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17313 $as_echo X"$file" |
17314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17315             s//\1/
17316             q
17317           }
17318           /^X\(\/\/\)[^/].*/{
17319             s//\1/
17320             q
17321           }
17322           /^X\(\/\/\)$/{
17323             s//\1/
17324             q
17325           }
17326           /^X\(\/\).*/{
17327             s//\1/
17328             q
17329           }
17330           s/.*/./; q'`
17331       { if test -n "$as_mkdir_p"; then
17332     $as_mkdir_p $dirpart/$fdir
17333   else
17334     as_dir=$dirpart/$fdir
17335     as_dirs=
17336     while test ! -d "$as_dir"; do
17337       as_dirs="$as_dir $as_dirs"
17338       as_dir=`$as_dirname -- "$as_dir" ||
17339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17340          X"$as_dir" : 'X\(//\)[^/]' \| \
17341          X"$as_dir" : 'X\(//\)$' \| \
17342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17343 $as_echo X"$as_dir" |
17344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17345             s//\1/
17346             q
17347           }
17348           /^X\(\/\/\)[^/].*/{
17349             s//\1/
17350             q
17351           }
17352           /^X\(\/\/\)$/{
17353             s//\1/
17354             q
17355           }
17356           /^X\(\/\).*/{
17357             s//\1/
17358             q
17359           }
17360           s/.*/./; q'`
17361     done
17362     test ! -n "$as_dirs" || mkdir $as_dirs
17363   fi || as_fn_error $? "cannot create directory $dirpart/$fdir" "$LINENO" 5; }
17364
17365       # echo "creating $dirpart/$file"
17366       echo '# dummy' > "$dirpart/$file"
17367     done
17368   done
17369 }
17370  ;;
17371     "libtool":C) 
17372     
17373     # See if we are running on zsh, and set the options which allow our
17374     # commands through without removal of \ escapes.
17375     if test -n "${ZSH_VERSION+set}" ; then
17376       setopt NO_GLOB_SUBST
17377     fi
17378
17379     cfgfile="${ofile}T"
17380     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17381     $RM "$cfgfile"
17382
17383     cat <<_LT_EOF >> "$cfgfile"
17384 #! $SHELL
17385
17386 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17387 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17390 #
17391 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17392 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17393 #                 Inc.
17394 #   Written by Gordon Matzigkeit, 1996
17395 #
17396 #   This file is part of GNU Libtool.
17397 #
17398 # GNU Libtool is free software; you can redistribute it and/or
17399 # modify it under the terms of the GNU General Public License as
17400 # published by the Free Software Foundation; either version 2 of
17401 # the License, or (at your option) any later version.
17402 #
17403 # As a special exception to the GNU General Public License,
17404 # if you distribute this file as part of a program or library that
17405 # is built using GNU Libtool, you may include this file under the
17406 # same distribution terms that you use for the rest of that program.
17407 #
17408 # GNU Libtool is distributed in the hope that it will be useful,
17409 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17411 # GNU General Public License for more details.
17412 #
17413 # You should have received a copy of the GNU General Public License
17414 # along with GNU Libtool; see the file COPYING.  If not, a copy
17415 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17416 # obtained by writing to the Free Software Foundation, Inc.,
17417 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17418
17419
17420 # The names of the tagged configurations supported by this script.
17421 available_tags="CXX "
17422
17423 # ### BEGIN LIBTOOL CONFIG
17424
17425 # Which release of libtool.m4 was used?
17426 macro_version=$macro_version
17427 macro_revision=$macro_revision
17428
17429 # Whether or not to build shared libraries.
17430 build_libtool_libs=$enable_shared
17431
17432 # Whether or not to build static libraries.
17433 build_old_libs=$enable_static
17434
17435 # What type of objects to build.
17436 pic_mode=$pic_mode
17437
17438 # Whether or not to optimize for fast installation.
17439 fast_install=$enable_fast_install
17440
17441 # Shell to use when invoking shell scripts.
17442 SHELL=$lt_SHELL
17443
17444 # An echo program that protects backslashes.
17445 ECHO=$lt_ECHO
17446
17447 # The host system.
17448 host_alias=$host_alias
17449 host=$host
17450 host_os=$host_os
17451
17452 # The build system.
17453 build_alias=$build_alias
17454 build=$build
17455 build_os=$build_os
17456
17457 # A sed program that does not truncate output.
17458 SED=$lt_SED
17459
17460 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17461 Xsed="\$SED -e 1s/^X//"
17462
17463 # A grep program that handles long lines.
17464 GREP=$lt_GREP
17465
17466 # An ERE matcher.
17467 EGREP=$lt_EGREP
17468
17469 # A literal string matcher.
17470 FGREP=$lt_FGREP
17471
17472 # A BSD- or MS-compatible name lister.
17473 NM=$lt_NM
17474
17475 # Whether we need soft or hard links.
17476 LN_S=$lt_LN_S
17477
17478 # What is the maximum length of a command?
17479 max_cmd_len=$max_cmd_len
17480
17481 # Object file suffix (normally "o").
17482 objext=$ac_objext
17483
17484 # Executable file suffix (normally "").
17485 exeext=$exeext
17486
17487 # whether the shell understands "unset".
17488 lt_unset=$lt_unset
17489
17490 # turn spaces into newlines.
17491 SP2NL=$lt_lt_SP2NL
17492
17493 # turn newlines into spaces.
17494 NL2SP=$lt_lt_NL2SP
17495
17496 # convert \$build file names to \$host format.
17497 to_host_file_cmd=$lt_cv_to_host_file_cmd
17498
17499 # convert \$build files to toolchain format.
17500 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17501
17502 # An object symbol dumper.
17503 OBJDUMP=$lt_OBJDUMP
17504
17505 # Method to check whether dependent libraries are shared objects.
17506 deplibs_check_method=$lt_deplibs_check_method
17507
17508 # Command to use when deplibs_check_method = "file_magic".
17509 file_magic_cmd=$lt_file_magic_cmd
17510
17511 # How to find potential files when deplibs_check_method = "file_magic".
17512 file_magic_glob=$lt_file_magic_glob
17513
17514 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17515 want_nocaseglob=$lt_want_nocaseglob
17516
17517 # DLL creation program.
17518 DLLTOOL=$lt_DLLTOOL
17519
17520 # Command to associate shared and link libraries.
17521 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17522
17523 # The archiver.
17524 AR=$lt_AR
17525
17526 # Flags to create an archive.
17527 AR_FLAGS=$lt_AR_FLAGS
17528
17529 # How to feed a file listing to the archiver.
17530 archiver_list_spec=$lt_archiver_list_spec
17531
17532 # A symbol stripping program.
17533 STRIP=$lt_STRIP
17534
17535 # Commands used to install an old-style archive.
17536 RANLIB=$lt_RANLIB
17537 old_postinstall_cmds=$lt_old_postinstall_cmds
17538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17539
17540 # Whether to use a lock for old archive extraction.
17541 lock_old_archive_extraction=$lock_old_archive_extraction
17542
17543 # A C compiler.
17544 LTCC=$lt_CC
17545
17546 # LTCC compiler flags.
17547 LTCFLAGS=$lt_CFLAGS
17548
17549 # Take the output of nm and produce a listing of raw symbols and C names.
17550 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17551
17552 # Transform the output of nm in a proper C declaration.
17553 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17554
17555 # Transform the output of nm in a C name address pair.
17556 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17557
17558 # Transform the output of nm in a C name address pair when lib prefix is needed.
17559 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17560
17561 # Specify filename containing input files for \$NM.
17562 nm_file_list_spec=$lt_nm_file_list_spec
17563
17564 # The root where to search for dependent libraries,and in which our libraries should be installed.
17565 lt_sysroot=$lt_sysroot
17566
17567 # The name of the directory that contains temporary libtool files.
17568 objdir=$objdir
17569
17570 # Used to examine libraries when file_magic_cmd begins with "file".
17571 MAGIC_CMD=$MAGIC_CMD
17572
17573 # Must we lock files when doing compilation?
17574 need_locks=$lt_need_locks
17575
17576 # Manifest tool.
17577 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17578
17579 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17580 DSYMUTIL=$lt_DSYMUTIL
17581
17582 # Tool to change global to local symbols on Mac OS X.
17583 NMEDIT=$lt_NMEDIT
17584
17585 # Tool to manipulate fat objects and archives on Mac OS X.
17586 LIPO=$lt_LIPO
17587
17588 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17589 OTOOL=$lt_OTOOL
17590
17591 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17592 OTOOL64=$lt_OTOOL64
17593
17594 # Old archive suffix (normally "a").
17595 libext=$libext
17596
17597 # Shared library suffix (normally ".so").
17598 shrext_cmds=$lt_shrext_cmds
17599
17600 # The commands to extract the exported symbol list from a shared archive.
17601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17602
17603 # Variables whose values should be saved in libtool wrapper scripts and
17604 # restored at link time.
17605 variables_saved_for_relink=$lt_variables_saved_for_relink
17606
17607 # Do we need the "lib" prefix for modules?
17608 need_lib_prefix=$need_lib_prefix
17609
17610 # Do we need a version for libraries?
17611 need_version=$need_version
17612
17613 # Library versioning type.
17614 version_type=$version_type
17615
17616 # Shared library runtime path variable.
17617 runpath_var=$runpath_var
17618
17619 # Shared library path variable.
17620 shlibpath_var=$shlibpath_var
17621
17622 # Is shlibpath searched before the hard-coded library search path?
17623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17624
17625 # Format of library name prefix.
17626 libname_spec=$lt_libname_spec
17627
17628 # List of archive names.  First name is the real one, the rest are links.
17629 # The last name is the one that the linker finds with -lNAME
17630 library_names_spec=$lt_library_names_spec
17631
17632 # The coded name of the library, if different from the real name.
17633 soname_spec=$lt_soname_spec
17634
17635 # Permission mode override for installation of shared libraries.
17636 install_override_mode=$lt_install_override_mode
17637
17638 # Command to use after installation of a shared archive.
17639 postinstall_cmds=$lt_postinstall_cmds
17640
17641 # Command to use after uninstallation of a shared archive.
17642 postuninstall_cmds=$lt_postuninstall_cmds
17643
17644 # Commands used to finish a libtool library installation in a directory.
17645 finish_cmds=$lt_finish_cmds
17646
17647 # As "finish_cmds", except a single script fragment to be evaled but
17648 # not shown.
17649 finish_eval=$lt_finish_eval
17650
17651 # Whether we should hardcode library paths into libraries.
17652 hardcode_into_libs=$hardcode_into_libs
17653
17654 # Compile-time system search path for libraries.
17655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17656
17657 # Run-time system search path for libraries.
17658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17659
17660 # Whether dlopen is supported.
17661 dlopen_support=$enable_dlopen
17662
17663 # Whether dlopen of programs is supported.
17664 dlopen_self=$enable_dlopen_self
17665
17666 # Whether dlopen of statically linked programs is supported.
17667 dlopen_self_static=$enable_dlopen_self_static
17668
17669 # Commands to strip libraries.
17670 old_striplib=$lt_old_striplib
17671 striplib=$lt_striplib
17672
17673
17674 # The linker used to build libraries.
17675 LD=$lt_LD
17676
17677 # How to create reloadable object files.
17678 reload_flag=$lt_reload_flag
17679 reload_cmds=$lt_reload_cmds
17680
17681 # Commands used to build an old-style archive.
17682 old_archive_cmds=$lt_old_archive_cmds
17683
17684 # A language specific compiler.
17685 CC=$lt_compiler
17686
17687 # Is the compiler the GNU compiler?
17688 with_gcc=$GCC
17689
17690 # Compiler flag to turn off builtin functions.
17691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17692
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic
17695
17696 # How to pass a linker flag through the compiler.
17697 wl=$lt_lt_prog_compiler_wl
17698
17699 # Compiler flag to prevent dynamic linking.
17700 link_static_flag=$lt_lt_prog_compiler_static
17701
17702 # Does compiler simultaneously support -c and -o options?
17703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17704
17705 # Whether or not to add -lc for building shared libraries.
17706 build_libtool_need_lc=$archive_cmds_need_lc
17707
17708 # Whether or not to disallow shared libs when runtime libs are static.
17709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17710
17711 # Compiler flag to allow reflexive dlopens.
17712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17713
17714 # Compiler flag to generate shared objects directly from archives.
17715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17716
17717 # Whether the compiler copes with passing no objects directly.
17718 compiler_needs_object=$lt_compiler_needs_object
17719
17720 # Create an old-style archive from a shared archive.
17721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17722
17723 # Create a temporary old-style archive to link instead of a shared archive.
17724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17725
17726 # Commands used to build a shared archive.
17727 archive_cmds=$lt_archive_cmds
17728 archive_expsym_cmds=$lt_archive_expsym_cmds
17729
17730 # Commands used to build a loadable module if different from building
17731 # a shared archive.
17732 module_cmds=$lt_module_cmds
17733 module_expsym_cmds=$lt_module_expsym_cmds
17734
17735 # Whether we are building with GNU ld or not.
17736 with_gnu_ld=$lt_with_gnu_ld
17737
17738 # Flag that allows shared libraries with undefined symbols to be built.
17739 allow_undefined_flag=$lt_allow_undefined_flag
17740
17741 # Flag that enforces no undefined symbols.
17742 no_undefined_flag=$lt_no_undefined_flag
17743
17744 # Flag to hardcode \$libdir into a binary during linking.
17745 # This must work even if \$libdir does not exist
17746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17747
17748 # If ld is used when linking, flag to hardcode \$libdir into a binary
17749 # during linking.  This must work even if \$libdir does not exist.
17750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17751
17752 # Whether we need a single "-rpath" flag with a separated argument.
17753 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17754
17755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17756 # DIR into the resulting binary.
17757 hardcode_direct=$hardcode_direct
17758
17759 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17760 # DIR into the resulting binary and the resulting library dependency is
17761 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17762 # library is relocated.
17763 hardcode_direct_absolute=$hardcode_direct_absolute
17764
17765 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17766 # into the resulting binary.
17767 hardcode_minus_L=$hardcode_minus_L
17768
17769 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17770 # into the resulting binary.
17771 hardcode_shlibpath_var=$hardcode_shlibpath_var
17772
17773 # Set to "yes" if building a shared library automatically hardcodes DIR
17774 # into the library and all subsequent libraries and executables linked
17775 # against it.
17776 hardcode_automatic=$hardcode_automatic
17777
17778 # Set to yes if linker adds runtime paths of dependent libraries
17779 # to runtime path list.
17780 inherit_rpath=$inherit_rpath
17781
17782 # Whether libtool must link a program against all its dependency libraries.
17783 link_all_deplibs=$link_all_deplibs
17784
17785 # Set to "yes" if exported symbols are required.
17786 always_export_symbols=$always_export_symbols
17787
17788 # The commands to list exported symbols.
17789 export_symbols_cmds=$lt_export_symbols_cmds
17790
17791 # Symbols that should not be listed in the preloaded symbols.
17792 exclude_expsyms=$lt_exclude_expsyms
17793
17794 # Symbols that must always be exported.
17795 include_expsyms=$lt_include_expsyms
17796
17797 # Commands necessary for linking programs (against libraries) with templates.
17798 prelink_cmds=$lt_prelink_cmds
17799
17800 # Commands necessary for finishing linking programs.
17801 postlink_cmds=$lt_postlink_cmds
17802
17803 # Specify filename containing input files.
17804 file_list_spec=$lt_file_list_spec
17805
17806 # How to hardcode a shared library path into an executable.
17807 hardcode_action=$hardcode_action
17808
17809 # The directories searched by this compiler when creating a shared library.
17810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17811
17812 # Dependencies to place before and after the objects being linked to
17813 # create a shared library.
17814 predep_objects=$lt_predep_objects
17815 postdep_objects=$lt_postdep_objects
17816 predeps=$lt_predeps
17817 postdeps=$lt_postdeps
17818
17819 # The library search path used internally by the compiler when linking
17820 # a shared library.
17821 compiler_lib_search_path=$lt_compiler_lib_search_path
17822
17823 # ### END LIBTOOL CONFIG
17824
17825 _LT_EOF
17826
17827   case $host_os in
17828   aix3*)
17829     cat <<\_LT_EOF >> "$cfgfile"
17830 # AIX sometimes has problems with the GCC collect2 program.  For some
17831 # reason, if we set the COLLECT_NAMES environment variable, the problems
17832 # vanish in a puff of smoke.
17833 if test "X${COLLECT_NAMES+set}" != Xset; then
17834   COLLECT_NAMES=
17835   export COLLECT_NAMES
17836 fi
17837 _LT_EOF
17838     ;;
17839   esac
17840
17841   
17842 ltmain="$ac_aux_dir/ltmain.sh"
17843
17844
17845   # We use sed instead of cat because bash on DJGPP gets confused if
17846   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17847   # text mode, it properly converts lines to CR/LF.  This bash problem
17848   # is reportedly fixed, but why not run on old versions too?
17849   sed '$q' "$ltmain" >> "$cfgfile" \
17850      || (rm -f "$cfgfile"; exit 1)
17851
17852   if test x"$xsi_shell" = xyes; then
17853   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17854 func_dirname ()\
17855 {\
17856 \    case ${1} in\
17857 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17858 \      *  ) func_dirname_result="${3}" ;;\
17859 \    esac\
17860 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17861   && mv -f "$cfgfile.tmp" "$cfgfile" \
17862     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17863 test 0 -eq $? || _lt_function_replace_fail=:
17864
17865
17866   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17867 func_basename ()\
17868 {\
17869 \    func_basename_result="${1##*/}"\
17870 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17871   && mv -f "$cfgfile.tmp" "$cfgfile" \
17872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17873 test 0 -eq $? || _lt_function_replace_fail=:
17874
17875
17876   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17877 func_dirname_and_basename ()\
17878 {\
17879 \    case ${1} in\
17880 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17881 \      *  ) func_dirname_result="${3}" ;;\
17882 \    esac\
17883 \    func_basename_result="${1##*/}"\
17884 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17885   && mv -f "$cfgfile.tmp" "$cfgfile" \
17886     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17887 test 0 -eq $? || _lt_function_replace_fail=:
17888
17889
17890   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17891 func_stripname ()\
17892 {\
17893 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17894 \    # positional parameters, so assign one to ordinary parameter first.\
17895 \    func_stripname_result=${3}\
17896 \    func_stripname_result=${func_stripname_result#"${1}"}\
17897 \    func_stripname_result=${func_stripname_result%"${2}"}\
17898 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17899   && mv -f "$cfgfile.tmp" "$cfgfile" \
17900     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901 test 0 -eq $? || _lt_function_replace_fail=:
17902
17903
17904   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17905 func_split_long_opt ()\
17906 {\
17907 \    func_split_long_opt_name=${1%%=*}\
17908 \    func_split_long_opt_arg=${1#*=}\
17909 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17910   && mv -f "$cfgfile.tmp" "$cfgfile" \
17911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912 test 0 -eq $? || _lt_function_replace_fail=:
17913
17914
17915   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17916 func_split_short_opt ()\
17917 {\
17918 \    func_split_short_opt_arg=${1#??}\
17919 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17920 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17921   && mv -f "$cfgfile.tmp" "$cfgfile" \
17922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17923 test 0 -eq $? || _lt_function_replace_fail=:
17924
17925
17926   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17927 func_lo2o ()\
17928 {\
17929 \    case ${1} in\
17930 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17931 \      *)    func_lo2o_result=${1} ;;\
17932 \    esac\
17933 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17934   && mv -f "$cfgfile.tmp" "$cfgfile" \
17935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17936 test 0 -eq $? || _lt_function_replace_fail=:
17937
17938
17939   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17940 func_xform ()\
17941 {\
17942     func_xform_result=${1%.*}.lo\
17943 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17944   && mv -f "$cfgfile.tmp" "$cfgfile" \
17945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17946 test 0 -eq $? || _lt_function_replace_fail=:
17947
17948
17949   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17950 func_arith ()\
17951 {\
17952     func_arith_result=$(( $* ))\
17953 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17954   && mv -f "$cfgfile.tmp" "$cfgfile" \
17955     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17956 test 0 -eq $? || _lt_function_replace_fail=:
17957
17958
17959   sed -e '/^func_len ()$/,/^} # func_len /c\
17960 func_len ()\
17961 {\
17962     func_len_result=${#1}\
17963 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17964   && mv -f "$cfgfile.tmp" "$cfgfile" \
17965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17966 test 0 -eq $? || _lt_function_replace_fail=:
17967
17968 fi
17969
17970 if test x"$lt_shell_append" = xyes; then
17971   sed -e '/^func_append ()$/,/^} # func_append /c\
17972 func_append ()\
17973 {\
17974     eval "${1}+=\\${2}"\
17975 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17976   && mv -f "$cfgfile.tmp" "$cfgfile" \
17977     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17978 test 0 -eq $? || _lt_function_replace_fail=:
17979
17980
17981   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17982 func_append_quoted ()\
17983 {\
17984 \    func_quote_for_eval "${2}"\
17985 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17986 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17987   && mv -f "$cfgfile.tmp" "$cfgfile" \
17988     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989 test 0 -eq $? || _lt_function_replace_fail=:
17990
17991
17992   # Save a `func_append' function call where possible by direct use of '+='
17993   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17994     && mv -f "$cfgfile.tmp" "$cfgfile" \
17995       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17996   test 0 -eq $? || _lt_function_replace_fail=:
17997 else
17998   # Save a `func_append' function call even when '+=' is not available
17999   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18000     && mv -f "$cfgfile.tmp" "$cfgfile" \
18001       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18002   test 0 -eq $? || _lt_function_replace_fail=:
18003 fi
18004
18005 if test x"$_lt_function_replace_fail" = x":"; then
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18007 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18008 fi
18009
18010
18011    mv -f "$cfgfile" "$ofile" ||
18012     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18013   chmod +x "$ofile"
18014
18015
18016     cat <<_LT_EOF >> "$ofile"
18017
18018 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18019
18020 # The linker used to build libraries.
18021 LD=$lt_LD_CXX
18022
18023 # How to create reloadable object files.
18024 reload_flag=$lt_reload_flag_CXX
18025 reload_cmds=$lt_reload_cmds_CXX
18026
18027 # Commands used to build an old-style archive.
18028 old_archive_cmds=$lt_old_archive_cmds_CXX
18029
18030 # A language specific compiler.
18031 CC=$lt_compiler_CXX
18032
18033 # Is the compiler the GNU compiler?
18034 with_gcc=$GCC_CXX
18035
18036 # Compiler flag to turn off builtin functions.
18037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18038
18039 # Additional compiler flags for building library objects.
18040 pic_flag=$lt_lt_prog_compiler_pic_CXX
18041
18042 # How to pass a linker flag through the compiler.
18043 wl=$lt_lt_prog_compiler_wl_CXX
18044
18045 # Compiler flag to prevent dynamic linking.
18046 link_static_flag=$lt_lt_prog_compiler_static_CXX
18047
18048 # Does compiler simultaneously support -c and -o options?
18049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18050
18051 # Whether or not to add -lc for building shared libraries.
18052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18053
18054 # Whether or not to disallow shared libs when runtime libs are static.
18055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18056
18057 # Compiler flag to allow reflexive dlopens.
18058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18059
18060 # Compiler flag to generate shared objects directly from archives.
18061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18062
18063 # Whether the compiler copes with passing no objects directly.
18064 compiler_needs_object=$lt_compiler_needs_object_CXX
18065
18066 # Create an old-style archive from a shared archive.
18067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18068
18069 # Create a temporary old-style archive to link instead of a shared archive.
18070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18071
18072 # Commands used to build a shared archive.
18073 archive_cmds=$lt_archive_cmds_CXX
18074 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18075
18076 # Commands used to build a loadable module if different from building
18077 # a shared archive.
18078 module_cmds=$lt_module_cmds_CXX
18079 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18080
18081 # Whether we are building with GNU ld or not.
18082 with_gnu_ld=$lt_with_gnu_ld_CXX
18083
18084 # Flag that allows shared libraries with undefined symbols to be built.
18085 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18086
18087 # Flag that enforces no undefined symbols.
18088 no_undefined_flag=$lt_no_undefined_flag_CXX
18089
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18093
18094 # If ld is used when linking, flag to hardcode \$libdir into a binary
18095 # during linking.  This must work even if \$libdir does not exist.
18096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18097
18098 # Whether we need a single "-rpath" flag with a separated argument.
18099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18100
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary.
18103 hardcode_direct=$hardcode_direct_CXX
18104
18105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18106 # DIR into the resulting binary and the resulting library dependency is
18107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18108 # library is relocated.
18109 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18110
18111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_minus_L=$hardcode_minus_L_CXX
18114
18115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18116 # into the resulting binary.
18117 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18118
18119 # Set to "yes" if building a shared library automatically hardcodes DIR
18120 # into the library and all subsequent libraries and executables linked
18121 # against it.
18122 hardcode_automatic=$hardcode_automatic_CXX
18123
18124 # Set to yes if linker adds runtime paths of dependent libraries
18125 # to runtime path list.
18126 inherit_rpath=$inherit_rpath_CXX
18127
18128 # Whether libtool must link a program against all its dependency libraries.
18129 link_all_deplibs=$link_all_deplibs_CXX
18130
18131 # Set to "yes" if exported symbols are required.
18132 always_export_symbols=$always_export_symbols_CXX
18133
18134 # The commands to list exported symbols.
18135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18136
18137 # Symbols that should not be listed in the preloaded symbols.
18138 exclude_expsyms=$lt_exclude_expsyms_CXX
18139
18140 # Symbols that must always be exported.
18141 include_expsyms=$lt_include_expsyms_CXX
18142
18143 # Commands necessary for linking programs (against libraries) with templates.
18144 prelink_cmds=$lt_prelink_cmds_CXX
18145
18146 # Commands necessary for finishing linking programs.
18147 postlink_cmds=$lt_postlink_cmds_CXX
18148
18149 # Specify filename containing input files.
18150 file_list_spec=$lt_file_list_spec_CXX
18151
18152 # How to hardcode a shared library path into an executable.
18153 hardcode_action=$hardcode_action_CXX
18154
18155 # The directories searched by this compiler when creating a shared library.
18156 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18157
18158 # Dependencies to place before and after the objects being linked to
18159 # create a shared library.
18160 predep_objects=$lt_predep_objects_CXX
18161 postdep_objects=$lt_postdep_objects_CXX
18162 predeps=$lt_predeps_CXX
18163 postdeps=$lt_postdeps_CXX
18164
18165 # The library search path used internally by the compiler when linking
18166 # a shared library.
18167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18168
18169 # ### END LIBTOOL TAG CONFIG: CXX
18170 _LT_EOF
18171
18172  ;;
18173
18174   esac
18175 done # for ac_tag
18176
18177
18178 as_fn_exit 0
18179 _ACEOF
18180 ac_clean_files=$ac_clean_files_save
18181
18182 test $ac_write_fail = 0 ||
18183   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18184
18185
18186 # configure is writing to config.log, and then calls config.status.
18187 # config.status does its own redirection, appending to config.log.
18188 # Unfortunately, on DOS this fails, as config.log is still kept open
18189 # by configure, so config.status won't be able to write to it; its
18190 # output is simply discarded.  So we exec the FD to /dev/null,
18191 # effectively closing config.log, so it can be properly (re)opened and
18192 # appended to by config.status.  When coming back to configure, we
18193 # need to make the FD available again.
18194 if test "$no_create" != yes; then
18195   ac_cs_success=:
18196   ac_config_status_args=
18197   test "$silent" = yes &&
18198     ac_config_status_args="$ac_config_status_args --quiet"
18199   exec 5>/dev/null
18200   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18201   exec 5>>config.log
18202   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18203   # would make configure fail if this is the last instruction.
18204   $ac_cs_success || as_fn_exit 1
18205 fi
18206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18208 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18209 fi
18210
18211
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: 
18213
18214 Please type 'make' to build Bullet
18215 " >&5
18216 $as_echo "$as_me: 
18217
18218 Please type 'make' to build Bullet
18219 " >&6;}