]> git.uio.no Git - private-olgabo.git/blob - OgreBullet/configure
sc
[private-olgabo.git] / OgreBullet / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for OgreBullet 0.2.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='OgreBullet'
569 PACKAGE_TARNAME='ogrebullet'
570 PACKAGE_VERSION='0.2'
571 PACKAGE_STRING='OgreBullet 0.2'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 bullet_LIBS
616 bullet_CFLAGS
617 OGRE_LIBS
618 OGRE_CFLAGS
619 PKG_CONFIG_LIBDIR
620 PKG_CONFIG_PATH
621 PKG_CONFIG
622 CXXCPP
623 CPP
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 MANIFEST_TOOL
630 RANLIB
631 ac_ct_AR
632 AR
633 DLLTOOL
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 EGREP
642 GREP
643 SED
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 ac_ct_CC
648 CFLAGS
649 CC
650 host_os
651 host_vendor
652 host_cpu
653 host
654 build_os
655 build_vendor
656 build_cpu
657 build
658 LIBTOOL
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 am__nodep
663 AMDEPBACKSLASH
664 AMDEP_FALSE
665 AMDEP_TRUE
666 am__quote
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CXX
672 CPPFLAGS
673 LDFLAGS
674 CXXFLAGS
675 CXX
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_dependency_tracking
741 enable_shared
742 enable_static
743 with_pic
744 enable_fast_install
745 with_gnu_ld
746 with_sysroot
747 enable_libtool_lock
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CXX
753 CXXFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CCC
758 CC
759 CFLAGS
760 CPP
761 CXXCPP
762 PKG_CONFIG
763 PKG_CONFIG_PATH
764 PKG_CONFIG_LIBDIR
765 OGRE_CFLAGS
766 OGRE_LIBS
767 bullet_CFLAGS
768 bullet_LIBS'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823   # If the previous option needs an argument, assign it.
824   if test -n "$ac_prev"; then
825     eval $ac_prev=\$ac_option
826     ac_prev=
827     continue
828   fi
829
830   case $ac_option in
831   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832   *=)   ac_optarg= ;;
833   *)    ac_optarg=yes ;;
834   esac
835
836   # Accept the important Cygnus configure options, so we can diagnose typos.
837
838   case $ac_dashdash$ac_option in
839   --)
840     ac_dashdash=yes ;;
841
842   -bindir | --bindir | --bindi | --bind | --bin | --bi)
843     ac_prev=bindir ;;
844   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845     bindir=$ac_optarg ;;
846
847   -build | --build | --buil | --bui | --bu)
848     ac_prev=build_alias ;;
849   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850     build_alias=$ac_optarg ;;
851
852   -cache-file | --cache-file | --cache-fil | --cache-fi \
853   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854     ac_prev=cache_file ;;
855   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857     cache_file=$ac_optarg ;;
858
859   --config-cache | -C)
860     cache_file=config.cache ;;
861
862   -datadir | --datadir | --datadi | --datad)
863     ac_prev=datadir ;;
864   -datadir=* | --datadir=* | --datadi=* | --datad=*)
865     datadir=$ac_optarg ;;
866
867   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868   | --dataroo | --dataro | --datar)
869     ac_prev=datarootdir ;;
870   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872     datarootdir=$ac_optarg ;;
873
874   -disable-* | --disable-*)
875     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876     # Reject names that are not valid shell variable names.
877     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878       as_fn_error $? "invalid feature name: $ac_useropt"
879     ac_useropt_orig=$ac_useropt
880     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881     case $ac_user_opts in
882       *"
883 "enable_$ac_useropt"
884 "*) ;;
885       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886          ac_unrecognized_sep=', ';;
887     esac
888     eval enable_$ac_useropt=no ;;
889
890   -docdir | --docdir | --docdi | --doc | --do)
891     ac_prev=docdir ;;
892   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893     docdir=$ac_optarg ;;
894
895   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896     ac_prev=dvidir ;;
897   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898     dvidir=$ac_optarg ;;
899
900   -enable-* | --enable-*)
901     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904       as_fn_error $? "invalid feature name: $ac_useropt"
905     ac_useropt_orig=$ac_useropt
906     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907     case $ac_user_opts in
908       *"
909 "enable_$ac_useropt"
910 "*) ;;
911       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912          ac_unrecognized_sep=', ';;
913     esac
914     eval enable_$ac_useropt=\$ac_optarg ;;
915
916   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918   | --exec | --exe | --ex)
919     ac_prev=exec_prefix ;;
920   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922   | --exec=* | --exe=* | --ex=*)
923     exec_prefix=$ac_optarg ;;
924
925   -gas | --gas | --ga | --g)
926     # Obsolete; use --with-gas.
927     with_gas=yes ;;
928
929   -help | --help | --hel | --he | -h)
930     ac_init_help=long ;;
931   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932     ac_init_help=recursive ;;
933   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934     ac_init_help=short ;;
935
936   -host | --host | --hos | --ho)
937     ac_prev=host_alias ;;
938   -host=* | --host=* | --hos=* | --ho=*)
939     host_alias=$ac_optarg ;;
940
941   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942     ac_prev=htmldir ;;
943   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944   | --ht=*)
945     htmldir=$ac_optarg ;;
946
947   -includedir | --includedir | --includedi | --included | --include \
948   | --includ | --inclu | --incl | --inc)
949     ac_prev=includedir ;;
950   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951   | --includ=* | --inclu=* | --incl=* | --inc=*)
952     includedir=$ac_optarg ;;
953
954   -infodir | --infodir | --infodi | --infod | --info | --inf)
955     ac_prev=infodir ;;
956   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957     infodir=$ac_optarg ;;
958
959   -libdir | --libdir | --libdi | --libd)
960     ac_prev=libdir ;;
961   -libdir=* | --libdir=* | --libdi=* | --libd=*)
962     libdir=$ac_optarg ;;
963
964   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965   | --libexe | --libex | --libe)
966     ac_prev=libexecdir ;;
967   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968   | --libexe=* | --libex=* | --libe=*)
969     libexecdir=$ac_optarg ;;
970
971   -localedir | --localedir | --localedi | --localed | --locale)
972     ac_prev=localedir ;;
973   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974     localedir=$ac_optarg ;;
975
976   -localstatedir | --localstatedir | --localstatedi | --localstated \
977   | --localstate | --localstat | --localsta | --localst | --locals)
978     ac_prev=localstatedir ;;
979   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981     localstatedir=$ac_optarg ;;
982
983   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984     ac_prev=mandir ;;
985   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986     mandir=$ac_optarg ;;
987
988   -nfp | --nfp | --nf)
989     # Obsolete; use --without-fp.
990     with_fp=no ;;
991
992   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993   | --no-cr | --no-c | -n)
994     no_create=yes ;;
995
996   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998     no_recursion=yes ;;
999
1000   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002   | --oldin | --oldi | --old | --ol | --o)
1003     ac_prev=oldincludedir ;;
1004   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007     oldincludedir=$ac_optarg ;;
1008
1009   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010     ac_prev=prefix ;;
1011   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012     prefix=$ac_optarg ;;
1013
1014   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015   | --program-pre | --program-pr | --program-p)
1016     ac_prev=program_prefix ;;
1017   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019     program_prefix=$ac_optarg ;;
1020
1021   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022   | --program-suf | --program-su | --program-s)
1023     ac_prev=program_suffix ;;
1024   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026     program_suffix=$ac_optarg ;;
1027
1028   -program-transform-name | --program-transform-name \
1029   | --program-transform-nam | --program-transform-na \
1030   | --program-transform-n | --program-transform- \
1031   | --program-transform | --program-transfor \
1032   | --program-transfo | --program-transf \
1033   | --program-trans | --program-tran \
1034   | --progr-tra | --program-tr | --program-t)
1035     ac_prev=program_transform_name ;;
1036   -program-transform-name=* | --program-transform-name=* \
1037   | --program-transform-nam=* | --program-transform-na=* \
1038   | --program-transform-n=* | --program-transform-=* \
1039   | --program-transform=* | --program-transfor=* \
1040   | --program-transfo=* | --program-transf=* \
1041   | --program-trans=* | --program-tran=* \
1042   | --progr-tra=* | --program-tr=* | --program-t=*)
1043     program_transform_name=$ac_optarg ;;
1044
1045   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046     ac_prev=pdfdir ;;
1047   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048     pdfdir=$ac_optarg ;;
1049
1050   -psdir | --psdir | --psdi | --psd | --ps)
1051     ac_prev=psdir ;;
1052   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053     psdir=$ac_optarg ;;
1054
1055   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056   | -silent | --silent | --silen | --sile | --sil)
1057     silent=yes ;;
1058
1059   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060     ac_prev=sbindir ;;
1061   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062   | --sbi=* | --sb=*)
1063     sbindir=$ac_optarg ;;
1064
1065   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067   | --sharedst | --shareds | --shared | --share | --shar \
1068   | --sha | --sh)
1069     ac_prev=sharedstatedir ;;
1070   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073   | --sha=* | --sh=*)
1074     sharedstatedir=$ac_optarg ;;
1075
1076   -site | --site | --sit)
1077     ac_prev=site ;;
1078   -site=* | --site=* | --sit=*)
1079     site=$ac_optarg ;;
1080
1081   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082     ac_prev=srcdir ;;
1083   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084     srcdir=$ac_optarg ;;
1085
1086   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087   | --syscon | --sysco | --sysc | --sys | --sy)
1088     ac_prev=sysconfdir ;;
1089   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091     sysconfdir=$ac_optarg ;;
1092
1093   -target | --target | --targe | --targ | --tar | --ta | --t)
1094     ac_prev=target_alias ;;
1095   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096     target_alias=$ac_optarg ;;
1097
1098   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099     verbose=yes ;;
1100
1101   -version | --version | --versio | --versi | --vers | -V)
1102     ac_init_version=: ;;
1103
1104   -with-* | --with-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error $? "invalid package name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval with_$ac_useropt=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error $? "invalid package name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=no ;;
1135
1136   --x)
1137     # Obsolete; use --with-x.
1138     with_x=yes ;;
1139
1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141   | --x-incl | --x-inc | --x-in | --x-i)
1142     ac_prev=x_includes ;;
1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145     x_includes=$ac_optarg ;;
1146
1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149     ac_prev=x_libraries ;;
1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152     x_libraries=$ac_optarg ;;
1153
1154   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156     ;;
1157
1158   *=*)
1159     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160     # Reject names that are not valid shell variable names.
1161     case $ac_envvar in #(
1162       '' | [0-9]* | *[!_$as_cr_alnum]* )
1163       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164     esac
1165     eval $ac_envvar=\$ac_optarg
1166     export $ac_envvar ;;
1167
1168   *)
1169     # FIXME: should be removed in autoconf 3.0.
1170     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174     ;;
1175
1176   esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181   as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185   case $enable_option_checking in
1186     no) ;;
1187     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189   esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194                 datadir sysconfdir sharedstatedir localstatedir includedir \
1195                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196                 libdir localedir mandir
1197 do
1198   eval ac_val=\$$ac_var
1199   # Remove trailing slashes.
1200   case $ac_val in
1201     */ )
1202       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203       eval $ac_var=\$ac_val;;
1204   esac
1205   # Be sure to have absolute directory names.
1206   case $ac_val in
1207     [\\/$]* | ?:[\\/]* )  continue;;
1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209   esac
1210   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222   if test "x$build_alias" = x; then
1223     cross_compiling=maybe
1224     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225     If a cross compiler is detected then cross compile mode will be used" >&2
1226   elif test "x$build_alias" != "x$host_alias"; then
1227     cross_compiling=yes
1228   fi
1229 fi
1230
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234 test "$silent" = yes && exec 6>/dev/null
1235
1236
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240   as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242   as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247   ac_srcdir_defaulted=yes
1248   # Try the directory containing this script, then the parent directory.
1249   ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251          X"$as_myself" : 'X\(//\)[^/]' \| \
1252          X"$as_myself" : 'X\(//\)$' \| \
1253          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)[^/].*/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\).*/{
1268             s//\1/
1269             q
1270           }
1271           s/.*/./; q'`
1272   srcdir=$ac_confdir
1273   if test ! -r "$srcdir/$ac_unique_file"; then
1274     srcdir=..
1275   fi
1276 else
1277   ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286         pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289   srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_env_${ac_var}_value=\$${ac_var}
1300   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308   # Omit some internal or obsolete options to make the list less imposing.
1309   # This message is too long to be a string in the A/UX 3.1 sh.
1310   cat <<_ACEOF
1311 \`configure' configures OgreBullet 0.2 to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321   -h, --help              display this help and exit
1322       --help=short        display options specific to this package
1323       --help=recursive    display the short help of all the included packages
1324   -V, --version           display version information and exit
1325   -q, --quiet, --silent   do not print \`checking ...' messages
1326       --cache-file=FILE   cache test results in FILE [disabled]
1327   -C, --config-cache      alias for \`--cache-file=config.cache'
1328   -n, --no-create         do not create output files
1329       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332   --prefix=PREFIX         install architecture-independent files in PREFIX
1333                           [$ac_default_prefix]
1334   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                           [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345   --bindir=DIR            user executables [EPREFIX/bin]
1346   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347   --libexecdir=DIR        program executables [EPREFIX/libexec]
1348   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351   --libdir=DIR            object code libraries [EPREFIX/lib]
1352   --includedir=DIR        C header files [PREFIX/include]
1353   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356   --infodir=DIR           info documentation [DATAROOTDIR/info]
1357   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358   --mandir=DIR            man documentation [DATAROOTDIR/man]
1359   --docdir=DIR            documentation root [DATAROOTDIR/doc/ogrebullet]
1360   --htmldir=DIR           html documentation [DOCDIR]
1361   --dvidir=DIR            dvi documentation [DOCDIR]
1362   --pdfdir=DIR            pdf documentation [DOCDIR]
1363   --psdir=DIR             ps documentation [DOCDIR]
1364 _ACEOF
1365
1366   cat <<\_ACEOF
1367
1368 Program names:
1369   --program-prefix=PREFIX            prepend PREFIX to installed program names
1370   --program-suffix=SUFFIX            append SUFFIX to installed program names
1371   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of OgreBullet 0.2:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --disable-dependency-tracking  speeds up one-time build
1390   --enable-dependency-tracking   do not reject slow dependency extractors
1391   --enable-shared[=PKGS]  build shared libraries [default=yes]
1392   --enable-static[=PKGS]  build static libraries [default=yes]
1393   --enable-fast-install[=PKGS]
1394                           optimize for fast installation [default=yes]
1395   --disable-libtool-lock  avoid locking (might break parallel builds)
1396
1397 Optional Packages:
1398   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1401                           both]
1402   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1403   --with-sysroot=DIR Search for dependent libraries within DIR
1404                         (or the compiler's sysroot if not specified).
1405
1406 Some influential environment variables:
1407   CXX         C++ compiler command
1408   CXXFLAGS    C++ compiler flags
1409   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1410               nonstandard directory <lib dir>
1411   LIBS        libraries to pass to the linker, e.g. -l<library>
1412   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413               you have headers in a nonstandard directory <include dir>
1414   CC          C compiler command
1415   CFLAGS      C compiler flags
1416   CPP         C preprocessor
1417   CXXCPP      C++ preprocessor
1418   PKG_CONFIG  path to pkg-config utility
1419   PKG_CONFIG_PATH
1420               directories to add to pkg-config's search path
1421   PKG_CONFIG_LIBDIR
1422               path overriding pkg-config's built-in search path
1423   OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config
1424   OGRE_LIBS   linker flags for OGRE, overriding pkg-config
1425   bullet_CFLAGS
1426               C compiler flags for bullet, overriding pkg-config
1427   bullet_LIBS linker flags for bullet, overriding pkg-config
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to the package provider.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438   # If there are subdirs, report their specific --help.
1439   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440     test -d "$ac_dir" ||
1441       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442       continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 OgreBullet configure 0.2
1496 generated by GNU Autoconf 2.68
1497
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502   exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_cxx_try_compile LINENO
1510 # ----------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_cxx_try_compile ()
1513 {
1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515   rm -f conftest.$ac_objext
1516   if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519   *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523   (eval "$ac_compile") 2>conftest.err
1524   ac_status=$?
1525   if test -s conftest.err; then
1526     grep -v '^ *+' conftest.err >conftest.er1
1527     cat conftest.er1 >&5
1528     mv -f conftest.er1 conftest.err
1529   fi
1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531   test $ac_status = 0; } && {
1532          test -z "$ac_cxx_werror_flag" ||
1533          test ! -s conftest.err
1534        } && test -s conftest.$ac_objext; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540         ac_retval=1
1541 fi
1542   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543   as_fn_set_status $ac_retval
1544
1545 } # ac_fn_cxx_try_compile
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   rm -f conftest.$ac_objext
1554   if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_compile") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } && {
1570          test -z "$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        } && test -s conftest.$ac_objext; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578         ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_c_try_link LINENO
1586 # -----------------------
1587 # Try to link conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_link ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   rm -f conftest.$ac_objext conftest$ac_exeext
1592   if { { ac_try="$ac_link"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_link") 2>conftest.err
1600   ac_status=$?
1601   if test -s conftest.err; then
1602     grep -v '^ *+' conftest.err >conftest.er1
1603     cat conftest.er1 >&5
1604     mv -f conftest.er1 conftest.err
1605   fi
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } && {
1608          test -z "$ac_c_werror_flag" ||
1609          test ! -s conftest.err
1610        } && test -s conftest$ac_exeext && {
1611          test "$cross_compiling" = yes ||
1612          $as_test_x conftest$ac_exeext
1613        }; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1622   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1623   # interfere with the next link command; also delete a directory that is
1624   # left behind by Apple's compiler.  We do this before executing the actions.
1625   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627   as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_link
1630
1631 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632 # -------------------------------------------------------
1633 # Tests whether HEADER exists and can be compiled using the include files in
1634 # INCLUDES, setting the cache variable VAR accordingly.
1635 ac_fn_c_check_header_compile ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641   $as_echo_n "(cached) " >&6
1642 else
1643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h.  */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_compile "$LINENO"; then :
1649   eval "$3=yes"
1650 else
1651   eval "$3=no"
1652 fi
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 fi
1655 eval ac_res=\$$3
1656                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660 } # ac_fn_c_check_header_compile
1661
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_cpp ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   if { { ac_try="$ac_cpp conftest.$ac_ext"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } > conftest.i && {
1684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        }; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692     ac_retval=1
1693 fi
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_cpp
1698
1699 # ac_fn_c_try_run LINENO
1700 # ----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702 # that executables *can* be run.
1703 ac_fn_c_try_run ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_link") 2>&5
1714   ac_status=$?
1715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717   { { case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_try") 2>&5
1724   ac_status=$?
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; }; }; then :
1727   ac_retval=0
1728 else
1729   $as_echo "$as_me: program exited with status $ac_status" >&5
1730        $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733        ac_retval=$ac_status
1734 fi
1735   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_run
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750   $as_echo_n "(cached) " >&6
1751 else
1752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h.  */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1756 #define $2 innocuous_$2
1757
1758 /* System header to define __stub macros and hopefully few prototypes,
1759     which can conflict with char $2 (); below.
1760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761     <limits.h> exists even on freestanding compilers.  */
1762
1763 #ifdef __STDC__
1764 # include <limits.h>
1765 #else
1766 # include <assert.h>
1767 #endif
1768
1769 #undef $2
1770
1771 /* Override any GCC internal prototype to avoid an error.
1772    Use char because int might match the return type of a GCC
1773    builtin and then its argument prototype would still apply.  */
1774 #ifdef __cplusplus
1775 extern "C"
1776 #endif
1777 char $2 ();
1778 /* The GNU C library defines this for functions which it implements
1779     to always fail with ENOSYS.  Some functions are actually named
1780     something starting with __ and the normal name is an alias.  */
1781 #if defined __stub_$2 || defined __stub___$2
1782 choke me
1783 #endif
1784
1785 int
1786 main ()
1787 {
1788 return $2 ();
1789   ;
1790   return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_link "$LINENO"; then :
1794   eval "$3=yes"
1795 else
1796   eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext \
1799     conftest$ac_exeext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_func
1807
1808 # ac_fn_cxx_try_cpp LINENO
1809 # ------------------------
1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_cpp ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 case "(($ac_try" in
1816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817   *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822   ac_status=$?
1823   if test -s conftest.err; then
1824     grep -v '^ *+' conftest.err >conftest.er1
1825     cat conftest.er1 >&5
1826     mv -f conftest.er1 conftest.err
1827   fi
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; } > conftest.i && {
1830          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1831          test ! -s conftest.err
1832        }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838     ac_retval=1
1839 fi
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_cxx_try_cpp
1844
1845 # ac_fn_cxx_try_link LINENO
1846 # -------------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_cxx_try_link ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   rm -f conftest.$ac_objext conftest$ac_exeext
1852   if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855   *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859   (eval "$ac_link") 2>conftest.err
1860   ac_status=$?
1861   if test -s conftest.err; then
1862     grep -v '^ *+' conftest.err >conftest.er1
1863     cat conftest.er1 >&5
1864     mv -f conftest.er1 conftest.err
1865   fi
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && {
1868          test -z "$ac_cxx_werror_flag" ||
1869          test ! -s conftest.err
1870        } && test -s conftest$ac_exeext && {
1871          test "$cross_compiling" = yes ||
1872          $as_test_x conftest$ac_exeext
1873        }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879         ac_retval=1
1880 fi
1881   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883   # interfere with the next link command; also delete a directory that is
1884   # left behind by Apple's compiler.  We do this before executing the actions.
1885   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_cxx_try_link
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1893
1894 It was created by OgreBullet $as_me 0.2, which was
1895 generated by GNU Autoconf 2.68.  Invocation command line was
1896
1897   $ $0 $@
1898
1899 _ACEOF
1900 exec 5>>config.log
1901 {
1902 cat <<_ASUNAME
1903 ## --------- ##
1904 ## Platform. ##
1905 ## --------- ##
1906
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924 _ASUNAME
1925
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931     $as_echo "PATH: $as_dir"
1932   done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958   for ac_arg
1959   do
1960     case $ac_arg in
1961     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963     | -silent | --silent | --silen | --sile | --sil)
1964       continue ;;
1965     *\'*)
1966       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967     esac
1968     case $ac_pass in
1969     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970     2)
1971       as_fn_append ac_configure_args1 " '$ac_arg'"
1972       if test $ac_must_keep_next = true; then
1973         ac_must_keep_next=false # Got value, back to normal.
1974       else
1975         case $ac_arg in
1976           *=* | --config-cache | -C | -disable-* | --disable-* \
1977           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979           | -with-* | --with-* | -without-* | --without-* | --x)
1980             case "$ac_configure_args0 " in
1981               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982             esac
1983             ;;
1984           -* ) ac_must_keep_next=true ;;
1985         esac
1986       fi
1987       as_fn_append ac_configure_args " '$ac_arg'"
1988       ;;
1989     esac
1990   done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log.  We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001   # Save into config.log some information that might help in debugging.
2002   {
2003     echo
2004
2005     $as_echo "## ---------------- ##
2006 ## Cache variables. ##
2007 ## ---------------- ##"
2008     echo
2009     # The following way of writing the cache mishandles newlines in values,
2010 (
2011   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012     eval ac_val=\$$ac_var
2013     case $ac_val in #(
2014     *${as_nl}*)
2015       case $ac_var in #(
2016       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018       esac
2019       case $ac_var in #(
2020       _ | IFS | as_nl) ;; #(
2021       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022       *) { eval $ac_var=; unset $ac_var;} ;;
2023       esac ;;
2024     esac
2025   done
2026   (set) 2>&1 |
2027     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028     *${as_nl}ac_space=\ *)
2029       sed -n \
2030         "s/'\''/'\''\\\\'\'''\''/g;
2031           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032       ;; #(
2033     *)
2034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035       ;;
2036     esac |
2037     sort
2038 )
2039     echo
2040
2041     $as_echo "## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##"
2044     echo
2045     for ac_var in $ac_subst_vars
2046     do
2047       eval ac_val=\$$ac_var
2048       case $ac_val in
2049       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050       esac
2051       $as_echo "$ac_var='\''$ac_val'\''"
2052     done | sort
2053     echo
2054
2055     if test -n "$ac_subst_files"; then
2056       $as_echo "## ------------------- ##
2057 ## File substitutions. ##
2058 ## ------------------- ##"
2059       echo
2060       for ac_var in $ac_subst_files
2061       do
2062         eval ac_val=\$$ac_var
2063         case $ac_val in
2064         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065         esac
2066         $as_echo "$ac_var='\''$ac_val'\''"
2067       done | sort
2068       echo
2069     fi
2070
2071     if test -s confdefs.h; then
2072       $as_echo "## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##"
2075       echo
2076       cat confdefs.h
2077       echo
2078     fi
2079     test "$ac_signal" != 0 &&
2080       $as_echo "$as_me: caught signal $ac_signal"
2081     $as_echo "$as_me: exit $exit_status"
2082   } >&5
2083   rm -f core *.core core.conftest.* &&
2084     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085     exit $exit_status
2086 ' 0
2087 for ac_signal in 1 2 13 15; do
2088   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089 done
2090 ac_signal=0
2091
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2094
2095 $as_echo "/* confdefs.h */" > confdefs.h
2096
2097 # Predefined preprocessor variables.
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2121 _ACEOF
2122
2123
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2126 ac_site_file1=NONE
2127 ac_site_file2=NONE
2128 if test -n "$CONFIG_SITE"; then
2129   # We do not want a PATH search for config.site.
2130   case $CONFIG_SITE in #((
2131     -*)  ac_site_file1=./$CONFIG_SITE;;
2132     */*) ac_site_file1=$CONFIG_SITE;;
2133     *)   ac_site_file1=./$CONFIG_SITE;;
2134   esac
2135 elif test "x$prefix" != xNONE; then
2136   ac_site_file1=$prefix/share/config.site
2137   ac_site_file2=$prefix/etc/config.site
2138 else
2139   ac_site_file1=$ac_default_prefix/share/config.site
2140   ac_site_file2=$ac_default_prefix/etc/config.site
2141 fi
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 do
2144   test "x$ac_site_file" = xNONE && continue
2145   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148     sed 's/^/| /' "$ac_site_file" >&5
2149     . "$ac_site_file" \
2150       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 as_fn_error $? "failed to load site script $ac_site_file
2153 See \`config.log' for more details" "$LINENO" 5; }
2154   fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158   # Some versions of bash will fail to source /dev/null (special files
2159   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2160   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163     case $cache_file in
2164       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165       *)                      . "./$cache_file";;
2166     esac
2167   fi
2168 else
2169   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171   >$cache_file
2172 fi
2173
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179   eval ac_new_set=\$ac_env_${ac_var}_set
2180   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181   eval ac_new_val=\$ac_env_${ac_var}_value
2182   case $ac_old_set,$ac_new_set in
2183     set,)
2184       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186       ac_cache_corrupted=: ;;
2187     ,set)
2188       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190       ac_cache_corrupted=: ;;
2191     ,);;
2192     *)
2193       if test "x$ac_old_val" != "x$ac_new_val"; then
2194         # differences in whitespace do not lead to failure.
2195         ac_old_val_w=`echo x $ac_old_val`
2196         ac_new_val_w=`echo x $ac_new_val`
2197         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200           ac_cache_corrupted=:
2201         else
2202           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204           eval $ac_var=\$ac_old_val
2205         fi
2206         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2207 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2208         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2210       fi;;
2211   esac
2212   # Pass precious variables to config.status.
2213   if test "$ac_new_set" = set; then
2214     case $ac_new_val in
2215     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216     *) ac_arg=$ac_var=$ac_new_val ;;
2217     esac
2218     case " $ac_configure_args " in
2219       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2220       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221     esac
2222   fi
2223 done
2224 if $ac_cache_corrupted; then
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 fi
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242 am__api_version='1.11'
2243
2244 ac_aux_dir=
2245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2246   if test -f "$ac_dir/install-sh"; then
2247     ac_aux_dir=$ac_dir
2248     ac_install_sh="$ac_aux_dir/install-sh -c"
2249     break
2250   elif test -f "$ac_dir/install.sh"; then
2251     ac_aux_dir=$ac_dir
2252     ac_install_sh="$ac_aux_dir/install.sh -c"
2253     break
2254   elif test -f "$ac_dir/shtool"; then
2255     ac_aux_dir=$ac_dir
2256     ac_install_sh="$ac_aux_dir/shtool install -c"
2257     break
2258   fi
2259 done
2260 if test -z "$ac_aux_dir"; then
2261   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2262 fi
2263
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2270 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2271
2272
2273 # Find a good install program.  We prefer a C program (faster),
2274 # so one script is as good as another.  But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2279 # AIX /bin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 # Reject install programs that cannot install multiple files.
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2289 if test -z "$INSTALL"; then
2290 if ${ac_cv_path_install+:} false; then :
2291   $as_echo_n "(cached) " >&6
2292 else
2293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298     # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in #((
2300   ./ | .// | /[cC]/* | \
2301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2303   /usr/ucb/* ) ;;
2304   *)
2305     # OSF1 and SCO ODT 3.0 have their own names for install.
2306     # Don't use installbsd from OSF since it installs stuff as root
2307     # by default.
2308     for ac_prog in ginstall scoinst install; do
2309       for ac_exec_ext in '' $ac_executable_extensions; do
2310         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311           if test $ac_prog = install &&
2312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313             # AIX install.  It has an incompatible calling convention.
2314             :
2315           elif test $ac_prog = install &&
2316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317             # program-specific install script used by HP pwplus--don't use.
2318             :
2319           else
2320             rm -rf conftest.one conftest.two conftest.dir
2321             echo one > conftest.one
2322             echo two > conftest.two
2323             mkdir conftest.dir
2324             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2325               test -s conftest.one && test -s conftest.two &&
2326               test -s conftest.dir/conftest.one &&
2327               test -s conftest.dir/conftest.two
2328             then
2329               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330               break 3
2331             fi
2332           fi
2333         fi
2334       done
2335     done
2336     ;;
2337 esac
2338
2339   done
2340 IFS=$as_save_IFS
2341
2342 rm -rf conftest.one conftest.two conftest.dir
2343
2344 fi
2345   if test "${ac_cv_path_install+set}" = set; then
2346     INSTALL=$ac_cv_path_install
2347   else
2348     # As a last resort, use the slow shell script.  Don't cache a
2349     # value for INSTALL within a source directory, because that will
2350     # break other packages using the cache if that directory is
2351     # removed, or if the value is a relative name.
2352     INSTALL=$ac_install_sh
2353   fi
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2356 $as_echo "$INSTALL" >&6; }
2357
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2367 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 # Just in case
2369 sleep 1
2370 echo timestamp > conftest.file
2371 # Reject unsafe characters in $srcdir or the absolute working directory
2372 # name.  Accept space and tab only in the latter.
2373 am_lf='
2374 '
2375 case `pwd` in
2376   *[\\\"\#\$\&\'\`$am_lf]*)
2377     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2378 esac
2379 case $srcdir in
2380   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2381     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2382 esac
2383
2384 # Do `set' in a subshell so we don't clobber the current shell's
2385 # arguments.  Must try -L first in case configure is actually a
2386 # symlink; some systems play weird games with the mod time of symlinks
2387 # (eg FreeBSD returns the mod time of the symlink's containing
2388 # directory).
2389 if (
2390    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2391    if test "$*" = "X"; then
2392       # -L didn't work.
2393       set X `ls -t "$srcdir/configure" conftest.file`
2394    fi
2395    rm -f conftest.file
2396    if test "$*" != "X $srcdir/configure conftest.file" \
2397       && test "$*" != "X conftest.file $srcdir/configure"; then
2398
2399       # If neither matched, then we have a broken ls.  This can happen
2400       # if, for instance, CONFIG_SHELL is bash and it inherits a
2401       # broken ls alias from the environment.  This has actually
2402       # happened.  Such a system could not be considered "sane".
2403       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2404 alias in your environment" "$LINENO" 5
2405    fi
2406
2407    test "$2" = conftest.file
2408    )
2409 then
2410    # Ok.
2411    :
2412 else
2413    as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 test "$program_prefix" != NONE &&
2419   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420 # Use a double $ so make ignores it.
2421 test "$program_suffix" != NONE &&
2422   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423 # Double any \ or $.
2424 # By default was `s,x,x', remove it if useless.
2425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2427
2428 # expand $ac_aux_dir to an absolute path
2429 am_aux_dir=`cd $ac_aux_dir && pwd`
2430
2431 if test x"${MISSING+set}" != xset; then
2432   case $am_aux_dir in
2433   *\ * | *\     *)
2434     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2435   *)
2436     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2437   esac
2438 fi
2439 # Use eval to expand $SHELL
2440 if eval "$MISSING --run true"; then
2441   am_missing_run="$MISSING --run "
2442 else
2443   am_missing_run=
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2446 fi
2447
2448 if test x"${install_sh}" != xset; then
2449   case $am_aux_dir in
2450   *\ * | *\     *)
2451     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2452   *)
2453     install_sh="\${SHELL} $am_aux_dir/install-sh"
2454   esac
2455 fi
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'.  However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462   if test -n "$ac_tool_prefix"; then
2463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_STRIP+:} false; then :
2468   $as_echo_n "(cached) " >&6
2469 else
2470   if test -n "$STRIP"; then
2471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478     for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485   done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2494 else
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502   ac_ct_STRIP=$STRIP
2503   # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2508   $as_echo_n "(cached) " >&6
2509 else
2510   if test -n "$ac_ct_STRIP"; then
2511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518     for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_ac_ct_STRIP="strip"
2521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525   done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2534 else
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539   if test "x$ac_ct_STRIP" = x; then
2540     STRIP=":"
2541   else
2542     case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548     STRIP=$ac_ct_STRIP
2549   fi
2550 else
2551   STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2558 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2559 if test -z "$MKDIR_P"; then
2560   if ${ac_cv_path_mkdir+:} false; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568     for ac_prog in mkdir gmkdir; do
2569          for ac_exec_ext in '' $ac_executable_extensions; do
2570            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2571            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572              'mkdir (GNU coreutils) '* | \
2573              'mkdir (coreutils) '* | \
2574              'mkdir (fileutils) '4.1*)
2575                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2576                break 3;;
2577            esac
2578          done
2579        done
2580   done
2581 IFS=$as_save_IFS
2582
2583 fi
2584
2585   test -d ./--version && rmdir ./--version
2586   if test "${ac_cv_path_mkdir+set}" = set; then
2587     MKDIR_P="$ac_cv_path_mkdir -p"
2588   else
2589     # As a last resort, use the slow shell script.  Don't cache a
2590     # value for MKDIR_P within a source directory, because that will
2591     # break other packages using the cache if that directory is
2592     # removed, or if the value is a relative name.
2593     MKDIR_P="$ac_install_sh -d"
2594   fi
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2597 $as_echo "$MKDIR_P" >&6; }
2598
2599 mkdir_p="$MKDIR_P"
2600 case $mkdir_p in
2601   [\\/$]* | ?:[\\/]*) ;;
2602   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2603 esac
2604
2605 for ac_prog in gawk mawk nawk awk
2606 do
2607   # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_AWK+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   if test -n "$AWK"; then
2615   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622     for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     ac_cv_prog_AWK="$ac_prog"
2625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629   done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 AWK=$ac_cv_prog_AWK
2635 if test -n "$AWK"; then
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2637 $as_echo "$AWK" >&6; }
2638 else
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644   test -n "$AWK" && break
2645 done
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649 set x ${MAKE-make}
2650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2652   $as_echo_n "(cached) " >&6
2653 else
2654   cat >conftest.make <<\_ACEOF
2655 SHELL = /bin/sh
2656 all:
2657         @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 _ACEOF
2659 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661   *@@@%%%=?*=@@@%%%*)
2662     eval ac_cv_prog_make_${ac_make}_set=yes;;
2663   *)
2664     eval ac_cv_prog_make_${ac_make}_set=no;;
2665 esac
2666 rm -f conftest.make
2667 fi
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671   SET_MAKE=
2672 else
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675   SET_MAKE="MAKE=${MAKE-make}"
2676 fi
2677
2678 rm -rf .tst 2>/dev/null
2679 mkdir .tst 2>/dev/null
2680 if test -d .tst; then
2681   am__leading_dot=.
2682 else
2683   am__leading_dot=_
2684 fi
2685 rmdir .tst 2>/dev/null
2686
2687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2688   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2689   # is not polluted with repeated "-I."
2690   am__isrc=' -I$(srcdir)'
2691   # test to see if srcdir already configured
2692   if test -f $srcdir/config.status; then
2693     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2694   fi
2695 fi
2696
2697 # test whether we have cygpath
2698 if test -z "$CYGPATH_W"; then
2699   if (cygpath --version) >/dev/null 2>/dev/null; then
2700     CYGPATH_W='cygpath -w'
2701   else
2702     CYGPATH_W=echo
2703   fi
2704 fi
2705
2706
2707 # Define the identity of the package.
2708  PACKAGE=OgreBullet
2709  VERSION=0.2
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE "$PACKAGE"
2714 _ACEOF
2715
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define VERSION "$VERSION"
2719 _ACEOF
2720
2721 # Some tools Automake needs.
2722
2723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2724
2725
2726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2727
2728
2729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2730
2731
2732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2733
2734
2735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736
2737 # We need awk for the "check" target.  The system "awk" is bad on
2738 # some platforms.
2739 # Always define AMTAR for backward compatibility.  Yes, it's still used
2740 # in the wild :-(  We should find a proper way to deprecate it ...
2741 AMTAR='$${TAR-tar}'
2742
2743 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2744
2745
2746
2747
2748
2749 ac_config_headers="$ac_config_headers config.h"
2750
2751
2752 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2753   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2754   # is not polluted with repeated "-I."
2755   am__isrc=' -I$(srcdir)'
2756   # test to see if srcdir already configured
2757   if test -f $srcdir/config.status; then
2758     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2759   fi
2760 fi
2761
2762 # test whether we have cygpath
2763 if test -z "$CYGPATH_W"; then
2764   if (cygpath --version) >/dev/null 2>/dev/null; then
2765     CYGPATH_W='cygpath -w'
2766   else
2767     CYGPATH_W=echo
2768   fi
2769 fi
2770
2771
2772 # Define the identity of the package.
2773  PACKAGE='ogrebullet'
2774  VERSION='0.2'
2775
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE "$PACKAGE"
2779 _ACEOF
2780
2781
2782 cat >>confdefs.h <<_ACEOF
2783 #define VERSION "$VERSION"
2784 _ACEOF
2785
2786 # Some tools Automake needs.
2787
2788 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2789
2790
2791 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2792
2793
2794 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2795
2796
2797 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2798
2799
2800 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2801
2802 # We need awk for the "check" target.  The system "awk" is bad on
2803 # some platforms.
2804 # Always define AMTAR for backward compatibility.  Yes, it's still used
2805 # in the wild :-(  We should find a proper way to deprecate it ...
2806 AMTAR='$${TAR-tar}'
2807
2808 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2809
2810
2811
2812
2813
2814
2815 ac_ext=cpp
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 if test -z "$CXX"; then
2821   if test -n "$CCC"; then
2822     CXX=$CCC
2823   else
2824     if test -n "$ac_tool_prefix"; then
2825   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CXX+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   if test -n "$CXX"; then
2835   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842     for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849   done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CXX=$ac_cv_prog_CXX
2855 if test -n "$CXX"; then
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2857 $as_echo "$CXX" >&6; }
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864     test -n "$CXX" && break
2865   done
2866 fi
2867 if test -z "$CXX"; then
2868   ac_ct_CXX=$CXX
2869   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2870 do
2871   # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   if test -n "$ac_ct_CXX"; then
2879   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886     for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_ac_ct_CXX="$ac_prog"
2889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893   done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2899 if test -n "$ac_ct_CXX"; then
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2901 $as_echo "$ac_ct_CXX" >&6; }
2902 else
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908   test -n "$ac_ct_CXX" && break
2909 done
2910
2911   if test "x$ac_ct_CXX" = x; then
2912     CXX="g++"
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920     CXX=$ac_ct_CXX
2921   fi
2922 fi
2923
2924   fi
2925 fi
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2928 set X $ac_compile
2929 ac_compiler=$2
2930 for ac_option in --version -v -V -qversion; do
2931   { { ac_try="$ac_compiler $ac_option >&5"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2939   ac_status=$?
2940   if test -s conftest.err; then
2941     sed '10a\
2942 ... rest of stderr output deleted ...
2943          10q' conftest.err >conftest.er1
2944     cat conftest.er1 >&5
2945   fi
2946   rm -f conftest.er1 conftest.err
2947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948   test $ac_status = 0; }
2949 done
2950
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2966 # of exeext.
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2968 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2973
2974 ac_rmfiles=
2975 for ac_file in $ac_files
2976 do
2977   case $ac_file in
2978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2980   esac
2981 done
2982 rm -f $ac_rmfiles
2983
2984 if { { ac_try="$ac_link_default"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991   (eval "$ac_link_default") 2>&5
2992   ac_status=$?
2993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994   test $ac_status = 0; }; then :
2995   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
2999 # Autoconf.
3000 for ac_file in $ac_files ''
3001 do
3002   test -f "$ac_file" || continue
3003   case $ac_file in
3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3005         ;;
3006     [ab].out )
3007         # We found the default executable, but exeext='' is most
3008         # certainly right.
3009         break;;
3010     *.* )
3011         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3012         then :; else
3013            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014         fi
3015         # We set ac_cv_exeext here because the later test for it is not
3016         # safe: cross compilers may not add the suffix if given an `-o'
3017         # argument, so we may need to know it at that point already.
3018         # Even if this section looks crufty: it has the advantage of
3019         # actually working.
3020         break;;
3021     * )
3022         break;;
3023   esac
3024 done
3025 test "$ac_cv_exeext" = no && ac_cv_exeext=
3026
3027 else
3028   ac_file=''
3029 fi
3030 if test -z "$ac_file"; then :
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error 77 "C++ compiler cannot create executables
3039 See \`config.log' for more details" "$LINENO" 5; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 fi
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3045 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 ac_exeext=$ac_cv_exeext
3049
3050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { { ac_try="$ac_link"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061   (eval "$ac_link") 2>&5
3062   ac_status=$?
3063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064   test $ac_status = 0; }; then :
3065   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070   test -f "$ac_file" || continue
3071   case $ac_file in
3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074           break;;
3075     * ) break;;
3076   esac
3077 done
3078 else
3079   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details" "$LINENO" 5; }
3083 fi
3084 rm -f conftest conftest$ac_cv_exeext
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3087
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h.  */
3093 #include <stdio.h>
3094 int
3095 main ()
3096 {
3097 FILE *f = fopen ("conftest.out", "w");
3098  return ferror (f) || fclose (f) != 0;
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 ac_clean_files="$ac_clean_files conftest.out"
3105 # Check that the compiler produces executables we can run.  If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108 $as_echo_n "checking whether we are cross compiling... " >&6; }
3109 if test "$cross_compiling" != yes; then
3110   { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117   (eval "$ac_link") 2>&5
3118   ac_status=$?
3119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120   test $ac_status = 0; }
3121   if { ac_try='./conftest$ac_cv_exeext'
3122   { { case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131   test $ac_status = 0; }; }; then
3132     cross_compiling=no
3133   else
3134     if test "$cross_compiling" = maybe; then
3135         cross_compiling=yes
3136     else
3137         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot run C++ compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details" "$LINENO" 5; }
3142     fi
3143   fi
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146 $as_echo "$cross_compiling" >&6; }
3147
3148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if ${ac_cv_objext+:} false; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { { ac_try="$ac_compile"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174   (eval "$ac_compile") 2>&5
3175   ac_status=$?
3176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177   test $ac_status = 0; }; then :
3178   for ac_file in conftest.o conftest.obj conftest.*; do
3179   test -f "$ac_file" || continue;
3180   case $ac_file in
3181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183        break;;
3184   esac
3185 done
3186 else
3187   $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details" "$LINENO" 5; }
3194 fi
3195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196 fi
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198 $as_echo "$ac_cv_objext" >&6; }
3199 OBJEXT=$ac_cv_objext
3200 ac_objext=$OBJEXT
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3202 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3203 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212 #ifndef __GNUC__
3213        choke me
3214 #endif
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 if ac_fn_cxx_try_compile "$LINENO"; then :
3221   ac_compiler_gnu=yes
3222 else
3223   ac_compiler_gnu=no
3224 fi
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3227
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3230 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3231 if test $ac_compiler_gnu = yes; then
3232   GXX=yes
3233 else
3234   GXX=
3235 fi
3236 ac_test_CXXFLAGS=${CXXFLAGS+set}
3237 ac_save_CXXFLAGS=$CXXFLAGS
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3239 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3240 if ${ac_cv_prog_cxx_g+:} false; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3244    ac_cxx_werror_flag=yes
3245    ac_cv_prog_cxx_g=no
3246    CXXFLAGS="-g"
3247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_cxx_try_compile "$LINENO"; then :
3259   ac_cv_prog_cxx_g=yes
3260 else
3261   CXXFLAGS=""
3262       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_cxx_try_compile "$LINENO"; then :
3274
3275 else
3276   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3277          CXXFLAGS="-g"
3278          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_cxx_try_compile "$LINENO"; then :
3290   ac_cv_prog_cxx_g=yes
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 fi
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 fi
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3300 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3301 if test "$ac_test_CXXFLAGS" = set; then
3302   CXXFLAGS=$ac_save_CXXFLAGS
3303 elif test $ac_cv_prog_cxx_g = yes; then
3304   if test "$GXX" = yes; then
3305     CXXFLAGS="-g -O2"
3306   else
3307     CXXFLAGS="-g"
3308   fi
3309 else
3310   if test "$GXX" = yes; then
3311     CXXFLAGS="-O2"
3312   else
3313     CXXFLAGS=
3314   fi
3315 fi
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 DEPDIR="${am__leading_dot}deps"
3322
3323 ac_config_commands="$ac_config_commands depfiles"
3324
3325
3326 am_make=${MAKE-make}
3327 cat > confinc << 'END'
3328 am__doit:
3329         @echo this is the am__doit target
3330 .PHONY: am__doit
3331 END
3332 # If we don't find an include directive, just comment out the code.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3334 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3335 am__include="#"
3336 am__quote=
3337 _am_result=none
3338 # First try GNU make style include.
3339 echo "include confinc" > confmf
3340 # Ignore all kinds of additional output from `make'.
3341 case `$am_make -s -f confmf 2> /dev/null` in #(
3342 *the\ am__doit\ target*)
3343   am__include=include
3344   am__quote=
3345   _am_result=GNU
3346   ;;
3347 esac
3348 # Now try BSD make style include.
3349 if test "$am__include" = "#"; then
3350    echo '.include "confinc"' > confmf
3351    case `$am_make -s -f confmf 2> /dev/null` in #(
3352    *the\ am__doit\ target*)
3353      am__include=.include
3354      am__quote="\""
3355      _am_result=BSD
3356      ;;
3357    esac
3358 fi
3359
3360
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3362 $as_echo "$_am_result" >&6; }
3363 rm -f confinc confmf
3364
3365 # Check whether --enable-dependency-tracking was given.
3366 if test "${enable_dependency_tracking+set}" = set; then :
3367   enableval=$enable_dependency_tracking;
3368 fi
3369
3370 if test "x$enable_dependency_tracking" != xno; then
3371   am_depcomp="$ac_aux_dir/depcomp"
3372   AMDEPBACKSLASH='\'
3373   am__nodep='_no'
3374 fi
3375  if test "x$enable_dependency_tracking" != xno; then
3376   AMDEP_TRUE=
3377   AMDEP_FALSE='#'
3378 else
3379   AMDEP_TRUE='#'
3380   AMDEP_FALSE=
3381 fi
3382
3383
3384
3385 depcc="$CXX"  am_compiler_list=
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3388 $as_echo_n "checking dependency style of $depcc... " >&6; }
3389 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3393   # We make a subdir and do the tests there.  Otherwise we can end up
3394   # making bogus files that we don't know about and never remove.  For
3395   # instance it was reported that on HP-UX the gcc test will end up
3396   # making a dummy file named `D' -- because `-MD' means `put the output
3397   # in D'.
3398   rm -rf conftest.dir
3399   mkdir conftest.dir
3400   # Copy depcomp to subdir because otherwise we won't find it if we're
3401   # using a relative directory.
3402   cp "$am_depcomp" conftest.dir
3403   cd conftest.dir
3404   # We will build objects and dependencies in a subdirectory because
3405   # it helps to detect inapplicable dependency modes.  For instance
3406   # both Tru64's cc and ICC support -MD to output dependencies as a
3407   # side effect of compilation, but ICC will put the dependencies in
3408   # the current directory while Tru64 will put them in the object
3409   # directory.
3410   mkdir sub
3411
3412   am_cv_CXX_dependencies_compiler_type=none
3413   if test "$am_compiler_list" = ""; then
3414      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3415   fi
3416   am__universal=false
3417   case " $depcc " in #(
3418      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3419      esac
3420
3421   for depmode in $am_compiler_list; do
3422     # Setup a source with many dependencies, because some compilers
3423     # like to wrap large dependency lists on column 80 (with \), and
3424     # we should not choose a depcomp mode which is confused by this.
3425     #
3426     # We need to recreate these files for each test, as the compiler may
3427     # overwrite some of them when testing with obscure command lines.
3428     # This happens at least with the AIX C compiler.
3429     : > sub/conftest.c
3430     for i in 1 2 3 4 5 6; do
3431       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3432       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3433       # Solaris 8's {/usr,}/bin/sh.
3434       touch sub/conftst$i.h
3435     done
3436     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3437
3438     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3439     # mode.  It turns out that the SunPro C++ compiler does not properly
3440     # handle `-M -o', and we need to detect this.  Also, some Intel
3441     # versions had trouble with output in subdirs
3442     am__obj=sub/conftest.${OBJEXT-o}
3443     am__minus_obj="-o $am__obj"
3444     case $depmode in
3445     gcc)
3446       # This depmode causes a compiler race in universal mode.
3447       test "$am__universal" = false || continue
3448       ;;
3449     nosideeffect)
3450       # after this tag, mechanisms are not by side-effect, so they'll
3451       # only be used when explicitly requested
3452       if test "x$enable_dependency_tracking" = xyes; then
3453         continue
3454       else
3455         break
3456       fi
3457       ;;
3458     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3459       # This compiler won't grok `-c -o', but also, the minuso test has
3460       # not run yet.  These depmodes are late enough in the game, and
3461       # so weak that their functioning should not be impacted.
3462       am__obj=conftest.${OBJEXT-o}
3463       am__minus_obj=
3464       ;;
3465     none) break ;;
3466     esac
3467     if depmode=$depmode \
3468        source=sub/conftest.c object=$am__obj \
3469        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3470        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3471          >/dev/null 2>conftest.err &&
3472        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CXX_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3490
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CXX_dependencies_compiler_type=none
3495 fi
3496
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3501
3502  if
3503   test "x$enable_dependency_tracking" != xno \
3504   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3505   am__fastdepCXX_TRUE=
3506   am__fastdepCXX_FALSE='#'
3507 else
3508   am__fastdepCXX_TRUE='#'
3509   am__fastdepCXX_FALSE=
3510 fi
3511
3512
3513 depcc="$CXX"  am_compiler_list=
3514
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3516 $as_echo_n "checking dependency style of $depcc... " >&6; }
3517 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3521   # We make a subdir and do the tests there.  Otherwise we can end up
3522   # making bogus files that we don't know about and never remove.  For
3523   # instance it was reported that on HP-UX the gcc test will end up
3524   # making a dummy file named `D' -- because `-MD' means `put the output
3525   # in D'.
3526   rm -rf conftest.dir
3527   mkdir conftest.dir
3528   # Copy depcomp to subdir because otherwise we won't find it if we're
3529   # using a relative directory.
3530   cp "$am_depcomp" conftest.dir
3531   cd conftest.dir
3532   # We will build objects and dependencies in a subdirectory because
3533   # it helps to detect inapplicable dependency modes.  For instance
3534   # both Tru64's cc and ICC support -MD to output dependencies as a
3535   # side effect of compilation, but ICC will put the dependencies in
3536   # the current directory while Tru64 will put them in the object
3537   # directory.
3538   mkdir sub
3539
3540   am_cv_CXX_dependencies_compiler_type=none
3541   if test "$am_compiler_list" = ""; then
3542      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3543   fi
3544   am__universal=false
3545   case " $depcc " in #(
3546      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3547      esac
3548
3549   for depmode in $am_compiler_list; do
3550     # Setup a source with many dependencies, because some compilers
3551     # like to wrap large dependency lists on column 80 (with \), and
3552     # we should not choose a depcomp mode which is confused by this.
3553     #
3554     # We need to recreate these files for each test, as the compiler may
3555     # overwrite some of them when testing with obscure command lines.
3556     # This happens at least with the AIX C compiler.
3557     : > sub/conftest.c
3558     for i in 1 2 3 4 5 6; do
3559       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3560       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3561       # Solaris 8's {/usr,}/bin/sh.
3562       touch sub/conftst$i.h
3563     done
3564     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3565
3566     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3567     # mode.  It turns out that the SunPro C++ compiler does not properly
3568     # handle `-M -o', and we need to detect this.  Also, some Intel
3569     # versions had trouble with output in subdirs
3570     am__obj=sub/conftest.${OBJEXT-o}
3571     am__minus_obj="-o $am__obj"
3572     case $depmode in
3573     gcc)
3574       # This depmode causes a compiler race in universal mode.
3575       test "$am__universal" = false || continue
3576       ;;
3577     nosideeffect)
3578       # after this tag, mechanisms are not by side-effect, so they'll
3579       # only be used when explicitly requested
3580       if test "x$enable_dependency_tracking" = xyes; then
3581         continue
3582       else
3583         break
3584       fi
3585       ;;
3586     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3587       # This compiler won't grok `-c -o', but also, the minuso test has
3588       # not run yet.  These depmodes are late enough in the game, and
3589       # so weak that their functioning should not be impacted.
3590       am__obj=conftest.${OBJEXT-o}
3591       am__minus_obj=
3592       ;;
3593     none) break ;;
3594     esac
3595     if depmode=$depmode \
3596        source=sub/conftest.c object=$am__obj \
3597        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3599          >/dev/null 2>conftest.err &&
3600        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3601        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3602        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3603        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3604       # icc doesn't choke on unknown options, it will just issue warnings
3605       # or remarks (even with -Werror).  So we grep stderr for any message
3606       # that says an option was ignored or not supported.
3607       # When given -MP, icc 7.0 and 7.1 complain thusly:
3608       #   icc: Command line warning: ignoring option '-M'; no argument required
3609       # The diagnosis changed in icc 8.0:
3610       #   icc: Command line remark: option '-MP' not supported
3611       if (grep 'ignoring option' conftest.err ||
3612           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3613         am_cv_CXX_dependencies_compiler_type=$depmode
3614         break
3615       fi
3616     fi
3617   done
3618
3619   cd ..
3620   rm -rf conftest.dir
3621 else
3622   am_cv_CXX_dependencies_compiler_type=none
3623 fi
3624
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3627 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3628 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3629
3630  if
3631   test "x$enable_dependency_tracking" != xno \
3632   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3633   am__fastdepCXX_TRUE=
3634   am__fastdepCXX_FALSE='#'
3635 else
3636   am__fastdepCXX_TRUE='#'
3637   am__fastdepCXX_FALSE=
3638 fi
3639
3640
3641 case `pwd` in
3642   *\ * | *\     *)
3643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3645 esac
3646
3647
3648
3649 macro_version='2.4.2'
3650 macro_revision='1.3337'
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664 ltmain="$ac_aux_dir/ltmain.sh"
3665
3666 # Make sure we can run config.sub.
3667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3669
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3671 $as_echo_n "checking build system type... " >&6; }
3672 if ${ac_cv_build+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   ac_build_alias=$build_alias
3676 test "x$ac_build_alias" = x &&
3677   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3678 test "x$ac_build_alias" = x &&
3679   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3682
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3685 $as_echo "$ac_cv_build" >&6; }
3686 case $ac_cv_build in
3687 *-*-*) ;;
3688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3689 esac
3690 build=$ac_cv_build
3691 ac_save_IFS=$IFS; IFS='-'
3692 set x $ac_cv_build
3693 shift
3694 build_cpu=$1
3695 build_vendor=$2
3696 shift; shift
3697 # Remember, the first character of IFS is used to create $*,
3698 # except with old shells:
3699 build_os=$*
3700 IFS=$ac_save_IFS
3701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3702
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3705 $as_echo_n "checking host system type... " >&6; }
3706 if ${ac_cv_host+:} false; then :
3707   $as_echo_n "(cached) " >&6
3708 else
3709   if test "x$host_alias" = x; then
3710   ac_cv_host=$ac_cv_build
3711 else
3712   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3713     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3714 fi
3715
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3718 $as_echo "$ac_cv_host" >&6; }
3719 case $ac_cv_host in
3720 *-*-*) ;;
3721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3722 esac
3723 host=$ac_cv_host
3724 ac_save_IFS=$IFS; IFS='-'
3725 set x $ac_cv_host
3726 shift
3727 host_cpu=$1
3728 host_vendor=$2
3729 shift; shift
3730 # Remember, the first character of IFS is used to create $*,
3731 # except with old shells:
3732 host_os=$*
3733 IFS=$ac_save_IFS
3734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3735
3736
3737 # Backslashify metacharacters that are still active within
3738 # double-quoted strings.
3739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3740
3741 # Same as above, but do not quote variable references.
3742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3743
3744 # Sed substitution to delay expansion of an escaped shell variable in a
3745 # double_quote_subst'ed string.
3746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3747
3748 # Sed substitution to delay expansion of an escaped single quote.
3749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3750
3751 # Sed substitution to avoid accidental globbing in evaled expressions
3752 no_glob_subst='s/\*/\\\*/g'
3753
3754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3759 $as_echo_n "checking how to print strings... " >&6; }
3760 # Test print first, because it will be a builtin if present.
3761 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3762    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3763   ECHO='print -r --'
3764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3765   ECHO='printf %s\n'
3766 else
3767   # Use this function as a fallback that always works.
3768   func_fallback_echo ()
3769   {
3770     eval 'cat <<_LTECHO_EOF
3771 $1
3772 _LTECHO_EOF'
3773   }
3774   ECHO='func_fallback_echo'
3775 fi
3776
3777 # func_echo_all arg...
3778 # Invoke $ECHO with all args, space-separated.
3779 func_echo_all ()
3780 {
3781     $ECHO ""
3782 }
3783
3784 case "$ECHO" in
3785   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3786 $as_echo "printf" >&6; } ;;
3787   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3788 $as_echo "print -r" >&6; } ;;
3789   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3790 $as_echo "cat" >&6; } ;;
3791 esac
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 if test -n "$ac_tool_prefix"; then
3812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$CC"; then
3820   ac_cv_prog_CC="$CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 CC=$ac_cv_prog_CC
3840 if test -n "$CC"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 fi
3850 if test -z "$ac_cv_prog_CC"; then
3851   ac_ct_CC=$CC
3852   # Extract the first word of "gcc", so it can be a program name with args.
3853 set dummy gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$ac_ct_CC"; then
3860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_ac_ct_CC="gcc"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888   if test "x$ac_ct_CC" = x; then
3889     CC=""
3890   else
3891     case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897     CC=$ac_ct_CC
3898   fi
3899 else
3900   CC="$ac_cv_prog_CC"
3901 fi
3902
3903 if test -z "$CC"; then
3904           if test -n "$ac_tool_prefix"; then
3905     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   if test -n "$CC"; then
3913   ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920     for ac_exec_ext in '' $ac_executable_extensions; do
3921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922     ac_cv_prog_CC="${ac_tool_prefix}cc"
3923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927   done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942   fi
3943 fi
3944 if test -z "$CC"; then
3945   # Extract the first word of "cc", so it can be a program name with args.
3946 set dummy cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955   ac_prog_rejected=no
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3964        ac_prog_rejected=yes
3965        continue
3966      fi
3967     ac_cv_prog_CC="cc"
3968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969     break 2
3970   fi
3971 done
3972   done
3973 IFS=$as_save_IFS
3974
3975 if test $ac_prog_rejected = yes; then
3976   # We found a bogon in the path, so make sure we never use it.
3977   set dummy $ac_cv_prog_CC
3978   shift
3979   if test $# != 0; then
3980     # We chose a different compiler from the bogus one.
3981     # However, it has the same basename, so the bogon will be chosen
3982     # first if we set CC to just the basename; use the full file name.
3983     shift
3984     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3985   fi
3986 fi
3987 fi
3988 fi
3989 CC=$ac_cv_prog_CC
3990 if test -n "$CC"; then
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3993 else
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$CC"; then
4001   if test -n "$ac_tool_prefix"; then
4002   for ac_prog in cl.exe
4003   do
4004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   if test -n "$CC"; then
4012   ac_cv_prog_CC="$CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026   done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041     test -n "$CC" && break
4042   done
4043 fi
4044 if test -z "$CC"; then
4045   ac_ct_CC=$CC
4046   for ac_prog in cl.exe
4047 do
4048   # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -n "$ac_ct_CC"; then
4056   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063     for ac_exec_ext in '' $ac_executable_extensions; do
4064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065     ac_cv_prog_ac_ct_CC="$ac_prog"
4066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070   done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4076 if test -n "$ac_ct_CC"; then
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4078 $as_echo "$ac_ct_CC" >&6; }
4079 else
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 fi
4083
4084
4085   test -n "$ac_ct_CC" && break
4086 done
4087
4088   if test "x$ac_ct_CC" = x; then
4089     CC=""
4090   else
4091     case $cross_compiling:$ac_tool_warned in
4092 yes:)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4096 esac
4097     CC=$ac_ct_CC
4098   fi
4099 fi
4100
4101 fi
4102
4103
4104 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error $? "no acceptable C compiler found in \$PATH
4107 See \`config.log' for more details" "$LINENO" 5; }
4108
4109 # Provide some information about the compiler.
4110 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4111 set X $ac_compile
4112 ac_compiler=$2
4113 for ac_option in --version -v -V -qversion; do
4114   { { ac_try="$ac_compiler $ac_option >&5"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4122   ac_status=$?
4123   if test -s conftest.err; then
4124     sed '10a\
4125 ... rest of stderr output deleted ...
4126          10q' conftest.err >conftest.er1
4127     cat conftest.er1 >&5
4128   fi
4129   rm -f conftest.er1 conftest.err
4130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131   test $ac_status = 0; }
4132 done
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136 if ${ac_cv_c_compiler_gnu+:} false; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141
4142 int
4143 main ()
4144 {
4145 #ifndef __GNUC__
4146        choke me
4147 #endif
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154   ac_compiler_gnu=yes
4155 else
4156   ac_compiler_gnu=no
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164 if test $ac_compiler_gnu = yes; then
4165   GCC=yes
4166 else
4167   GCC=
4168 fi
4169 ac_test_CFLAGS=${CFLAGS+set}
4170 ac_save_CFLAGS=$CFLAGS
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173 if ${ac_cv_prog_cc_g+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   ac_save_c_werror_flag=$ac_c_werror_flag
4177    ac_c_werror_flag=yes
4178    ac_cv_prog_cc_g=no
4179    CFLAGS="-g"
4180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h.  */
4182
4183 int
4184 main ()
4185 {
4186
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192   ac_cv_prog_cc_g=yes
4193 else
4194   CFLAGS=""
4195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207
4208 else
4209   ac_c_werror_flag=$ac_save_c_werror_flag
4210          CFLAGS="-g"
4211          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213
4214 int
4215 main ()
4216 {
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223   ac_cv_prog_cc_g=yes
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230    ac_c_werror_flag=$ac_save_c_werror_flag
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 $as_echo "$ac_cv_prog_cc_g" >&6; }
4234 if test "$ac_test_CFLAGS" = set; then
4235   CFLAGS=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237   if test "$GCC" = yes; then
4238     CFLAGS="-g -O2"
4239   else
4240     CFLAGS="-g"
4241   fi
4242 else
4243   if test "$GCC" = yes; then
4244     CFLAGS="-O2"
4245   else
4246     CFLAGS=
4247   fi
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251 if ${ac_cv_prog_cc_c89+:} false; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   ac_cv_prog_cc_c89=no
4255 ac_save_CC=$CC
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258 #include <stdarg.h>
4259 #include <stdio.h>
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4266      char **p;
4267      int i;
4268 {
4269   return p[i];
4270 }
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4272 {
4273   char *s;
4274   va_list v;
4275   va_start (v,p);
4276   s = g (p, va_arg (v,int));
4277   va_end (v);
4278   return s;
4279 }
4280
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4282    function prototypes and stuff, but not '\xHH' hex character constants.
4283    These don't provoke an error unfortunately, instead are silently treated
4284    as 'x'.  The following induces an error, until -std is added to get
4285    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4286    array size at least.  It's necessary to write '\x00'==0 to get something
4287    that's true only with -std.  */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291    inside strings and character constants.  */
4292 #define FOO(x) 'x'
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299 int argc;
4300 char **argv;
4301 int
4302 main ()
4303 {
4304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 do
4312   CC="$ac_save_CC $ac_arg"
4313   if ac_fn_c_try_compile "$LINENO"; then :
4314   ac_cv_prog_cc_c89=$ac_arg
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext
4317   test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 done
4319 rm -f conftest.$ac_ext
4320 CC=$ac_save_CC
4321
4322 fi
4323 # AC_CACHE_VAL
4324 case "x$ac_cv_prog_cc_c89" in
4325   x)
4326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4328   xno)
4329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4331   *)
4332     CC="$CC $ac_cv_prog_cc_c89"
4333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 esac
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337
4338 fi
4339
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
4346 depcc="$CC"   am_compiler_list=
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
4350 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354   # We make a subdir and do the tests there.  Otherwise we can end up
4355   # making bogus files that we don't know about and never remove.  For
4356   # instance it was reported that on HP-UX the gcc test will end up
4357   # making a dummy file named `D' -- because `-MD' means `put the output
4358   # in D'.
4359   rm -rf conftest.dir
4360   mkdir conftest.dir
4361   # Copy depcomp to subdir because otherwise we won't find it if we're
4362   # using a relative directory.
4363   cp "$am_depcomp" conftest.dir
4364   cd conftest.dir
4365   # We will build objects and dependencies in a subdirectory because
4366   # it helps to detect inapplicable dependency modes.  For instance
4367   # both Tru64's cc and ICC support -MD to output dependencies as a
4368   # side effect of compilation, but ICC will put the dependencies in
4369   # the current directory while Tru64 will put them in the object
4370   # directory.
4371   mkdir sub
4372
4373   am_cv_CC_dependencies_compiler_type=none
4374   if test "$am_compiler_list" = ""; then
4375      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4376   fi
4377   am__universal=false
4378   case " $depcc " in #(
4379      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4380      esac
4381
4382   for depmode in $am_compiler_list; do
4383     # Setup a source with many dependencies, because some compilers
4384     # like to wrap large dependency lists on column 80 (with \), and
4385     # we should not choose a depcomp mode which is confused by this.
4386     #
4387     # We need to recreate these files for each test, as the compiler may
4388     # overwrite some of them when testing with obscure command lines.
4389     # This happens at least with the AIX C compiler.
4390     : > sub/conftest.c
4391     for i in 1 2 3 4 5 6; do
4392       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4394       # Solaris 8's {/usr,}/bin/sh.
4395       touch sub/conftst$i.h
4396     done
4397     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398
4399     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400     # mode.  It turns out that the SunPro C++ compiler does not properly
4401     # handle `-M -o', and we need to detect this.  Also, some Intel
4402     # versions had trouble with output in subdirs
4403     am__obj=sub/conftest.${OBJEXT-o}
4404     am__minus_obj="-o $am__obj"
4405     case $depmode in
4406     gcc)
4407       # This depmode causes a compiler race in universal mode.
4408       test "$am__universal" = false || continue
4409       ;;
4410     nosideeffect)
4411       # after this tag, mechanisms are not by side-effect, so they'll
4412       # only be used when explicitly requested
4413       if test "x$enable_dependency_tracking" = xyes; then
4414         continue
4415       else
4416         break
4417       fi
4418       ;;
4419     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4420       # This compiler won't grok `-c -o', but also, the minuso test has
4421       # not run yet.  These depmodes are late enough in the game, and
4422       # so weak that their functioning should not be impacted.
4423       am__obj=conftest.${OBJEXT-o}
4424       am__minus_obj=
4425       ;;
4426     none) break ;;
4427     esac
4428     if depmode=$depmode \
4429        source=sub/conftest.c object=$am__obj \
4430        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432          >/dev/null 2>conftest.err &&
4433        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437       # icc doesn't choke on unknown options, it will just issue warnings
4438       # or remarks (even with -Werror).  So we grep stderr for any message
4439       # that says an option was ignored or not supported.
4440       # When given -MP, icc 7.0 and 7.1 complain thusly:
4441       #   icc: Command line warning: ignoring option '-M'; no argument required
4442       # The diagnosis changed in icc 8.0:
4443       #   icc: Command line remark: option '-MP' not supported
4444       if (grep 'ignoring option' conftest.err ||
4445           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446         am_cv_CC_dependencies_compiler_type=$depmode
4447         break
4448       fi
4449     fi
4450   done
4451
4452   cd ..
4453   rm -rf conftest.dir
4454 else
4455   am_cv_CC_dependencies_compiler_type=none
4456 fi
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4462
4463  if
4464   test "x$enable_dependency_tracking" != xno \
4465   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4466   am__fastdepCC_TRUE=
4467   am__fastdepCC_FALSE='#'
4468 else
4469   am__fastdepCC_TRUE='#'
4470   am__fastdepCC_FALSE=
4471 fi
4472
4473
4474 depcc="$CC"   am_compiler_list=
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4477 $as_echo_n "checking dependency style of $depcc... " >&6; }
4478 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4482   # We make a subdir and do the tests there.  Otherwise we can end up
4483   # making bogus files that we don't know about and never remove.  For
4484   # instance it was reported that on HP-UX the gcc test will end up
4485   # making a dummy file named `D' -- because `-MD' means `put the output
4486   # in D'.
4487   rm -rf conftest.dir
4488   mkdir conftest.dir
4489   # Copy depcomp to subdir because otherwise we won't find it if we're
4490   # using a relative directory.
4491   cp "$am_depcomp" conftest.dir
4492   cd conftest.dir
4493   # We will build objects and dependencies in a subdirectory because
4494   # it helps to detect inapplicable dependency modes.  For instance
4495   # both Tru64's cc and ICC support -MD to output dependencies as a
4496   # side effect of compilation, but ICC will put the dependencies in
4497   # the current directory while Tru64 will put them in the object
4498   # directory.
4499   mkdir sub
4500
4501   am_cv_CC_dependencies_compiler_type=none
4502   if test "$am_compiler_list" = ""; then
4503      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4504   fi
4505   am__universal=false
4506   case " $depcc " in #(
4507      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4508      esac
4509
4510   for depmode in $am_compiler_list; do
4511     # Setup a source with many dependencies, because some compilers
4512     # like to wrap large dependency lists on column 80 (with \), and
4513     # we should not choose a depcomp mode which is confused by this.
4514     #
4515     # We need to recreate these files for each test, as the compiler may
4516     # overwrite some of them when testing with obscure command lines.
4517     # This happens at least with the AIX C compiler.
4518     : > sub/conftest.c
4519     for i in 1 2 3 4 5 6; do
4520       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522       # Solaris 8's {/usr,}/bin/sh.
4523       touch sub/conftst$i.h
4524     done
4525     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4526
4527     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528     # mode.  It turns out that the SunPro C++ compiler does not properly
4529     # handle `-M -o', and we need to detect this.  Also, some Intel
4530     # versions had trouble with output in subdirs
4531     am__obj=sub/conftest.${OBJEXT-o}
4532     am__minus_obj="-o $am__obj"
4533     case $depmode in
4534     gcc)
4535       # This depmode causes a compiler race in universal mode.
4536       test "$am__universal" = false || continue
4537       ;;
4538     nosideeffect)
4539       # after this tag, mechanisms are not by side-effect, so they'll
4540       # only be used when explicitly requested
4541       if test "x$enable_dependency_tracking" = xyes; then
4542         continue
4543       else
4544         break
4545       fi
4546       ;;
4547     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4548       # This compiler won't grok `-c -o', but also, the minuso test has
4549       # not run yet.  These depmodes are late enough in the game, and
4550       # so weak that their functioning should not be impacted.
4551       am__obj=conftest.${OBJEXT-o}
4552       am__minus_obj=
4553       ;;
4554     none) break ;;
4555     esac
4556     if depmode=$depmode \
4557        source=sub/conftest.c object=$am__obj \
4558        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560          >/dev/null 2>conftest.err &&
4561        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565       # icc doesn't choke on unknown options, it will just issue warnings
4566       # or remarks (even with -Werror).  So we grep stderr for any message
4567       # that says an option was ignored or not supported.
4568       # When given -MP, icc 7.0 and 7.1 complain thusly:
4569       #   icc: Command line warning: ignoring option '-M'; no argument required
4570       # The diagnosis changed in icc 8.0:
4571       #   icc: Command line remark: option '-MP' not supported
4572       if (grep 'ignoring option' conftest.err ||
4573           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574         am_cv_CC_dependencies_compiler_type=$depmode
4575         break
4576       fi
4577     fi
4578   done
4579
4580   cd ..
4581   rm -rf conftest.dir
4582 else
4583   am_cv_CC_dependencies_compiler_type=none
4584 fi
4585
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4590
4591  if
4592   test "x$enable_dependency_tracking" != xno \
4593   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4594   am__fastdepCC_TRUE=
4595   am__fastdepCC_FALSE='#'
4596 else
4597   am__fastdepCC_TRUE='#'
4598   am__fastdepCC_FALSE=
4599 fi
4600
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4604 if ${ac_cv_path_SED+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4608      for ac_i in 1 2 3 4 5 6 7; do
4609        ac_script="$ac_script$as_nl$ac_script"
4610      done
4611      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4612      { ac_script=; unset ac_script;}
4613      if test -z "$SED"; then
4614   ac_path_SED_found=false
4615   # Loop through the user's path and test for each of PROGNAME-LIST
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_prog in sed gsed; do
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4624       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4625 # Check for GNU ac_path_SED and select it if it is found.
4626   # Check for GNU $ac_path_SED
4627 case `"$ac_path_SED" --version 2>&1` in
4628 *GNU*)
4629   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4630 *)
4631   ac_count=0
4632   $as_echo_n 0123456789 >"conftest.in"
4633   while :
4634   do
4635     cat "conftest.in" "conftest.in" >"conftest.tmp"
4636     mv "conftest.tmp" "conftest.in"
4637     cp "conftest.in" "conftest.nl"
4638     $as_echo '' >> "conftest.nl"
4639     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641     as_fn_arith $ac_count + 1 && ac_count=$as_val
4642     if test $ac_count -gt ${ac_path_SED_max-0}; then
4643       # Best one so far, save it but keep looking for a better one
4644       ac_cv_path_SED="$ac_path_SED"
4645       ac_path_SED_max=$ac_count
4646     fi
4647     # 10*(2^10) chars as input seems more than enough
4648     test $ac_count -gt 10 && break
4649   done
4650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653       $ac_path_SED_found && break 3
4654     done
4655   done
4656   done
4657 IFS=$as_save_IFS
4658   if test -z "$ac_cv_path_SED"; then
4659     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4660   fi
4661 else
4662   ac_cv_path_SED=$SED
4663 fi
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4667 $as_echo "$ac_cv_path_SED" >&6; }
4668  SED="$ac_cv_path_SED"
4669   rm -f conftest.sed
4670
4671 test -z "$SED" && SED=sed
4672 Xsed="$SED -e 1s/^X//"
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4685 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4686 if ${ac_cv_path_GREP+:} false; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -z "$GREP"; then
4690   ac_path_GREP_found=false
4691   # Loop through the user's path and test for each of PROGNAME-LIST
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_prog in grep ggrep; do
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4700       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4701 # Check for GNU ac_path_GREP and select it if it is found.
4702   # Check for GNU $ac_path_GREP
4703 case `"$ac_path_GREP" --version 2>&1` in
4704 *GNU*)
4705   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706 *)
4707   ac_count=0
4708   $as_echo_n 0123456789 >"conftest.in"
4709   while :
4710   do
4711     cat "conftest.in" "conftest.in" >"conftest.tmp"
4712     mv "conftest.tmp" "conftest.in"
4713     cp "conftest.in" "conftest.nl"
4714     $as_echo 'GREP' >> "conftest.nl"
4715     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717     as_fn_arith $ac_count + 1 && ac_count=$as_val
4718     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4719       # Best one so far, save it but keep looking for a better one
4720       ac_cv_path_GREP="$ac_path_GREP"
4721       ac_path_GREP_max=$ac_count
4722     fi
4723     # 10*(2^10) chars as input seems more than enough
4724     test $ac_count -gt 10 && break
4725   done
4726   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729       $ac_path_GREP_found && break 3
4730     done
4731   done
4732   done
4733 IFS=$as_save_IFS
4734   if test -z "$ac_cv_path_GREP"; then
4735     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736   fi
4737 else
4738   ac_cv_path_GREP=$GREP
4739 fi
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4743 $as_echo "$ac_cv_path_GREP" >&6; }
4744  GREP="$ac_cv_path_GREP"
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4748 $as_echo_n "checking for egrep... " >&6; }
4749 if ${ac_cv_path_EGREP+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4753    then ac_cv_path_EGREP="$GREP -E"
4754    else
4755      if test -z "$EGREP"; then
4756   ac_path_EGREP_found=false
4757   # Loop through the user's path and test for each of PROGNAME-LIST
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763     for ac_prog in egrep; do
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4767 # Check for GNU ac_path_EGREP and select it if it is found.
4768   # Check for GNU $ac_path_EGREP
4769 case `"$ac_path_EGREP" --version 2>&1` in
4770 *GNU*)
4771   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 *)
4773   ac_count=0
4774   $as_echo_n 0123456789 >"conftest.in"
4775   while :
4776   do
4777     cat "conftest.in" "conftest.in" >"conftest.tmp"
4778     mv "conftest.tmp" "conftest.in"
4779     cp "conftest.in" "conftest.nl"
4780     $as_echo 'EGREP' >> "conftest.nl"
4781     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783     as_fn_arith $ac_count + 1 && ac_count=$as_val
4784     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785       # Best one so far, save it but keep looking for a better one
4786       ac_cv_path_EGREP="$ac_path_EGREP"
4787       ac_path_EGREP_max=$ac_count
4788     fi
4789     # 10*(2^10) chars as input seems more than enough
4790     test $ac_count -gt 10 && break
4791   done
4792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795       $ac_path_EGREP_found && break 3
4796     done
4797   done
4798   done
4799 IFS=$as_save_IFS
4800   if test -z "$ac_cv_path_EGREP"; then
4801     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802   fi
4803 else
4804   ac_cv_path_EGREP=$EGREP
4805 fi
4806
4807    fi
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4810 $as_echo "$ac_cv_path_EGREP" >&6; }
4811  EGREP="$ac_cv_path_EGREP"
4812
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4815 $as_echo_n "checking for fgrep... " >&6; }
4816 if ${ac_cv_path_FGREP+:} false; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4820    then ac_cv_path_FGREP="$GREP -F"
4821    else
4822      if test -z "$FGREP"; then
4823   ac_path_FGREP_found=false
4824   # Loop through the user's path and test for each of PROGNAME-LIST
4825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830     for ac_prog in fgrep; do
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4833       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4834 # Check for GNU ac_path_FGREP and select it if it is found.
4835   # Check for GNU $ac_path_FGREP
4836 case `"$ac_path_FGREP" --version 2>&1` in
4837 *GNU*)
4838   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4839 *)
4840   ac_count=0
4841   $as_echo_n 0123456789 >"conftest.in"
4842   while :
4843   do
4844     cat "conftest.in" "conftest.in" >"conftest.tmp"
4845     mv "conftest.tmp" "conftest.in"
4846     cp "conftest.in" "conftest.nl"
4847     $as_echo 'FGREP' >> "conftest.nl"
4848     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850     as_fn_arith $ac_count + 1 && ac_count=$as_val
4851     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4852       # Best one so far, save it but keep looking for a better one
4853       ac_cv_path_FGREP="$ac_path_FGREP"
4854       ac_path_FGREP_max=$ac_count
4855     fi
4856     # 10*(2^10) chars as input seems more than enough
4857     test $ac_count -gt 10 && break
4858   done
4859   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862       $ac_path_FGREP_found && break 3
4863     done
4864   done
4865   done
4866 IFS=$as_save_IFS
4867   if test -z "$ac_cv_path_FGREP"; then
4868     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869   fi
4870 else
4871   ac_cv_path_FGREP=$FGREP
4872 fi
4873
4874    fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4877 $as_echo "$ac_cv_path_FGREP" >&6; }
4878  FGREP="$ac_cv_path_FGREP"
4879
4880
4881 test -z "$GREP" && GREP=grep
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901 # Check whether --with-gnu-ld was given.
4902 if test "${with_gnu_ld+set}" = set; then :
4903   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4904 else
4905   with_gnu_ld=no
4906 fi
4907
4908 ac_prog=ld
4909 if test "$GCC" = yes; then
4910   # Check if gcc -print-prog-name=ld gives a path.
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4912 $as_echo_n "checking for ld used by $CC... " >&6; }
4913   case $host in
4914   *-*-mingw*)
4915     # gcc leaves a trailing carriage return which upsets mingw
4916     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4917   *)
4918     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919   esac
4920   case $ac_prog in
4921     # Accept absolute paths.
4922     [\\/]* | ?:[\\/]*)
4923       re_direlt='/[^/][^/]*/\.\./'
4924       # Canonicalize the pathname of ld
4925       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4926       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4927         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4928       done
4929       test -z "$LD" && LD="$ac_prog"
4930       ;;
4931   "")
4932     # If it fails, then pretend we aren't using GCC.
4933     ac_prog=ld
4934     ;;
4935   *)
4936     # If it is relative, then search for the first ld in PATH.
4937     with_gnu_ld=unknown
4938     ;;
4939   esac
4940 elif test "$with_gnu_ld" = yes; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4942 $as_echo_n "checking for GNU ld... " >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4945 $as_echo_n "checking for non-GNU ld... " >&6; }
4946 fi
4947 if ${lt_cv_path_LD+:} false; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   if test -z "$LD"; then
4951   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952   for ac_dir in $PATH; do
4953     IFS="$lt_save_ifs"
4954     test -z "$ac_dir" && ac_dir=.
4955     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4956       lt_cv_path_LD="$ac_dir/$ac_prog"
4957       # Check to see if the program is GNU ld.  I'd rather use --version,
4958       # but apparently some variants of GNU ld only accept -v.
4959       # Break only if it was the GNU/non-GNU ld that we prefer.
4960       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4961       *GNU* | *'with BFD'*)
4962         test "$with_gnu_ld" != no && break
4963         ;;
4964       *)
4965         test "$with_gnu_ld" != yes && break
4966         ;;
4967       esac
4968     fi
4969   done
4970   IFS="$lt_save_ifs"
4971 else
4972   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973 fi
4974 fi
4975
4976 LD="$lt_cv_path_LD"
4977 if test -n "$LD"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4979 $as_echo "$LD" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4986 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4987 if ${lt_cv_prog_gnu_ld+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4991 case `$LD -v 2>&1 </dev/null` in
4992 *GNU* | *'with BFD'*)
4993   lt_cv_prog_gnu_ld=yes
4994   ;;
4995 *)
4996   lt_cv_prog_gnu_ld=no
4997   ;;
4998 esac
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5001 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5002 with_gnu_ld=$lt_cv_prog_gnu_ld
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5013 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5014 if ${lt_cv_path_NM+:} false; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017   if test -n "$NM"; then
5018   # Let the user override the test.
5019   lt_cv_path_NM="$NM"
5020 else
5021   lt_nm_to_check="${ac_tool_prefix}nm"
5022   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5023     lt_nm_to_check="$lt_nm_to_check nm"
5024   fi
5025   for lt_tmp_nm in $lt_nm_to_check; do
5026     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5028       IFS="$lt_save_ifs"
5029       test -z "$ac_dir" && ac_dir=.
5030       tmp_nm="$ac_dir/$lt_tmp_nm"
5031       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5032         # Check to see if the nm accepts a BSD-compat flag.
5033         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5034         #   nm: unknown option "B" ignored
5035         # Tru64's nm complains that /dev/null is an invalid object file
5036         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5037         */dev/null* | *'Invalid file or object type'*)
5038           lt_cv_path_NM="$tmp_nm -B"
5039           break
5040           ;;
5041         *)
5042           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5043           */dev/null*)
5044             lt_cv_path_NM="$tmp_nm -p"
5045             break
5046             ;;
5047           *)
5048             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5049             continue # so that we can try to find one that supports BSD flags
5050             ;;
5051           esac
5052           ;;
5053         esac
5054       fi
5055     done
5056     IFS="$lt_save_ifs"
5057   done
5058   : ${lt_cv_path_NM=no}
5059 fi
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5062 $as_echo "$lt_cv_path_NM" >&6; }
5063 if test "$lt_cv_path_NM" != "no"; then
5064   NM="$lt_cv_path_NM"
5065 else
5066   # Didn't find any BSD compatible name lister, look for dumpbin.
5067   if test -n "$DUMPBIN"; then :
5068     # Let the user override the test.
5069   else
5070     if test -n "$ac_tool_prefix"; then
5071   for ac_prog in dumpbin "link -dump"
5072   do
5073     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_DUMPBIN+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if test -n "$DUMPBIN"; then
5081   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095   done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 DUMPBIN=$ac_cv_prog_DUMPBIN
5101 if test -n "$DUMPBIN"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5103 $as_echo "$DUMPBIN" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110     test -n "$DUMPBIN" && break
5111   done
5112 fi
5113 if test -z "$DUMPBIN"; then
5114   ac_ct_DUMPBIN=$DUMPBIN
5115   for ac_prog in dumpbin "link -dump"
5116 do
5117   # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$ac_ct_DUMPBIN"; then
5125   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139   done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5145 if test -n "$ac_ct_DUMPBIN"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5147 $as_echo "$ac_ct_DUMPBIN" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154   test -n "$ac_ct_DUMPBIN" && break
5155 done
5156
5157   if test "x$ac_ct_DUMPBIN" = x; then
5158     DUMPBIN=":"
5159   else
5160     case $cross_compiling:$ac_tool_warned in
5161 yes:)
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5165 esac
5166     DUMPBIN=$ac_ct_DUMPBIN
5167   fi
5168 fi
5169
5170     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5171     *COFF*)
5172       DUMPBIN="$DUMPBIN -symbols"
5173       ;;
5174     *)
5175       DUMPBIN=:
5176       ;;
5177     esac
5178   fi
5179
5180   if test "$DUMPBIN" != ":"; then
5181     NM="$DUMPBIN"
5182   fi
5183 fi
5184 test -z "$NM" && NM=nm
5185
5186
5187
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5192 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5193 if ${lt_cv_nm_interface+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   lt_cv_nm_interface="BSD nm"
5197   echo "int some_variable = 0;" > conftest.$ac_ext
5198   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5199   (eval "$ac_compile" 2>conftest.err)
5200   cat conftest.err >&5
5201   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5202   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5203   cat conftest.err >&5
5204   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5205   cat conftest.out >&5
5206   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5207     lt_cv_nm_interface="MS dumpbin"
5208   fi
5209   rm -f conftest*
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5212 $as_echo "$lt_cv_nm_interface" >&6; }
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5215 $as_echo_n "checking whether ln -s works... " >&6; }
5216 LN_S=$as_ln_s
5217 if test "$LN_S" = "ln -s"; then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5219 $as_echo "yes" >&6; }
5220 else
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5222 $as_echo "no, using $LN_S" >&6; }
5223 fi
5224
5225 # find the maximum length of command line arguments
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5227 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5228 if ${lt_cv_sys_max_cmd_len+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231     i=0
5232   teststring="ABCD"
5233
5234   case $build_os in
5235   msdosdjgpp*)
5236     # On DJGPP, this test can blow up pretty badly due to problems in libc
5237     # (any single argument exceeding 2000 bytes causes a buffer overrun
5238     # during glob expansion).  Even if it were fixed, the result of this
5239     # check would be larger than it should be.
5240     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5241     ;;
5242
5243   gnu*)
5244     # Under GNU Hurd, this test is not required because there is
5245     # no limit to the length of command line arguments.
5246     # Libtool will interpret -1 as no limit whatsoever
5247     lt_cv_sys_max_cmd_len=-1;
5248     ;;
5249
5250   cygwin* | mingw* | cegcc*)
5251     # On Win9x/ME, this test blows up -- it succeeds, but takes
5252     # about 5 minutes as the teststring grows exponentially.
5253     # Worse, since 9x/ME are not pre-emptively multitasking,
5254     # you end up with a "frozen" computer, even though with patience
5255     # the test eventually succeeds (with a max line length of 256k).
5256     # Instead, let's just punt: use the minimum linelength reported by
5257     # all of the supported platforms: 8192 (on NT/2K/XP).
5258     lt_cv_sys_max_cmd_len=8192;
5259     ;;
5260
5261   mint*)
5262     # On MiNT this can take a long time and run out of memory.
5263     lt_cv_sys_max_cmd_len=8192;
5264     ;;
5265
5266   amigaos*)
5267     # On AmigaOS with pdksh, this test takes hours, literally.
5268     # So we just punt and use a minimum line length of 8192.
5269     lt_cv_sys_max_cmd_len=8192;
5270     ;;
5271
5272   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5273     # This has been around since 386BSD, at least.  Likely further.
5274     if test -x /sbin/sysctl; then
5275       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5276     elif test -x /usr/sbin/sysctl; then
5277       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5278     else
5279       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5280     fi
5281     # And add a safety zone
5282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5283     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5284     ;;
5285
5286   interix*)
5287     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5288     lt_cv_sys_max_cmd_len=196608
5289     ;;
5290
5291   os2*)
5292     # The test takes a long time on OS/2.
5293     lt_cv_sys_max_cmd_len=8192
5294     ;;
5295
5296   osf*)
5297     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5298     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5299     # nice to cause kernel panics so lets avoid the loop below.
5300     # First set a reasonable default.
5301     lt_cv_sys_max_cmd_len=16384
5302     #
5303     if test -x /sbin/sysconfig; then
5304       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5305         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5306       esac
5307     fi
5308     ;;
5309   sco3.2v5*)
5310     lt_cv_sys_max_cmd_len=102400
5311     ;;
5312   sysv5* | sco5v6* | sysv4.2uw2*)
5313     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5314     if test -n "$kargmax"; then
5315       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5316     else
5317       lt_cv_sys_max_cmd_len=32768
5318     fi
5319     ;;
5320   *)
5321     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5322     if test -n "$lt_cv_sys_max_cmd_len"; then
5323       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325     else
5326       # Make teststring a little bigger before we do anything with it.
5327       # a 1K string should be a reasonable start.
5328       for i in 1 2 3 4 5 6 7 8 ; do
5329         teststring=$teststring$teststring
5330       done
5331       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5332       # If test is not a shell built-in, we'll probably end up computing a
5333       # maximum length that is only half of the actual maximum length, but
5334       # we can't tell.
5335       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5336                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5337               test $i != 17 # 1/2 MB should be enough
5338       do
5339         i=`expr $i + 1`
5340         teststring=$teststring$teststring
5341       done
5342       # Only check the string length outside the loop.
5343       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5344       teststring=
5345       # Add a significant safety factor because C++ compilers can tack on
5346       # massive amounts of additional arguments before passing them to the
5347       # linker.  It appears as though 1/2 is a usable value.
5348       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5349     fi
5350     ;;
5351   esac
5352
5353 fi
5354
5355 if test -n $lt_cv_sys_max_cmd_len ; then
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5357 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5358 else
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5360 $as_echo "none" >&6; }
5361 fi
5362 max_cmd_len=$lt_cv_sys_max_cmd_len
5363
5364
5365
5366
5367
5368
5369 : ${CP="cp -f"}
5370 : ${MV="mv -f"}
5371 : ${RM="rm -f"}
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5374 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5375 # Try some XSI features
5376 xsi_shell=no
5377 ( _lt_dummy="a/b/c"
5378   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5379       = c,a/b,b/c, \
5380     && eval 'test $(( 1 + 1 )) -eq 2 \
5381     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5382   && xsi_shell=yes
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5384 $as_echo "$xsi_shell" >&6; }
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5388 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5389 lt_shell_append=no
5390 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5391     >/dev/null 2>&1 \
5392   && lt_shell_append=yes
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5394 $as_echo "$lt_shell_append" >&6; }
5395
5396
5397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5398   lt_unset=unset
5399 else
5400   lt_unset=false
5401 fi
5402
5403
5404
5405
5406
5407 # test EBCDIC or ASCII
5408 case `echo X|tr X '\101'` in
5409  A) # ASCII based system
5410     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5411   lt_SP2NL='tr \040 \012'
5412   lt_NL2SP='tr \015\012 \040\040'
5413   ;;
5414  *) # EBCDIC based system
5415   lt_SP2NL='tr \100 \n'
5416   lt_NL2SP='tr \r\n \100\100'
5417   ;;
5418 esac
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5429 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5430 if ${lt_cv_to_host_file_cmd+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   case $host in
5434   *-*-mingw* )
5435     case $build in
5436       *-*-mingw* ) # actually msys
5437         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5438         ;;
5439       *-*-cygwin* )
5440         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5441         ;;
5442       * ) # otherwise, assume *nix
5443         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5444         ;;
5445     esac
5446     ;;
5447   *-*-cygwin* )
5448     case $build in
5449       *-*-mingw* ) # actually msys
5450         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5451         ;;
5452       *-*-cygwin* )
5453         lt_cv_to_host_file_cmd=func_convert_file_noop
5454         ;;
5455       * ) # otherwise, assume *nix
5456         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5457         ;;
5458     esac
5459     ;;
5460   * ) # unhandled hosts (and "normal" native builds)
5461     lt_cv_to_host_file_cmd=func_convert_file_noop
5462     ;;
5463 esac
5464
5465 fi
5466
5467 to_host_file_cmd=$lt_cv_to_host_file_cmd
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5469 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5476 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5477 if ${lt_cv_to_tool_file_cmd+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   #assume ordinary cross tools, or native build.
5481 lt_cv_to_tool_file_cmd=func_convert_file_noop
5482 case $host in
5483   *-*-mingw* )
5484     case $build in
5485       *-*-mingw* ) # actually msys
5486         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5487         ;;
5488     esac
5489     ;;
5490 esac
5491
5492 fi
5493
5494 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5496 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5497
5498
5499
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5503 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5504 if ${lt_cv_ld_reload_flag+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   lt_cv_ld_reload_flag='-r'
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5510 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5511 reload_flag=$lt_cv_ld_reload_flag
5512 case $reload_flag in
5513 "" | " "*) ;;
5514 *) reload_flag=" $reload_flag" ;;
5515 esac
5516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5517 case $host_os in
5518   cygwin* | mingw* | pw32* | cegcc*)
5519     if test "$GCC" != yes; then
5520       reload_cmds=false
5521     fi
5522     ;;
5523   darwin*)
5524     if test "$GCC" = yes; then
5525       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5526     else
5527       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5528     fi
5529     ;;
5530 esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 if test -n "$ac_tool_prefix"; then
5541   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_OBJDUMP+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$OBJDUMP"; then
5549   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 OBJDUMP=$ac_cv_prog_OBJDUMP
5569 if test -n "$OBJDUMP"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5571 $as_echo "$OBJDUMP" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578 fi
5579 if test -z "$ac_cv_prog_OBJDUMP"; then
5580   ac_ct_OBJDUMP=$OBJDUMP
5581   # Extract the first word of "objdump", so it can be a program name with args.
5582 set dummy objdump; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$ac_ct_OBJDUMP"; then
5589   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5609 if test -n "$ac_ct_OBJDUMP"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5611 $as_echo "$ac_ct_OBJDUMP" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617   if test "x$ac_ct_OBJDUMP" = x; then
5618     OBJDUMP="false"
5619   else
5620     case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626     OBJDUMP=$ac_ct_OBJDUMP
5627   fi
5628 else
5629   OBJDUMP="$ac_cv_prog_OBJDUMP"
5630 fi
5631
5632 test -z "$OBJDUMP" && OBJDUMP=objdump
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5643 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5644 if ${lt_cv_deplibs_check_method+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   lt_cv_file_magic_cmd='$MAGIC_CMD'
5648 lt_cv_file_magic_test_file=
5649 lt_cv_deplibs_check_method='unknown'
5650 # Need to set the preceding variable on all platforms that support
5651 # interlibrary dependencies.
5652 # 'none' -- dependencies not supported.
5653 # `unknown' -- same as none, but documents that we really don't know.
5654 # 'pass_all' -- all dependencies passed with no checks.
5655 # 'test_compile' -- check by making test program.
5656 # 'file_magic [[regex]]' -- check by looking for files in library path
5657 # which responds to the $file_magic_cmd with a given extended regex.
5658 # If you have `file' or equivalent on your system and you're not sure
5659 # whether `pass_all' will *always* work, you probably want this one.
5660
5661 case $host_os in
5662 aix[4-9]*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 beos*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 bsdi[45]*)
5671   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5672   lt_cv_file_magic_cmd='/usr/bin/file -L'
5673   lt_cv_file_magic_test_file=/shlib/libc.so
5674   ;;
5675
5676 cygwin*)
5677   # func_win32_libid is a shell function defined in ltmain.sh
5678   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5679   lt_cv_file_magic_cmd='func_win32_libid'
5680   ;;
5681
5682 mingw* | pw32*)
5683   # Base MSYS/MinGW do not provide the 'file' command needed by
5684   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5685   # unless we find 'file', for example because we are cross-compiling.
5686   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5687   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5688     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5689     lt_cv_file_magic_cmd='func_win32_libid'
5690   else
5691     # Keep this pattern in sync with the one in func_win32_libid.
5692     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5693     lt_cv_file_magic_cmd='$OBJDUMP -f'
5694   fi
5695   ;;
5696
5697 cegcc*)
5698   # use the weaker test based on 'objdump'. See mingw*.
5699   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5700   lt_cv_file_magic_cmd='$OBJDUMP -f'
5701   ;;
5702
5703 darwin* | rhapsody*)
5704   lt_cv_deplibs_check_method=pass_all
5705   ;;
5706
5707 freebsd* | dragonfly*)
5708   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5709     case $host_cpu in
5710     i*86 )
5711       # Not sure whether the presence of OpenBSD here was a mistake.
5712       # Let's accept both of them until this is cleared up.
5713       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5714       lt_cv_file_magic_cmd=/usr/bin/file
5715       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5716       ;;
5717     esac
5718   else
5719     lt_cv_deplibs_check_method=pass_all
5720   fi
5721   ;;
5722
5723 gnu*)
5724   lt_cv_deplibs_check_method=pass_all
5725   ;;
5726
5727 haiku*)
5728   lt_cv_deplibs_check_method=pass_all
5729   ;;
5730
5731 hpux10.20* | hpux11*)
5732   lt_cv_file_magic_cmd=/usr/bin/file
5733   case $host_cpu in
5734   ia64*)
5735     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5736     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5737     ;;
5738   hppa*64*)
5739     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]'
5740     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5741     ;;
5742   *)
5743     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5744     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5745     ;;
5746   esac
5747   ;;
5748
5749 interix[3-9]*)
5750   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5751   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5752   ;;
5753
5754 irix5* | irix6* | nonstopux*)
5755   case $LD in
5756   *-32|*"-32 ") libmagic=32-bit;;
5757   *-n32|*"-n32 ") libmagic=N32;;
5758   *-64|*"-64 ") libmagic=64-bit;;
5759   *) libmagic=never-match;;
5760   esac
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 # This must be glibc/ELF.
5765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 netbsd* | netbsdelf*-gnu)
5770   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5772   else
5773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5774   fi
5775   ;;
5776
5777 newos6*)
5778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5779   lt_cv_file_magic_cmd=/usr/bin/file
5780   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5781   ;;
5782
5783 *nto* | *qnx*)
5784   lt_cv_deplibs_check_method=pass_all
5785   ;;
5786
5787 openbsd*)
5788   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5789     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5790   else
5791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792   fi
5793   ;;
5794
5795 osf3* | osf4* | osf5*)
5796   lt_cv_deplibs_check_method=pass_all
5797   ;;
5798
5799 rdos*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 solaris*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 sysv4 | sysv4.3*)
5812   case $host_vendor in
5813   motorola)
5814     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]'
5815     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5816     ;;
5817   ncr)
5818     lt_cv_deplibs_check_method=pass_all
5819     ;;
5820   sequent)
5821     lt_cv_file_magic_cmd='/bin/file'
5822     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5823     ;;
5824   sni)
5825     lt_cv_file_magic_cmd='/bin/file'
5826     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5827     lt_cv_file_magic_test_file=/lib/libc.so
5828     ;;
5829   siemens)
5830     lt_cv_deplibs_check_method=pass_all
5831     ;;
5832   pc)
5833     lt_cv_deplibs_check_method=pass_all
5834     ;;
5835   esac
5836   ;;
5837
5838 tpf*)
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841 esac
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5845 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5846
5847 file_magic_glob=
5848 want_nocaseglob=no
5849 if test "$build" = "$host"; then
5850   case $host_os in
5851   mingw* | pw32*)
5852     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5853       want_nocaseglob=yes
5854     else
5855       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5856     fi
5857     ;;
5858   esac
5859 fi
5860
5861 file_magic_cmd=$lt_cv_file_magic_cmd
5862 deplibs_check_method=$lt_cv_deplibs_check_method
5863 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 if test -n "$ac_tool_prefix"; then
5887   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_DLLTOOL+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$DLLTOOL"; then
5895   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902     for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909   done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 DLLTOOL=$ac_cv_prog_DLLTOOL
5915 if test -n "$DLLTOOL"; then
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5917 $as_echo "$DLLTOOL" >&6; }
5918 else
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924 fi
5925 if test -z "$ac_cv_prog_DLLTOOL"; then
5926   ac_ct_DLLTOOL=$DLLTOOL
5927   # Extract the first word of "dlltool", so it can be a program name with args.
5928 set dummy dlltool; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$ac_ct_DLLTOOL"; then
5935   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5955 if test -n "$ac_ct_DLLTOOL"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5957 $as_echo "$ac_ct_DLLTOOL" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963   if test "x$ac_ct_DLLTOOL" = x; then
5964     DLLTOOL="false"
5965   else
5966     case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     DLLTOOL=$ac_ct_DLLTOOL
5973   fi
5974 else
5975   DLLTOOL="$ac_cv_prog_DLLTOOL"
5976 fi
5977
5978 test -z "$DLLTOOL" && DLLTOOL=dlltool
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5990 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5991 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   lt_cv_sharedlib_from_linklib_cmd='unknown'
5995
5996 case $host_os in
5997 cygwin* | mingw* | pw32* | cegcc*)
5998   # two different shell functions defined in ltmain.sh
5999   # decide which to use based on capabilities of $DLLTOOL
6000   case `$DLLTOOL --help 2>&1` in
6001   *--identify-strict*)
6002     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6003     ;;
6004   *)
6005     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6006     ;;
6007   esac
6008   ;;
6009 *)
6010   # fallback: assume linklib IS sharedlib
6011   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6012   ;;
6013 esac
6014
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6017 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6018 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6019 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6020
6021
6022
6023
6024
6025
6026
6027
6028 if test -n "$ac_tool_prefix"; then
6029   for ac_prog in ar
6030   do
6031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_AR+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$AR"; then
6039   ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068     test -n "$AR" && break
6069   done
6070 fi
6071 if test -z "$AR"; then
6072   ac_ct_AR=$AR
6073   for ac_prog in ar
6074 do
6075   # Extract the first word of "$ac_prog", so it can be a program name with args.
6076 set dummy $ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$ac_ct_AR"; then
6083   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092     ac_cv_prog_ac_ct_AR="$ac_prog"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112   test -n "$ac_ct_AR" && break
6113 done
6114
6115   if test "x$ac_ct_AR" = x; then
6116     AR="false"
6117   else
6118     case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124     AR=$ac_ct_AR
6125   fi
6126 fi
6127
6128 : ${AR=ar}
6129 : ${AR_FLAGS=cru}
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6142 $as_echo_n "checking for archiver @FILE support... " >&6; }
6143 if ${lt_cv_ar_at_file+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   lt_cv_ar_at_file=no
6147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h.  */
6149
6150 int
6151 main ()
6152 {
6153
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159   echo conftest.$ac_objext > conftest.lst
6160       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6161       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6162   (eval $lt_ar_try) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; }
6166       if test "$ac_status" -eq 0; then
6167         # Ensure the archiver fails upon bogus file names.
6168         rm -f conftest.$ac_objext libconftest.a
6169         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6170   (eval $lt_ar_try) 2>&5
6171   ac_status=$?
6172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173   test $ac_status = 0; }
6174         if test "$ac_status" -ne 0; then
6175           lt_cv_ar_at_file=@
6176         fi
6177       fi
6178       rm -f conftest.* libconftest.a
6179
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6185 $as_echo "$lt_cv_ar_at_file" >&6; }
6186
6187 if test "x$lt_cv_ar_at_file" = xno; then
6188   archiver_list_spec=
6189 else
6190   archiver_list_spec=$lt_cv_ar_at_file
6191 fi
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}strip; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_STRIP+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   if test -n "$STRIP"; then
6208   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215     for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222   done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 STRIP=$ac_cv_prog_STRIP
6228 if test -n "$STRIP"; then
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6230 $as_echo "$STRIP" >&6; }
6231 else
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_STRIP"; then
6239   ac_ct_STRIP=$STRIP
6240   # Extract the first word of "strip", so it can be a program name with args.
6241 set dummy strip; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if test -n "$ac_ct_STRIP"; then
6248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255     for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_prog_ac_ct_STRIP="strip"
6258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262   done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6268 if test -n "$ac_ct_STRIP"; then
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6270 $as_echo "$ac_ct_STRIP" >&6; }
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276   if test "x$ac_ct_STRIP" = x; then
6277     STRIP=":"
6278   else
6279     case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285     STRIP=$ac_ct_STRIP
6286   fi
6287 else
6288   STRIP="$ac_cv_prog_STRIP"
6289 fi
6290
6291 test -z "$STRIP" && STRIP=:
6292
6293
6294
6295
6296
6297
6298 if test -n "$ac_tool_prefix"; then
6299   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_RANLIB+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$RANLIB"; then
6307   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321   done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 RANLIB=$ac_cv_prog_RANLIB
6327 if test -n "$RANLIB"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6329 $as_echo "$RANLIB" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_RANLIB"; then
6338   ac_ct_RANLIB=$RANLIB
6339   # Extract the first word of "ranlib", so it can be a program name with args.
6340 set dummy ranlib; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   if test -n "$ac_ct_RANLIB"; then
6347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354     for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_prog_ac_ct_RANLIB="ranlib"
6357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361   done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6367 if test -n "$ac_ct_RANLIB"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6369 $as_echo "$ac_ct_RANLIB" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375   if test "x$ac_ct_RANLIB" = x; then
6376     RANLIB=":"
6377   else
6378     case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384     RANLIB=$ac_ct_RANLIB
6385   fi
6386 else
6387   RANLIB="$ac_cv_prog_RANLIB"
6388 fi
6389
6390 test -z "$RANLIB" && RANLIB=:
6391
6392
6393
6394
6395
6396
6397 # Determine commands to create old-style static archives.
6398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6399 old_postinstall_cmds='chmod 644 $oldlib'
6400 old_postuninstall_cmds=
6401
6402 if test -n "$RANLIB"; then
6403   case $host_os in
6404   openbsd*)
6405     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6406     ;;
6407   *)
6408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6409     ;;
6410   esac
6411   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6412 fi
6413
6414 case $host_os in
6415   darwin*)
6416     lock_old_archive_extraction=yes ;;
6417   *)
6418     lock_old_archive_extraction=no ;;
6419 esac
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 # If no C compiler was specified, use CC.
6460 LTCC=${LTCC-"$CC"}
6461
6462 # If no C compiler flags were specified, use CFLAGS.
6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6464
6465 # Allow CC to be a program name with arguments.
6466 compiler=$CC
6467
6468
6469 # Check for command to grab the raw symbol name followed by C symbol from nm.
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6471 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6472 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475
6476 # These are sane defaults that work on at least a few old systems.
6477 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6478
6479 # Character class describing NM global symbol codes.
6480 symcode='[BCDEGRST]'
6481
6482 # Regexp to match symbols that can be accessed directly from C.
6483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6484
6485 # Define system-specific variables.
6486 case $host_os in
6487 aix*)
6488   symcode='[BCDT]'
6489   ;;
6490 cygwin* | mingw* | pw32* | cegcc*)
6491   symcode='[ABCDGISTW]'
6492   ;;
6493 hpux*)
6494   if test "$host_cpu" = ia64; then
6495     symcode='[ABCDEGRST]'
6496   fi
6497   ;;
6498 irix* | nonstopux*)
6499   symcode='[BCDEGRST]'
6500   ;;
6501 osf*)
6502   symcode='[BCDEGQRST]'
6503   ;;
6504 solaris*)
6505   symcode='[BDRT]'
6506   ;;
6507 sco3.2v5*)
6508   symcode='[DT]'
6509   ;;
6510 sysv4.2uw2*)
6511   symcode='[DT]'
6512   ;;
6513 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6514   symcode='[ABDT]'
6515   ;;
6516 sysv4)
6517   symcode='[DFNSTU]'
6518   ;;
6519 esac
6520
6521 # If we're using GNU nm, then use its standard symbol codes.
6522 case `$NM -V 2>&1` in
6523 *GNU* | *'with BFD'*)
6524   symcode='[ABCDGIRSTW]' ;;
6525 esac
6526
6527 # Transform an extracted symbol line into a proper C declaration.
6528 # Some systems (esp. on ia64) link data and code symbols differently,
6529 # so use this general approach.
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6531
6532 # Transform an extracted symbol line into symbol name and symbol address
6533 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6534 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'"
6535
6536 # Handle CRLF in mingw tool chain
6537 opt_cr=
6538 case $build_os in
6539 mingw*)
6540   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6541   ;;
6542 esac
6543
6544 # Try without a prefix underscore, then with it.
6545 for ac_symprfx in "" "_"; do
6546
6547   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6548   symxfrm="\\1 $ac_symprfx\\2 \\2"
6549
6550   # Write the raw and C identifiers.
6551   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6552     # Fake it for dumpbin and say T for any non-static function
6553     # and D for any global variable.
6554     # Also find C++ and __fastcall symbols from MSVC++,
6555     # which start with @ or ?.
6556     lt_cv_sys_global_symbol_pipe="$AWK '"\
6557 "     {last_section=section; section=\$ 3};"\
6558 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6559 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6560 "     \$ 0!~/External *\|/{next};"\
6561 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6562 "     {if(hide[section]) next};"\
6563 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6564 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6565 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6566 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6567 "     ' prfx=^$ac_symprfx"
6568   else
6569     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6570   fi
6571   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6572
6573   # Check to see that the pipe works correctly.
6574   pipe_works=no
6575
6576   rm -f conftest*
6577   cat > conftest.$ac_ext <<_LT_EOF
6578 #ifdef __cplusplus
6579 extern "C" {
6580 #endif
6581 char nm_test_var;
6582 void nm_test_func(void);
6583 void nm_test_func(void){}
6584 #ifdef __cplusplus
6585 }
6586 #endif
6587 int main(){nm_test_var='a';nm_test_func();return(0);}
6588 _LT_EOF
6589
6590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6591   (eval $ac_compile) 2>&5
6592   ac_status=$?
6593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594   test $ac_status = 0; }; then
6595     # Now try to grab the symbols.
6596     nlist=conftest.nm
6597     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6598   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6599   ac_status=$?
6600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601   test $ac_status = 0; } && test -s "$nlist"; then
6602       # Try sorting and uniquifying the output.
6603       if sort "$nlist" | uniq > "$nlist"T; then
6604         mv -f "$nlist"T "$nlist"
6605       else
6606         rm -f "$nlist"T
6607       fi
6608
6609       # Make sure that we snagged all the symbols we need.
6610       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6611         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6612           cat <<_LT_EOF > conftest.$ac_ext
6613 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6614 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6615 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6616    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6617 # define LT_DLSYM_CONST
6618 #elif defined(__osf__)
6619 /* This system does not cope well with relocations in const data.  */
6620 # define LT_DLSYM_CONST
6621 #else
6622 # define LT_DLSYM_CONST const
6623 #endif
6624
6625 #ifdef __cplusplus
6626 extern "C" {
6627 #endif
6628
6629 _LT_EOF
6630           # Now generate the symbol file.
6631           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6632
6633           cat <<_LT_EOF >> conftest.$ac_ext
6634
6635 /* The mapping between symbol names and symbols.  */
6636 LT_DLSYM_CONST struct {
6637   const char *name;
6638   void       *address;
6639 }
6640 lt__PROGRAM__LTX_preloaded_symbols[] =
6641 {
6642   { "@PROGRAM@", (void *) 0 },
6643 _LT_EOF
6644           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6645           cat <<\_LT_EOF >> conftest.$ac_ext
6646   {0, (void *) 0}
6647 };
6648
6649 /* This works around a problem in FreeBSD linker */
6650 #ifdef FREEBSD_WORKAROUND
6651 static const void *lt_preloaded_setup() {
6652   return lt__PROGRAM__LTX_preloaded_symbols;
6653 }
6654 #endif
6655
6656 #ifdef __cplusplus
6657 }
6658 #endif
6659 _LT_EOF
6660           # Now try linking the two files.
6661           mv conftest.$ac_objext conftstm.$ac_objext
6662           lt_globsym_save_LIBS=$LIBS
6663           lt_globsym_save_CFLAGS=$CFLAGS
6664           LIBS="conftstm.$ac_objext"
6665           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6666           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6667   (eval $ac_link) 2>&5
6668   ac_status=$?
6669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6671             pipe_works=yes
6672           fi
6673           LIBS=$lt_globsym_save_LIBS
6674           CFLAGS=$lt_globsym_save_CFLAGS
6675         else
6676           echo "cannot find nm_test_func in $nlist" >&5
6677         fi
6678       else
6679         echo "cannot find nm_test_var in $nlist" >&5
6680       fi
6681     else
6682       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6683     fi
6684   else
6685     echo "$progname: failed program was:" >&5
6686     cat conftest.$ac_ext >&5
6687   fi
6688   rm -rf conftest* conftst*
6689
6690   # Do not use the global_symbol_pipe unless it works.
6691   if test "$pipe_works" = yes; then
6692     break
6693   else
6694     lt_cv_sys_global_symbol_pipe=
6695   fi
6696 done
6697
6698 fi
6699
6700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6701   lt_cv_sys_global_symbol_to_cdecl=
6702 fi
6703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6705 $as_echo "failed" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6708 $as_echo "ok" >&6; }
6709 fi
6710
6711 # Response file support.
6712 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6713   nm_file_list_spec='@'
6714 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6715   nm_file_list_spec='@'
6716 fi
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6745 $as_echo_n "checking for sysroot... " >&6; }
6746
6747 # Check whether --with-sysroot was given.
6748 if test "${with_sysroot+set}" = set; then :
6749   withval=$with_sysroot;
6750 else
6751   with_sysroot=no
6752 fi
6753
6754
6755 lt_sysroot=
6756 case ${with_sysroot} in #(
6757  yes)
6758    if test "$GCC" = yes; then
6759      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6760    fi
6761    ;; #(
6762  /*)
6763    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6764    ;; #(
6765  no|'')
6766    ;; #(
6767  *)
6768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6769 $as_echo "${with_sysroot}" >&6; }
6770    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6771    ;;
6772 esac
6773
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6775 $as_echo "${lt_sysroot:-no}" >&6; }
6776
6777
6778
6779
6780
6781 # Check whether --enable-libtool-lock was given.
6782 if test "${enable_libtool_lock+set}" = set; then :
6783   enableval=$enable_libtool_lock;
6784 fi
6785
6786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6787
6788 # Some flags need to be propagated to the compiler or linker for good
6789 # libtool support.
6790 case $host in
6791 ia64-*-hpux*)
6792   # Find out which ABI we are using.
6793   echo 'int i;' > conftest.$ac_ext
6794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795   (eval $ac_compile) 2>&5
6796   ac_status=$?
6797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798   test $ac_status = 0; }; then
6799     case `/usr/bin/file conftest.$ac_objext` in
6800       *ELF-32*)
6801         HPUX_IA64_MODE="32"
6802         ;;
6803       *ELF-64*)
6804         HPUX_IA64_MODE="64"
6805         ;;
6806     esac
6807   fi
6808   rm -rf conftest*
6809   ;;
6810 *-*-irix6*)
6811   # Find out which ABI we are using.
6812   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814   (eval $ac_compile) 2>&5
6815   ac_status=$?
6816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817   test $ac_status = 0; }; then
6818     if test "$lt_cv_prog_gnu_ld" = yes; then
6819       case `/usr/bin/file conftest.$ac_objext` in
6820         *32-bit*)
6821           LD="${LD-ld} -melf32bsmip"
6822           ;;
6823         *N32*)
6824           LD="${LD-ld} -melf32bmipn32"
6825           ;;
6826         *64-bit*)
6827           LD="${LD-ld} -melf64bmip"
6828         ;;
6829       esac
6830     else
6831       case `/usr/bin/file conftest.$ac_objext` in
6832         *32-bit*)
6833           LD="${LD-ld} -32"
6834           ;;
6835         *N32*)
6836           LD="${LD-ld} -n32"
6837           ;;
6838         *64-bit*)
6839           LD="${LD-ld} -64"
6840           ;;
6841       esac
6842     fi
6843   fi
6844   rm -rf conftest*
6845   ;;
6846
6847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6849   # Find out which ABI we are using.
6850   echo 'int i;' > conftest.$ac_ext
6851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; }; then
6856     case `/usr/bin/file conftest.o` in
6857       *32-bit*)
6858         case $host in
6859           x86_64-*kfreebsd*-gnu)
6860             LD="${LD-ld} -m elf_i386_fbsd"
6861             ;;
6862           x86_64-*linux*)
6863             LD="${LD-ld} -m elf_i386"
6864             ;;
6865           ppc64-*linux*|powerpc64-*linux*)
6866             LD="${LD-ld} -m elf32ppclinux"
6867             ;;
6868           s390x-*linux*)
6869             LD="${LD-ld} -m elf_s390"
6870             ;;
6871           sparc64-*linux*)
6872             LD="${LD-ld} -m elf32_sparc"
6873             ;;
6874         esac
6875         ;;
6876       *64-bit*)
6877         case $host in
6878           x86_64-*kfreebsd*-gnu)
6879             LD="${LD-ld} -m elf_x86_64_fbsd"
6880             ;;
6881           x86_64-*linux*)
6882             LD="${LD-ld} -m elf_x86_64"
6883             ;;
6884           ppc*-*linux*|powerpc*-*linux*)
6885             LD="${LD-ld} -m elf64ppc"
6886             ;;
6887           s390*-*linux*|s390*-*tpf*)
6888             LD="${LD-ld} -m elf64_s390"
6889             ;;
6890           sparc*-*linux*)
6891             LD="${LD-ld} -m elf64_sparc"
6892             ;;
6893         esac
6894         ;;
6895     esac
6896   fi
6897   rm -rf conftest*
6898   ;;
6899
6900 *-*-sco3.2v5*)
6901   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6902   SAVE_CFLAGS="$CFLAGS"
6903   CFLAGS="$CFLAGS -belf"
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6905 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6906 if ${lt_cv_cc_needs_belf+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h.  */
6917
6918 int
6919 main ()
6920 {
6921
6922   ;
6923   return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927   lt_cv_cc_needs_belf=yes
6928 else
6929   lt_cv_cc_needs_belf=no
6930 fi
6931 rm -f core conftest.err conftest.$ac_objext \
6932     conftest$ac_exeext conftest.$ac_ext
6933      ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6942   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6943     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6944     CFLAGS="$SAVE_CFLAGS"
6945   fi
6946   ;;
6947 *-*solaris*)
6948   # Find out which ABI we are using.
6949   echo 'int i;' > conftest.$ac_ext
6950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951   (eval $ac_compile) 2>&5
6952   ac_status=$?
6953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954   test $ac_status = 0; }; then
6955     case `/usr/bin/file conftest.o` in
6956     *64-bit*)
6957       case $lt_cv_prog_gnu_ld in
6958       yes*)
6959         case $host in
6960         i?86-*-solaris*)
6961           LD="${LD-ld} -m elf_x86_64"
6962           ;;
6963         sparc*-*-solaris*)
6964           LD="${LD-ld} -m elf64_sparc"
6965           ;;
6966         esac
6967         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6968         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6969           LD="${LD-ld}_sol2"
6970         fi
6971         ;;
6972       *)
6973         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6974           LD="${LD-ld} -64"
6975         fi
6976         ;;
6977       esac
6978       ;;
6979     esac
6980   fi
6981   rm -rf conftest*
6982   ;;
6983 esac
6984
6985 need_locks="$enable_libtool_lock"
6986
6987 if test -n "$ac_tool_prefix"; then
6988   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}mt; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   if test -n "$MANIFEST_TOOL"; then
6996   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7016 if test -n "$MANIFEST_TOOL"; then
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7018 $as_echo "$MANIFEST_TOOL" >&6; }
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7027   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7028   # Extract the first word of "mt", so it can be a program name with args.
7029 set dummy mt; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7033   $as_echo_n "(cached) " >&6
7034 else
7035   if test -n "$ac_ct_MANIFEST_TOOL"; then
7036   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043     for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050   done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7056 if test -n "$ac_ct_MANIFEST_TOOL"; then
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7058 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7059 else
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7065     MANIFEST_TOOL=":"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7074   fi
7075 else
7076   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7077 fi
7078
7079 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7081 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7082 if ${lt_cv_path_mainfest_tool+:} false; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   lt_cv_path_mainfest_tool=no
7086   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7087   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7088   cat conftest.err >&5
7089   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7090     lt_cv_path_mainfest_tool=yes
7091   fi
7092   rm -f conftest*
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7095 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7096 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7097   MANIFEST_TOOL=:
7098 fi
7099
7100
7101
7102
7103
7104
7105   case $host_os in
7106     rhapsody* | darwin*)
7107     if test -n "$ac_tool_prefix"; then
7108   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   if test -n "$DSYMUTIL"; then
7116   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123     for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130   done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7136 if test -n "$DSYMUTIL"; then
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7138 $as_echo "$DSYMUTIL" >&6; }
7139 else
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144
7145 fi
7146 if test -z "$ac_cv_prog_DSYMUTIL"; then
7147   ac_ct_DSYMUTIL=$DSYMUTIL
7148   # Extract the first word of "dsymutil", so it can be a program name with args.
7149 set dummy dsymutil; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$ac_ct_DSYMUTIL"; then
7156   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7176 if test -n "$ac_ct_DSYMUTIL"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7178 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184   if test "x$ac_ct_DSYMUTIL" = x; then
7185     DSYMUTIL=":"
7186   else
7187     case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193     DSYMUTIL=$ac_ct_DSYMUTIL
7194   fi
7195 else
7196   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7197 fi
7198
7199     if test -n "$ac_tool_prefix"; then
7200   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_NMEDIT+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$NMEDIT"; then
7208   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 NMEDIT=$ac_cv_prog_NMEDIT
7228 if test -n "$NMEDIT"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7230 $as_echo "$NMEDIT" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_NMEDIT"; then
7239   ac_ct_NMEDIT=$NMEDIT
7240   # Extract the first word of "nmedit", so it can be a program name with args.
7241 set dummy nmedit; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$ac_ct_NMEDIT"; then
7248   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7268 if test -n "$ac_ct_NMEDIT"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7270 $as_echo "$ac_ct_NMEDIT" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276   if test "x$ac_ct_NMEDIT" = x; then
7277     NMEDIT=":"
7278   else
7279     case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     NMEDIT=$ac_ct_NMEDIT
7286   fi
7287 else
7288   NMEDIT="$ac_cv_prog_NMEDIT"
7289 fi
7290
7291     if test -n "$ac_tool_prefix"; then
7292   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_LIPO+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   if test -n "$LIPO"; then
7300   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307     for ac_exec_ext in '' $ac_executable_extensions; do
7308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314   done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 LIPO=$ac_cv_prog_LIPO
7320 if test -n "$LIPO"; then
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7322 $as_echo "$LIPO" >&6; }
7323 else
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_LIPO"; then
7331   ac_ct_LIPO=$LIPO
7332   # Extract the first word of "lipo", so it can be a program name with args.
7333 set dummy lipo; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   if test -n "$ac_ct_LIPO"; then
7340   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_ac_ct_LIPO="lipo"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7360 if test -n "$ac_ct_LIPO"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7362 $as_echo "$ac_ct_LIPO" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368   if test "x$ac_ct_LIPO" = x; then
7369     LIPO=":"
7370   else
7371     case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377     LIPO=$ac_ct_LIPO
7378   fi
7379 else
7380   LIPO="$ac_cv_prog_LIPO"
7381 fi
7382
7383     if test -n "$ac_tool_prefix"; then
7384   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}otool; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_OTOOL+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   if test -n "$OTOOL"; then
7392   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 OTOOL=$ac_cv_prog_OTOOL
7412 if test -n "$OTOOL"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7414 $as_echo "$OTOOL" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421 fi
7422 if test -z "$ac_cv_prog_OTOOL"; then
7423   ac_ct_OTOOL=$OTOOL
7424   # Extract the first word of "otool", so it can be a program name with args.
7425 set dummy otool; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   if test -n "$ac_ct_OTOOL"; then
7432   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439     for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_prog_ac_ct_OTOOL="otool"
7442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446   done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7452 if test -n "$ac_ct_OTOOL"; then
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7454 $as_echo "$ac_ct_OTOOL" >&6; }
7455 else
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460   if test "x$ac_ct_OTOOL" = x; then
7461     OTOOL=":"
7462   else
7463     case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469     OTOOL=$ac_ct_OTOOL
7470   fi
7471 else
7472   OTOOL="$ac_cv_prog_OTOOL"
7473 fi
7474
7475     if test -n "$ac_tool_prefix"; then
7476   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_OTOOL64+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$OTOOL64"; then
7484   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 OTOOL64=$ac_cv_prog_OTOOL64
7504 if test -n "$OTOOL64"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7506 $as_echo "$OTOOL64" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_OTOOL64"; then
7515   ac_ct_OTOOL64=$OTOOL64
7516   # Extract the first word of "otool64", so it can be a program name with args.
7517 set dummy otool64; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$ac_ct_OTOOL64"; then
7524   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533     ac_cv_prog_ac_ct_OTOOL64="otool64"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7544 if test -n "$ac_ct_OTOOL64"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7546 $as_echo "$ac_ct_OTOOL64" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_ct_OTOOL64" = x; then
7553     OTOOL64=":"
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     OTOOL64=$ac_ct_OTOOL64
7562   fi
7563 else
7564   OTOOL64="$ac_cv_prog_OTOOL64"
7565 fi
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7594 $as_echo_n "checking for -single_module linker flag... " >&6; }
7595 if ${lt_cv_apple_cc_single_mod+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   lt_cv_apple_cc_single_mod=no
7599       if test -z "${LT_MULTI_MODULE}"; then
7600         # By default we will add the -single_module flag. You can override
7601         # by either setting the environment variable LT_MULTI_MODULE
7602         # non-empty at configure time, or by adding -multi_module to the
7603         # link flags.
7604         rm -rf libconftest.dylib*
7605         echo "int foo(void){return 1;}" > conftest.c
7606         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607 -dynamiclib -Wl,-single_module conftest.c" >&5
7608         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7610         _lt_result=$?
7611         # If there is a non-empty error log, and "single_module"
7612         # appears in it, assume the flag caused a linker warning
7613         if test -s conftest.err && $GREP single_module conftest.err; then
7614           cat conftest.err >&5
7615         # Otherwise, if the output was created with a 0 exit code from
7616         # the compiler, it worked.
7617         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7618           lt_cv_apple_cc_single_mod=yes
7619         else
7620           cat conftest.err >&5
7621         fi
7622         rm -rf libconftest.dylib*
7623         rm -f conftest.*
7624       fi
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7627 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7628
7629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7630 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7631 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   lt_cv_ld_exported_symbols_list=no
7635       save_LDFLAGS=$LDFLAGS
7636       echo "_main" > conftest.sym
7637       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h.  */
7640
7641 int
7642 main ()
7643 {
7644
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"; then :
7650   lt_cv_ld_exported_symbols_list=yes
7651 else
7652   lt_cv_ld_exported_symbols_list=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext \
7655     conftest$ac_exeext conftest.$ac_ext
7656         LDFLAGS="$save_LDFLAGS"
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7660 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7661
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7663 $as_echo_n "checking for -force_load linker flag... " >&6; }
7664 if ${lt_cv_ld_force_load+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   lt_cv_ld_force_load=no
7668       cat > conftest.c << _LT_EOF
7669 int forced_loaded() { return 2;}
7670 _LT_EOF
7671       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7672       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7673       echo "$AR cru libconftest.a conftest.o" >&5
7674       $AR cru libconftest.a conftest.o 2>&5
7675       echo "$RANLIB libconftest.a" >&5
7676       $RANLIB libconftest.a 2>&5
7677       cat > conftest.c << _LT_EOF
7678 int main() { return 0;}
7679 _LT_EOF
7680       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7681       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7682       _lt_result=$?
7683       if test -s conftest.err && $GREP force_load conftest.err; then
7684         cat conftest.err >&5
7685       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7686         lt_cv_ld_force_load=yes
7687       else
7688         cat conftest.err >&5
7689       fi
7690         rm -f conftest.err libconftest.a conftest conftest.c
7691         rm -rf conftest.dSYM
7692
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7695 $as_echo "$lt_cv_ld_force_load" >&6; }
7696     case $host_os in
7697     rhapsody* | darwin1.[012])
7698       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7699     darwin1.*)
7700       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7701     darwin*) # darwin 5.x on
7702       # if running on 10.5 or later, the deployment target defaults
7703       # to the OS version, if on x86, and 10.4, the deployment
7704       # target defaults to 10.4. Don't you love it?
7705       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7706         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7707           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7708         10.[012]*)
7709           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7710         10.*)
7711           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7712       esac
7713     ;;
7714   esac
7715     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7716       _lt_dar_single_mod='$single_module'
7717     fi
7718     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7719       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7720     else
7721       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7722     fi
7723     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7724       _lt_dsymutil='~$DSYMUTIL $lib || :'
7725     else
7726       _lt_dsymutil=
7727     fi
7728     ;;
7729   esac
7730
7731 ac_ext=c
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7738 # On Suns, sometimes $CPP names a directory.
7739 if test -n "$CPP" && test -d "$CPP"; then
7740   CPP=
7741 fi
7742 if test -z "$CPP"; then
7743   if ${ac_cv_prog_CPP+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746       # Double quotes because CPP needs to be expanded
7747     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7748     do
7749       ac_preproc_ok=false
7750 for ac_c_preproc_warn_flag in '' yes
7751 do
7752   # Use a header file that comes with gcc, so configuring glibc
7753   # with a fresh cross-compiler works.
7754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755   # <limits.h> exists even on freestanding compilers.
7756   # On the NeXT, cc -E runs the code through the compiler's parser,
7757   # not just through cpp. "Syntax error" is here to catch this case.
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 #ifdef __STDC__
7761 # include <limits.h>
7762 #else
7763 # include <assert.h>
7764 #endif
7765                      Syntax error
7766 _ACEOF
7767 if ac_fn_c_try_cpp "$LINENO"; then :
7768
7769 else
7770   # Broken: fails on valid input.
7771 continue
7772 fi
7773 rm -f conftest.err conftest.i conftest.$ac_ext
7774
7775   # OK, works on sane cases.  Now check whether nonexistent headers
7776   # can be detected and how.
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <ac_nonexistent.h>
7780 _ACEOF
7781 if ac_fn_c_try_cpp "$LINENO"; then :
7782   # Broken: success on invalid input.
7783 continue
7784 else
7785   # Passes both tests.
7786 ac_preproc_ok=:
7787 break
7788 fi
7789 rm -f conftest.err conftest.i conftest.$ac_ext
7790
7791 done
7792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7793 rm -f conftest.i conftest.err conftest.$ac_ext
7794 if $ac_preproc_ok; then :
7795   break
7796 fi
7797
7798     done
7799     ac_cv_prog_CPP=$CPP
7800
7801 fi
7802   CPP=$ac_cv_prog_CPP
7803 else
7804   ac_cv_prog_CPP=$CPP
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7807 $as_echo "$CPP" >&6; }
7808 ac_preproc_ok=false
7809 for ac_c_preproc_warn_flag in '' yes
7810 do
7811   # Use a header file that comes with gcc, so configuring glibc
7812   # with a fresh cross-compiler works.
7813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814   # <limits.h> exists even on freestanding compilers.
7815   # On the NeXT, cc -E runs the code through the compiler's parser,
7816   # not just through cpp. "Syntax error" is here to catch this case.
7817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819 #ifdef __STDC__
7820 # include <limits.h>
7821 #else
7822 # include <assert.h>
7823 #endif
7824                      Syntax error
7825 _ACEOF
7826 if ac_fn_c_try_cpp "$LINENO"; then :
7827
7828 else
7829   # Broken: fails on valid input.
7830 continue
7831 fi
7832 rm -f conftest.err conftest.i conftest.$ac_ext
7833
7834   # OK, works on sane cases.  Now check whether nonexistent headers
7835   # can be detected and how.
7836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h.  */
7838 #include <ac_nonexistent.h>
7839 _ACEOF
7840 if ac_fn_c_try_cpp "$LINENO"; then :
7841   # Broken: success on invalid input.
7842 continue
7843 else
7844   # Passes both tests.
7845 ac_preproc_ok=:
7846 break
7847 fi
7848 rm -f conftest.err conftest.i conftest.$ac_ext
7849
7850 done
7851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7852 rm -f conftest.i conftest.err conftest.$ac_ext
7853 if $ac_preproc_ok; then :
7854
7855 else
7856   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7858 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7859 See \`config.log' for more details" "$LINENO" 5; }
7860 fi
7861
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7870 $as_echo_n "checking for ANSI C header files... " >&6; }
7871 if ${ac_cv_header_stdc+:} false; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h.  */
7876 #include <stdlib.h>
7877 #include <stdarg.h>
7878 #include <string.h>
7879 #include <float.h>
7880
7881 int
7882 main ()
7883 {
7884
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890   ac_cv_header_stdc=yes
7891 else
7892   ac_cv_header_stdc=no
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895
7896 if test $ac_cv_header_stdc = yes; then
7897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900 #include <string.h>
7901
7902 _ACEOF
7903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7904   $EGREP "memchr" >/dev/null 2>&1; then :
7905
7906 else
7907   ac_cv_header_stdc=no
7908 fi
7909 rm -f conftest*
7910
7911 fi
7912
7913 if test $ac_cv_header_stdc = yes; then
7914   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917 #include <stdlib.h>
7918
7919 _ACEOF
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921   $EGREP "free" >/dev/null 2>&1; then :
7922
7923 else
7924   ac_cv_header_stdc=no
7925 fi
7926 rm -f conftest*
7927
7928 fi
7929
7930 if test $ac_cv_header_stdc = yes; then
7931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932   if test "$cross_compiling" = yes; then :
7933   :
7934 else
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937 #include <ctype.h>
7938 #include <stdlib.h>
7939 #if ((' ' & 0x0FF) == 0x020)
7940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7942 #else
7943 # define ISLOWER(c) \
7944                    (('a' <= (c) && (c) <= 'i') \
7945                      || ('j' <= (c) && (c) <= 'r') \
7946                      || ('s' <= (c) && (c) <= 'z'))
7947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7948 #endif
7949
7950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7951 int
7952 main ()
7953 {
7954   int i;
7955   for (i = 0; i < 256; i++)
7956     if (XOR (islower (i), ISLOWER (i))
7957         || toupper (i) != TOUPPER (i))
7958       return 2;
7959   return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_run "$LINENO"; then :
7963
7964 else
7965   ac_cv_header_stdc=no
7966 fi
7967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7968   conftest.$ac_objext conftest.beam conftest.$ac_ext
7969 fi
7970
7971 fi
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7974 $as_echo "$ac_cv_header_stdc" >&6; }
7975 if test $ac_cv_header_stdc = yes; then
7976
7977 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7978
7979 fi
7980
7981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7983                   inttypes.h stdint.h unistd.h
7984 do :
7985   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7987 "
7988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7989   cat >>confdefs.h <<_ACEOF
7990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7991 _ACEOF
7992
7993 fi
7994
7995 done
7996
7997
7998 for ac_header in dlfcn.h
7999 do :
8000   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8001 "
8002 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8003   cat >>confdefs.h <<_ACEOF
8004 #define HAVE_DLFCN_H 1
8005 _ACEOF
8006
8007 fi
8008
8009 done
8010
8011
8012
8013
8014 func_stripname_cnf ()
8015 {
8016   case ${2} in
8017   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8018   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8019   esac
8020 } # func_stripname_cnf
8021
8022
8023
8024
8025
8026 # Set options
8027
8028
8029
8030         enable_dlopen=no
8031
8032
8033   enable_win32_dll=no
8034
8035
8036             # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038   enableval=$enable_shared; p=${PACKAGE-default}
8039     case $enableval in
8040     yes) enable_shared=yes ;;
8041     no) enable_shared=no ;;
8042     *)
8043       enable_shared=no
8044       # Look at the argument we got.  We use all the common list separators.
8045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046       for pkg in $enableval; do
8047         IFS="$lt_save_ifs"
8048         if test "X$pkg" = "X$p"; then
8049           enable_shared=yes
8050         fi
8051       done
8052       IFS="$lt_save_ifs"
8053       ;;
8054     esac
8055 else
8056   enable_shared=yes
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067   # Check whether --enable-static was given.
8068 if test "${enable_static+set}" = set; then :
8069   enableval=$enable_static; p=${PACKAGE-default}
8070     case $enableval in
8071     yes) enable_static=yes ;;
8072     no) enable_static=no ;;
8073     *)
8074      enable_static=no
8075       # Look at the argument we got.  We use all the common list separators.
8076       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077       for pkg in $enableval; do
8078         IFS="$lt_save_ifs"
8079         if test "X$pkg" = "X$p"; then
8080           enable_static=yes
8081         fi
8082       done
8083       IFS="$lt_save_ifs"
8084       ;;
8085     esac
8086 else
8087   enable_static=yes
8088 fi
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099 # Check whether --with-pic was given.
8100 if test "${with_pic+set}" = set; then :
8101   withval=$with_pic; lt_p=${PACKAGE-default}
8102     case $withval in
8103     yes|no) pic_mode=$withval ;;
8104     *)
8105       pic_mode=default
8106       # Look at the argument we got.  We use all the common list separators.
8107       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108       for lt_pkg in $withval; do
8109         IFS="$lt_save_ifs"
8110         if test "X$lt_pkg" = "X$lt_p"; then
8111           pic_mode=yes
8112         fi
8113       done
8114       IFS="$lt_save_ifs"
8115       ;;
8116     esac
8117 else
8118   pic_mode=default
8119 fi
8120
8121
8122 test -z "$pic_mode" && pic_mode=default
8123
8124
8125
8126
8127
8128
8129
8130   # Check whether --enable-fast-install was given.
8131 if test "${enable_fast_install+set}" = set; then :
8132   enableval=$enable_fast_install; p=${PACKAGE-default}
8133     case $enableval in
8134     yes) enable_fast_install=yes ;;
8135     no) enable_fast_install=no ;;
8136     *)
8137       enable_fast_install=no
8138       # Look at the argument we got.  We use all the common list separators.
8139       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8140       for pkg in $enableval; do
8141         IFS="$lt_save_ifs"
8142         if test "X$pkg" = "X$p"; then
8143           enable_fast_install=yes
8144         fi
8145       done
8146       IFS="$lt_save_ifs"
8147       ;;
8148     esac
8149 else
8150   enable_fast_install=yes
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 # This can be used to rebuild libtool when needed
8164 LIBTOOL_DEPS="$ltmain"
8165
8166 # Always use our own libtool.
8167 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 test -z "$LN_S" && LN_S="ln -s"
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 if test -n "${ZSH_VERSION+set}" ; then
8214    setopt NO_GLOB_SUBST
8215 fi
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8218 $as_echo_n "checking for objdir... " >&6; }
8219 if ${lt_cv_objdir+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   rm -f .libs 2>/dev/null
8223 mkdir .libs 2>/dev/null
8224 if test -d .libs; then
8225   lt_cv_objdir=.libs
8226 else
8227   # MS-DOS does not allow filenames that begin with a dot.
8228   lt_cv_objdir=_libs
8229 fi
8230 rmdir .libs 2>/dev/null
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8233 $as_echo "$lt_cv_objdir" >&6; }
8234 objdir=$lt_cv_objdir
8235
8236
8237
8238
8239
8240 cat >>confdefs.h <<_ACEOF
8241 #define LT_OBJDIR "$lt_cv_objdir/"
8242 _ACEOF
8243
8244
8245
8246
8247 case $host_os in
8248 aix3*)
8249   # AIX sometimes has problems with the GCC collect2 program.  For some
8250   # reason, if we set the COLLECT_NAMES environment variable, the problems
8251   # vanish in a puff of smoke.
8252   if test "X${COLLECT_NAMES+set}" != Xset; then
8253     COLLECT_NAMES=
8254     export COLLECT_NAMES
8255   fi
8256   ;;
8257 esac
8258
8259 # Global variables:
8260 ofile=libtool
8261 can_build_shared=yes
8262
8263 # All known linkers require a `.a' archive for static linking (except MSVC,
8264 # which needs '.lib').
8265 libext=a
8266
8267 with_gnu_ld="$lt_cv_prog_gnu_ld"
8268
8269 old_CC="$CC"
8270 old_CFLAGS="$CFLAGS"
8271
8272 # Set sane defaults for various variables
8273 test -z "$CC" && CC=cc
8274 test -z "$LTCC" && LTCC=$CC
8275 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8276 test -z "$LD" && LD=ld
8277 test -z "$ac_objext" && ac_objext=o
8278
8279 for cc_temp in $compiler""; do
8280   case $cc_temp in
8281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8283     \-*) ;;
8284     *) break;;
8285   esac
8286 done
8287 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8288
8289
8290 # Only perform the check for file, if the check method requires it
8291 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8292 case $deplibs_check_method in
8293 file_magic*)
8294   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8296 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8297 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   case $MAGIC_CMD in
8301 [\\/*] |  ?:[\\/]*)
8302   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8303   ;;
8304 *)
8305   lt_save_MAGIC_CMD="$MAGIC_CMD"
8306   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8307   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8308   for ac_dir in $ac_dummy; do
8309     IFS="$lt_save_ifs"
8310     test -z "$ac_dir" && ac_dir=.
8311     if test -f $ac_dir/${ac_tool_prefix}file; then
8312       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8313       if test -n "$file_magic_test_file"; then
8314         case $deplibs_check_method in
8315         "file_magic "*)
8316           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8317           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8319             $EGREP "$file_magic_regex" > /dev/null; then
8320             :
8321           else
8322             cat <<_LT_EOF 1>&2
8323
8324 *** Warning: the command libtool uses to detect shared libraries,
8325 *** $file_magic_cmd, produces output that libtool cannot recognize.
8326 *** The result is that libtool may fail to recognize shared libraries
8327 *** as such.  This will affect the creation of libtool libraries that
8328 *** depend on shared libraries, but programs linked with such libtool
8329 *** libraries will work regardless of this problem.  Nevertheless, you
8330 *** may want to report the problem to your system manager and/or to
8331 *** bug-libtool@gnu.org
8332
8333 _LT_EOF
8334           fi ;;
8335         esac
8336       fi
8337       break
8338     fi
8339   done
8340   IFS="$lt_save_ifs"
8341   MAGIC_CMD="$lt_save_MAGIC_CMD"
8342   ;;
8343 esac
8344 fi
8345
8346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347 if test -n "$MAGIC_CMD"; then
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8349 $as_echo "$MAGIC_CMD" >&6; }
8350 else
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354
8355
8356
8357
8358
8359 if test -z "$lt_cv_path_MAGIC_CMD"; then
8360   if test -n "$ac_tool_prefix"; then
8361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8362 $as_echo_n "checking for file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   case $MAGIC_CMD in
8367 [\\/*] |  ?:[\\/]*)
8368   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8369   ;;
8370 *)
8371   lt_save_MAGIC_CMD="$MAGIC_CMD"
8372   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8373   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374   for ac_dir in $ac_dummy; do
8375     IFS="$lt_save_ifs"
8376     test -z "$ac_dir" && ac_dir=.
8377     if test -f $ac_dir/file; then
8378       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8379       if test -n "$file_magic_test_file"; then
8380         case $deplibs_check_method in
8381         "file_magic "*)
8382           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385             $EGREP "$file_magic_regex" > /dev/null; then
8386             :
8387           else
8388             cat <<_LT_EOF 1>&2
8389
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such.  This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem.  Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8398
8399 _LT_EOF
8400           fi ;;
8401         esac
8402       fi
8403       break
8404     fi
8405   done
8406   IFS="$lt_save_ifs"
8407   MAGIC_CMD="$lt_save_MAGIC_CMD"
8408   ;;
8409 esac
8410 fi
8411
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if test -n "$MAGIC_CMD"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422   else
8423     MAGIC_CMD=:
8424   fi
8425 fi
8426
8427   fi
8428   ;;
8429 esac
8430
8431 # Use C for the default configuration in the libtool script
8432
8433 lt_save_CC="$CC"
8434 ac_ext=c
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439
8440
8441 # Source file extension for C test sources.
8442 ac_ext=c
8443
8444 # Object file extension for compiled C test sources.
8445 objext=o
8446 objext=$objext
8447
8448 # Code to be used in simple compile tests
8449 lt_simple_compile_test_code="int some_variable = 0;"
8450
8451 # Code to be used in simple link tests
8452 lt_simple_link_test_code='int main(){return(0);}'
8453
8454
8455
8456
8457
8458
8459
8460 # If no C compiler was specified, use CC.
8461 LTCC=${LTCC-"$CC"}
8462
8463 # If no C compiler flags were specified, use CFLAGS.
8464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8465
8466 # Allow CC to be a program name with arguments.
8467 compiler=$CC
8468
8469 # Save the default compiler, since it gets overwritten when the other
8470 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8471 compiler_DEFAULT=$CC
8472
8473 # save warnings/boilerplate of simple test code
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8477 _lt_compiler_boilerplate=`cat conftest.err`
8478 $RM conftest*
8479
8480 ac_outfile=conftest.$ac_objext
8481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8483 _lt_linker_boilerplate=`cat conftest.err`
8484 $RM -r conftest*
8485
8486
8487 if test -n "$compiler"; then
8488
8489 lt_prog_compiler_no_builtin_flag=
8490
8491 if test "$GCC" = yes; then
8492   case $cc_basename in
8493   nvcc*)
8494     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8495   *)
8496     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8497   esac
8498
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8500 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8501 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   lt_cv_prog_compiler_rtti_exceptions=no
8505    ac_outfile=conftest.$ac_objext
8506    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507    lt_compiler_flag="-fno-rtti -fno-exceptions"
8508    # Insert the option either (1) after the last *FLAGS variable, or
8509    # (2) before a word containing "conftest.", or (3) at the end.
8510    # Note that $ac_compile itself does not contain backslashes and begins
8511    # with a dollar sign (not a hyphen), so the echo should work correctly.
8512    # The option is referenced via a variable to avoid confusing sed.
8513    lt_compile=`echo "$ac_compile" | $SED \
8514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8516    -e 's:$: $lt_compiler_flag:'`
8517    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8518    (eval "$lt_compile" 2>conftest.err)
8519    ac_status=$?
8520    cat conftest.err >&5
8521    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522    if (exit $ac_status) && test -s "$ac_outfile"; then
8523      # The compiler can only warn and ignore the option if not recognized
8524      # So say no if there are warnings other than the usual output.
8525      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8528        lt_cv_prog_compiler_rtti_exceptions=yes
8529      fi
8530    fi
8531    $RM conftest*
8532
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8535 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8536
8537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8538     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8539 else
8540     :
8541 fi
8542
8543 fi
8544
8545
8546
8547
8548
8549
8550   lt_prog_compiler_wl=
8551 lt_prog_compiler_pic=
8552 lt_prog_compiler_static=
8553
8554
8555   if test "$GCC" = yes; then
8556     lt_prog_compiler_wl='-Wl,'
8557     lt_prog_compiler_static='-static'
8558
8559     case $host_os in
8560       aix*)
8561       # All AIX code is PIC.
8562       if test "$host_cpu" = ia64; then
8563         # AIX 5 now supports IA64 processor
8564         lt_prog_compiler_static='-Bstatic'
8565       fi
8566       ;;
8567
8568     amigaos*)
8569       case $host_cpu in
8570       powerpc)
8571             # see comment about AmigaOS4 .so support
8572             lt_prog_compiler_pic='-fPIC'
8573         ;;
8574       m68k)
8575             # FIXME: we need at least 68020 code to build shared libraries, but
8576             # adding the `-m68020' flag to GCC prevents building anything better,
8577             # like `-m68040'.
8578             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8579         ;;
8580       esac
8581       ;;
8582
8583     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8584       # PIC is the default for these OSes.
8585       ;;
8586
8587     mingw* | cygwin* | pw32* | os2* | cegcc*)
8588       # This hack is so that the source file can tell whether it is being
8589       # built for inclusion in a dll (and should export symbols for example).
8590       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8591       # (--disable-auto-import) libraries
8592       lt_prog_compiler_pic='-DDLL_EXPORT'
8593       ;;
8594
8595     darwin* | rhapsody*)
8596       # PIC is the default on this platform
8597       # Common symbols not allowed in MH_DYLIB files
8598       lt_prog_compiler_pic='-fno-common'
8599       ;;
8600
8601     haiku*)
8602       # PIC is the default for Haiku.
8603       # The "-static" flag exists, but is broken.
8604       lt_prog_compiler_static=
8605       ;;
8606
8607     hpux*)
8608       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8609       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8610       # sets the default TLS model and affects inlining.
8611       case $host_cpu in
8612       hppa*64*)
8613         # +Z the default
8614         ;;
8615       *)
8616         lt_prog_compiler_pic='-fPIC'
8617         ;;
8618       esac
8619       ;;
8620
8621     interix[3-9]*)
8622       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8623       # Instead, we relocate shared libraries at runtime.
8624       ;;
8625
8626     msdosdjgpp*)
8627       # Just because we use GCC doesn't mean we suddenly get shared libraries
8628       # on systems that don't support them.
8629       lt_prog_compiler_can_build_shared=no
8630       enable_shared=no
8631       ;;
8632
8633     *nto* | *qnx*)
8634       # QNX uses GNU C++, but need to define -shared option too, otherwise
8635       # it will coredump.
8636       lt_prog_compiler_pic='-fPIC -shared'
8637       ;;
8638
8639     sysv4*MP*)
8640       if test -d /usr/nec; then
8641         lt_prog_compiler_pic=-Kconform_pic
8642       fi
8643       ;;
8644
8645     *)
8646       lt_prog_compiler_pic='-fPIC'
8647       ;;
8648     esac
8649
8650     case $cc_basename in
8651     nvcc*) # Cuda Compiler Driver 2.2
8652       lt_prog_compiler_wl='-Xlinker '
8653       if test -n "$lt_prog_compiler_pic"; then
8654         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8655       fi
8656       ;;
8657     esac
8658   else
8659     # PORTME Check for flag to pass linker flags through the system compiler.
8660     case $host_os in
8661     aix*)
8662       lt_prog_compiler_wl='-Wl,'
8663       if test "$host_cpu" = ia64; then
8664         # AIX 5 now supports IA64 processor
8665         lt_prog_compiler_static='-Bstatic'
8666       else
8667         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8668       fi
8669       ;;
8670
8671     mingw* | cygwin* | pw32* | os2* | cegcc*)
8672       # This hack is so that the source file can tell whether it is being
8673       # built for inclusion in a dll (and should export symbols for example).
8674       lt_prog_compiler_pic='-DDLL_EXPORT'
8675       ;;
8676
8677     hpux9* | hpux10* | hpux11*)
8678       lt_prog_compiler_wl='-Wl,'
8679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8680       # not for PA HP-UX.
8681       case $host_cpu in
8682       hppa*64*|ia64*)
8683         # +Z the default
8684         ;;
8685       *)
8686         lt_prog_compiler_pic='+Z'
8687         ;;
8688       esac
8689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8690       lt_prog_compiler_static='${wl}-a ${wl}archive'
8691       ;;
8692
8693     irix5* | irix6* | nonstopux*)
8694       lt_prog_compiler_wl='-Wl,'
8695       # PIC (with -KPIC) is the default.
8696       lt_prog_compiler_static='-non_shared'
8697       ;;
8698
8699     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8700       case $cc_basename in
8701       # old Intel for x86_64 which still supported -KPIC.
8702       ecc*)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-KPIC'
8705         lt_prog_compiler_static='-static'
8706         ;;
8707       # icc used to be incompatible with GCC.
8708       # ICC 10 doesn't accept -KPIC any more.
8709       icc* | ifort*)
8710         lt_prog_compiler_wl='-Wl,'
8711         lt_prog_compiler_pic='-fPIC'
8712         lt_prog_compiler_static='-static'
8713         ;;
8714       # Lahey Fortran 8.1.
8715       lf95*)
8716         lt_prog_compiler_wl='-Wl,'
8717         lt_prog_compiler_pic='--shared'
8718         lt_prog_compiler_static='--static'
8719         ;;
8720       nagfor*)
8721         # NAG Fortran compiler
8722         lt_prog_compiler_wl='-Wl,-Wl,,'
8723         lt_prog_compiler_pic='-PIC'
8724         lt_prog_compiler_static='-Bstatic'
8725         ;;
8726       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8727         # Portland Group compilers (*not* the Pentium gcc compiler,
8728         # which looks to be a dead project)
8729         lt_prog_compiler_wl='-Wl,'
8730         lt_prog_compiler_pic='-fpic'
8731         lt_prog_compiler_static='-Bstatic'
8732         ;;
8733       ccc*)
8734         lt_prog_compiler_wl='-Wl,'
8735         # All Alpha code is PIC.
8736         lt_prog_compiler_static='-non_shared'
8737         ;;
8738       xl* | bgxl* | bgf* | mpixl*)
8739         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8740         lt_prog_compiler_wl='-Wl,'
8741         lt_prog_compiler_pic='-qpic'
8742         lt_prog_compiler_static='-qstaticlink'
8743         ;;
8744       *)
8745         case `$CC -V 2>&1 | sed 5q` in
8746         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8748           lt_prog_compiler_pic='-KPIC'
8749           lt_prog_compiler_static='-Bstatic'
8750           lt_prog_compiler_wl=''
8751           ;;
8752         *Sun\ F* | *Sun*Fortran*)
8753           lt_prog_compiler_pic='-KPIC'
8754           lt_prog_compiler_static='-Bstatic'
8755           lt_prog_compiler_wl='-Qoption ld '
8756           ;;
8757         *Sun\ C*)
8758           # Sun C 5.9
8759           lt_prog_compiler_pic='-KPIC'
8760           lt_prog_compiler_static='-Bstatic'
8761           lt_prog_compiler_wl='-Wl,'
8762           ;;
8763         *Intel*\ [CF]*Compiler*)
8764           lt_prog_compiler_wl='-Wl,'
8765           lt_prog_compiler_pic='-fPIC'
8766           lt_prog_compiler_static='-static'
8767           ;;
8768         *Portland\ Group*)
8769           lt_prog_compiler_wl='-Wl,'
8770           lt_prog_compiler_pic='-fpic'
8771           lt_prog_compiler_static='-Bstatic'
8772           ;;
8773         esac
8774         ;;
8775       esac
8776       ;;
8777
8778     newsos6)
8779       lt_prog_compiler_pic='-KPIC'
8780       lt_prog_compiler_static='-Bstatic'
8781       ;;
8782
8783     *nto* | *qnx*)
8784       # QNX uses GNU C++, but need to define -shared option too, otherwise
8785       # it will coredump.
8786       lt_prog_compiler_pic='-fPIC -shared'
8787       ;;
8788
8789     osf3* | osf4* | osf5*)
8790       lt_prog_compiler_wl='-Wl,'
8791       # All OSF/1 code is PIC.
8792       lt_prog_compiler_static='-non_shared'
8793       ;;
8794
8795     rdos*)
8796       lt_prog_compiler_static='-non_shared'
8797       ;;
8798
8799     solaris*)
8800       lt_prog_compiler_pic='-KPIC'
8801       lt_prog_compiler_static='-Bstatic'
8802       case $cc_basename in
8803       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8804         lt_prog_compiler_wl='-Qoption ld ';;
8805       *)
8806         lt_prog_compiler_wl='-Wl,';;
8807       esac
8808       ;;
8809
8810     sunos4*)
8811       lt_prog_compiler_wl='-Qoption ld '
8812       lt_prog_compiler_pic='-PIC'
8813       lt_prog_compiler_static='-Bstatic'
8814       ;;
8815
8816     sysv4 | sysv4.2uw2* | sysv4.3*)
8817       lt_prog_compiler_wl='-Wl,'
8818       lt_prog_compiler_pic='-KPIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     sysv4*MP*)
8823       if test -d /usr/nec ;then
8824         lt_prog_compiler_pic='-Kconform_pic'
8825         lt_prog_compiler_static='-Bstatic'
8826       fi
8827       ;;
8828
8829     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8830       lt_prog_compiler_wl='-Wl,'
8831       lt_prog_compiler_pic='-KPIC'
8832       lt_prog_compiler_static='-Bstatic'
8833       ;;
8834
8835     unicos*)
8836       lt_prog_compiler_wl='-Wl,'
8837       lt_prog_compiler_can_build_shared=no
8838       ;;
8839
8840     uts4*)
8841       lt_prog_compiler_pic='-pic'
8842       lt_prog_compiler_static='-Bstatic'
8843       ;;
8844
8845     *)
8846       lt_prog_compiler_can_build_shared=no
8847       ;;
8848     esac
8849   fi
8850
8851 case $host_os in
8852   # For platforms which do not support PIC, -DPIC is meaningless:
8853   *djgpp*)
8854     lt_prog_compiler_pic=
8855     ;;
8856   *)
8857     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8858     ;;
8859 esac
8860
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8863 if ${lt_cv_prog_compiler_pic+:} false; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8869 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8870 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8871
8872 #
8873 # Check to make sure the PIC flag actually works.
8874 #
8875 if test -n "$lt_prog_compiler_pic"; then
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8877 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8878 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   lt_cv_prog_compiler_pic_works=no
8882    ac_outfile=conftest.$ac_objext
8883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8885    # Insert the option either (1) after the last *FLAGS variable, or
8886    # (2) before a word containing "conftest.", or (3) at the end.
8887    # Note that $ac_compile itself does not contain backslashes and begins
8888    # with a dollar sign (not a hyphen), so the echo should work correctly.
8889    # The option is referenced via a variable to avoid confusing sed.
8890    lt_compile=`echo "$ac_compile" | $SED \
8891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893    -e 's:$: $lt_compiler_flag:'`
8894    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895    (eval "$lt_compile" 2>conftest.err)
8896    ac_status=$?
8897    cat conftest.err >&5
8898    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899    if (exit $ac_status) && test -s "$ac_outfile"; then
8900      # The compiler can only warn and ignore the option if not recognized
8901      # So say no if there are warnings other than the usual output.
8902      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8903      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8904      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8905        lt_cv_prog_compiler_pic_works=yes
8906      fi
8907    fi
8908    $RM conftest*
8909
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8912 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8913
8914 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8915     case $lt_prog_compiler_pic in
8916      "" | " "*) ;;
8917      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8918      esac
8919 else
8920     lt_prog_compiler_pic=
8921      lt_prog_compiler_can_build_shared=no
8922 fi
8923
8924 fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936 #
8937 # Check to make sure the static flag actually works.
8938 #
8939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8942 if ${lt_cv_prog_compiler_static_works+:} false; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   lt_cv_prog_compiler_static_works=no
8946    save_LDFLAGS="$LDFLAGS"
8947    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8948    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8949    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8950      # The linker can only warn and ignore the option if not recognized
8951      # So say no if there are warnings
8952      if test -s conftest.err; then
8953        # Append any errors to the config.log.
8954        cat conftest.err 1>&5
8955        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8956        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8957        if diff conftest.exp conftest.er2 >/dev/null; then
8958          lt_cv_prog_compiler_static_works=yes
8959        fi
8960      else
8961        lt_cv_prog_compiler_static_works=yes
8962      fi
8963    fi
8964    $RM -r conftest*
8965    LDFLAGS="$save_LDFLAGS"
8966
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8969 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8970
8971 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8972     :
8973 else
8974     lt_prog_compiler_static=
8975 fi
8976
8977
8978
8979
8980
8981
8982
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   lt_cv_prog_compiler_c_o=no
8989    $RM -r conftest 2>/dev/null
8990    mkdir conftest
8991    cd conftest
8992    mkdir out
8993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994
8995    lt_compiler_flag="-o out/conftest2.$ac_objext"
8996    # Insert the option either (1) after the last *FLAGS variable, or
8997    # (2) before a word containing "conftest.", or (3) at the end.
8998    # Note that $ac_compile itself does not contain backslashes and begins
8999    # with a dollar sign (not a hyphen), so the echo should work correctly.
9000    lt_compile=`echo "$ac_compile" | $SED \
9001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003    -e 's:$: $lt_compiler_flag:'`
9004    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005    (eval "$lt_compile" 2>out/conftest.err)
9006    ac_status=$?
9007    cat out/conftest.err >&5
9008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010    then
9011      # The compiler can only warn and ignore the option if not recognized
9012      # So say no if there are warnings
9013      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016        lt_cv_prog_compiler_c_o=yes
9017      fi
9018    fi
9019    chmod u+w . 2>&5
9020    $RM conftest*
9021    # SGI C++ compiler will create directory out/ii_files/ for
9022    # template instantiation
9023    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024    $RM out/* && rmdir out
9025    cd ..
9026    $RM -r conftest
9027    $RM conftest*
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032
9033
9034
9035
9036
9037
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9040 if ${lt_cv_prog_compiler_c_o+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   lt_cv_prog_compiler_c_o=no
9044    $RM -r conftest 2>/dev/null
9045    mkdir conftest
9046    cd conftest
9047    mkdir out
9048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050    lt_compiler_flag="-o out/conftest2.$ac_objext"
9051    # Insert the option either (1) after the last *FLAGS variable, or
9052    # (2) before a word containing "conftest.", or (3) at the end.
9053    # Note that $ac_compile itself does not contain backslashes and begins
9054    # with a dollar sign (not a hyphen), so the echo should work correctly.
9055    lt_compile=`echo "$ac_compile" | $SED \
9056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058    -e 's:$: $lt_compiler_flag:'`
9059    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9060    (eval "$lt_compile" 2>out/conftest.err)
9061    ac_status=$?
9062    cat out/conftest.err >&5
9063    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065    then
9066      # The compiler can only warn and ignore the option if not recognized
9067      # So say no if there are warnings
9068      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9069      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071        lt_cv_prog_compiler_c_o=yes
9072      fi
9073    fi
9074    chmod u+w . 2>&5
9075    $RM conftest*
9076    # SGI C++ compiler will create directory out/ii_files/ for
9077    # template instantiation
9078    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9079    $RM out/* && rmdir out
9080    cd ..
9081    $RM -r conftest
9082    $RM conftest*
9083
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9087
9088
9089
9090
9091 hard_links="nottested"
9092 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9093   # do not overwrite the value of need_locks provided by the user
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9095 $as_echo_n "checking if we can lock with hard links... " >&6; }
9096   hard_links=yes
9097   $RM conftest*
9098   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9099   touch conftest.a
9100   ln conftest.a conftest.b 2>&5 || hard_links=no
9101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9103 $as_echo "$hard_links" >&6; }
9104   if test "$hard_links" = no; then
9105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9107     need_locks=warn
9108   fi
9109 else
9110   need_locks=no
9111 fi
9112
9113
9114
9115
9116
9117
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9120
9121   runpath_var=
9122   allow_undefined_flag=
9123   always_export_symbols=no
9124   archive_cmds=
9125   archive_expsym_cmds=
9126   compiler_needs_object=no
9127   enable_shared_with_static_runtimes=no
9128   export_dynamic_flag_spec=
9129   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9130   hardcode_automatic=no
9131   hardcode_direct=no
9132   hardcode_direct_absolute=no
9133   hardcode_libdir_flag_spec=
9134   hardcode_libdir_separator=
9135   hardcode_minus_L=no
9136   hardcode_shlibpath_var=unsupported
9137   inherit_rpath=no
9138   link_all_deplibs=unknown
9139   module_cmds=
9140   module_expsym_cmds=
9141   old_archive_from_new_cmds=
9142   old_archive_from_expsyms_cmds=
9143   thread_safe_flag_spec=
9144   whole_archive_flag_spec=
9145   # include_expsyms should be a list of space-separated symbols to be *always*
9146   # included in the symbol list
9147   include_expsyms=
9148   # exclude_expsyms can be an extended regexp of symbols to exclude
9149   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9150   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9151   # as well as any symbol that contains `d'.
9152   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9153   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9154   # platforms (ab)use it in PIC code, but their linkers get confused if
9155   # the symbol is explicitly referenced.  Since portable code cannot
9156   # rely on this symbol name, it's probably fine to never include it in
9157   # preloaded symbol tables.
9158   # Exclude shared library initialization/finalization symbols.
9159   extract_expsyms_cmds=
9160
9161   case $host_os in
9162   cygwin* | mingw* | pw32* | cegcc*)
9163     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9164     # When not using gcc, we currently assume that we are using
9165     # Microsoft Visual C++.
9166     if test "$GCC" != yes; then
9167       with_gnu_ld=no
9168     fi
9169     ;;
9170   interix*)
9171     # we just hope/assume this is gcc and not c89 (= MSVC++)
9172     with_gnu_ld=yes
9173     ;;
9174   openbsd*)
9175     with_gnu_ld=no
9176     ;;
9177   linux* | k*bsd*-gnu | gnu*)
9178     link_all_deplibs=no
9179     ;;
9180   esac
9181
9182   ld_shlibs=yes
9183
9184   # On some targets, GNU ld is compatible enough with the native linker
9185   # that we're better off using the native interface for both.
9186   lt_use_gnu_ld_interface=no
9187   if test "$with_gnu_ld" = yes; then
9188     case $host_os in
9189       aix*)
9190         # The AIX port of GNU ld has always aspired to compatibility
9191         # with the native linker.  However, as the warning in the GNU ld
9192         # block says, versions before 2.19.5* couldn't really create working
9193         # shared libraries, regardless of the interface used.
9194         case `$LD -v 2>&1` in
9195           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9196           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9197           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9198           *)
9199             lt_use_gnu_ld_interface=yes
9200             ;;
9201         esac
9202         ;;
9203       *)
9204         lt_use_gnu_ld_interface=yes
9205         ;;
9206     esac
9207   fi
9208
9209   if test "$lt_use_gnu_ld_interface" = yes; then
9210     # If archive_cmds runs LD, not CC, wlarc should be empty
9211     wlarc='${wl}'
9212
9213     # Set some defaults for GNU ld with shared library support. These
9214     # are reset later if shared libraries are not supported. Putting them
9215     # here allows them to be overridden if necessary.
9216     runpath_var=LD_RUN_PATH
9217     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218     export_dynamic_flag_spec='${wl}--export-dynamic'
9219     # ancient GNU ld didn't support --whole-archive et. al.
9220     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9221       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9222     else
9223       whole_archive_flag_spec=
9224     fi
9225     supports_anon_versioning=no
9226     case `$LD -v 2>&1` in
9227       *GNU\ gold*) supports_anon_versioning=yes ;;
9228       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9229       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9230       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9231       *\ 2.11.*) ;; # other 2.11 versions
9232       *) supports_anon_versioning=yes ;;
9233     esac
9234
9235     # See if GNU ld supports shared libraries.
9236     case $host_os in
9237     aix[3-9]*)
9238       # On AIX/PPC, the GNU linker is very broken
9239       if test "$host_cpu" != ia64; then
9240         ld_shlibs=no
9241         cat <<_LT_EOF 1>&2
9242
9243 *** Warning: the GNU linker, at least up to release 2.19, is reported
9244 *** to be unable to reliably create shared libraries on AIX.
9245 *** Therefore, libtool is disabling shared libraries support.  If you
9246 *** really care for shared libraries, you may want to install binutils
9247 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9248 *** You will then need to restart the configuration process.
9249
9250 _LT_EOF
9251       fi
9252       ;;
9253
9254     amigaos*)
9255       case $host_cpu in
9256       powerpc)
9257             # see comment about AmigaOS4 .so support
9258             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259             archive_expsym_cmds=''
9260         ;;
9261       m68k)
9262             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)'
9263             hardcode_libdir_flag_spec='-L$libdir'
9264             hardcode_minus_L=yes
9265         ;;
9266       esac
9267       ;;
9268
9269     beos*)
9270       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271         allow_undefined_flag=unsupported
9272         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9273         # support --undefined.  This deserves some investigation.  FIXME
9274         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275       else
9276         ld_shlibs=no
9277       fi
9278       ;;
9279
9280     cygwin* | mingw* | pw32* | cegcc*)
9281       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9282       # as there is no search path for DLLs.
9283       hardcode_libdir_flag_spec='-L$libdir'
9284       export_dynamic_flag_spec='${wl}--export-all-symbols'
9285       allow_undefined_flag=unsupported
9286       always_export_symbols=no
9287       enable_shared_with_static_runtimes=yes
9288       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'
9289       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9290
9291       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9292         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293         # If the export-symbols file already is a .def file (1st line
9294         # is EXPORTS), use it as is; otherwise, prepend...
9295         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9296           cp $export_symbols $output_objdir/$soname.def;
9297         else
9298           echo EXPORTS > $output_objdir/$soname.def;
9299           cat $export_symbols >> $output_objdir/$soname.def;
9300         fi~
9301         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9302       else
9303         ld_shlibs=no
9304       fi
9305       ;;
9306
9307     haiku*)
9308       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309       link_all_deplibs=yes
9310       ;;
9311
9312     interix[3-9]*)
9313       hardcode_direct=no
9314       hardcode_shlibpath_var=no
9315       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316       export_dynamic_flag_spec='${wl}-E'
9317       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9318       # Instead, shared libraries are loaded at an image base (0x10000000 by
9319       # default) and relocated if they conflict, which is a slow very memory
9320       # consuming and fragmenting process.  To avoid this, we pick a random,
9321       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9322       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9323       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9324       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'
9325       ;;
9326
9327     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9328       tmp_diet=no
9329       if test "$host_os" = linux-dietlibc; then
9330         case $cc_basename in
9331           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9332         esac
9333       fi
9334       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9335          && test "$tmp_diet" = no
9336       then
9337         tmp_addflag=' $pic_flag'
9338         tmp_sharedflag='-shared'
9339         case $cc_basename,$host_cpu in
9340         pgcc*)                          # Portland Group C compiler
9341           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'
9342           tmp_addflag=' $pic_flag'
9343           ;;
9344         pgf77* | pgf90* | pgf95* | pgfortran*)
9345                                         # Portland Group f77 and f90 compilers
9346           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'
9347           tmp_addflag=' $pic_flag -Mnomain' ;;
9348         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9349           tmp_addflag=' -i_dynamic' ;;
9350         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9351           tmp_addflag=' -i_dynamic -nofor_main' ;;
9352         ifc* | ifort*)                  # Intel Fortran compiler
9353           tmp_addflag=' -nofor_main' ;;
9354         lf95*)                          # Lahey Fortran 8.1
9355           whole_archive_flag_spec=
9356           tmp_sharedflag='--shared' ;;
9357         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9358           tmp_sharedflag='-qmkshrobj'
9359           tmp_addflag= ;;
9360         nvcc*)  # Cuda Compiler Driver 2.2
9361           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'
9362           compiler_needs_object=yes
9363           ;;
9364         esac
9365         case `$CC -V 2>&1 | sed 5q` in
9366         *Sun\ C*)                       # Sun C 5.9
9367           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'
9368           compiler_needs_object=yes
9369           tmp_sharedflag='-G' ;;
9370         *Sun\ F*)                       # Sun Fortran 8.3
9371           tmp_sharedflag='-G' ;;
9372         esac
9373         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374
9375         if test "x$supports_anon_versioning" = xyes; then
9376           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9377             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9378             echo "local: *; };" >> $output_objdir/$libname.ver~
9379             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9380         fi
9381
9382         case $cc_basename in
9383         xlf* | bgf* | bgxlf* | mpixlf*)
9384           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9385           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9386           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9388           if test "x$supports_anon_versioning" = xyes; then
9389             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9390               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391               echo "local: *; };" >> $output_objdir/$libname.ver~
9392               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9393           fi
9394           ;;
9395         esac
9396       else
9397         ld_shlibs=no
9398       fi
9399       ;;
9400
9401     netbsd* | netbsdelf*-gnu)
9402       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9403         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9404         wlarc=
9405       else
9406         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408       fi
9409       ;;
9410
9411     solaris*)
9412       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9413         ld_shlibs=no
9414         cat <<_LT_EOF 1>&2
9415
9416 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9417 *** create shared libraries on Solaris systems.  Therefore, libtool
9418 *** is disabling shared libraries support.  We urge you to upgrade GNU
9419 *** binutils to release 2.9.1 or newer.  Another option is to modify
9420 *** your PATH or compiler configuration so that the native linker is
9421 *** used, and then restart.
9422
9423 _LT_EOF
9424       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427       else
9428         ld_shlibs=no
9429       fi
9430       ;;
9431
9432     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9433       case `$LD -v 2>&1` in
9434         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9435         ld_shlibs=no
9436         cat <<_LT_EOF 1>&2
9437
9438 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9439 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9440 *** is disabling shared libraries support.  We urge you to upgrade GNU
9441 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9442 *** your PATH or compiler configuration so that the native linker is
9443 *** used, and then restart.
9444
9445 _LT_EOF
9446         ;;
9447         *)
9448           # For security reasons, it is highly recommended that you always
9449           # use absolute paths for naming shared libraries, and exclude the
9450           # DT_RUNPATH tag from executables and libraries.  But doing so
9451           # requires that you compile everything twice, which is a pain.
9452           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456           else
9457             ld_shlibs=no
9458           fi
9459         ;;
9460       esac
9461       ;;
9462
9463     sunos4*)
9464       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465       wlarc=
9466       hardcode_direct=yes
9467       hardcode_shlibpath_var=no
9468       ;;
9469
9470     *)
9471       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9472         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474       else
9475         ld_shlibs=no
9476       fi
9477       ;;
9478     esac
9479
9480     if test "$ld_shlibs" = no; then
9481       runpath_var=
9482       hardcode_libdir_flag_spec=
9483       export_dynamic_flag_spec=
9484       whole_archive_flag_spec=
9485     fi
9486   else
9487     # PORTME fill in a description of your system's linker (not GNU ld)
9488     case $host_os in
9489     aix3*)
9490       allow_undefined_flag=unsupported
9491       always_export_symbols=yes
9492       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'
9493       # Note: this linker hardcodes the directories in LIBPATH if there
9494       # are no directories specified by -L.
9495       hardcode_minus_L=yes
9496       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9497         # Neither direct hardcoding nor static linking is supported with a
9498         # broken collect2.
9499         hardcode_direct=unsupported
9500       fi
9501       ;;
9502
9503     aix[4-9]*)
9504       if test "$host_cpu" = ia64; then
9505         # On IA64, the linker does run time linking by default, so we don't
9506         # have to do anything special.
9507         aix_use_runtimelinking=no
9508         exp_sym_flag='-Bexport'
9509         no_entry_flag=""
9510       else
9511         # If we're using GNU nm, then we don't want the "-C" option.
9512         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9513         # Also, AIX nm treats weak defined symbols like other global
9514         # defined symbols, whereas GNU nm marks them as "W".
9515         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9516           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'
9517         else
9518           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'
9519         fi
9520         aix_use_runtimelinking=no
9521
9522         # Test if we are trying to use run time linking or normal
9523         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9524         # need to do runtime linking.
9525         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9526           for ld_flag in $LDFLAGS; do
9527           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9528             aix_use_runtimelinking=yes
9529             break
9530           fi
9531           done
9532           ;;
9533         esac
9534
9535         exp_sym_flag='-bexport'
9536         no_entry_flag='-bnoentry'
9537       fi
9538
9539       # When large executables or shared objects are built, AIX ld can
9540       # have problems creating the table of contents.  If linking a library
9541       # or program results in "error TOC overflow" add -mminimal-toc to
9542       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9543       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9544
9545       archive_cmds=''
9546       hardcode_direct=yes
9547       hardcode_direct_absolute=yes
9548       hardcode_libdir_separator=':'
9549       link_all_deplibs=yes
9550       file_list_spec='${wl}-f,'
9551
9552       if test "$GCC" = yes; then
9553         case $host_os in aix4.[012]|aix4.[012].*)
9554         # We only want to do this on AIX 4.2 and lower, the check
9555         # below for broken collect2 doesn't work under 4.3+
9556           collect2name=`${CC} -print-prog-name=collect2`
9557           if test -f "$collect2name" &&
9558            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9559           then
9560           # We have reworked collect2
9561           :
9562           else
9563           # We have old collect2
9564           hardcode_direct=unsupported
9565           # It fails to find uninstalled libraries when the uninstalled
9566           # path is not listed in the libpath.  Setting hardcode_minus_L
9567           # to unsupported forces relinking
9568           hardcode_minus_L=yes
9569           hardcode_libdir_flag_spec='-L$libdir'
9570           hardcode_libdir_separator=
9571           fi
9572           ;;
9573         esac
9574         shared_flag='-shared'
9575         if test "$aix_use_runtimelinking" = yes; then
9576           shared_flag="$shared_flag "'${wl}-G'
9577         fi
9578         link_all_deplibs=no
9579       else
9580         # not using gcc
9581         if test "$host_cpu" = ia64; then
9582         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9583         # chokes on -Wl,-G. The following line is correct:
9584           shared_flag='-G'
9585         else
9586           if test "$aix_use_runtimelinking" = yes; then
9587             shared_flag='${wl}-G'
9588           else
9589             shared_flag='${wl}-bM:SRE'
9590           fi
9591         fi
9592       fi
9593
9594       export_dynamic_flag_spec='${wl}-bexpall'
9595       # It seems that -bexpall does not export symbols beginning with
9596       # underscore (_), so it is better to generate a list of symbols to export.
9597       always_export_symbols=yes
9598       if test "$aix_use_runtimelinking" = yes; then
9599         # Warning - without using the other runtime loading flags (-brtl),
9600         # -berok will link without error, but may produce a broken library.
9601         allow_undefined_flag='-berok'
9602         # Determine the default libpath from the value encoded in an
9603         # empty executable.
9604         if test "${lt_cv_aix_libpath+set}" = set; then
9605   aix_libpath=$lt_cv_aix_libpath
9606 else
9607   if ${lt_cv_aix_libpath_+:} false; then :
9608   $as_echo_n "(cached) " >&6
9609 else
9610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h.  */
9612
9613 int
9614 main ()
9615 {
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622
9623   lt_aix_libpath_sed='
9624       /Import File Strings/,/^$/ {
9625           /^0/ {
9626               s/^0  *\([^ ]*\) *$/\1/
9627               p
9628           }
9629       }'
9630   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631   # Check for a 64-bit object if we didn't find anything.
9632   if test -z "$lt_cv_aix_libpath_"; then
9633     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9634   fi
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637     conftest$ac_exeext conftest.$ac_ext
9638   if test -z "$lt_cv_aix_libpath_"; then
9639     lt_cv_aix_libpath_="/usr/lib:/lib"
9640   fi
9641
9642 fi
9643
9644   aix_libpath=$lt_cv_aix_libpath_
9645 fi
9646
9647         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9648         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"
9649       else
9650         if test "$host_cpu" = ia64; then
9651           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9652           allow_undefined_flag="-z nodefs"
9653           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"
9654         else
9655          # Determine the default libpath from the value encoded in an
9656          # empty executable.
9657          if test "${lt_cv_aix_libpath+set}" = set; then
9658   aix_libpath=$lt_cv_aix_libpath
9659 else
9660   if ${lt_cv_aix_libpath_+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h.  */
9665
9666 int
9667 main ()
9668 {
9669
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 if ac_fn_c_try_link "$LINENO"; then :
9675
9676   lt_aix_libpath_sed='
9677       /Import File Strings/,/^$/ {
9678           /^0/ {
9679               s/^0  *\([^ ]*\) *$/\1/
9680               p
9681           }
9682       }'
9683   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684   # Check for a 64-bit object if we didn't find anything.
9685   if test -z "$lt_cv_aix_libpath_"; then
9686     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9687   fi
9688 fi
9689 rm -f core conftest.err conftest.$ac_objext \
9690     conftest$ac_exeext conftest.$ac_ext
9691   if test -z "$lt_cv_aix_libpath_"; then
9692     lt_cv_aix_libpath_="/usr/lib:/lib"
9693   fi
9694
9695 fi
9696
9697   aix_libpath=$lt_cv_aix_libpath_
9698 fi
9699
9700          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9701           # Warning - without using the other run time loading flags,
9702           # -berok will link without error, but may produce a broken library.
9703           no_undefined_flag=' ${wl}-bernotok'
9704           allow_undefined_flag=' ${wl}-berok'
9705           if test "$with_gnu_ld" = yes; then
9706             # We only use this code for GNU lds that support --whole-archive.
9707             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9708           else
9709             # Exported symbols can be pulled into shared objects from archives
9710             whole_archive_flag_spec='$convenience'
9711           fi
9712           archive_cmds_need_lc=yes
9713           # This is similar to how AIX traditionally builds its shared libraries.
9714           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'
9715         fi
9716       fi
9717       ;;
9718
9719     amigaos*)
9720       case $host_cpu in
9721       powerpc)
9722             # see comment about AmigaOS4 .so support
9723             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9724             archive_expsym_cmds=''
9725         ;;
9726       m68k)
9727             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)'
9728             hardcode_libdir_flag_spec='-L$libdir'
9729             hardcode_minus_L=yes
9730         ;;
9731       esac
9732       ;;
9733
9734     bsdi[45]*)
9735       export_dynamic_flag_spec=-rdynamic
9736       ;;
9737
9738     cygwin* | mingw* | pw32* | cegcc*)
9739       # When not using gcc, we currently assume that we are using
9740       # Microsoft Visual C++.
9741       # hardcode_libdir_flag_spec is actually meaningless, as there is
9742       # no search path for DLLs.
9743       case $cc_basename in
9744       cl*)
9745         # Native MSVC
9746         hardcode_libdir_flag_spec=' '
9747         allow_undefined_flag=unsupported
9748         always_export_symbols=yes
9749         file_list_spec='@'
9750         # Tell ltmain to make .lib files, not .a files.
9751         libext=lib
9752         # Tell ltmain to make .dll files, not .so files.
9753         shrext_cmds=".dll"
9754         # FIXME: Setting linknames here is a bad hack.
9755         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9756         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9758           else
9759             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9760           fi~
9761           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9762           linknames='
9763         # The linker will not automatically build a static lib if we build a DLL.
9764         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9765         enable_shared_with_static_runtimes=yes
9766         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9767         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9768         # Don't use ranlib
9769         old_postinstall_cmds='chmod 644 $oldlib'
9770         postlink_cmds='lt_outputfile="@OUTPUT@"~
9771           lt_tool_outputfile="@TOOL_OUTPUT@"~
9772           case $lt_outputfile in
9773             *.exe|*.EXE) ;;
9774             *)
9775               lt_outputfile="$lt_outputfile.exe"
9776               lt_tool_outputfile="$lt_tool_outputfile.exe"
9777               ;;
9778           esac~
9779           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9780             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9781             $RM "$lt_outputfile.manifest";
9782           fi'
9783         ;;
9784       *)
9785         # Assume MSVC wrapper
9786         hardcode_libdir_flag_spec=' '
9787         allow_undefined_flag=unsupported
9788         # Tell ltmain to make .lib files, not .a files.
9789         libext=lib
9790         # Tell ltmain to make .dll files, not .so files.
9791         shrext_cmds=".dll"
9792         # FIXME: Setting linknames here is a bad hack.
9793         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9794         # The linker will automatically build a .lib file if we build a DLL.
9795         old_archive_from_new_cmds='true'
9796         # FIXME: Should let the user specify the lib program.
9797         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9798         enable_shared_with_static_runtimes=yes
9799         ;;
9800       esac
9801       ;;
9802
9803     darwin* | rhapsody*)
9804
9805
9806   archive_cmds_need_lc=no
9807   hardcode_direct=no
9808   hardcode_automatic=yes
9809   hardcode_shlibpath_var=unsupported
9810   if test "$lt_cv_ld_force_load" = "yes"; then
9811     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\"`'
9812
9813   else
9814     whole_archive_flag_spec=''
9815   fi
9816   link_all_deplibs=yes
9817   allow_undefined_flag="$_lt_dar_allow_undefined"
9818   case $cc_basename in
9819      ifort*) _lt_dar_can_shared=yes ;;
9820      *) _lt_dar_can_shared=$GCC ;;
9821   esac
9822   if test "$_lt_dar_can_shared" = "yes"; then
9823     output_verbose_link_cmd=func_echo_all
9824     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9825     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9826     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}"
9827     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}"
9828
9829   else
9830   ld_shlibs=no
9831   fi
9832
9833       ;;
9834
9835     dgux*)
9836       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837       hardcode_libdir_flag_spec='-L$libdir'
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9842     # support.  Future versions do this automatically, but an explicit c++rt0.o
9843     # does not break anything, and helps significantly (at the cost of a little
9844     # extra space).
9845     freebsd2.2*)
9846       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9847       hardcode_libdir_flag_spec='-R$libdir'
9848       hardcode_direct=yes
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9853     freebsd2.*)
9854       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9855       hardcode_direct=yes
9856       hardcode_minus_L=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9861     freebsd* | dragonfly*)
9862       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863       hardcode_libdir_flag_spec='-R$libdir'
9864       hardcode_direct=yes
9865       hardcode_shlibpath_var=no
9866       ;;
9867
9868     hpux9*)
9869       if test "$GCC" = yes; then
9870         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'
9871       else
9872         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'
9873       fi
9874       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9875       hardcode_libdir_separator=:
9876       hardcode_direct=yes
9877
9878       # hardcode_minus_L: Not really in the search PATH,
9879       # but as the default location of the library.
9880       hardcode_minus_L=yes
9881       export_dynamic_flag_spec='${wl}-E'
9882       ;;
9883
9884     hpux10*)
9885       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9886         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9887       else
9888         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9889       fi
9890       if test "$with_gnu_ld" = no; then
9891         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9892         hardcode_libdir_separator=:
9893         hardcode_direct=yes
9894         hardcode_direct_absolute=yes
9895         export_dynamic_flag_spec='${wl}-E'
9896         # hardcode_minus_L: Not really in the search PATH,
9897         # but as the default location of the library.
9898         hardcode_minus_L=yes
9899       fi
9900       ;;
9901
9902     hpux11*)
9903       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9904         case $host_cpu in
9905         hppa*64*)
9906           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9907           ;;
9908         ia64*)
9909           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9910           ;;
9911         *)
9912           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9913           ;;
9914         esac
9915       else
9916         case $host_cpu in
9917         hppa*64*)
9918           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         ia64*)
9921           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9922           ;;
9923         *)
9924
9925           # Older versions of the 11.00 compiler do not understand -b yet
9926           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9927           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9928 $as_echo_n "checking if $CC understands -b... " >&6; }
9929 if ${lt_cv_prog_compiler__b+:} false; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   lt_cv_prog_compiler__b=no
9933    save_LDFLAGS="$LDFLAGS"
9934    LDFLAGS="$LDFLAGS -b"
9935    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9936    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9937      # The linker can only warn and ignore the option if not recognized
9938      # So say no if there are warnings
9939      if test -s conftest.err; then
9940        # Append any errors to the config.log.
9941        cat conftest.err 1>&5
9942        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9943        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9944        if diff conftest.exp conftest.er2 >/dev/null; then
9945          lt_cv_prog_compiler__b=yes
9946        fi
9947      else
9948        lt_cv_prog_compiler__b=yes
9949      fi
9950    fi
9951    $RM -r conftest*
9952    LDFLAGS="$save_LDFLAGS"
9953
9954 fi
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9956 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9957
9958 if test x"$lt_cv_prog_compiler__b" = xyes; then
9959     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9960 else
9961     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9962 fi
9963
9964           ;;
9965         esac
9966       fi
9967       if test "$with_gnu_ld" = no; then
9968         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9969         hardcode_libdir_separator=:
9970
9971         case $host_cpu in
9972         hppa*64*|ia64*)
9973           hardcode_direct=no
9974           hardcode_shlibpath_var=no
9975           ;;
9976         *)
9977           hardcode_direct=yes
9978           hardcode_direct_absolute=yes
9979           export_dynamic_flag_spec='${wl}-E'
9980
9981           # hardcode_minus_L: Not really in the search PATH,
9982           # but as the default location of the library.
9983           hardcode_minus_L=yes
9984           ;;
9985         esac
9986       fi
9987       ;;
9988
9989     irix5* | irix6* | nonstopux*)
9990       if test "$GCC" = yes; then
9991         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'
9992         # Try to use the -exported_symbol ld option, if it does not
9993         # work, assume that -exports_file does not work either and
9994         # implicitly export all symbols.
9995         # This should be the same for all languages, so no per-tag cache variable.
9996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9997 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9998 if ${lt_cv_irix_exported_symbol+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   save_LDFLAGS="$LDFLAGS"
10002            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10003            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h.  */
10005 int foo (void) { return 0; }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008   lt_cv_irix_exported_symbol=yes
10009 else
10010   lt_cv_irix_exported_symbol=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013     conftest$ac_exeext conftest.$ac_ext
10014            LDFLAGS="$save_LDFLAGS"
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10017 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10018         if test "$lt_cv_irix_exported_symbol" = yes; then
10019           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'
10020         fi
10021       else
10022         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'
10023         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'
10024       fi
10025       archive_cmds_need_lc='no'
10026       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10027       hardcode_libdir_separator=:
10028       inherit_rpath=yes
10029       link_all_deplibs=yes
10030       ;;
10031
10032     netbsd* | netbsdelf*-gnu)
10033       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10034         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10035       else
10036         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10037       fi
10038       hardcode_libdir_flag_spec='-R$libdir'
10039       hardcode_direct=yes
10040       hardcode_shlibpath_var=no
10041       ;;
10042
10043     newsos6)
10044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045       hardcode_direct=yes
10046       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10047       hardcode_libdir_separator=:
10048       hardcode_shlibpath_var=no
10049       ;;
10050
10051     *nto* | *qnx*)
10052       ;;
10053
10054     openbsd*)
10055       if test -f /usr/libexec/ld.so; then
10056         hardcode_direct=yes
10057         hardcode_shlibpath_var=no
10058         hardcode_direct_absolute=yes
10059         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10060           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10061           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10062           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063           export_dynamic_flag_spec='${wl}-E'
10064         else
10065           case $host_os in
10066            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10067              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10068              hardcode_libdir_flag_spec='-R$libdir'
10069              ;;
10070            *)
10071              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10072              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10073              ;;
10074           esac
10075         fi
10076       else
10077         ld_shlibs=no
10078       fi
10079       ;;
10080
10081     os2*)
10082       hardcode_libdir_flag_spec='-L$libdir'
10083       hardcode_minus_L=yes
10084       allow_undefined_flag=unsupported
10085       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'
10086       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10087       ;;
10088
10089     osf3*)
10090       if test "$GCC" = yes; then
10091         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10092         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'
10093       else
10094         allow_undefined_flag=' -expect_unresolved \*'
10095         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'
10096       fi
10097       archive_cmds_need_lc='no'
10098       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099       hardcode_libdir_separator=:
10100       ;;
10101
10102     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10103       if test "$GCC" = yes; then
10104         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105         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'
10106         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107       else
10108         allow_undefined_flag=' -expect_unresolved \*'
10109         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'
10110         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~
10111         $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'
10112
10113         # Both c and cxx compiler support -rpath directly
10114         hardcode_libdir_flag_spec='-rpath $libdir'
10115       fi
10116       archive_cmds_need_lc='no'
10117       hardcode_libdir_separator=:
10118       ;;
10119
10120     solaris*)
10121       no_undefined_flag=' -z defs'
10122       if test "$GCC" = yes; then
10123         wlarc='${wl}'
10124         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10125         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126           $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'
10127       else
10128         case `$CC -V 2>&1` in
10129         *"Compilers 5.0"*)
10130           wlarc=''
10131           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10133           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10134           ;;
10135         *)
10136           wlarc='${wl}'
10137           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10140           ;;
10141         esac
10142       fi
10143       hardcode_libdir_flag_spec='-R$libdir'
10144       hardcode_shlibpath_var=no
10145       case $host_os in
10146       solaris2.[0-5] | solaris2.[0-5].*) ;;
10147       *)
10148         # The compiler driver will combine and reorder linker options,
10149         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10150         # but is careful enough not to reorder.
10151         # Supported since Solaris 2.6 (maybe 2.5.1?)
10152         if test "$GCC" = yes; then
10153           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10154         else
10155           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10156         fi
10157         ;;
10158       esac
10159       link_all_deplibs=yes
10160       ;;
10161
10162     sunos4*)
10163       if test "x$host_vendor" = xsequent; then
10164         # Use $CC to link under sequent, because it throws in some extra .o
10165         # files that make .init and .fini sections work.
10166         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10167       else
10168         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10169       fi
10170       hardcode_libdir_flag_spec='-L$libdir'
10171       hardcode_direct=yes
10172       hardcode_minus_L=yes
10173       hardcode_shlibpath_var=no
10174       ;;
10175
10176     sysv4)
10177       case $host_vendor in
10178         sni)
10179           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180           hardcode_direct=yes # is this really true???
10181         ;;
10182         siemens)
10183           ## LD is ld it makes a PLAMLIB
10184           ## CC just makes a GrossModule.
10185           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10186           reload_cmds='$CC -r -o $output$reload_objs'
10187           hardcode_direct=no
10188         ;;
10189         motorola)
10190           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10192         ;;
10193       esac
10194       runpath_var='LD_RUN_PATH'
10195       hardcode_shlibpath_var=no
10196       ;;
10197
10198     sysv4.3*)
10199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200       hardcode_shlibpath_var=no
10201       export_dynamic_flag_spec='-Bexport'
10202       ;;
10203
10204     sysv4*MP*)
10205       if test -d /usr/nec; then
10206         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207         hardcode_shlibpath_var=no
10208         runpath_var=LD_RUN_PATH
10209         hardcode_runpath_var=yes
10210         ld_shlibs=yes
10211       fi
10212       ;;
10213
10214     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10215       no_undefined_flag='${wl}-z,text'
10216       archive_cmds_need_lc=no
10217       hardcode_shlibpath_var=no
10218       runpath_var='LD_RUN_PATH'
10219
10220       if test "$GCC" = yes; then
10221         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223       else
10224         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226       fi
10227       ;;
10228
10229     sysv5* | sco3.2v5* | sco5v6*)
10230       # Note: We can NOT use -z defs as we might desire, because we do not
10231       # link with -lc, and that would cause any symbols used from libc to
10232       # always be unresolved, which means just about no library would
10233       # ever link correctly.  If we're not using GNU ld we use -z text
10234       # though, which does catch some bad symbols but isn't as heavy-handed
10235       # as -z defs.
10236       no_undefined_flag='${wl}-z,text'
10237       allow_undefined_flag='${wl}-z,nodefs'
10238       archive_cmds_need_lc=no
10239       hardcode_shlibpath_var=no
10240       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10241       hardcode_libdir_separator=':'
10242       link_all_deplibs=yes
10243       export_dynamic_flag_spec='${wl}-Bexport'
10244       runpath_var='LD_RUN_PATH'
10245
10246       if test "$GCC" = yes; then
10247         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249       else
10250         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252       fi
10253       ;;
10254
10255     uts4*)
10256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257       hardcode_libdir_flag_spec='-L$libdir'
10258       hardcode_shlibpath_var=no
10259       ;;
10260
10261     *)
10262       ld_shlibs=no
10263       ;;
10264     esac
10265
10266     if test x$host_vendor = xsni; then
10267       case $host in
10268       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10269         export_dynamic_flag_spec='${wl}-Blargedynsym'
10270         ;;
10271       esac
10272     fi
10273   fi
10274
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10276 $as_echo "$ld_shlibs" >&6; }
10277 test "$ld_shlibs" = no && can_build_shared=no
10278
10279 with_gnu_ld=$with_gnu_ld
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295 #
10296 # Do we need to explicitly link libc?
10297 #
10298 case "x$archive_cmds_need_lc" in
10299 x|xyes)
10300   # Assume -lc should be added
10301   archive_cmds_need_lc=yes
10302
10303   if test "$enable_shared" = yes && test "$GCC" = yes; then
10304     case $archive_cmds in
10305     *'~'*)
10306       # FIXME: we may have to deal with multi-command sequences.
10307       ;;
10308     '$CC '*)
10309       # Test whether the compiler implicitly links with -lc since on some
10310       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10311       # to ld, don't add -lc before -lgcc.
10312       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10314 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10315   $as_echo_n "(cached) " >&6
10316 else
10317   $RM conftest*
10318         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10319
10320         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10321   (eval $ac_compile) 2>&5
10322   ac_status=$?
10323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10324   test $ac_status = 0; } 2>conftest.err; then
10325           soname=conftest
10326           lib=conftest
10327           libobjs=conftest.$ac_objext
10328           deplibs=
10329           wl=$lt_prog_compiler_wl
10330           pic_flag=$lt_prog_compiler_pic
10331           compiler_flags=-v
10332           linker_flags=-v
10333           verstring=
10334           output_objdir=.
10335           libname=conftest
10336           lt_save_allow_undefined_flag=$allow_undefined_flag
10337           allow_undefined_flag=
10338           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10339   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10340   ac_status=$?
10341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10342   test $ac_status = 0; }
10343           then
10344             lt_cv_archive_cmds_need_lc=no
10345           else
10346             lt_cv_archive_cmds_need_lc=yes
10347           fi
10348           allow_undefined_flag=$lt_save_allow_undefined_flag
10349         else
10350           cat conftest.err 1>&5
10351         fi
10352         $RM conftest*
10353
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10356 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10357       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10358       ;;
10359     esac
10360   fi
10361   ;;
10362 esac
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10517
10518 if test "$GCC" = yes; then
10519   case $host_os in
10520     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521     *) lt_awk_arg="/^libraries:/" ;;
10522   esac
10523   case $host_os in
10524     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525     *) lt_sed_strip_eq="s,=/,/,g" ;;
10526   esac
10527   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528   case $lt_search_path_spec in
10529   *\;*)
10530     # if the path contains ";" then we assume it to be the separator
10531     # otherwise default to the standard path separator (i.e. ":") - it is
10532     # assumed that no part of a normal pathname contains ";" but that should
10533     # okay in the real world where ";" in dirpaths is itself problematic.
10534     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535     ;;
10536   *)
10537     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10538     ;;
10539   esac
10540   # Ok, now we have the path, separated by spaces, we can step through it
10541   # and add multilib dir if necessary.
10542   lt_tmp_lt_search_path_spec=
10543   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544   for lt_sys_path in $lt_search_path_spec; do
10545     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10547     else
10548       test -d "$lt_sys_path" && \
10549         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10550     fi
10551   done
10552   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10553 BEGIN {RS=" "; FS="/|\n";} {
10554   lt_foo="";
10555   lt_count=0;
10556   for (lt_i = NF; lt_i > 0; lt_i--) {
10557     if ($lt_i != "" && $lt_i != ".") {
10558       if ($lt_i == "..") {
10559         lt_count++;
10560       } else {
10561         if (lt_count == 0) {
10562           lt_foo="/" $lt_i lt_foo;
10563         } else {
10564           lt_count--;
10565         }
10566       }
10567     }
10568   }
10569   if (lt_foo != "") { lt_freq[lt_foo]++; }
10570   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10571 }'`
10572   # AWK program above erroneously prepends '/' to C:/dos/paths
10573   # for these hosts.
10574   case $host_os in
10575     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10577   esac
10578   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10579 else
10580   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10581 fi
10582 library_names_spec=
10583 libname_spec='lib$name'
10584 soname_spec=
10585 shrext_cmds=".so"
10586 postinstall_cmds=
10587 postuninstall_cmds=
10588 finish_cmds=
10589 finish_eval=
10590 shlibpath_var=
10591 shlibpath_overrides_runpath=unknown
10592 version_type=none
10593 dynamic_linker="$host_os ld.so"
10594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595 need_lib_prefix=unknown
10596 hardcode_into_libs=no
10597
10598 # when you set need_version to no, make sure it does not cause -set_version
10599 # flags to be left without arguments
10600 need_version=unknown
10601
10602 case $host_os in
10603 aix3*)
10604   version_type=linux # correct to gnu/linux during the next big refactor
10605   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606   shlibpath_var=LIBPATH
10607
10608   # AIX 3 has no versioning support, so we append a major version to the name.
10609   soname_spec='${libname}${release}${shared_ext}$major'
10610   ;;
10611
10612 aix[4-9]*)
10613   version_type=linux # correct to gnu/linux during the next big refactor
10614   need_lib_prefix=no
10615   need_version=no
10616   hardcode_into_libs=yes
10617   if test "$host_cpu" = ia64; then
10618     # AIX 5 supports IA64
10619     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620     shlibpath_var=LD_LIBRARY_PATH
10621   else
10622     # With GCC up to 2.95.x, collect2 would create an import file
10623     # for dependence libraries.  The import file would start with
10624     # the line `#! .'.  This would cause the generated library to
10625     # depend on `.', always an invalid library.  This was fixed in
10626     # development snapshots of GCC prior to 3.0.
10627     case $host_os in
10628       aix4 | aix4.[01] | aix4.[01].*)
10629       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630            echo ' yes '
10631            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10632         :
10633       else
10634         can_build_shared=no
10635       fi
10636       ;;
10637     esac
10638     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639     # soname into executable. Probably we can add versioning support to
10640     # collect2, so additional links can be useful in future.
10641     if test "$aix_use_runtimelinking" = yes; then
10642       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643       # instead of lib<name>.a to let people know that these are not
10644       # typical AIX shared libraries.
10645       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646     else
10647       # We preserve .a as extension for shared libraries through AIX4.2
10648       # and later when we are not doing run time linking.
10649       library_names_spec='${libname}${release}.a $libname.a'
10650       soname_spec='${libname}${release}${shared_ext}$major'
10651     fi
10652     shlibpath_var=LIBPATH
10653   fi
10654   ;;
10655
10656 amigaos*)
10657   case $host_cpu in
10658   powerpc)
10659     # Since July 2007 AmigaOS4 officially supports .so libraries.
10660     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662     ;;
10663   m68k)
10664     library_names_spec='$libname.ixlibrary $libname.a'
10665     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10666     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'
10667     ;;
10668   esac
10669   ;;
10670
10671 beos*)
10672   library_names_spec='${libname}${shared_ext}'
10673   dynamic_linker="$host_os ld.so"
10674   shlibpath_var=LIBRARY_PATH
10675   ;;
10676
10677 bsdi[45]*)
10678   version_type=linux # correct to gnu/linux during the next big refactor
10679   need_version=no
10680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681   soname_spec='${libname}${release}${shared_ext}$major'
10682   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683   shlibpath_var=LD_LIBRARY_PATH
10684   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686   # the default ld.so.conf also contains /usr/contrib/lib and
10687   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688   # libtool to hard-code these into programs
10689   ;;
10690
10691 cygwin* | mingw* | pw32* | cegcc*)
10692   version_type=windows
10693   shrext_cmds=".dll"
10694   need_version=no
10695   need_lib_prefix=no
10696
10697   case $GCC,$cc_basename in
10698   yes,*)
10699     # gcc
10700     library_names_spec='$libname.dll.a'
10701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702     postinstall_cmds='base_file=`basename \${file}`~
10703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10704       dldir=$destdir/`dirname \$dlpath`~
10705       test -d \$dldir || mkdir -p \$dldir~
10706       $install_prog $dir/$dlname \$dldir/$dlname~
10707       chmod a+x \$dldir/$dlname~
10708       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10709         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10710       fi'
10711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712       dlpath=$dir/\$dldll~
10713        $RM \$dlpath'
10714     shlibpath_overrides_runpath=yes
10715
10716     case $host_os in
10717     cygwin*)
10718       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10719       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720
10721       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10722       ;;
10723     mingw* | cegcc*)
10724       # MinGW DLLs use traditional 'lib' prefix
10725       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726       ;;
10727     pw32*)
10728       # pw32 DLLs use 'pw' prefix rather than 'lib'
10729       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730       ;;
10731     esac
10732     dynamic_linker='Win32 ld.exe'
10733     ;;
10734
10735   *,cl*)
10736     # Native MSVC
10737     libname_spec='$name'
10738     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739     library_names_spec='${libname}.dll.lib'
10740
10741     case $build_os in
10742     mingw*)
10743       sys_lib_search_path_spec=
10744       lt_save_ifs=$IFS
10745       IFS=';'
10746       for lt_path in $LIB
10747       do
10748         IFS=$lt_save_ifs
10749         # Let DOS variable expansion print the short 8.3 style file name.
10750         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10751         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10752       done
10753       IFS=$lt_save_ifs
10754       # Convert to MSYS style.
10755       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10756       ;;
10757     cygwin*)
10758       # Convert to unix form, then to dos form, then back to unix form
10759       # but this time dos style (no spaces!) so that the unix form looks
10760       # like /cygdrive/c/PROGRA~1:/cygdr...
10761       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10762       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10763       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10764       ;;
10765     *)
10766       sys_lib_search_path_spec="$LIB"
10767       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10768         # It is most probably a Windows format PATH.
10769         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10770       else
10771         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10772       fi
10773       # FIXME: find the short name or the path components, as spaces are
10774       # common. (e.g. "Program Files" -> "PROGRA~1")
10775       ;;
10776     esac
10777
10778     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10779     postinstall_cmds='base_file=`basename \${file}`~
10780       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10781       dldir=$destdir/`dirname \$dlpath`~
10782       test -d \$dldir || mkdir -p \$dldir~
10783       $install_prog $dir/$dlname \$dldir/$dlname'
10784     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10785       dlpath=$dir/\$dldll~
10786        $RM \$dlpath'
10787     shlibpath_overrides_runpath=yes
10788     dynamic_linker='Win32 link.exe'
10789     ;;
10790
10791   *)
10792     # Assume MSVC wrapper
10793     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10794     dynamic_linker='Win32 ld.exe'
10795     ;;
10796   esac
10797   # FIXME: first we should search . and the directory the executable is in
10798   shlibpath_var=PATH
10799   ;;
10800
10801 darwin* | rhapsody*)
10802   dynamic_linker="$host_os dyld"
10803   version_type=darwin
10804   need_lib_prefix=no
10805   need_version=no
10806   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10807   soname_spec='${libname}${release}${major}$shared_ext'
10808   shlibpath_overrides_runpath=yes
10809   shlibpath_var=DYLD_LIBRARY_PATH
10810   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10811
10812   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10813   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10814   ;;
10815
10816 dgux*)
10817   version_type=linux # correct to gnu/linux during the next big refactor
10818   need_lib_prefix=no
10819   need_version=no
10820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10821   soname_spec='${libname}${release}${shared_ext}$major'
10822   shlibpath_var=LD_LIBRARY_PATH
10823   ;;
10824
10825 freebsd* | dragonfly*)
10826   # DragonFly does not have aout.  When/if they implement a new
10827   # versioning mechanism, adjust this.
10828   if test -x /usr/bin/objformat; then
10829     objformat=`/usr/bin/objformat`
10830   else
10831     case $host_os in
10832     freebsd[23].*) objformat=aout ;;
10833     *) objformat=elf ;;
10834     esac
10835   fi
10836   version_type=freebsd-$objformat
10837   case $version_type in
10838     freebsd-elf*)
10839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10840       need_version=no
10841       need_lib_prefix=no
10842       ;;
10843     freebsd-*)
10844       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10845       need_version=yes
10846       ;;
10847   esac
10848   shlibpath_var=LD_LIBRARY_PATH
10849   case $host_os in
10850   freebsd2.*)
10851     shlibpath_overrides_runpath=yes
10852     ;;
10853   freebsd3.[01]* | freebsdelf3.[01]*)
10854     shlibpath_overrides_runpath=yes
10855     hardcode_into_libs=yes
10856     ;;
10857   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10858   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10859     shlibpath_overrides_runpath=no
10860     hardcode_into_libs=yes
10861     ;;
10862   *) # from 4.6 on, and DragonFly
10863     shlibpath_overrides_runpath=yes
10864     hardcode_into_libs=yes
10865     ;;
10866   esac
10867   ;;
10868
10869 gnu*)
10870   version_type=linux # correct to gnu/linux during the next big refactor
10871   need_lib_prefix=no
10872   need_version=no
10873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10874   soname_spec='${libname}${release}${shared_ext}$major'
10875   shlibpath_var=LD_LIBRARY_PATH
10876   shlibpath_overrides_runpath=no
10877   hardcode_into_libs=yes
10878   ;;
10879
10880 haiku*)
10881   version_type=linux # correct to gnu/linux during the next big refactor
10882   need_lib_prefix=no
10883   need_version=no
10884   dynamic_linker="$host_os runtime_loader"
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   shlibpath_var=LIBRARY_PATH
10888   shlibpath_overrides_runpath=yes
10889   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10890   hardcode_into_libs=yes
10891   ;;
10892
10893 hpux9* | hpux10* | hpux11*)
10894   # Give a soname corresponding to the major version so that dld.sl refuses to
10895   # link against other versions.
10896   version_type=sunos
10897   need_lib_prefix=no
10898   need_version=no
10899   case $host_cpu in
10900   ia64*)
10901     shrext_cmds='.so'
10902     hardcode_into_libs=yes
10903     dynamic_linker="$host_os dld.so"
10904     shlibpath_var=LD_LIBRARY_PATH
10905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907     soname_spec='${libname}${release}${shared_ext}$major'
10908     if test "X$HPUX_IA64_MODE" = X32; then
10909       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10910     else
10911       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10912     fi
10913     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10914     ;;
10915   hppa*64*)
10916     shrext_cmds='.sl'
10917     hardcode_into_libs=yes
10918     dynamic_linker="$host_os dld.sl"
10919     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10920     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922     soname_spec='${libname}${release}${shared_ext}$major'
10923     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10924     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10925     ;;
10926   *)
10927     shrext_cmds='.sl'
10928     dynamic_linker="$host_os dld.sl"
10929     shlibpath_var=SHLIB_PATH
10930     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932     soname_spec='${libname}${release}${shared_ext}$major'
10933     ;;
10934   esac
10935   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10936   postinstall_cmds='chmod 555 $lib'
10937   # or fails outright, so override atomically:
10938   install_override_mode=555
10939   ;;
10940
10941 interix[3-9]*)
10942   version_type=linux # correct to gnu/linux during the next big refactor
10943   need_lib_prefix=no
10944   need_version=no
10945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10946   soname_spec='${libname}${release}${shared_ext}$major'
10947   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   shlibpath_overrides_runpath=no
10950   hardcode_into_libs=yes
10951   ;;
10952
10953 irix5* | irix6* | nonstopux*)
10954   case $host_os in
10955     nonstopux*) version_type=nonstopux ;;
10956     *)
10957         if test "$lt_cv_prog_gnu_ld" = yes; then
10958                 version_type=linux # correct to gnu/linux during the next big refactor
10959         else
10960                 version_type=irix
10961         fi ;;
10962   esac
10963   need_lib_prefix=no
10964   need_version=no
10965   soname_spec='${libname}${release}${shared_ext}$major'
10966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10967   case $host_os in
10968   irix5* | nonstopux*)
10969     libsuff= shlibsuff=
10970     ;;
10971   *)
10972     case $LD in # libtool.m4 will add one of these switches to LD
10973     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10974       libsuff= shlibsuff= libmagic=32-bit;;
10975     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10976       libsuff=32 shlibsuff=N32 libmagic=N32;;
10977     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10978       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10979     *) libsuff= shlibsuff= libmagic=never-match;;
10980     esac
10981     ;;
10982   esac
10983   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10984   shlibpath_overrides_runpath=no
10985   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10986   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10987   hardcode_into_libs=yes
10988   ;;
10989
10990 # No shared lib support for Linux oldld, aout, or coff.
10991 linux*oldld* | linux*aout* | linux*coff*)
10992   dynamic_linker=no
10993   ;;
10994
10995 # This must be glibc/ELF.
10996 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10997   version_type=linux # correct to gnu/linux during the next big refactor
10998   need_lib_prefix=no
10999   need_version=no
11000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001   soname_spec='${libname}${release}${shared_ext}$major'
11002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11003   shlibpath_var=LD_LIBRARY_PATH
11004   shlibpath_overrides_runpath=no
11005
11006   # Some binutils ld are patched to set DT_RUNPATH
11007   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   lt_cv_shlibpath_overrides_runpath=no
11011     save_LDFLAGS=$LDFLAGS
11012     save_libdir=$libdir
11013     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11014          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h.  */
11017
11018 int
11019 main ()
11020 {
11021
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"; then :
11027   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11028   lt_cv_shlibpath_overrides_runpath=yes
11029 fi
11030 fi
11031 rm -f core conftest.err conftest.$ac_objext \
11032     conftest$ac_exeext conftest.$ac_ext
11033     LDFLAGS=$save_LDFLAGS
11034     libdir=$save_libdir
11035
11036 fi
11037
11038   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11039
11040   # This implies no fast_install, which is unacceptable.
11041   # Some rework will be needed to allow for fast_install
11042   # before this can be enabled.
11043   hardcode_into_libs=yes
11044
11045   # Append ld.so.conf contents to the search path
11046   if test -f /etc/ld.so.conf; then
11047     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' ' '`
11048     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11049   fi
11050
11051   # We used to test for /lib/ld.so.1 and disable shared libraries on
11052   # powerpc, because MkLinux only supported shared libraries with the
11053   # GNU dynamic linker.  Since this was broken with cross compilers,
11054   # most powerpc-linux boxes support dynamic linking these days and
11055   # people can always --disable-shared, the test was removed, and we
11056   # assume the GNU/Linux dynamic linker is in use.
11057   dynamic_linker='GNU/Linux ld.so'
11058   ;;
11059
11060 netbsdelf*-gnu)
11061   version_type=linux
11062   need_lib_prefix=no
11063   need_version=no
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   shlibpath_var=LD_LIBRARY_PATH
11067   shlibpath_overrides_runpath=no
11068   hardcode_into_libs=yes
11069   dynamic_linker='NetBSD ld.elf_so'
11070   ;;
11071
11072 netbsd*)
11073   version_type=sunos
11074   need_lib_prefix=no
11075   need_version=no
11076   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079     dynamic_linker='NetBSD (a.out) ld.so'
11080   else
11081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11082     soname_spec='${libname}${release}${shared_ext}$major'
11083     dynamic_linker='NetBSD ld.elf_so'
11084   fi
11085   shlibpath_var=LD_LIBRARY_PATH
11086   shlibpath_overrides_runpath=yes
11087   hardcode_into_libs=yes
11088   ;;
11089
11090 newsos6)
11091   version_type=linux # correct to gnu/linux during the next big refactor
11092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   shlibpath_overrides_runpath=yes
11095   ;;
11096
11097 *nto* | *qnx*)
11098   version_type=qnx
11099   need_lib_prefix=no
11100   need_version=no
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102   soname_spec='${libname}${release}${shared_ext}$major'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=no
11105   hardcode_into_libs=yes
11106   dynamic_linker='ldqnx.so'
11107   ;;
11108
11109 openbsd*)
11110   version_type=sunos
11111   sys_lib_dlsearch_path_spec="/usr/lib"
11112   need_lib_prefix=no
11113   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11114   case $host_os in
11115     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11116     *)                          need_version=no  ;;
11117   esac
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11122     case $host_os in
11123       openbsd2.[89] | openbsd2.[89].*)
11124         shlibpath_overrides_runpath=no
11125         ;;
11126       *)
11127         shlibpath_overrides_runpath=yes
11128         ;;
11129       esac
11130   else
11131     shlibpath_overrides_runpath=yes
11132   fi
11133   ;;
11134
11135 os2*)
11136   libname_spec='$name'
11137   shrext_cmds=".dll"
11138   need_lib_prefix=no
11139   library_names_spec='$libname${shared_ext} $libname.a'
11140   dynamic_linker='OS/2 ld.exe'
11141   shlibpath_var=LIBPATH
11142   ;;
11143
11144 osf3* | osf4* | osf5*)
11145   version_type=osf
11146   need_lib_prefix=no
11147   need_version=no
11148   soname_spec='${libname}${release}${shared_ext}$major'
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11152   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11153   ;;
11154
11155 rdos*)
11156   dynamic_linker=no
11157   ;;
11158
11159 solaris*)
11160   version_type=linux # correct to gnu/linux during the next big refactor
11161   need_lib_prefix=no
11162   need_version=no
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   soname_spec='${libname}${release}${shared_ext}$major'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   hardcode_into_libs=yes
11168   # ldd complains unless libraries are executable
11169   postinstall_cmds='chmod +x $lib'
11170   ;;
11171
11172 sunos4*)
11173   version_type=sunos
11174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11175   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11176   shlibpath_var=LD_LIBRARY_PATH
11177   shlibpath_overrides_runpath=yes
11178   if test "$with_gnu_ld" = yes; then
11179     need_lib_prefix=no
11180   fi
11181   need_version=yes
11182   ;;
11183
11184 sysv4 | sysv4.3*)
11185   version_type=linux # correct to gnu/linux during the next big refactor
11186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187   soname_spec='${libname}${release}${shared_ext}$major'
11188   shlibpath_var=LD_LIBRARY_PATH
11189   case $host_vendor in
11190     sni)
11191       shlibpath_overrides_runpath=no
11192       need_lib_prefix=no
11193       runpath_var=LD_RUN_PATH
11194       ;;
11195     siemens)
11196       need_lib_prefix=no
11197       ;;
11198     motorola)
11199       need_lib_prefix=no
11200       need_version=no
11201       shlibpath_overrides_runpath=no
11202       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203       ;;
11204   esac
11205   ;;
11206
11207 sysv4*MP*)
11208   if test -d /usr/nec ;then
11209     version_type=linux # correct to gnu/linux during the next big refactor
11210     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211     soname_spec='$libname${shared_ext}.$major'
11212     shlibpath_var=LD_LIBRARY_PATH
11213   fi
11214   ;;
11215
11216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11217   version_type=freebsd-elf
11218   need_lib_prefix=no
11219   need_version=no
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11221   soname_spec='${libname}${release}${shared_ext}$major'
11222   shlibpath_var=LD_LIBRARY_PATH
11223   shlibpath_overrides_runpath=yes
11224   hardcode_into_libs=yes
11225   if test "$with_gnu_ld" = yes; then
11226     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11227   else
11228     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11229     case $host_os in
11230       sco3.2v5*)
11231         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11232         ;;
11233     esac
11234   fi
11235   sys_lib_dlsearch_path_spec='/usr/lib'
11236   ;;
11237
11238 tpf*)
11239   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11240   version_type=linux # correct to gnu/linux during the next big refactor
11241   need_lib_prefix=no
11242   need_version=no
11243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   shlibpath_overrides_runpath=no
11246   hardcode_into_libs=yes
11247   ;;
11248
11249 uts4*)
11250   version_type=linux # correct to gnu/linux during the next big refactor
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252   soname_spec='${libname}${release}${shared_ext}$major'
11253   shlibpath_var=LD_LIBRARY_PATH
11254   ;;
11255
11256 *)
11257   dynamic_linker=no
11258   ;;
11259 esac
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11261 $as_echo "$dynamic_linker" >&6; }
11262 test "$dynamic_linker" = no && can_build_shared=no
11263
11264 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11265 if test "$GCC" = yes; then
11266   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11267 fi
11268
11269 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11270   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11271 fi
11272 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11273   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11368 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11369 hardcode_action=
11370 if test -n "$hardcode_libdir_flag_spec" ||
11371    test -n "$runpath_var" ||
11372    test "X$hardcode_automatic" = "Xyes" ; then
11373
11374   # We can hardcode non-existent directories.
11375   if test "$hardcode_direct" != no &&
11376      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11377      # have to relink, otherwise we might link with an installed library
11378      # when we should be linking with a yet-to-be-installed one
11379      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11380      test "$hardcode_minus_L" != no; then
11381     # Linking always hardcodes the temporary library directory.
11382     hardcode_action=relink
11383   else
11384     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11385     hardcode_action=immediate
11386   fi
11387 else
11388   # We cannot hardcode anything, or else we can only hardcode existing
11389   # directories.
11390   hardcode_action=unsupported
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11393 $as_echo "$hardcode_action" >&6; }
11394
11395 if test "$hardcode_action" = relink ||
11396    test "$inherit_rpath" = yes; then
11397   # Fast installation is not supported
11398   enable_fast_install=no
11399 elif test "$shlibpath_overrides_runpath" = yes ||
11400      test "$enable_shared" = no; then
11401   # Fast installation is not necessary
11402   enable_fast_install=needless
11403 fi
11404
11405
11406
11407
11408
11409
11410   if test "x$enable_dlopen" != xyes; then
11411   enable_dlopen=unknown
11412   enable_dlopen_self=unknown
11413   enable_dlopen_self_static=unknown
11414 else
11415   lt_cv_dlopen=no
11416   lt_cv_dlopen_libs=
11417
11418   case $host_os in
11419   beos*)
11420     lt_cv_dlopen="load_add_on"
11421     lt_cv_dlopen_libs=
11422     lt_cv_dlopen_self=yes
11423     ;;
11424
11425   mingw* | pw32* | cegcc*)
11426     lt_cv_dlopen="LoadLibrary"
11427     lt_cv_dlopen_libs=
11428     ;;
11429
11430   cygwin*)
11431     lt_cv_dlopen="dlopen"
11432     lt_cv_dlopen_libs=
11433     ;;
11434
11435   darwin*)
11436   # if libdl is installed we need to link against it
11437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11439 if ${ac_cv_lib_dl_dlopen+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldl  $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h.  */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448    Use char because int might match the return type of a GCC
11449    builtin and then its argument prototype would still apply.  */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char dlopen ();
11454 int
11455 main ()
11456 {
11457 return dlopen ();
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463   ac_cv_lib_dl_dlopen=yes
11464 else
11465   ac_cv_lib_dl_dlopen=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468     conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11473 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11474   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11475 else
11476
11477     lt_cv_dlopen="dyld"
11478     lt_cv_dlopen_libs=
11479     lt_cv_dlopen_self=yes
11480
11481 fi
11482
11483     ;;
11484
11485   *)
11486     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11487 if test "x$ac_cv_func_shl_load" = xyes; then :
11488   lt_cv_dlopen="shl_load"
11489 else
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11491 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11492 if ${ac_cv_lib_dld_shl_load+:} false; then :
11493   $as_echo_n "(cached) " >&6
11494 else
11495   ac_check_lib_save_LIBS=$LIBS
11496 LIBS="-ldld  $LIBS"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h.  */
11499
11500 /* Override any GCC internal prototype to avoid an error.
11501    Use char because int might match the return type of a GCC
11502    builtin and then its argument prototype would still apply.  */
11503 #ifdef __cplusplus
11504 extern "C"
11505 #endif
11506 char shl_load ();
11507 int
11508 main ()
11509 {
11510 return shl_load ();
11511   ;
11512   return 0;
11513 }
11514 _ACEOF
11515 if ac_fn_c_try_link "$LINENO"; then :
11516   ac_cv_lib_dld_shl_load=yes
11517 else
11518   ac_cv_lib_dld_shl_load=no
11519 fi
11520 rm -f core conftest.err conftest.$ac_objext \
11521     conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11525 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11526 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11527   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11528 else
11529   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11530 if test "x$ac_cv_func_dlopen" = xyes; then :
11531   lt_cv_dlopen="dlopen"
11532 else
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11535 if ${ac_cv_lib_dl_dlopen+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-ldl  $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h.  */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544    Use char because int might match the return type of a GCC
11545    builtin and then its argument prototype would still apply.  */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dlopen ();
11550 int
11551 main ()
11552 {
11553 return dlopen ();
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559   ac_cv_lib_dl_dlopen=yes
11560 else
11561   ac_cv_lib_dl_dlopen=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564     conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11573 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11574 if ${ac_cv_lib_svld_dlopen+:} false; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-lsvld  $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h.  */
11581
11582 /* Override any GCC internal prototype to avoid an error.
11583    Use char because int might match the return type of a GCC
11584    builtin and then its argument prototype would still apply.  */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char dlopen ();
11589 int
11590 main ()
11591 {
11592 return dlopen ();
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598   ac_cv_lib_svld_dlopen=yes
11599 else
11600   ac_cv_lib_svld_dlopen=no
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603     conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11607 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11608 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11609   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11610 else
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11612 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11613 if ${ac_cv_lib_dld_dld_link+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-ldld  $LIBS"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h.  */
11620
11621 /* Override any GCC internal prototype to avoid an error.
11622    Use char because int might match the return type of a GCC
11623    builtin and then its argument prototype would still apply.  */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char dld_link ();
11628 int
11629 main ()
11630 {
11631 return dld_link ();
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637   ac_cv_lib_dld_dld_link=yes
11638 else
11639   ac_cv_lib_dld_dld_link=no
11640 fi
11641 rm -f core conftest.err conftest.$ac_objext \
11642     conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11646 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11647 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11648   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11649 fi
11650
11651
11652 fi
11653
11654
11655 fi
11656
11657
11658 fi
11659
11660
11661 fi
11662
11663
11664 fi
11665
11666     ;;
11667   esac
11668
11669   if test "x$lt_cv_dlopen" != xno; then
11670     enable_dlopen=yes
11671   else
11672     enable_dlopen=no
11673   fi
11674
11675   case $lt_cv_dlopen in
11676   dlopen)
11677     save_CPPFLAGS="$CPPFLAGS"
11678     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11679
11680     save_LDFLAGS="$LDFLAGS"
11681     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11682
11683     save_LIBS="$LIBS"
11684     LIBS="$lt_cv_dlopen_libs $LIBS"
11685
11686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11687 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11688 if ${lt_cv_dlopen_self+:} false; then :
11689   $as_echo_n "(cached) " >&6
11690 else
11691           if test "$cross_compiling" = yes; then :
11692   lt_cv_dlopen_self=cross
11693 else
11694   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11695   lt_status=$lt_dlunknown
11696   cat > conftest.$ac_ext <<_LT_EOF
11697 #line $LINENO "configure"
11698 #include "confdefs.h"
11699
11700 #if HAVE_DLFCN_H
11701 #include <dlfcn.h>
11702 #endif
11703
11704 #include <stdio.h>
11705
11706 #ifdef RTLD_GLOBAL
11707 #  define LT_DLGLOBAL           RTLD_GLOBAL
11708 #else
11709 #  ifdef DL_GLOBAL
11710 #    define LT_DLGLOBAL         DL_GLOBAL
11711 #  else
11712 #    define LT_DLGLOBAL         0
11713 #  endif
11714 #endif
11715
11716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11717    find out it does not work in some platform. */
11718 #ifndef LT_DLLAZY_OR_NOW
11719 #  ifdef RTLD_LAZY
11720 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11721 #  else
11722 #    ifdef DL_LAZY
11723 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11724 #    else
11725 #      ifdef RTLD_NOW
11726 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11727 #      else
11728 #        ifdef DL_NOW
11729 #          define LT_DLLAZY_OR_NOW      DL_NOW
11730 #        else
11731 #          define LT_DLLAZY_OR_NOW      0
11732 #        endif
11733 #      endif
11734 #    endif
11735 #  endif
11736 #endif
11737
11738 /* When -fvisbility=hidden is used, assume the code has been annotated
11739    correspondingly for the symbols needed.  */
11740 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11741 int fnord () __attribute__((visibility("default")));
11742 #endif
11743
11744 int fnord () { return 42; }
11745 int main ()
11746 {
11747   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11748   int status = $lt_dlunknown;
11749
11750   if (self)
11751     {
11752       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11753       else
11754         {
11755           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11756           else puts (dlerror ());
11757         }
11758       /* dlclose (self); */
11759     }
11760   else
11761     puts (dlerror ());
11762
11763   return status;
11764 }
11765 _LT_EOF
11766   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11767   (eval $ac_link) 2>&5
11768   ac_status=$?
11769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11771     (./conftest; exit; ) >&5 2>/dev/null
11772     lt_status=$?
11773     case x$lt_status in
11774       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11775       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11776       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11777     esac
11778   else :
11779     # compilation failed
11780     lt_cv_dlopen_self=no
11781   fi
11782 fi
11783 rm -fr conftest*
11784
11785
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11788 $as_echo "$lt_cv_dlopen_self" >&6; }
11789
11790     if test "x$lt_cv_dlopen_self" = xyes; then
11791       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11792       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11793 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11794 if ${lt_cv_dlopen_self_static+:} false; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797           if test "$cross_compiling" = yes; then :
11798   lt_cv_dlopen_self_static=cross
11799 else
11800   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11801   lt_status=$lt_dlunknown
11802   cat > conftest.$ac_ext <<_LT_EOF
11803 #line $LINENO "configure"
11804 #include "confdefs.h"
11805
11806 #if HAVE_DLFCN_H
11807 #include <dlfcn.h>
11808 #endif
11809
11810 #include <stdio.h>
11811
11812 #ifdef RTLD_GLOBAL
11813 #  define LT_DLGLOBAL           RTLD_GLOBAL
11814 #else
11815 #  ifdef DL_GLOBAL
11816 #    define LT_DLGLOBAL         DL_GLOBAL
11817 #  else
11818 #    define LT_DLGLOBAL         0
11819 #  endif
11820 #endif
11821
11822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11823    find out it does not work in some platform. */
11824 #ifndef LT_DLLAZY_OR_NOW
11825 #  ifdef RTLD_LAZY
11826 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11827 #  else
11828 #    ifdef DL_LAZY
11829 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11830 #    else
11831 #      ifdef RTLD_NOW
11832 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11833 #      else
11834 #        ifdef DL_NOW
11835 #          define LT_DLLAZY_OR_NOW      DL_NOW
11836 #        else
11837 #          define LT_DLLAZY_OR_NOW      0
11838 #        endif
11839 #      endif
11840 #    endif
11841 #  endif
11842 #endif
11843
11844 /* When -fvisbility=hidden is used, assume the code has been annotated
11845    correspondingly for the symbols needed.  */
11846 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11847 int fnord () __attribute__((visibility("default")));
11848 #endif
11849
11850 int fnord () { return 42; }
11851 int main ()
11852 {
11853   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11854   int status = $lt_dlunknown;
11855
11856   if (self)
11857     {
11858       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11859       else
11860         {
11861           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11862           else puts (dlerror ());
11863         }
11864       /* dlclose (self); */
11865     }
11866   else
11867     puts (dlerror ());
11868
11869   return status;
11870 }
11871 _LT_EOF
11872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11873   (eval $ac_link) 2>&5
11874   ac_status=$?
11875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11877     (./conftest; exit; ) >&5 2>/dev/null
11878     lt_status=$?
11879     case x$lt_status in
11880       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11881       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11882       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11883     esac
11884   else :
11885     # compilation failed
11886     lt_cv_dlopen_self_static=no
11887   fi
11888 fi
11889 rm -fr conftest*
11890
11891
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11894 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11895     fi
11896
11897     CPPFLAGS="$save_CPPFLAGS"
11898     LDFLAGS="$save_LDFLAGS"
11899     LIBS="$save_LIBS"
11900     ;;
11901   esac
11902
11903   case $lt_cv_dlopen_self in
11904   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11905   *) enable_dlopen_self=unknown ;;
11906   esac
11907
11908   case $lt_cv_dlopen_self_static in
11909   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11910   *) enable_dlopen_self_static=unknown ;;
11911   esac
11912 fi
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930 striplib=
11931 old_striplib=
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11933 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11934 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11935   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11936   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11939 else
11940 # FIXME - insert some real tests, host_os isn't really good enough
11941   case $host_os in
11942   darwin*)
11943     if test -n "$STRIP" ; then
11944       striplib="$STRIP -x"
11945       old_striplib="$STRIP -S"
11946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947 $as_echo "yes" >&6; }
11948     else
11949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951     fi
11952     ;;
11953   *)
11954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956     ;;
11957   esac
11958 fi
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971   # Report which library types will actually be built
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11973 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11975 $as_echo "$can_build_shared" >&6; }
11976
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11978 $as_echo_n "checking whether to build shared libraries... " >&6; }
11979   test "$can_build_shared" = "no" && enable_shared=no
11980
11981   # On AIX, shared libraries and static libraries use the same namespace, and
11982   # are all built from PIC.
11983   case $host_os in
11984   aix3*)
11985     test "$enable_shared" = yes && enable_static=no
11986     if test -n "$RANLIB"; then
11987       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11988       postinstall_cmds='$RANLIB $lib'
11989     fi
11990     ;;
11991
11992   aix[4-9]*)
11993     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11994       test "$enable_shared" = yes && enable_static=no
11995     fi
11996     ;;
11997   esac
11998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11999 $as_echo "$enable_shared" >&6; }
12000
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12002 $as_echo_n "checking whether to build static libraries... " >&6; }
12003   # Make sure either enable_shared or enable_static is yes.
12004   test "$enable_shared" = yes || enable_static=yes
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12006 $as_echo "$enable_static" >&6; }
12007
12008
12009
12010
12011 fi
12012 ac_ext=c
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018 CC="$lt_save_CC"
12019
12020       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12021     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12022     (test "X$CXX" != "Xg++"))) ; then
12023   ac_ext=cpp
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12029 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12030 if test -z "$CXXCPP"; then
12031   if ${ac_cv_prog_CXXCPP+:} false; then :
12032   $as_echo_n "(cached) " >&6
12033 else
12034       # Double quotes because CXXCPP needs to be expanded
12035     for CXXCPP in "$CXX -E" "/lib/cpp"
12036     do
12037       ac_preproc_ok=false
12038 for ac_cxx_preproc_warn_flag in '' yes
12039 do
12040   # Use a header file that comes with gcc, so configuring glibc
12041   # with a fresh cross-compiler works.
12042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043   # <limits.h> exists even on freestanding compilers.
12044   # On the NeXT, cc -E runs the code through the compiler's parser,
12045   # not just through cpp. "Syntax error" is here to catch this case.
12046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h.  */
12048 #ifdef __STDC__
12049 # include <limits.h>
12050 #else
12051 # include <assert.h>
12052 #endif
12053                      Syntax error
12054 _ACEOF
12055 if ac_fn_cxx_try_cpp "$LINENO"; then :
12056
12057 else
12058   # Broken: fails on valid input.
12059 continue
12060 fi
12061 rm -f conftest.err conftest.i conftest.$ac_ext
12062
12063   # OK, works on sane cases.  Now check whether nonexistent headers
12064   # can be detected and how.
12065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h.  */
12067 #include <ac_nonexistent.h>
12068 _ACEOF
12069 if ac_fn_cxx_try_cpp "$LINENO"; then :
12070   # Broken: success on invalid input.
12071 continue
12072 else
12073   # Passes both tests.
12074 ac_preproc_ok=:
12075 break
12076 fi
12077 rm -f conftest.err conftest.i conftest.$ac_ext
12078
12079 done
12080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12081 rm -f conftest.i conftest.err conftest.$ac_ext
12082 if $ac_preproc_ok; then :
12083   break
12084 fi
12085
12086     done
12087     ac_cv_prog_CXXCPP=$CXXCPP
12088
12089 fi
12090   CXXCPP=$ac_cv_prog_CXXCPP
12091 else
12092   ac_cv_prog_CXXCPP=$CXXCPP
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12095 $as_echo "$CXXCPP" >&6; }
12096 ac_preproc_ok=false
12097 for ac_cxx_preproc_warn_flag in '' yes
12098 do
12099   # Use a header file that comes with gcc, so configuring glibc
12100   # with a fresh cross-compiler works.
12101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102   # <limits.h> exists even on freestanding compilers.
12103   # On the NeXT, cc -E runs the code through the compiler's parser,
12104   # not just through cpp. "Syntax error" is here to catch this case.
12105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h.  */
12107 #ifdef __STDC__
12108 # include <limits.h>
12109 #else
12110 # include <assert.h>
12111 #endif
12112                      Syntax error
12113 _ACEOF
12114 if ac_fn_cxx_try_cpp "$LINENO"; then :
12115
12116 else
12117   # Broken: fails on valid input.
12118 continue
12119 fi
12120 rm -f conftest.err conftest.i conftest.$ac_ext
12121
12122   # OK, works on sane cases.  Now check whether nonexistent headers
12123   # can be detected and how.
12124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h.  */
12126 #include <ac_nonexistent.h>
12127 _ACEOF
12128 if ac_fn_cxx_try_cpp "$LINENO"; then :
12129   # Broken: success on invalid input.
12130 continue
12131 else
12132   # Passes both tests.
12133 ac_preproc_ok=:
12134 break
12135 fi
12136 rm -f conftest.err conftest.i conftest.$ac_ext
12137
12138 done
12139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12140 rm -f conftest.i conftest.err conftest.$ac_ext
12141 if $ac_preproc_ok; then :
12142
12143 else
12144   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12146 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12147 See \`config.log' for more details" "$LINENO" 5; }
12148 fi
12149
12150 ac_ext=c
12151 ac_cpp='$CPP $CPPFLAGS'
12152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156 else
12157   _lt_caught_CXX_error=yes
12158 fi
12159
12160 ac_ext=cpp
12161 ac_cpp='$CXXCPP $CPPFLAGS'
12162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12165
12166 archive_cmds_need_lc_CXX=no
12167 allow_undefined_flag_CXX=
12168 always_export_symbols_CXX=no
12169 archive_expsym_cmds_CXX=
12170 compiler_needs_object_CXX=no
12171 export_dynamic_flag_spec_CXX=
12172 hardcode_direct_CXX=no
12173 hardcode_direct_absolute_CXX=no
12174 hardcode_libdir_flag_spec_CXX=
12175 hardcode_libdir_separator_CXX=
12176 hardcode_minus_L_CXX=no
12177 hardcode_shlibpath_var_CXX=unsupported
12178 hardcode_automatic_CXX=no
12179 inherit_rpath_CXX=no
12180 module_cmds_CXX=
12181 module_expsym_cmds_CXX=
12182 link_all_deplibs_CXX=unknown
12183 old_archive_cmds_CXX=$old_archive_cmds
12184 reload_flag_CXX=$reload_flag
12185 reload_cmds_CXX=$reload_cmds
12186 no_undefined_flag_CXX=
12187 whole_archive_flag_spec_CXX=
12188 enable_shared_with_static_runtimes_CXX=no
12189
12190 # Source file extension for C++ test sources.
12191 ac_ext=cpp
12192
12193 # Object file extension for compiled C++ test sources.
12194 objext=o
12195 objext_CXX=$objext
12196
12197 # No sense in running all these tests if we already determined that
12198 # the CXX compiler isn't working.  Some variables (like enable_shared)
12199 # are currently assumed to apply to all compilers on this platform,
12200 # and will be corrupted by setting them based on a non-working compiler.
12201 if test "$_lt_caught_CXX_error" != yes; then
12202   # Code to be used in simple compile tests
12203   lt_simple_compile_test_code="int some_variable = 0;"
12204
12205   # Code to be used in simple link tests
12206   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12207
12208   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12209
12210
12211
12212
12213
12214
12215 # If no C compiler was specified, use CC.
12216 LTCC=${LTCC-"$CC"}
12217
12218 # If no C compiler flags were specified, use CFLAGS.
12219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12220
12221 # Allow CC to be a program name with arguments.
12222 compiler=$CC
12223
12224
12225   # save warnings/boilerplate of simple test code
12226   ac_outfile=conftest.$ac_objext
12227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12229 _lt_compiler_boilerplate=`cat conftest.err`
12230 $RM conftest*
12231
12232   ac_outfile=conftest.$ac_objext
12233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_linker_boilerplate=`cat conftest.err`
12236 $RM -r conftest*
12237
12238
12239   # Allow CC to be a program name with arguments.
12240   lt_save_CC=$CC
12241   lt_save_CFLAGS=$CFLAGS
12242   lt_save_LD=$LD
12243   lt_save_GCC=$GCC
12244   GCC=$GXX
12245   lt_save_with_gnu_ld=$with_gnu_ld
12246   lt_save_path_LD=$lt_cv_path_LD
12247   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12248     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12249   else
12250     $as_unset lt_cv_prog_gnu_ld
12251   fi
12252   if test -n "${lt_cv_path_LDCXX+set}"; then
12253     lt_cv_path_LD=$lt_cv_path_LDCXX
12254   else
12255     $as_unset lt_cv_path_LD
12256   fi
12257   test -z "${LDCXX+set}" || LD=$LDCXX
12258   CC=${CXX-"c++"}
12259   CFLAGS=$CXXFLAGS
12260   compiler=$CC
12261   compiler_CXX=$CC
12262   for cc_temp in $compiler""; do
12263   case $cc_temp in
12264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12266     \-*) ;;
12267     *) break;;
12268   esac
12269 done
12270 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12271
12272
12273   if test -n "$compiler"; then
12274     # We don't want -fno-exception when compiling C++ code, so set the
12275     # no_builtin_flag separately
12276     if test "$GXX" = yes; then
12277       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12278     else
12279       lt_prog_compiler_no_builtin_flag_CXX=
12280     fi
12281
12282     if test "$GXX" = yes; then
12283       # Set up default GNU C++ configuration
12284
12285
12286
12287 # Check whether --with-gnu-ld was given.
12288 if test "${with_gnu_ld+set}" = set; then :
12289   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12290 else
12291   with_gnu_ld=no
12292 fi
12293
12294 ac_prog=ld
12295 if test "$GCC" = yes; then
12296   # Check if gcc -print-prog-name=ld gives a path.
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12298 $as_echo_n "checking for ld used by $CC... " >&6; }
12299   case $host in
12300   *-*-mingw*)
12301     # gcc leaves a trailing carriage return which upsets mingw
12302     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12303   *)
12304     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12305   esac
12306   case $ac_prog in
12307     # Accept absolute paths.
12308     [\\/]* | ?:[\\/]*)
12309       re_direlt='/[^/][^/]*/\.\./'
12310       # Canonicalize the pathname of ld
12311       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12312       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12313         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12314       done
12315       test -z "$LD" && LD="$ac_prog"
12316       ;;
12317   "")
12318     # If it fails, then pretend we aren't using GCC.
12319     ac_prog=ld
12320     ;;
12321   *)
12322     # If it is relative, then search for the first ld in PATH.
12323     with_gnu_ld=unknown
12324     ;;
12325   esac
12326 elif test "$with_gnu_ld" = yes; then
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12328 $as_echo_n "checking for GNU ld... " >&6; }
12329 else
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12331 $as_echo_n "checking for non-GNU ld... " >&6; }
12332 fi
12333 if ${lt_cv_path_LD+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   if test -z "$LD"; then
12337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12338   for ac_dir in $PATH; do
12339     IFS="$lt_save_ifs"
12340     test -z "$ac_dir" && ac_dir=.
12341     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12342       lt_cv_path_LD="$ac_dir/$ac_prog"
12343       # Check to see if the program is GNU ld.  I'd rather use --version,
12344       # but apparently some variants of GNU ld only accept -v.
12345       # Break only if it was the GNU/non-GNU ld that we prefer.
12346       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12347       *GNU* | *'with BFD'*)
12348         test "$with_gnu_ld" != no && break
12349         ;;
12350       *)
12351         test "$with_gnu_ld" != yes && break
12352         ;;
12353       esac
12354     fi
12355   done
12356   IFS="$lt_save_ifs"
12357 else
12358   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12359 fi
12360 fi
12361
12362 LD="$lt_cv_path_LD"
12363 if test -n "$LD"; then
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12365 $as_echo "$LD" >&6; }
12366 else
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 fi
12370 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12373 if ${lt_cv_prog_gnu_ld+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12377 case `$LD -v 2>&1 </dev/null` in
12378 *GNU* | *'with BFD'*)
12379   lt_cv_prog_gnu_ld=yes
12380   ;;
12381 *)
12382   lt_cv_prog_gnu_ld=no
12383   ;;
12384 esac
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12387 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12388 with_gnu_ld=$lt_cv_prog_gnu_ld
12389
12390
12391
12392
12393
12394
12395
12396       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12397       # archiving commands below assume that GNU ld is being used.
12398       if test "$with_gnu_ld" = yes; then
12399         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400         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'
12401
12402         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12403         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12404
12405         # If archive_cmds runs LD, not CC, wlarc should be empty
12406         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12407         #     investigate it a little bit more. (MM)
12408         wlarc='${wl}'
12409
12410         # ancient GNU ld didn't support --whole-archive et. al.
12411         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12412           $GREP 'no-whole-archive' > /dev/null; then
12413           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12414         else
12415           whole_archive_flag_spec_CXX=
12416         fi
12417       else
12418         with_gnu_ld=no
12419         wlarc=
12420
12421         # A generic and very simple default shared library creation
12422         # command for GNU C++ for the case where it uses the native
12423         # linker, instead of GNU ld.  If possible, this setting should
12424         # overridden to take advantage of the native linker features on
12425         # the platform it is being used on.
12426         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12427       fi
12428
12429       # Commands to make compiler produce verbose output that lists
12430       # what "hidden" libraries, object files and flags are used when
12431       # linking a shared library.
12432       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12433
12434     else
12435       GXX=no
12436       with_gnu_ld=no
12437       wlarc=
12438     fi
12439
12440     # PORTME: fill in a description of your system's C++ link characteristics
12441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12443     ld_shlibs_CXX=yes
12444     case $host_os in
12445       aix3*)
12446         # FIXME: insert proper C++ library support
12447         ld_shlibs_CXX=no
12448         ;;
12449       aix[4-9]*)
12450         if test "$host_cpu" = ia64; then
12451           # On IA64, the linker does run time linking by default, so we don't
12452           # have to do anything special.
12453           aix_use_runtimelinking=no
12454           exp_sym_flag='-Bexport'
12455           no_entry_flag=""
12456         else
12457           aix_use_runtimelinking=no
12458
12459           # Test if we are trying to use run time linking or normal
12460           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12461           # need to do runtime linking.
12462           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12463             for ld_flag in $LDFLAGS; do
12464               case $ld_flag in
12465               *-brtl*)
12466                 aix_use_runtimelinking=yes
12467                 break
12468                 ;;
12469               esac
12470             done
12471             ;;
12472           esac
12473
12474           exp_sym_flag='-bexport'
12475           no_entry_flag='-bnoentry'
12476         fi
12477
12478         # When large executables or shared objects are built, AIX ld can
12479         # have problems creating the table of contents.  If linking a library
12480         # or program results in "error TOC overflow" add -mminimal-toc to
12481         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12482         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12483
12484         archive_cmds_CXX=''
12485         hardcode_direct_CXX=yes
12486         hardcode_direct_absolute_CXX=yes
12487         hardcode_libdir_separator_CXX=':'
12488         link_all_deplibs_CXX=yes
12489         file_list_spec_CXX='${wl}-f,'
12490
12491         if test "$GXX" = yes; then
12492           case $host_os in aix4.[012]|aix4.[012].*)
12493           # We only want to do this on AIX 4.2 and lower, the check
12494           # below for broken collect2 doesn't work under 4.3+
12495           collect2name=`${CC} -print-prog-name=collect2`
12496           if test -f "$collect2name" &&
12497              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12498           then
12499             # We have reworked collect2
12500             :
12501           else
12502             # We have old collect2
12503             hardcode_direct_CXX=unsupported
12504             # It fails to find uninstalled libraries when the uninstalled
12505             # path is not listed in the libpath.  Setting hardcode_minus_L
12506             # to unsupported forces relinking
12507             hardcode_minus_L_CXX=yes
12508             hardcode_libdir_flag_spec_CXX='-L$libdir'
12509             hardcode_libdir_separator_CXX=
12510           fi
12511           esac
12512           shared_flag='-shared'
12513           if test "$aix_use_runtimelinking" = yes; then
12514             shared_flag="$shared_flag "'${wl}-G'
12515           fi
12516         else
12517           # not using gcc
12518           if test "$host_cpu" = ia64; then
12519           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12520           # chokes on -Wl,-G. The following line is correct:
12521           shared_flag='-G'
12522           else
12523             if test "$aix_use_runtimelinking" = yes; then
12524               shared_flag='${wl}-G'
12525             else
12526               shared_flag='${wl}-bM:SRE'
12527             fi
12528           fi
12529         fi
12530
12531         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12532         # It seems that -bexpall does not export symbols beginning with
12533         # underscore (_), so it is better to generate a list of symbols to
12534         # export.
12535         always_export_symbols_CXX=yes
12536         if test "$aix_use_runtimelinking" = yes; then
12537           # Warning - without using the other runtime loading flags (-brtl),
12538           # -berok will link without error, but may produce a broken library.
12539           allow_undefined_flag_CXX='-berok'
12540           # Determine the default libpath from the value encoded in an empty
12541           # executable.
12542           if test "${lt_cv_aix_libpath+set}" = set; then
12543   aix_libpath=$lt_cv_aix_libpath
12544 else
12545   if ${lt_cv_aix_libpath__CXX+:} false; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h.  */
12550
12551 int
12552 main ()
12553 {
12554
12555   ;
12556   return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_cxx_try_link "$LINENO"; then :
12560
12561   lt_aix_libpath_sed='
12562       /Import File Strings/,/^$/ {
12563           /^0/ {
12564               s/^0  *\([^ ]*\) *$/\1/
12565               p
12566           }
12567       }'
12568   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569   # Check for a 64-bit object if we didn't find anything.
12570   if test -z "$lt_cv_aix_libpath__CXX"; then
12571     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12572   fi
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575     conftest$ac_exeext conftest.$ac_ext
12576   if test -z "$lt_cv_aix_libpath__CXX"; then
12577     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12578   fi
12579
12580 fi
12581
12582   aix_libpath=$lt_cv_aix_libpath__CXX
12583 fi
12584
12585           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12586
12587           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"
12588         else
12589           if test "$host_cpu" = ia64; then
12590             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12591             allow_undefined_flag_CXX="-z nodefs"
12592             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"
12593           else
12594             # Determine the default libpath from the value encoded in an
12595             # empty executable.
12596             if test "${lt_cv_aix_libpath+set}" = set; then
12597   aix_libpath=$lt_cv_aix_libpath
12598 else
12599   if ${lt_cv_aix_libpath__CXX+:} false; then :
12600   $as_echo_n "(cached) " >&6
12601 else
12602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h.  */
12604
12605 int
12606 main ()
12607 {
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_cxx_try_link "$LINENO"; then :
12614
12615   lt_aix_libpath_sed='
12616       /Import File Strings/,/^$/ {
12617           /^0/ {
12618               s/^0  *\([^ ]*\) *$/\1/
12619               p
12620           }
12621       }'
12622   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623   # Check for a 64-bit object if we didn't find anything.
12624   if test -z "$lt_cv_aix_libpath__CXX"; then
12625     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626   fi
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext \
12629     conftest$ac_exeext conftest.$ac_ext
12630   if test -z "$lt_cv_aix_libpath__CXX"; then
12631     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12632   fi
12633
12634 fi
12635
12636   aix_libpath=$lt_cv_aix_libpath__CXX
12637 fi
12638
12639             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12640             # Warning - without using the other run time loading flags,
12641             # -berok will link without error, but may produce a broken library.
12642             no_undefined_flag_CXX=' ${wl}-bernotok'
12643             allow_undefined_flag_CXX=' ${wl}-berok'
12644             if test "$with_gnu_ld" = yes; then
12645               # We only use this code for GNU lds that support --whole-archive.
12646               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12647             else
12648               # Exported symbols can be pulled into shared objects from archives
12649               whole_archive_flag_spec_CXX='$convenience'
12650             fi
12651             archive_cmds_need_lc_CXX=yes
12652             # This is similar to how AIX traditionally builds its shared
12653             # libraries.
12654             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'
12655           fi
12656         fi
12657         ;;
12658
12659       beos*)
12660         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12661           allow_undefined_flag_CXX=unsupported
12662           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12663           # support --undefined.  This deserves some investigation.  FIXME
12664           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665         else
12666           ld_shlibs_CXX=no
12667         fi
12668         ;;
12669
12670       chorus*)
12671         case $cc_basename in
12672           *)
12673           # FIXME: insert proper C++ library support
12674           ld_shlibs_CXX=no
12675           ;;
12676         esac
12677         ;;
12678
12679       cygwin* | mingw* | pw32* | cegcc*)
12680         case $GXX,$cc_basename in
12681         ,cl* | no,cl*)
12682           # Native MSVC
12683           # hardcode_libdir_flag_spec is actually meaningless, as there is
12684           # no search path for DLLs.
12685           hardcode_libdir_flag_spec_CXX=' '
12686           allow_undefined_flag_CXX=unsupported
12687           always_export_symbols_CXX=yes
12688           file_list_spec_CXX='@'
12689           # Tell ltmain to make .lib files, not .a files.
12690           libext=lib
12691           # Tell ltmain to make .dll files, not .so files.
12692           shrext_cmds=".dll"
12693           # FIXME: Setting linknames here is a bad hack.
12694           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12695           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12696               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12697             else
12698               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12699             fi~
12700             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12701             linknames='
12702           # The linker will not automatically build a static lib if we build a DLL.
12703           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12704           enable_shared_with_static_runtimes_CXX=yes
12705           # Don't use ranlib
12706           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12707           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12708             lt_tool_outputfile="@TOOL_OUTPUT@"~
12709             case $lt_outputfile in
12710               *.exe|*.EXE) ;;
12711               *)
12712                 lt_outputfile="$lt_outputfile.exe"
12713                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12714                 ;;
12715             esac~
12716             func_to_tool_file "$lt_outputfile"~
12717             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12718               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12719               $RM "$lt_outputfile.manifest";
12720             fi'
12721           ;;
12722         *)
12723           # g++
12724           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12725           # as there is no search path for DLLs.
12726           hardcode_libdir_flag_spec_CXX='-L$libdir'
12727           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12728           allow_undefined_flag_CXX=unsupported
12729           always_export_symbols_CXX=no
12730           enable_shared_with_static_runtimes_CXX=yes
12731
12732           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12733             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'
12734             # If the export-symbols file already is a .def file (1st line
12735             # is EXPORTS), use it as is; otherwise, prepend...
12736             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12737               cp $export_symbols $output_objdir/$soname.def;
12738             else
12739               echo EXPORTS > $output_objdir/$soname.def;
12740               cat $export_symbols >> $output_objdir/$soname.def;
12741             fi~
12742             $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'
12743           else
12744             ld_shlibs_CXX=no
12745           fi
12746           ;;
12747         esac
12748         ;;
12749       darwin* | rhapsody*)
12750
12751
12752   archive_cmds_need_lc_CXX=no
12753   hardcode_direct_CXX=no
12754   hardcode_automatic_CXX=yes
12755   hardcode_shlibpath_var_CXX=unsupported
12756   if test "$lt_cv_ld_force_load" = "yes"; then
12757     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\"`'
12758
12759   else
12760     whole_archive_flag_spec_CXX=''
12761   fi
12762   link_all_deplibs_CXX=yes
12763   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12764   case $cc_basename in
12765      ifort*) _lt_dar_can_shared=yes ;;
12766      *) _lt_dar_can_shared=$GCC ;;
12767   esac
12768   if test "$_lt_dar_can_shared" = "yes"; then
12769     output_verbose_link_cmd=func_echo_all
12770     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}"
12771     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12772     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}"
12773     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}"
12774        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12775       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}"
12776       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}"
12777     fi
12778
12779   else
12780   ld_shlibs_CXX=no
12781   fi
12782
12783         ;;
12784
12785       dgux*)
12786         case $cc_basename in
12787           ec++*)
12788             # FIXME: insert proper C++ library support
12789             ld_shlibs_CXX=no
12790             ;;
12791           ghcx*)
12792             # Green Hills C++ Compiler
12793             # FIXME: insert proper C++ library support
12794             ld_shlibs_CXX=no
12795             ;;
12796           *)
12797             # FIXME: insert proper C++ library support
12798             ld_shlibs_CXX=no
12799             ;;
12800         esac
12801         ;;
12802
12803       freebsd2.*)
12804         # C++ shared libraries reported to be fairly broken before
12805         # switch to ELF
12806         ld_shlibs_CXX=no
12807         ;;
12808
12809       freebsd-elf*)
12810         archive_cmds_need_lc_CXX=no
12811         ;;
12812
12813       freebsd* | dragonfly*)
12814         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12815         # conventions
12816         ld_shlibs_CXX=yes
12817         ;;
12818
12819       gnu*)
12820         ;;
12821
12822       haiku*)
12823         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824         link_all_deplibs_CXX=yes
12825         ;;
12826
12827       hpux9*)
12828         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12829         hardcode_libdir_separator_CXX=:
12830         export_dynamic_flag_spec_CXX='${wl}-E'
12831         hardcode_direct_CXX=yes
12832         hardcode_minus_L_CXX=yes # Not in the search PATH,
12833                                              # but as the default
12834                                              # location of the library.
12835
12836         case $cc_basename in
12837           CC*)
12838             # FIXME: insert proper C++ library support
12839             ld_shlibs_CXX=no
12840             ;;
12841           aCC*)
12842             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'
12843             # Commands to make compiler produce verbose output that lists
12844             # what "hidden" libraries, object files and flags are used when
12845             # linking a shared library.
12846             #
12847             # There doesn't appear to be a way to prevent this compiler from
12848             # explicitly linking system object files so we need to strip them
12849             # from the output so that they don't get included in the library
12850             # dependencies.
12851             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"'
12852             ;;
12853           *)
12854             if test "$GXX" = yes; then
12855               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'
12856             else
12857               # FIXME: insert proper C++ library support
12858               ld_shlibs_CXX=no
12859             fi
12860             ;;
12861         esac
12862         ;;
12863
12864       hpux10*|hpux11*)
12865         if test $with_gnu_ld = no; then
12866           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12867           hardcode_libdir_separator_CXX=:
12868
12869           case $host_cpu in
12870             hppa*64*|ia64*)
12871               ;;
12872             *)
12873               export_dynamic_flag_spec_CXX='${wl}-E'
12874               ;;
12875           esac
12876         fi
12877         case $host_cpu in
12878           hppa*64*|ia64*)
12879             hardcode_direct_CXX=no
12880             hardcode_shlibpath_var_CXX=no
12881             ;;
12882           *)
12883             hardcode_direct_CXX=yes
12884             hardcode_direct_absolute_CXX=yes
12885             hardcode_minus_L_CXX=yes # Not in the search PATH,
12886                                                  # but as the default
12887                                                  # location of the library.
12888             ;;
12889         esac
12890
12891         case $cc_basename in
12892           CC*)
12893             # FIXME: insert proper C++ library support
12894             ld_shlibs_CXX=no
12895             ;;
12896           aCC*)
12897             case $host_cpu in
12898               hppa*64*)
12899                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12900                 ;;
12901               ia64*)
12902                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903                 ;;
12904               *)
12905                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12906                 ;;
12907             esac
12908             # Commands to make compiler produce verbose output that lists
12909             # what "hidden" libraries, object files and flags are used when
12910             # linking a shared library.
12911             #
12912             # There doesn't appear to be a way to prevent this compiler from
12913             # explicitly linking system object files so we need to strip them
12914             # from the output so that they don't get included in the library
12915             # dependencies.
12916             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"'
12917             ;;
12918           *)
12919             if test "$GXX" = yes; then
12920               if test $with_gnu_ld = no; then
12921                 case $host_cpu in
12922                   hppa*64*)
12923                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12924                     ;;
12925                   ia64*)
12926                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927                     ;;
12928                   *)
12929                     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'
12930                     ;;
12931                 esac
12932               fi
12933             else
12934               # FIXME: insert proper C++ library support
12935               ld_shlibs_CXX=no
12936             fi
12937             ;;
12938         esac
12939         ;;
12940
12941       interix[3-9]*)
12942         hardcode_direct_CXX=no
12943         hardcode_shlibpath_var_CXX=no
12944         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945         export_dynamic_flag_spec_CXX='${wl}-E'
12946         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12947         # Instead, shared libraries are loaded at an image base (0x10000000 by
12948         # default) and relocated if they conflict, which is a slow very memory
12949         # consuming and fragmenting process.  To avoid this, we pick a random,
12950         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12951         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12952         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'
12953         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'
12954         ;;
12955       irix5* | irix6*)
12956         case $cc_basename in
12957           CC*)
12958             # SGI C++
12959             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'
12960
12961             # Archives containing C++ object files must be created using
12962             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12963             # necessary to make sure instantiated templates are included
12964             # in the archive.
12965             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12966             ;;
12967           *)
12968             if test "$GXX" = yes; then
12969               if test "$with_gnu_ld" = no; then
12970                 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'
12971               else
12972                 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'
12973               fi
12974             fi
12975             link_all_deplibs_CXX=yes
12976             ;;
12977         esac
12978         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12979         hardcode_libdir_separator_CXX=:
12980         inherit_rpath_CXX=yes
12981         ;;
12982
12983       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12984         case $cc_basename in
12985           KCC*)
12986             # Kuck and Associates, Inc. (KAI) C++ Compiler
12987
12988             # KCC will only create a shared library if the output file
12989             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12990             # to its proper name (with version) after linking.
12991             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'
12992             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'
12993             # Commands to make compiler produce verbose output that lists
12994             # what "hidden" libraries, object files and flags are used when
12995             # linking a shared library.
12996             #
12997             # There doesn't appear to be a way to prevent this compiler from
12998             # explicitly linking system object files so we need to strip them
12999             # from the output so that they don't get included in the library
13000             # dependencies.
13001             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"'
13002
13003             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13004             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005
13006             # Archives containing C++ object files must be created using
13007             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13008             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13009             ;;
13010           icpc* | ecpc* )
13011             # Intel C++
13012             with_gnu_ld=yes
13013             # version 8.0 and above of icpc choke on multiply defined symbols
13014             # if we add $predep_objects and $postdep_objects, however 7.1 and
13015             # earlier do not add the objects themselves.
13016             case `$CC -V 2>&1` in
13017               *"Version 7."*)
13018                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019                 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'
13020                 ;;
13021               *)  # Version 8.0 or newer
13022                 tmp_idyn=
13023                 case $host_cpu in
13024                   ia64*) tmp_idyn=' -i_dynamic';;
13025                 esac
13026                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027                 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'
13028                 ;;
13029             esac
13030             archive_cmds_need_lc_CXX=no
13031             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13032             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13033             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13034             ;;
13035           pgCC* | pgcpp*)
13036             # Portland Group C++ compiler
13037             case `$CC -V` in
13038             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13039               prelink_cmds_CXX='tpldir=Template.dir~
13040                 rm -rf $tpldir~
13041                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13042                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13043               old_archive_cmds_CXX='tpldir=Template.dir~
13044                 rm -rf $tpldir~
13045                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13046                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13047                 $RANLIB $oldlib'
13048               archive_cmds_CXX='tpldir=Template.dir~
13049                 rm -rf $tpldir~
13050                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13051                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13052               archive_expsym_cmds_CXX='tpldir=Template.dir~
13053                 rm -rf $tpldir~
13054                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13055                 $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'
13056               ;;
13057             *) # Version 6 and above use weak symbols
13058               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13059               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'
13060               ;;
13061             esac
13062
13063             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065             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'
13066             ;;
13067           cxx*)
13068             # Compaq C++
13069             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070             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'
13071
13072             runpath_var=LD_RUN_PATH
13073             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074             hardcode_libdir_separator_CXX=:
13075
13076             # Commands to make compiler produce verbose output that lists
13077             # what "hidden" libraries, object files and flags are used when
13078             # linking a shared library.
13079             #
13080             # There doesn't appear to be a way to prevent this compiler from
13081             # explicitly linking system object files so we need to strip them
13082             # from the output so that they don't get included in the library
13083             # dependencies.
13084             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'
13085             ;;
13086           xl* | mpixl* | bgxl*)
13087             # IBM XL 8.0 on PPC, with GNU ld
13088             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13089             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13090             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091             if test "x$supports_anon_versioning" = xyes; then
13092               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13093                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13094                 echo "local: *; };" >> $output_objdir/$libname.ver~
13095                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13096             fi
13097             ;;
13098           *)
13099             case `$CC -V 2>&1 | sed 5q` in
13100             *Sun\ C*)
13101               # Sun C++ 5.9
13102               no_undefined_flag_CXX=' -zdefs'
13103               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13104               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'
13105               hardcode_libdir_flag_spec_CXX='-R$libdir'
13106               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'
13107               compiler_needs_object_CXX=yes
13108
13109               # Not sure whether something based on
13110               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13111               # would be better.
13112               output_verbose_link_cmd='func_echo_all'
13113
13114               # Archives containing C++ object files must be created using
13115               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13116               # necessary to make sure instantiated templates are included
13117               # in the archive.
13118               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13119               ;;
13120             esac
13121             ;;
13122         esac
13123         ;;
13124
13125       lynxos*)
13126         # FIXME: insert proper C++ library support
13127         ld_shlibs_CXX=no
13128         ;;
13129
13130       m88k*)
13131         # FIXME: insert proper C++ library support
13132         ld_shlibs_CXX=no
13133         ;;
13134
13135       mvs*)
13136         case $cc_basename in
13137           cxx*)
13138             # FIXME: insert proper C++ library support
13139             ld_shlibs_CXX=no
13140             ;;
13141           *)
13142             # FIXME: insert proper C++ library support
13143             ld_shlibs_CXX=no
13144             ;;
13145         esac
13146         ;;
13147
13148       netbsd*)
13149         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13150           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13151           wlarc=
13152           hardcode_libdir_flag_spec_CXX='-R$libdir'
13153           hardcode_direct_CXX=yes
13154           hardcode_shlibpath_var_CXX=no
13155         fi
13156         # Workaround some broken pre-1.5 toolchains
13157         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13158         ;;
13159
13160       *nto* | *qnx*)
13161         ld_shlibs_CXX=yes
13162         ;;
13163
13164       openbsd2*)
13165         # C++ shared libraries are fairly broken
13166         ld_shlibs_CXX=no
13167         ;;
13168
13169       openbsd*)
13170         if test -f /usr/libexec/ld.so; then
13171           hardcode_direct_CXX=yes
13172           hardcode_shlibpath_var_CXX=no
13173           hardcode_direct_absolute_CXX=yes
13174           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13175           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13176           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13177             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13178             export_dynamic_flag_spec_CXX='${wl}-E'
13179             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13180           fi
13181           output_verbose_link_cmd=func_echo_all
13182         else
13183           ld_shlibs_CXX=no
13184         fi
13185         ;;
13186
13187       osf3* | osf4* | osf5*)
13188         case $cc_basename in
13189           KCC*)
13190             # Kuck and Associates, Inc. (KAI) C++ Compiler
13191
13192             # KCC will only create a shared library if the output file
13193             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13194             # to its proper name (with version) after linking.
13195             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'
13196
13197             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198             hardcode_libdir_separator_CXX=:
13199
13200             # Archives containing C++ object files must be created using
13201             # the KAI C++ compiler.
13202             case $host in
13203               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13204               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13205             esac
13206             ;;
13207           RCC*)
13208             # Rational C++ 2.4.1
13209             # FIXME: insert proper C++ library support
13210             ld_shlibs_CXX=no
13211             ;;
13212           cxx*)
13213             case $host in
13214               osf3*)
13215                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13216                 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'
13217                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13218                 ;;
13219               *)
13220                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13221                 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'
13222                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13223                   echo "-hidden">> $lib.exp~
13224                   $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~
13225                   $RM $lib.exp'
13226                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13227                 ;;
13228             esac
13229
13230             hardcode_libdir_separator_CXX=:
13231
13232             # Commands to make compiler produce verbose output that lists
13233             # what "hidden" libraries, object files and flags are used when
13234             # linking a shared library.
13235             #
13236             # There doesn't appear to be a way to prevent this compiler from
13237             # explicitly linking system object files so we need to strip them
13238             # from the output so that they don't get included in the library
13239             # dependencies.
13240             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"'
13241             ;;
13242           *)
13243             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13244               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13245               case $host in
13246                 osf3*)
13247                   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'
13248                   ;;
13249                 *)
13250                   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'
13251                   ;;
13252               esac
13253
13254               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13255               hardcode_libdir_separator_CXX=:
13256
13257               # Commands to make compiler produce verbose output that lists
13258               # what "hidden" libraries, object files and flags are used when
13259               # linking a shared library.
13260               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13261
13262             else
13263               # FIXME: insert proper C++ library support
13264               ld_shlibs_CXX=no
13265             fi
13266             ;;
13267         esac
13268         ;;
13269
13270       psos*)
13271         # FIXME: insert proper C++ library support
13272         ld_shlibs_CXX=no
13273         ;;
13274
13275       sunos4*)
13276         case $cc_basename in
13277           CC*)
13278             # Sun C++ 4.x
13279             # FIXME: insert proper C++ library support
13280             ld_shlibs_CXX=no
13281             ;;
13282           lcc*)
13283             # Lucid
13284             # FIXME: insert proper C++ library support
13285             ld_shlibs_CXX=no
13286             ;;
13287           *)
13288             # FIXME: insert proper C++ library support
13289             ld_shlibs_CXX=no
13290             ;;
13291         esac
13292         ;;
13293
13294       solaris*)
13295         case $cc_basename in
13296           CC* | sunCC*)
13297             # Sun C++ 4.2, 5.x and Centerline C++
13298             archive_cmds_need_lc_CXX=yes
13299             no_undefined_flag_CXX=' -zdefs'
13300             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13301             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302               $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'
13303
13304             hardcode_libdir_flag_spec_CXX='-R$libdir'
13305             hardcode_shlibpath_var_CXX=no
13306             case $host_os in
13307               solaris2.[0-5] | solaris2.[0-5].*) ;;
13308               *)
13309                 # The compiler driver will combine and reorder linker options,
13310                 # but understands `-z linker_flag'.
13311                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13312                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13313                 ;;
13314             esac
13315             link_all_deplibs_CXX=yes
13316
13317             output_verbose_link_cmd='func_echo_all'
13318
13319             # Archives containing C++ object files must be created using
13320             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13321             # necessary to make sure instantiated templates are included
13322             # in the archive.
13323             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13324             ;;
13325           gcx*)
13326             # Green Hills C++ Compiler
13327             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13328
13329             # The C++ compiler must be used to create the archive.
13330             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13331             ;;
13332           *)
13333             # GNU C++ compiler with Solaris linker
13334             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13335               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13336               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13337                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13338                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13339                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13340
13341                 # Commands to make compiler produce verbose output that lists
13342                 # what "hidden" libraries, object files and flags are used when
13343                 # linking a shared library.
13344                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13345               else
13346                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13347                 # platform.
13348                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13349                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13351
13352                 # Commands to make compiler produce verbose output that lists
13353                 # what "hidden" libraries, object files and flags are used when
13354                 # linking a shared library.
13355                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13356               fi
13357
13358               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13359               case $host_os in
13360                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13361                 *)
13362                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13363                   ;;
13364               esac
13365             fi
13366             ;;
13367         esac
13368         ;;
13369
13370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13371       no_undefined_flag_CXX='${wl}-z,text'
13372       archive_cmds_need_lc_CXX=no
13373       hardcode_shlibpath_var_CXX=no
13374       runpath_var='LD_RUN_PATH'
13375
13376       case $cc_basename in
13377         CC*)
13378           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380           ;;
13381         *)
13382           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384           ;;
13385       esac
13386       ;;
13387
13388       sysv5* | sco3.2v5* | sco5v6*)
13389         # Note: We can NOT use -z defs as we might desire, because we do not
13390         # link with -lc, and that would cause any symbols used from libc to
13391         # always be unresolved, which means just about no library would
13392         # ever link correctly.  If we're not using GNU ld we use -z text
13393         # though, which does catch some bad symbols but isn't as heavy-handed
13394         # as -z defs.
13395         no_undefined_flag_CXX='${wl}-z,text'
13396         allow_undefined_flag_CXX='${wl}-z,nodefs'
13397         archive_cmds_need_lc_CXX=no
13398         hardcode_shlibpath_var_CXX=no
13399         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13400         hardcode_libdir_separator_CXX=':'
13401         link_all_deplibs_CXX=yes
13402         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13403         runpath_var='LD_RUN_PATH'
13404
13405         case $cc_basename in
13406           CC*)
13407             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13409             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13410               '"$old_archive_cmds_CXX"
13411             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13412               '"$reload_cmds_CXX"
13413             ;;
13414           *)
13415             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417             ;;
13418         esac
13419       ;;
13420
13421       tandem*)
13422         case $cc_basename in
13423           NCC*)
13424             # NonStop-UX NCC 3.20
13425             # FIXME: insert proper C++ library support
13426             ld_shlibs_CXX=no
13427             ;;
13428           *)
13429             # FIXME: insert proper C++ library support
13430             ld_shlibs_CXX=no
13431             ;;
13432         esac
13433         ;;
13434
13435       vxworks*)
13436         # FIXME: insert proper C++ library support
13437         ld_shlibs_CXX=no
13438         ;;
13439
13440       *)
13441         # FIXME: insert proper C++ library support
13442         ld_shlibs_CXX=no
13443         ;;
13444     esac
13445
13446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13447 $as_echo "$ld_shlibs_CXX" >&6; }
13448     test "$ld_shlibs_CXX" = no && can_build_shared=no
13449
13450     GCC_CXX="$GXX"
13451     LD_CXX="$LD"
13452
13453     ## CAVEAT EMPTOR:
13454     ## There is no encapsulation within the following macros, do not change
13455     ## the running order or otherwise move them around unless you know exactly
13456     ## what you are doing...
13457     # Dependencies to place before and after the object being linked:
13458 predep_objects_CXX=
13459 postdep_objects_CXX=
13460 predeps_CXX=
13461 postdeps_CXX=
13462 compiler_lib_search_path_CXX=
13463
13464 cat > conftest.$ac_ext <<_LT_EOF
13465 class Foo
13466 {
13467 public:
13468   Foo (void) { a = 0; }
13469 private:
13470   int a;
13471 };
13472 _LT_EOF
13473
13474
13475 _lt_libdeps_save_CFLAGS=$CFLAGS
13476 case "$CC $CFLAGS " in #(
13477 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13478 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13479 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13480 esac
13481
13482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13483   (eval $ac_compile) 2>&5
13484   ac_status=$?
13485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486   test $ac_status = 0; }; then
13487   # Parse the compiler output and extract the necessary
13488   # objects, libraries and library flags.
13489
13490   # Sentinel used to keep track of whether or not we are before
13491   # the conftest object file.
13492   pre_test_object_deps_done=no
13493
13494   for p in `eval "$output_verbose_link_cmd"`; do
13495     case ${prev}${p} in
13496
13497     -L* | -R* | -l*)
13498        # Some compilers place space between "-{L,R}" and the path.
13499        # Remove the space.
13500        if test $p = "-L" ||
13501           test $p = "-R"; then
13502          prev=$p
13503          continue
13504        fi
13505
13506        # Expand the sysroot to ease extracting the directories later.
13507        if test -z "$prev"; then
13508          case $p in
13509          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13510          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13511          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13512          esac
13513        fi
13514        case $p in
13515        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13516        esac
13517        if test "$pre_test_object_deps_done" = no; then
13518          case ${prev} in
13519          -L | -R)
13520            # Internal compiler library paths should come after those
13521            # provided the user.  The postdeps already come after the
13522            # user supplied libs so there is no need to process them.
13523            if test -z "$compiler_lib_search_path_CXX"; then
13524              compiler_lib_search_path_CXX="${prev}${p}"
13525            else
13526              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13527            fi
13528            ;;
13529          # The "-l" case would never come before the object being
13530          # linked, so don't bother handling this case.
13531          esac
13532        else
13533          if test -z "$postdeps_CXX"; then
13534            postdeps_CXX="${prev}${p}"
13535          else
13536            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13537          fi
13538        fi
13539        prev=
13540        ;;
13541
13542     *.lto.$objext) ;; # Ignore GCC LTO objects
13543     *.$objext)
13544        # This assumes that the test object file only shows up
13545        # once in the compiler output.
13546        if test "$p" = "conftest.$objext"; then
13547          pre_test_object_deps_done=yes
13548          continue
13549        fi
13550
13551        if test "$pre_test_object_deps_done" = no; then
13552          if test -z "$predep_objects_CXX"; then
13553            predep_objects_CXX="$p"
13554          else
13555            predep_objects_CXX="$predep_objects_CXX $p"
13556          fi
13557        else
13558          if test -z "$postdep_objects_CXX"; then
13559            postdep_objects_CXX="$p"
13560          else
13561            postdep_objects_CXX="$postdep_objects_CXX $p"
13562          fi
13563        fi
13564        ;;
13565
13566     *) ;; # Ignore the rest.
13567
13568     esac
13569   done
13570
13571   # Clean up.
13572   rm -f a.out a.exe
13573 else
13574   echo "libtool.m4: error: problem compiling CXX test program"
13575 fi
13576
13577 $RM -f confest.$objext
13578 CFLAGS=$_lt_libdeps_save_CFLAGS
13579
13580 # PORTME: override above test on systems where it is broken
13581 case $host_os in
13582 interix[3-9]*)
13583   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13584   # hack all around it, let's just trust "g++" to DTRT.
13585   predep_objects_CXX=
13586   postdep_objects_CXX=
13587   postdeps_CXX=
13588   ;;
13589
13590 linux*)
13591   case `$CC -V 2>&1 | sed 5q` in
13592   *Sun\ C*)
13593     # Sun C++ 5.9
13594
13595     # The more standards-conforming stlport4 library is
13596     # incompatible with the Cstd library. Avoid specifying
13597     # it if it's in CXXFLAGS. Ignore libCrun as
13598     # -library=stlport4 depends on it.
13599     case " $CXX $CXXFLAGS " in
13600     *" -library=stlport4 "*)
13601       solaris_use_stlport4=yes
13602       ;;
13603     esac
13604
13605     if test "$solaris_use_stlport4" != yes; then
13606       postdeps_CXX='-library=Cstd -library=Crun'
13607     fi
13608     ;;
13609   esac
13610   ;;
13611
13612 solaris*)
13613   case $cc_basename in
13614   CC* | sunCC*)
13615     # The more standards-conforming stlport4 library is
13616     # incompatible with the Cstd library. Avoid specifying
13617     # it if it's in CXXFLAGS. Ignore libCrun as
13618     # -library=stlport4 depends on it.
13619     case " $CXX $CXXFLAGS " in
13620     *" -library=stlport4 "*)
13621       solaris_use_stlport4=yes
13622       ;;
13623     esac
13624
13625     # Adding this requires a known-good setup of shared libraries for
13626     # Sun compiler versions before 5.6, else PIC objects from an old
13627     # archive will be linked into the output, leading to subtle bugs.
13628     if test "$solaris_use_stlport4" != yes; then
13629       postdeps_CXX='-library=Cstd -library=Crun'
13630     fi
13631     ;;
13632   esac
13633   ;;
13634 esac
13635
13636
13637 case " $postdeps_CXX " in
13638 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13639 esac
13640  compiler_lib_search_dirs_CXX=
13641 if test -n "${compiler_lib_search_path_CXX}"; then
13642  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13643 fi
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675     lt_prog_compiler_wl_CXX=
13676 lt_prog_compiler_pic_CXX=
13677 lt_prog_compiler_static_CXX=
13678
13679
13680   # C++ specific cases for pic, static, wl, etc.
13681   if test "$GXX" = yes; then
13682     lt_prog_compiler_wl_CXX='-Wl,'
13683     lt_prog_compiler_static_CXX='-static'
13684
13685     case $host_os in
13686     aix*)
13687       # All AIX code is PIC.
13688       if test "$host_cpu" = ia64; then
13689         # AIX 5 now supports IA64 processor
13690         lt_prog_compiler_static_CXX='-Bstatic'
13691       fi
13692       ;;
13693
13694     amigaos*)
13695       case $host_cpu in
13696       powerpc)
13697             # see comment about AmigaOS4 .so support
13698             lt_prog_compiler_pic_CXX='-fPIC'
13699         ;;
13700       m68k)
13701             # FIXME: we need at least 68020 code to build shared libraries, but
13702             # adding the `-m68020' flag to GCC prevents building anything better,
13703             # like `-m68040'.
13704             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13705         ;;
13706       esac
13707       ;;
13708
13709     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13710       # PIC is the default for these OSes.
13711       ;;
13712     mingw* | cygwin* | os2* | pw32* | cegcc*)
13713       # This hack is so that the source file can tell whether it is being
13714       # built for inclusion in a dll (and should export symbols for example).
13715       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13716       # (--disable-auto-import) libraries
13717       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13718       ;;
13719     darwin* | rhapsody*)
13720       # PIC is the default on this platform
13721       # Common symbols not allowed in MH_DYLIB files
13722       lt_prog_compiler_pic_CXX='-fno-common'
13723       ;;
13724     *djgpp*)
13725       # DJGPP does not support shared libraries at all
13726       lt_prog_compiler_pic_CXX=
13727       ;;
13728     haiku*)
13729       # PIC is the default for Haiku.
13730       # The "-static" flag exists, but is broken.
13731       lt_prog_compiler_static_CXX=
13732       ;;
13733     interix[3-9]*)
13734       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735       # Instead, we relocate shared libraries at runtime.
13736       ;;
13737     sysv4*MP*)
13738       if test -d /usr/nec; then
13739         lt_prog_compiler_pic_CXX=-Kconform_pic
13740       fi
13741       ;;
13742     hpux*)
13743       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13744       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13745       # sets the default TLS model and affects inlining.
13746       case $host_cpu in
13747       hppa*64*)
13748         ;;
13749       *)
13750         lt_prog_compiler_pic_CXX='-fPIC'
13751         ;;
13752       esac
13753       ;;
13754     *qnx* | *nto*)
13755       # QNX uses GNU C++, but need to define -shared option too, otherwise
13756       # it will coredump.
13757       lt_prog_compiler_pic_CXX='-fPIC -shared'
13758       ;;
13759     *)
13760       lt_prog_compiler_pic_CXX='-fPIC'
13761       ;;
13762     esac
13763   else
13764     case $host_os in
13765       aix[4-9]*)
13766         # All AIX code is PIC.
13767         if test "$host_cpu" = ia64; then
13768           # AIX 5 now supports IA64 processor
13769           lt_prog_compiler_static_CXX='-Bstatic'
13770         else
13771           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13772         fi
13773         ;;
13774       chorus*)
13775         case $cc_basename in
13776         cxch68*)
13777           # Green Hills C++ Compiler
13778           # _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"
13779           ;;
13780         esac
13781         ;;
13782       mingw* | cygwin* | os2* | pw32* | cegcc*)
13783         # This hack is so that the source file can tell whether it is being
13784         # built for inclusion in a dll (and should export symbols for example).
13785         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13786         ;;
13787       dgux*)
13788         case $cc_basename in
13789           ec++*)
13790             lt_prog_compiler_pic_CXX='-KPIC'
13791             ;;
13792           ghcx*)
13793             # Green Hills C++ Compiler
13794             lt_prog_compiler_pic_CXX='-pic'
13795             ;;
13796           *)
13797             ;;
13798         esac
13799         ;;
13800       freebsd* | dragonfly*)
13801         # FreeBSD uses GNU C++
13802         ;;
13803       hpux9* | hpux10* | hpux11*)
13804         case $cc_basename in
13805           CC*)
13806             lt_prog_compiler_wl_CXX='-Wl,'
13807             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13808             if test "$host_cpu" != ia64; then
13809               lt_prog_compiler_pic_CXX='+Z'
13810             fi
13811             ;;
13812           aCC*)
13813             lt_prog_compiler_wl_CXX='-Wl,'
13814             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815             case $host_cpu in
13816             hppa*64*|ia64*)
13817               # +Z the default
13818               ;;
13819             *)
13820               lt_prog_compiler_pic_CXX='+Z'
13821               ;;
13822             esac
13823             ;;
13824           *)
13825             ;;
13826         esac
13827         ;;
13828       interix*)
13829         # This is c89, which is MS Visual C++ (no shared libs)
13830         # Anyone wants to do a port?
13831         ;;
13832       irix5* | irix6* | nonstopux*)
13833         case $cc_basename in
13834           CC*)
13835             lt_prog_compiler_wl_CXX='-Wl,'
13836             lt_prog_compiler_static_CXX='-non_shared'
13837             # CC pic flag -KPIC is the default.
13838             ;;
13839           *)
13840             ;;
13841         esac
13842         ;;
13843       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13844         case $cc_basename in
13845           KCC*)
13846             # KAI C++ Compiler
13847             lt_prog_compiler_wl_CXX='--backend -Wl,'
13848             lt_prog_compiler_pic_CXX='-fPIC'
13849             ;;
13850           ecpc* )
13851             # old Intel C++ for x86_64 which still supported -KPIC.
13852             lt_prog_compiler_wl_CXX='-Wl,'
13853             lt_prog_compiler_pic_CXX='-KPIC'
13854             lt_prog_compiler_static_CXX='-static'
13855             ;;
13856           icpc* )
13857             # Intel C++, used to be incompatible with GCC.
13858             # ICC 10 doesn't accept -KPIC any more.
13859             lt_prog_compiler_wl_CXX='-Wl,'
13860             lt_prog_compiler_pic_CXX='-fPIC'
13861             lt_prog_compiler_static_CXX='-static'
13862             ;;
13863           pgCC* | pgcpp*)
13864             # Portland Group C++ compiler
13865             lt_prog_compiler_wl_CXX='-Wl,'
13866             lt_prog_compiler_pic_CXX='-fpic'
13867             lt_prog_compiler_static_CXX='-Bstatic'
13868             ;;
13869           cxx*)
13870             # Compaq C++
13871             # Make sure the PIC flag is empty.  It appears that all Alpha
13872             # Linux and Compaq Tru64 Unix objects are PIC.
13873             lt_prog_compiler_pic_CXX=
13874             lt_prog_compiler_static_CXX='-non_shared'
13875             ;;
13876           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13877             # IBM XL 8.0, 9.0 on PPC and BlueGene
13878             lt_prog_compiler_wl_CXX='-Wl,'
13879             lt_prog_compiler_pic_CXX='-qpic'
13880             lt_prog_compiler_static_CXX='-qstaticlink'
13881             ;;
13882           *)
13883             case `$CC -V 2>&1 | sed 5q` in
13884             *Sun\ C*)
13885               # Sun C++ 5.9
13886               lt_prog_compiler_pic_CXX='-KPIC'
13887               lt_prog_compiler_static_CXX='-Bstatic'
13888               lt_prog_compiler_wl_CXX='-Qoption ld '
13889               ;;
13890             esac
13891             ;;
13892         esac
13893         ;;
13894       lynxos*)
13895         ;;
13896       m88k*)
13897         ;;
13898       mvs*)
13899         case $cc_basename in
13900           cxx*)
13901             lt_prog_compiler_pic_CXX='-W c,exportall'
13902             ;;
13903           *)
13904             ;;
13905         esac
13906         ;;
13907       netbsd* | netbsdelf*-gnu)
13908         ;;
13909       *qnx* | *nto*)
13910         # QNX uses GNU C++, but need to define -shared option too, otherwise
13911         # it will coredump.
13912         lt_prog_compiler_pic_CXX='-fPIC -shared'
13913         ;;
13914       osf3* | osf4* | osf5*)
13915         case $cc_basename in
13916           KCC*)
13917             lt_prog_compiler_wl_CXX='--backend -Wl,'
13918             ;;
13919           RCC*)
13920             # Rational C++ 2.4.1
13921             lt_prog_compiler_pic_CXX='-pic'
13922             ;;
13923           cxx*)
13924             # Digital/Compaq C++
13925             lt_prog_compiler_wl_CXX='-Wl,'
13926             # Make sure the PIC flag is empty.  It appears that all Alpha
13927             # Linux and Compaq Tru64 Unix objects are PIC.
13928             lt_prog_compiler_pic_CXX=
13929             lt_prog_compiler_static_CXX='-non_shared'
13930             ;;
13931           *)
13932             ;;
13933         esac
13934         ;;
13935       psos*)
13936         ;;
13937       solaris*)
13938         case $cc_basename in
13939           CC* | sunCC*)
13940             # Sun C++ 4.2, 5.x and Centerline C++
13941             lt_prog_compiler_pic_CXX='-KPIC'
13942             lt_prog_compiler_static_CXX='-Bstatic'
13943             lt_prog_compiler_wl_CXX='-Qoption ld '
13944             ;;
13945           gcx*)
13946             # Green Hills C++ Compiler
13947             lt_prog_compiler_pic_CXX='-PIC'
13948             ;;
13949           *)
13950             ;;
13951         esac
13952         ;;
13953       sunos4*)
13954         case $cc_basename in
13955           CC*)
13956             # Sun C++ 4.x
13957             lt_prog_compiler_pic_CXX='-pic'
13958             lt_prog_compiler_static_CXX='-Bstatic'
13959             ;;
13960           lcc*)
13961             # Lucid
13962             lt_prog_compiler_pic_CXX='-pic'
13963             ;;
13964           *)
13965             ;;
13966         esac
13967         ;;
13968       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969         case $cc_basename in
13970           CC*)
13971             lt_prog_compiler_wl_CXX='-Wl,'
13972             lt_prog_compiler_pic_CXX='-KPIC'
13973             lt_prog_compiler_static_CXX='-Bstatic'
13974             ;;
13975         esac
13976         ;;
13977       tandem*)
13978         case $cc_basename in
13979           NCC*)
13980             # NonStop-UX NCC 3.20
13981             lt_prog_compiler_pic_CXX='-KPIC'
13982             ;;
13983           *)
13984             ;;
13985         esac
13986         ;;
13987       vxworks*)
13988         ;;
13989       *)
13990         lt_prog_compiler_can_build_shared_CXX=no
13991         ;;
13992     esac
13993   fi
13994
13995 case $host_os in
13996   # For platforms which do not support PIC, -DPIC is meaningless:
13997   *djgpp*)
13998     lt_prog_compiler_pic_CXX=
13999     ;;
14000   *)
14001     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14002     ;;
14003 esac
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14007 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14013 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14014 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14015
14016 #
14017 # Check to make sure the PIC flag actually works.
14018 #
14019 if test -n "$lt_prog_compiler_pic_CXX"; then
14020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14022 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14023   $as_echo_n "(cached) " >&6
14024 else
14025   lt_cv_prog_compiler_pic_works_CXX=no
14026    ac_outfile=conftest.$ac_objext
14027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14029    # Insert the option either (1) after the last *FLAGS variable, or
14030    # (2) before a word containing "conftest.", or (3) at the end.
14031    # Note that $ac_compile itself does not contain backslashes and begins
14032    # with a dollar sign (not a hyphen), so the echo should work correctly.
14033    # The option is referenced via a variable to avoid confusing sed.
14034    lt_compile=`echo "$ac_compile" | $SED \
14035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037    -e 's:$: $lt_compiler_flag:'`
14038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039    (eval "$lt_compile" 2>conftest.err)
14040    ac_status=$?
14041    cat conftest.err >&5
14042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043    if (exit $ac_status) && test -s "$ac_outfile"; then
14044      # The compiler can only warn and ignore the option if not recognized
14045      # So say no if there are warnings other than the usual output.
14046      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14047      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14048      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14049        lt_cv_prog_compiler_pic_works_CXX=yes
14050      fi
14051    fi
14052    $RM conftest*
14053
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14056 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14057
14058 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14059     case $lt_prog_compiler_pic_CXX in
14060      "" | " "*) ;;
14061      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14062      esac
14063 else
14064     lt_prog_compiler_pic_CXX=
14065      lt_prog_compiler_can_build_shared_CXX=no
14066 fi
14067
14068 fi
14069
14070
14071
14072
14073
14074 #
14075 # Check to make sure the static flag actually works.
14076 #
14077 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14079 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14080 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14081   $as_echo_n "(cached) " >&6
14082 else
14083   lt_cv_prog_compiler_static_works_CXX=no
14084    save_LDFLAGS="$LDFLAGS"
14085    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14086    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14087    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14088      # The linker can only warn and ignore the option if not recognized
14089      # So say no if there are warnings
14090      if test -s conftest.err; then
14091        # Append any errors to the config.log.
14092        cat conftest.err 1>&5
14093        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14094        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14095        if diff conftest.exp conftest.er2 >/dev/null; then
14096          lt_cv_prog_compiler_static_works_CXX=yes
14097        fi
14098      else
14099        lt_cv_prog_compiler_static_works_CXX=yes
14100      fi
14101    fi
14102    $RM -r conftest*
14103    LDFLAGS="$save_LDFLAGS"
14104
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14107 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14108
14109 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14110     :
14111 else
14112     lt_prog_compiler_static_CXX=
14113 fi
14114
14115
14116
14117
14118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14120 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14121   $as_echo_n "(cached) " >&6
14122 else
14123   lt_cv_prog_compiler_c_o_CXX=no
14124    $RM -r conftest 2>/dev/null
14125    mkdir conftest
14126    cd conftest
14127    mkdir out
14128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129
14130    lt_compiler_flag="-o out/conftest2.$ac_objext"
14131    # Insert the option either (1) after the last *FLAGS variable, or
14132    # (2) before a word containing "conftest.", or (3) at the end.
14133    # Note that $ac_compile itself does not contain backslashes and begins
14134    # with a dollar sign (not a hyphen), so the echo should work correctly.
14135    lt_compile=`echo "$ac_compile" | $SED \
14136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138    -e 's:$: $lt_compiler_flag:'`
14139    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140    (eval "$lt_compile" 2>out/conftest.err)
14141    ac_status=$?
14142    cat out/conftest.err >&5
14143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14145    then
14146      # The compiler can only warn and ignore the option if not recognized
14147      # So say no if there are warnings
14148      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14151        lt_cv_prog_compiler_c_o_CXX=yes
14152      fi
14153    fi
14154    chmod u+w . 2>&5
14155    $RM conftest*
14156    # SGI C++ compiler will create directory out/ii_files/ for
14157    # template instantiation
14158    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14159    $RM out/* && rmdir out
14160    cd ..
14161    $RM -r conftest
14162    $RM conftest*
14163
14164 fi
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14166 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14167
14168
14169
14170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14172 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14173   $as_echo_n "(cached) " >&6
14174 else
14175   lt_cv_prog_compiler_c_o_CXX=no
14176    $RM -r conftest 2>/dev/null
14177    mkdir conftest
14178    cd conftest
14179    mkdir out
14180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14181
14182    lt_compiler_flag="-o out/conftest2.$ac_objext"
14183    # Insert the option either (1) after the last *FLAGS variable, or
14184    # (2) before a word containing "conftest.", or (3) at the end.
14185    # Note that $ac_compile itself does not contain backslashes and begins
14186    # with a dollar sign (not a hyphen), so the echo should work correctly.
14187    lt_compile=`echo "$ac_compile" | $SED \
14188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190    -e 's:$: $lt_compiler_flag:'`
14191    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14192    (eval "$lt_compile" 2>out/conftest.err)
14193    ac_status=$?
14194    cat out/conftest.err >&5
14195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14197    then
14198      # The compiler can only warn and ignore the option if not recognized
14199      # So say no if there are warnings
14200      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14201      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14202      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14203        lt_cv_prog_compiler_c_o_CXX=yes
14204      fi
14205    fi
14206    chmod u+w . 2>&5
14207    $RM conftest*
14208    # SGI C++ compiler will create directory out/ii_files/ for
14209    # template instantiation
14210    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14211    $RM out/* && rmdir out
14212    cd ..
14213    $RM -r conftest
14214    $RM conftest*
14215
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14218 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14219
14220
14221
14222
14223 hard_links="nottested"
14224 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14225   # do not overwrite the value of need_locks provided by the user
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14227 $as_echo_n "checking if we can lock with hard links... " >&6; }
14228   hard_links=yes
14229   $RM conftest*
14230   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14231   touch conftest.a
14232   ln conftest.a conftest.b 2>&5 || hard_links=no
14233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14235 $as_echo "$hard_links" >&6; }
14236   if test "$hard_links" = no; then
14237     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14238 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14239     need_locks=warn
14240   fi
14241 else
14242   need_locks=no
14243 fi
14244
14245
14246
14247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14248 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14249
14250   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14251   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14252   case $host_os in
14253   aix[4-9]*)
14254     # If we're using GNU nm, then we don't want the "-C" option.
14255     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14256     # Also, AIX nm treats weak defined symbols like other global defined
14257     # symbols, whereas GNU nm marks them as "W".
14258     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14259       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'
14260     else
14261       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'
14262     fi
14263     ;;
14264   pw32*)
14265     export_symbols_cmds_CXX="$ltdll_cmds"
14266     ;;
14267   cygwin* | mingw* | cegcc*)
14268     case $cc_basename in
14269     cl*)
14270       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14271       ;;
14272     *)
14273       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'
14274       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14275       ;;
14276     esac
14277     ;;
14278   linux* | k*bsd*-gnu | gnu*)
14279     link_all_deplibs_CXX=no
14280     ;;
14281   *)
14282     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14283     ;;
14284   esac
14285
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14287 $as_echo "$ld_shlibs_CXX" >&6; }
14288 test "$ld_shlibs_CXX" = no && can_build_shared=no
14289
14290 with_gnu_ld_CXX=$with_gnu_ld
14291
14292
14293
14294
14295
14296
14297 #
14298 # Do we need to explicitly link libc?
14299 #
14300 case "x$archive_cmds_need_lc_CXX" in
14301 x|xyes)
14302   # Assume -lc should be added
14303   archive_cmds_need_lc_CXX=yes
14304
14305   if test "$enable_shared" = yes && test "$GCC" = yes; then
14306     case $archive_cmds_CXX in
14307     *'~'*)
14308       # FIXME: we may have to deal with multi-command sequences.
14309       ;;
14310     '$CC '*)
14311       # Test whether the compiler implicitly links with -lc since on some
14312       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14313       # to ld, don't add -lc before -lgcc.
14314       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14315 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14316 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319   $RM conftest*
14320         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14321
14322         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14323   (eval $ac_compile) 2>&5
14324   ac_status=$?
14325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326   test $ac_status = 0; } 2>conftest.err; then
14327           soname=conftest
14328           lib=conftest
14329           libobjs=conftest.$ac_objext
14330           deplibs=
14331           wl=$lt_prog_compiler_wl_CXX
14332           pic_flag=$lt_prog_compiler_pic_CXX
14333           compiler_flags=-v
14334           linker_flags=-v
14335           verstring=
14336           output_objdir=.
14337           libname=conftest
14338           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14339           allow_undefined_flag_CXX=
14340           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14341   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14342   ac_status=$?
14343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344   test $ac_status = 0; }
14345           then
14346             lt_cv_archive_cmds_need_lc_CXX=no
14347           else
14348             lt_cv_archive_cmds_need_lc_CXX=yes
14349           fi
14350           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14351         else
14352           cat conftest.err 1>&5
14353         fi
14354         $RM conftest*
14355
14356 fi
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14358 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14359       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14360       ;;
14361     esac
14362   fi
14363   ;;
14364 esac
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14428 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14429
14430 library_names_spec=
14431 libname_spec='lib$name'
14432 soname_spec=
14433 shrext_cmds=".so"
14434 postinstall_cmds=
14435 postuninstall_cmds=
14436 finish_cmds=
14437 finish_eval=
14438 shlibpath_var=
14439 shlibpath_overrides_runpath=unknown
14440 version_type=none
14441 dynamic_linker="$host_os ld.so"
14442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14443 need_lib_prefix=unknown
14444 hardcode_into_libs=no
14445
14446 # when you set need_version to no, make sure it does not cause -set_version
14447 # flags to be left without arguments
14448 need_version=unknown
14449
14450 case $host_os in
14451 aix3*)
14452   version_type=linux # correct to gnu/linux during the next big refactor
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14454   shlibpath_var=LIBPATH
14455
14456   # AIX 3 has no versioning support, so we append a major version to the name.
14457   soname_spec='${libname}${release}${shared_ext}$major'
14458   ;;
14459
14460 aix[4-9]*)
14461   version_type=linux # correct to gnu/linux during the next big refactor
14462   need_lib_prefix=no
14463   need_version=no
14464   hardcode_into_libs=yes
14465   if test "$host_cpu" = ia64; then
14466     # AIX 5 supports IA64
14467     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14468     shlibpath_var=LD_LIBRARY_PATH
14469   else
14470     # With GCC up to 2.95.x, collect2 would create an import file
14471     # for dependence libraries.  The import file would start with
14472     # the line `#! .'.  This would cause the generated library to
14473     # depend on `.', always an invalid library.  This was fixed in
14474     # development snapshots of GCC prior to 3.0.
14475     case $host_os in
14476       aix4 | aix4.[01] | aix4.[01].*)
14477       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14478            echo ' yes '
14479            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14480         :
14481       else
14482         can_build_shared=no
14483       fi
14484       ;;
14485     esac
14486     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14487     # soname into executable. Probably we can add versioning support to
14488     # collect2, so additional links can be useful in future.
14489     if test "$aix_use_runtimelinking" = yes; then
14490       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14491       # instead of lib<name>.a to let people know that these are not
14492       # typical AIX shared libraries.
14493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494     else
14495       # We preserve .a as extension for shared libraries through AIX4.2
14496       # and later when we are not doing run time linking.
14497       library_names_spec='${libname}${release}.a $libname.a'
14498       soname_spec='${libname}${release}${shared_ext}$major'
14499     fi
14500     shlibpath_var=LIBPATH
14501   fi
14502   ;;
14503
14504 amigaos*)
14505   case $host_cpu in
14506   powerpc)
14507     # Since July 2007 AmigaOS4 officially supports .so libraries.
14508     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510     ;;
14511   m68k)
14512     library_names_spec='$libname.ixlibrary $libname.a'
14513     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514     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'
14515     ;;
14516   esac
14517   ;;
14518
14519 beos*)
14520   library_names_spec='${libname}${shared_ext}'
14521   dynamic_linker="$host_os ld.so"
14522   shlibpath_var=LIBRARY_PATH
14523   ;;
14524
14525 bsdi[45]*)
14526   version_type=linux # correct to gnu/linux during the next big refactor
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 $libdir'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14533   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14534   # the default ld.so.conf also contains /usr/contrib/lib and
14535   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14536   # libtool to hard-code these into programs
14537   ;;
14538
14539 cygwin* | mingw* | pw32* | cegcc*)
14540   version_type=windows
14541   shrext_cmds=".dll"
14542   need_version=no
14543   need_lib_prefix=no
14544
14545   case $GCC,$cc_basename in
14546   yes,*)
14547     # gcc
14548     library_names_spec='$libname.dll.a'
14549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14550     postinstall_cmds='base_file=`basename \${file}`~
14551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14552       dldir=$destdir/`dirname \$dlpath`~
14553       test -d \$dldir || mkdir -p \$dldir~
14554       $install_prog $dir/$dlname \$dldir/$dlname~
14555       chmod a+x \$dldir/$dlname~
14556       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14557         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14558       fi'
14559     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14560       dlpath=$dir/\$dldll~
14561        $RM \$dlpath'
14562     shlibpath_overrides_runpath=yes
14563
14564     case $host_os in
14565     cygwin*)
14566       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14567       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14568
14569       ;;
14570     mingw* | cegcc*)
14571       # MinGW DLLs use traditional 'lib' prefix
14572       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573       ;;
14574     pw32*)
14575       # pw32 DLLs use 'pw' prefix rather than 'lib'
14576       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14577       ;;
14578     esac
14579     dynamic_linker='Win32 ld.exe'
14580     ;;
14581
14582   *,cl*)
14583     # Native MSVC
14584     libname_spec='$name'
14585     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14586     library_names_spec='${libname}.dll.lib'
14587
14588     case $build_os in
14589     mingw*)
14590       sys_lib_search_path_spec=
14591       lt_save_ifs=$IFS
14592       IFS=';'
14593       for lt_path in $LIB
14594       do
14595         IFS=$lt_save_ifs
14596         # Let DOS variable expansion print the short 8.3 style file name.
14597         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14598         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14599       done
14600       IFS=$lt_save_ifs
14601       # Convert to MSYS style.
14602       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14603       ;;
14604     cygwin*)
14605       # Convert to unix form, then to dos form, then back to unix form
14606       # but this time dos style (no spaces!) so that the unix form looks
14607       # like /cygdrive/c/PROGRA~1:/cygdr...
14608       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14609       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14610       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14611       ;;
14612     *)
14613       sys_lib_search_path_spec="$LIB"
14614       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14615         # It is most probably a Windows format PATH.
14616         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14617       else
14618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14619       fi
14620       # FIXME: find the short name or the path components, as spaces are
14621       # common. (e.g. "Program Files" -> "PROGRA~1")
14622       ;;
14623     esac
14624
14625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14626     postinstall_cmds='base_file=`basename \${file}`~
14627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14628       dldir=$destdir/`dirname \$dlpath`~
14629       test -d \$dldir || mkdir -p \$dldir~
14630       $install_prog $dir/$dlname \$dldir/$dlname'
14631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14632       dlpath=$dir/\$dldll~
14633        $RM \$dlpath'
14634     shlibpath_overrides_runpath=yes
14635     dynamic_linker='Win32 link.exe'
14636     ;;
14637
14638   *)
14639     # Assume MSVC wrapper
14640     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14641     dynamic_linker='Win32 ld.exe'
14642     ;;
14643   esac
14644   # FIXME: first we should search . and the directory the executable is in
14645   shlibpath_var=PATH
14646   ;;
14647
14648 darwin* | rhapsody*)
14649   dynamic_linker="$host_os dyld"
14650   version_type=darwin
14651   need_lib_prefix=no
14652   need_version=no
14653   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14654   soname_spec='${libname}${release}${major}$shared_ext'
14655   shlibpath_overrides_runpath=yes
14656   shlibpath_var=DYLD_LIBRARY_PATH
14657   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14658
14659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14660   ;;
14661
14662 dgux*)
14663   version_type=linux # correct to gnu/linux during the next big refactor
14664   need_lib_prefix=no
14665   need_version=no
14666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14667   soname_spec='${libname}${release}${shared_ext}$major'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   ;;
14670
14671 freebsd* | dragonfly*)
14672   # DragonFly does not have aout.  When/if they implement a new
14673   # versioning mechanism, adjust this.
14674   if test -x /usr/bin/objformat; then
14675     objformat=`/usr/bin/objformat`
14676   else
14677     case $host_os in
14678     freebsd[23].*) objformat=aout ;;
14679     *) objformat=elf ;;
14680     esac
14681   fi
14682   version_type=freebsd-$objformat
14683   case $version_type in
14684     freebsd-elf*)
14685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14686       need_version=no
14687       need_lib_prefix=no
14688       ;;
14689     freebsd-*)
14690       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14691       need_version=yes
14692       ;;
14693   esac
14694   shlibpath_var=LD_LIBRARY_PATH
14695   case $host_os in
14696   freebsd2.*)
14697     shlibpath_overrides_runpath=yes
14698     ;;
14699   freebsd3.[01]* | freebsdelf3.[01]*)
14700     shlibpath_overrides_runpath=yes
14701     hardcode_into_libs=yes
14702     ;;
14703   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14704   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14705     shlibpath_overrides_runpath=no
14706     hardcode_into_libs=yes
14707     ;;
14708   *) # from 4.6 on, and DragonFly
14709     shlibpath_overrides_runpath=yes
14710     hardcode_into_libs=yes
14711     ;;
14712   esac
14713   ;;
14714
14715 gnu*)
14716   version_type=linux # correct to gnu/linux during the next big refactor
14717   need_lib_prefix=no
14718   need_version=no
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14720   soname_spec='${libname}${release}${shared_ext}$major'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   shlibpath_overrides_runpath=no
14723   hardcode_into_libs=yes
14724   ;;
14725
14726 haiku*)
14727   version_type=linux # correct to gnu/linux during the next big refactor
14728   need_lib_prefix=no
14729   need_version=no
14730   dynamic_linker="$host_os runtime_loader"
14731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14732   soname_spec='${libname}${release}${shared_ext}$major'
14733   shlibpath_var=LIBRARY_PATH
14734   shlibpath_overrides_runpath=yes
14735   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14736   hardcode_into_libs=yes
14737   ;;
14738
14739 hpux9* | hpux10* | hpux11*)
14740   # Give a soname corresponding to the major version so that dld.sl refuses to
14741   # link against other versions.
14742   version_type=sunos
14743   need_lib_prefix=no
14744   need_version=no
14745   case $host_cpu in
14746   ia64*)
14747     shrext_cmds='.so'
14748     hardcode_into_libs=yes
14749     dynamic_linker="$host_os dld.so"
14750     shlibpath_var=LD_LIBRARY_PATH
14751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753     soname_spec='${libname}${release}${shared_ext}$major'
14754     if test "X$HPUX_IA64_MODE" = X32; then
14755       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14756     else
14757       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14758     fi
14759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14760     ;;
14761   hppa*64*)
14762     shrext_cmds='.sl'
14763     hardcode_into_libs=yes
14764     dynamic_linker="$host_os dld.sl"
14765     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14770     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14771     ;;
14772   *)
14773     shrext_cmds='.sl'
14774     dynamic_linker="$host_os dld.sl"
14775     shlibpath_var=SHLIB_PATH
14776     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778     soname_spec='${libname}${release}${shared_ext}$major'
14779     ;;
14780   esac
14781   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14782   postinstall_cmds='chmod 555 $lib'
14783   # or fails outright, so override atomically:
14784   install_override_mode=555
14785   ;;
14786
14787 interix[3-9]*)
14788   version_type=linux # correct to gnu/linux during the next big refactor
14789   need_lib_prefix=no
14790   need_version=no
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14792   soname_spec='${libname}${release}${shared_ext}$major'
14793   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14794   shlibpath_var=LD_LIBRARY_PATH
14795   shlibpath_overrides_runpath=no
14796   hardcode_into_libs=yes
14797   ;;
14798
14799 irix5* | irix6* | nonstopux*)
14800   case $host_os in
14801     nonstopux*) version_type=nonstopux ;;
14802     *)
14803         if test "$lt_cv_prog_gnu_ld" = yes; then
14804                 version_type=linux # correct to gnu/linux during the next big refactor
14805         else
14806                 version_type=irix
14807         fi ;;
14808   esac
14809   need_lib_prefix=no
14810   need_version=no
14811   soname_spec='${libname}${release}${shared_ext}$major'
14812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14813   case $host_os in
14814   irix5* | nonstopux*)
14815     libsuff= shlibsuff=
14816     ;;
14817   *)
14818     case $LD in # libtool.m4 will add one of these switches to LD
14819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14820       libsuff= shlibsuff= libmagic=32-bit;;
14821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14822       libsuff=32 shlibsuff=N32 libmagic=N32;;
14823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14825     *) libsuff= shlibsuff= libmagic=never-match;;
14826     esac
14827     ;;
14828   esac
14829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14830   shlibpath_overrides_runpath=no
14831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14833   hardcode_into_libs=yes
14834   ;;
14835
14836 # No shared lib support for Linux oldld, aout, or coff.
14837 linux*oldld* | linux*aout* | linux*coff*)
14838   dynamic_linker=no
14839   ;;
14840
14841 # This must be glibc/ELF.
14842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14843   version_type=linux # correct to gnu/linux during the next big refactor
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847   soname_spec='${libname}${release}${shared_ext}$major'
14848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   shlibpath_overrides_runpath=no
14851
14852   # Some binutils ld are patched to set DT_RUNPATH
14853   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14854   $as_echo_n "(cached) " >&6
14855 else
14856   lt_cv_shlibpath_overrides_runpath=no
14857     save_LDFLAGS=$LDFLAGS
14858     save_libdir=$libdir
14859     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14860          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863
14864 int
14865 main ()
14866 {
14867
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 if ac_fn_cxx_try_link "$LINENO"; then :
14873   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14874   lt_cv_shlibpath_overrides_runpath=yes
14875 fi
14876 fi
14877 rm -f core conftest.err conftest.$ac_objext \
14878     conftest$ac_exeext conftest.$ac_ext
14879     LDFLAGS=$save_LDFLAGS
14880     libdir=$save_libdir
14881
14882 fi
14883
14884   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14885
14886   # This implies no fast_install, which is unacceptable.
14887   # Some rework will be needed to allow for fast_install
14888   # before this can be enabled.
14889   hardcode_into_libs=yes
14890
14891   # Append ld.so.conf contents to the search path
14892   if test -f /etc/ld.so.conf; then
14893     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' ' '`
14894     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14895   fi
14896
14897   # We used to test for /lib/ld.so.1 and disable shared libraries on
14898   # powerpc, because MkLinux only supported shared libraries with the
14899   # GNU dynamic linker.  Since this was broken with cross compilers,
14900   # most powerpc-linux boxes support dynamic linking these days and
14901   # people can always --disable-shared, the test was removed, and we
14902   # assume the GNU/Linux dynamic linker is in use.
14903   dynamic_linker='GNU/Linux ld.so'
14904   ;;
14905
14906 netbsdelf*-gnu)
14907   version_type=linux
14908   need_lib_prefix=no
14909   need_version=no
14910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14911   soname_spec='${libname}${release}${shared_ext}$major'
14912   shlibpath_var=LD_LIBRARY_PATH
14913   shlibpath_overrides_runpath=no
14914   hardcode_into_libs=yes
14915   dynamic_linker='NetBSD ld.elf_so'
14916   ;;
14917
14918 netbsd*)
14919   version_type=sunos
14920   need_lib_prefix=no
14921   need_version=no
14922   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14925     dynamic_linker='NetBSD (a.out) ld.so'
14926   else
14927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14928     soname_spec='${libname}${release}${shared_ext}$major'
14929     dynamic_linker='NetBSD ld.elf_so'
14930   fi
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=yes
14933   hardcode_into_libs=yes
14934   ;;
14935
14936 newsos6)
14937   version_type=linux # correct to gnu/linux during the next big refactor
14938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=yes
14941   ;;
14942
14943 *nto* | *qnx*)
14944   version_type=qnx
14945   need_lib_prefix=no
14946   need_version=no
14947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948   soname_spec='${libname}${release}${shared_ext}$major'
14949   shlibpath_var=LD_LIBRARY_PATH
14950   shlibpath_overrides_runpath=no
14951   hardcode_into_libs=yes
14952   dynamic_linker='ldqnx.so'
14953   ;;
14954
14955 openbsd*)
14956   version_type=sunos
14957   sys_lib_dlsearch_path_spec="/usr/lib"
14958   need_lib_prefix=no
14959   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14960   case $host_os in
14961     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14962     *)                          need_version=no  ;;
14963   esac
14964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14966   shlibpath_var=LD_LIBRARY_PATH
14967   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14968     case $host_os in
14969       openbsd2.[89] | openbsd2.[89].*)
14970         shlibpath_overrides_runpath=no
14971         ;;
14972       *)
14973         shlibpath_overrides_runpath=yes
14974         ;;
14975       esac
14976   else
14977     shlibpath_overrides_runpath=yes
14978   fi
14979   ;;
14980
14981 os2*)
14982   libname_spec='$name'
14983   shrext_cmds=".dll"
14984   need_lib_prefix=no
14985   library_names_spec='$libname${shared_ext} $libname.a'
14986   dynamic_linker='OS/2 ld.exe'
14987   shlibpath_var=LIBPATH
14988   ;;
14989
14990 osf3* | osf4* | osf5*)
14991   version_type=osf
14992   need_lib_prefix=no
14993   need_version=no
14994   soname_spec='${libname}${release}${shared_ext}$major'
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996   shlibpath_var=LD_LIBRARY_PATH
14997   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14998   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14999   ;;
15000
15001 rdos*)
15002   dynamic_linker=no
15003   ;;
15004
15005 solaris*)
15006   version_type=linux # correct to gnu/linux during the next big refactor
15007   need_lib_prefix=no
15008   need_version=no
15009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   shlibpath_var=LD_LIBRARY_PATH
15012   shlibpath_overrides_runpath=yes
15013   hardcode_into_libs=yes
15014   # ldd complains unless libraries are executable
15015   postinstall_cmds='chmod +x $lib'
15016   ;;
15017
15018 sunos4*)
15019   version_type=sunos
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   shlibpath_overrides_runpath=yes
15024   if test "$with_gnu_ld" = yes; then
15025     need_lib_prefix=no
15026   fi
15027   need_version=yes
15028   ;;
15029
15030 sysv4 | sysv4.3*)
15031   version_type=linux # correct to gnu/linux during the next big refactor
15032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033   soname_spec='${libname}${release}${shared_ext}$major'
15034   shlibpath_var=LD_LIBRARY_PATH
15035   case $host_vendor in
15036     sni)
15037       shlibpath_overrides_runpath=no
15038       need_lib_prefix=no
15039       runpath_var=LD_RUN_PATH
15040       ;;
15041     siemens)
15042       need_lib_prefix=no
15043       ;;
15044     motorola)
15045       need_lib_prefix=no
15046       need_version=no
15047       shlibpath_overrides_runpath=no
15048       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15049       ;;
15050   esac
15051   ;;
15052
15053 sysv4*MP*)
15054   if test -d /usr/nec ;then
15055     version_type=linux # correct to gnu/linux during the next big refactor
15056     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15057     soname_spec='$libname${shared_ext}.$major'
15058     shlibpath_var=LD_LIBRARY_PATH
15059   fi
15060   ;;
15061
15062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15063   version_type=freebsd-elf
15064   need_lib_prefix=no
15065   need_version=no
15066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15067   soname_spec='${libname}${release}${shared_ext}$major'
15068   shlibpath_var=LD_LIBRARY_PATH
15069   shlibpath_overrides_runpath=yes
15070   hardcode_into_libs=yes
15071   if test "$with_gnu_ld" = yes; then
15072     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15073   else
15074     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15075     case $host_os in
15076       sco3.2v5*)
15077         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15078         ;;
15079     esac
15080   fi
15081   sys_lib_dlsearch_path_spec='/usr/lib'
15082   ;;
15083
15084 tpf*)
15085   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15086   version_type=linux # correct to gnu/linux during the next big refactor
15087   need_lib_prefix=no
15088   need_version=no
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090   shlibpath_var=LD_LIBRARY_PATH
15091   shlibpath_overrides_runpath=no
15092   hardcode_into_libs=yes
15093   ;;
15094
15095 uts4*)
15096   version_type=linux # correct to gnu/linux during the next big refactor
15097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098   soname_spec='${libname}${release}${shared_ext}$major'
15099   shlibpath_var=LD_LIBRARY_PATH
15100   ;;
15101
15102 *)
15103   dynamic_linker=no
15104   ;;
15105 esac
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15107 $as_echo "$dynamic_linker" >&6; }
15108 test "$dynamic_linker" = no && can_build_shared=no
15109
15110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15111 if test "$GCC" = yes; then
15112   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15113 fi
15114
15115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15116   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15117 fi
15118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15119   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15120 fi
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15160 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15161 hardcode_action_CXX=
15162 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15163    test -n "$runpath_var_CXX" ||
15164    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15165
15166   # We can hardcode non-existent directories.
15167   if test "$hardcode_direct_CXX" != no &&
15168      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15169      # have to relink, otherwise we might link with an installed library
15170      # when we should be linking with a yet-to-be-installed one
15171      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15172      test "$hardcode_minus_L_CXX" != no; then
15173     # Linking always hardcodes the temporary library directory.
15174     hardcode_action_CXX=relink
15175   else
15176     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15177     hardcode_action_CXX=immediate
15178   fi
15179 else
15180   # We cannot hardcode anything, or else we can only hardcode existing
15181   # directories.
15182   hardcode_action_CXX=unsupported
15183 fi
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15185 $as_echo "$hardcode_action_CXX" >&6; }
15186
15187 if test "$hardcode_action_CXX" = relink ||
15188    test "$inherit_rpath_CXX" = yes; then
15189   # Fast installation is not supported
15190   enable_fast_install=no
15191 elif test "$shlibpath_overrides_runpath" = yes ||
15192      test "$enable_shared" = no; then
15193   # Fast installation is not necessary
15194   enable_fast_install=needless
15195 fi
15196
15197
15198
15199
15200
15201
15202
15203   fi # test -n "$compiler"
15204
15205   CC=$lt_save_CC
15206   CFLAGS=$lt_save_CFLAGS
15207   LDCXX=$LD
15208   LD=$lt_save_LD
15209   GCC=$lt_save_GCC
15210   with_gnu_ld=$lt_save_with_gnu_ld
15211   lt_cv_path_LDCXX=$lt_cv_path_LD
15212   lt_cv_path_LD=$lt_save_path_LD
15213   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15214   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15215 fi # test "$_lt_caught_CXX_error" != yes
15216
15217 ac_ext=c
15218 ac_cpp='$CPP $CPPFLAGS'
15219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237         ac_config_commands="$ac_config_commands libtool"
15238
15239
15240
15241
15242 # Only expand once:
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15254         if test -n "$ac_tool_prefix"; then
15255   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15256 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258 $as_echo_n "checking for $ac_word... " >&6; }
15259 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   case $PKG_CONFIG in
15263   [\\/]* | ?:[\\/]*)
15264   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15265   ;;
15266   *)
15267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268 for as_dir in $PATH
15269 do
15270   IFS=$as_save_IFS
15271   test -z "$as_dir" && as_dir=.
15272     for ac_exec_ext in '' $ac_executable_extensions; do
15273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15274     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15276     break 2
15277   fi
15278 done
15279   done
15280 IFS=$as_save_IFS
15281
15282   ;;
15283 esac
15284 fi
15285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15286 if test -n "$PKG_CONFIG"; then
15287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15288 $as_echo "$PKG_CONFIG" >&6; }
15289 else
15290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15291 $as_echo "no" >&6; }
15292 fi
15293
15294
15295 fi
15296 if test -z "$ac_cv_path_PKG_CONFIG"; then
15297   ac_pt_PKG_CONFIG=$PKG_CONFIG
15298   # Extract the first word of "pkg-config", so it can be a program name with args.
15299 set dummy pkg-config; ac_word=$2
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15301 $as_echo_n "checking for $ac_word... " >&6; }
15302 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15303   $as_echo_n "(cached) " >&6
15304 else
15305   case $ac_pt_PKG_CONFIG in
15306   [\\/]* | ?:[\\/]*)
15307   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15308   ;;
15309   *)
15310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15311 for as_dir in $PATH
15312 do
15313   IFS=$as_save_IFS
15314   test -z "$as_dir" && as_dir=.
15315     for ac_exec_ext in '' $ac_executable_extensions; do
15316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15317     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15319     break 2
15320   fi
15321 done
15322   done
15323 IFS=$as_save_IFS
15324
15325   ;;
15326 esac
15327 fi
15328 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15329 if test -n "$ac_pt_PKG_CONFIG"; then
15330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15331 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15332 else
15333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334 $as_echo "no" >&6; }
15335 fi
15336
15337   if test "x$ac_pt_PKG_CONFIG" = x; then
15338     PKG_CONFIG=""
15339   else
15340     case $cross_compiling:$ac_tool_warned in
15341 yes:)
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15344 ac_tool_warned=yes ;;
15345 esac
15346     PKG_CONFIG=$ac_pt_PKG_CONFIG
15347   fi
15348 else
15349   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15350 fi
15351
15352 fi
15353 if test -n "$PKG_CONFIG"; then
15354         _pkg_min_version=0.9.0
15355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15356 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15357         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15358                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15360         else
15361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362 $as_echo "no" >&6; }
15363                 PKG_CONFIG=""
15364         fi
15365 fi
15366
15367 pkg_failed=no
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGRE" >&5
15369 $as_echo_n "checking for OGRE... " >&6; }
15370
15371 if test -n "$OGRE_CFLAGS"; then
15372     pkg_cv_OGRE_CFLAGS="$OGRE_CFLAGS"
15373  elif test -n "$PKG_CONFIG"; then
15374     if test -n "$PKG_CONFIG" && \
15375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OGRE >= 1.4.0\""; } >&5
15376   ($PKG_CONFIG --exists --print-errors "OGRE >= 1.4.0") 2>&5
15377   ac_status=$?
15378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379   test $ac_status = 0; }; then
15380   pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE >= 1.4.0" 2>/dev/null`
15381                       test "x$?" != "x0" && pkg_failed=yes
15382 else
15383   pkg_failed=yes
15384 fi
15385  else
15386     pkg_failed=untried
15387 fi
15388 if test -n "$OGRE_LIBS"; then
15389     pkg_cv_OGRE_LIBS="$OGRE_LIBS"
15390  elif test -n "$PKG_CONFIG"; then
15391     if test -n "$PKG_CONFIG" && \
15392     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OGRE >= 1.4.0\""; } >&5
15393   ($PKG_CONFIG --exists --print-errors "OGRE >= 1.4.0") 2>&5
15394   ac_status=$?
15395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396   test $ac_status = 0; }; then
15397   pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE >= 1.4.0" 2>/dev/null`
15398                       test "x$?" != "x0" && pkg_failed=yes
15399 else
15400   pkg_failed=yes
15401 fi
15402  else
15403     pkg_failed=untried
15404 fi
15405
15406
15407
15408 if test $pkg_failed = yes; then
15409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15411
15412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15413         _pkg_short_errors_supported=yes
15414 else
15415         _pkg_short_errors_supported=no
15416 fi
15417         if test $_pkg_short_errors_supported = yes; then
15418                 OGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OGRE >= 1.4.0" 2>&1`
15419         else
15420                 OGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OGRE >= 1.4.0" 2>&1`
15421         fi
15422         # Put the nasty error message in config.log where it belongs
15423         echo "$OGRE_PKG_ERRORS" >&5
15424
15425         as_fn_error $? "OGRE is required to compile OgreBullet" "$LINENO" 5
15426 elif test $pkg_failed = untried; then
15427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 $as_echo "no" >&6; }
15429         as_fn_error $? "OGRE is required to compile OgreBullet" "$LINENO" 5
15430 else
15431         OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS
15432         OGRE_LIBS=$pkg_cv_OGRE_LIBS
15433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15434 $as_echo "yes" >&6; }
15435
15436 fi
15437
15438
15439
15440
15441 pkg_failed=no
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bullet" >&5
15443 $as_echo_n "checking for bullet... " >&6; }
15444
15445 if test -n "$bullet_CFLAGS"; then
15446     pkg_cv_bullet_CFLAGS="$bullet_CFLAGS"
15447  elif test -n "$PKG_CONFIG"; then
15448     if test -n "$PKG_CONFIG" && \
15449     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bullet >= 2.6.0\""; } >&5
15450   ($PKG_CONFIG --exists --print-errors "bullet >= 2.6.0") 2>&5
15451   ac_status=$?
15452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15453   test $ac_status = 0; }; then
15454   pkg_cv_bullet_CFLAGS=`$PKG_CONFIG --cflags "bullet >= 2.6.0" 2>/dev/null`
15455                       test "x$?" != "x0" && pkg_failed=yes
15456 else
15457   pkg_failed=yes
15458 fi
15459  else
15460     pkg_failed=untried
15461 fi
15462 if test -n "$bullet_LIBS"; then
15463     pkg_cv_bullet_LIBS="$bullet_LIBS"
15464  elif test -n "$PKG_CONFIG"; then
15465     if test -n "$PKG_CONFIG" && \
15466     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bullet >= 2.6.0\""; } >&5
15467   ($PKG_CONFIG --exists --print-errors "bullet >= 2.6.0") 2>&5
15468   ac_status=$?
15469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470   test $ac_status = 0; }; then
15471   pkg_cv_bullet_LIBS=`$PKG_CONFIG --libs "bullet >= 2.6.0" 2>/dev/null`
15472                       test "x$?" != "x0" && pkg_failed=yes
15473 else
15474   pkg_failed=yes
15475 fi
15476  else
15477     pkg_failed=untried
15478 fi
15479
15480
15481
15482 if test $pkg_failed = yes; then
15483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484 $as_echo "no" >&6; }
15485
15486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15487         _pkg_short_errors_supported=yes
15488 else
15489         _pkg_short_errors_supported=no
15490 fi
15491         if test $_pkg_short_errors_supported = yes; then
15492                 bullet_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bullet >= 2.6.0" 2>&1`
15493         else
15494                 bullet_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bullet >= 2.6.0" 2>&1`
15495         fi
15496         # Put the nasty error message in config.log where it belongs
15497         echo "$bullet_PKG_ERRORS" >&5
15498
15499         as_fn_error $? "Bullet is required to compile OgreBullet" "$LINENO" 5
15500 elif test $pkg_failed = untried; then
15501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15503         as_fn_error $? "Bullet is required to compile OgreBullet" "$LINENO" 5
15504 else
15505         bullet_CFLAGS=$pkg_cv_bullet_CFLAGS
15506         bullet_LIBS=$pkg_cv_bullet_LIBS
15507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15509
15510 fi
15511
15512
15513
15514 ac_config_files="$ac_config_files Makefile Collisions/Makefile Collisions/src/Makefile Collisions/include/Makefile Collisions/include/Debug/Makefile Collisions/include/Shapes/Makefile Collisions/include/Utils/Makefile Dynamics/Makefile Dynamics/src/Makefile Dynamics/include/Makefile Dynamics/include/Constraints/Makefile Dynamics/include/Prefab/Makefile OgreBullet.pc"
15515
15516
15517 cat >confcache <<\_ACEOF
15518 # This file is a shell script that caches the results of configure
15519 # tests run on this system so they can be shared between configure
15520 # scripts and configure runs, see configure's option --config-cache.
15521 # It is not useful on other systems.  If it contains results you don't
15522 # want to keep, you may remove or edit it.
15523 #
15524 # config.status only pays attention to the cache file if you give it
15525 # the --recheck option to rerun configure.
15526 #
15527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15529 # following values.
15530
15531 _ACEOF
15532
15533 # The following way of writing the cache mishandles newlines in values,
15534 # but we know of no workaround that is simple, portable, and efficient.
15535 # So, we kill variables containing newlines.
15536 # Ultrix sh set writes to stderr and can't be redirected directly,
15537 # and sets the high bit in the cache file unless we assign to the vars.
15538 (
15539   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15540     eval ac_val=\$$ac_var
15541     case $ac_val in #(
15542     *${as_nl}*)
15543       case $ac_var in #(
15544       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15546       esac
15547       case $ac_var in #(
15548       _ | IFS | as_nl) ;; #(
15549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15550       *) { eval $ac_var=; unset $ac_var;} ;;
15551       esac ;;
15552     esac
15553   done
15554
15555   (set) 2>&1 |
15556     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15557     *${as_nl}ac_space=\ *)
15558       # `set' does not quote correctly, so add quotes: double-quote
15559       # substitution turns \\\\ into \\, and sed turns \\ into \.
15560       sed -n \
15561         "s/'/'\\\\''/g;
15562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15563       ;; #(
15564     *)
15565       # `set' quotes correctly as required by POSIX, so do not add quotes.
15566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15567       ;;
15568     esac |
15569     sort
15570 ) |
15571   sed '
15572      /^ac_cv_env_/b end
15573      t clear
15574      :clear
15575      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15576      t end
15577      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15578      :end' >>confcache
15579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15580   if test -w "$cache_file"; then
15581     if test "x$cache_file" != "x/dev/null"; then
15582       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15583 $as_echo "$as_me: updating cache $cache_file" >&6;}
15584       if test ! -f "$cache_file" || test -h "$cache_file"; then
15585         cat confcache >"$cache_file"
15586       else
15587         case $cache_file in #(
15588         */* | ?:*)
15589           mv -f confcache "$cache_file"$$ &&
15590           mv -f "$cache_file"$$ "$cache_file" ;; #(
15591         *)
15592           mv -f confcache "$cache_file" ;;
15593         esac
15594       fi
15595     fi
15596   else
15597     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15598 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15599   fi
15600 fi
15601 rm -f confcache
15602
15603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15604 # Let make expand exec_prefix.
15605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15606
15607 DEFS=-DHAVE_CONFIG_H
15608
15609 ac_libobjs=
15610 ac_ltlibobjs=
15611 U=
15612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15613   # 1. Remove the extension, and $U if already installed.
15614   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15615   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15616   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15617   #    will be set to the directory where LIBOBJS objects are built.
15618   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15619   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15620 done
15621 LIBOBJS=$ac_libobjs
15622
15623 LTLIBOBJS=$ac_ltlibobjs
15624
15625
15626  if test -n "$EXEEXT"; then
15627   am__EXEEXT_TRUE=
15628   am__EXEEXT_FALSE='#'
15629 else
15630   am__EXEEXT_TRUE='#'
15631   am__EXEEXT_FALSE=
15632 fi
15633
15634  if test -n "$EXEEXT"; then
15635   am__EXEEXT_TRUE=
15636   am__EXEEXT_FALSE='#'
15637 else
15638   am__EXEEXT_TRUE='#'
15639   am__EXEEXT_FALSE=
15640 fi
15641
15642 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15643   as_fn_error $? "conditional \"AMDEP\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645 fi
15646 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15647   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649 fi
15650 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15651   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 fi
15654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15655   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15657 fi
15658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15659   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661 fi
15662
15663 : "${CONFIG_STATUS=./config.status}"
15664 ac_write_fail=0
15665 ac_clean_files_save=$ac_clean_files
15666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15669 as_write_fail=0
15670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15671 #! $SHELL
15672 # Generated by $as_me.
15673 # Run this file to recreate the current configuration.
15674 # Compiler output produced by configure, useful for debugging
15675 # configure, is in config.log if it exists.
15676
15677 debug=false
15678 ac_cs_recheck=false
15679 ac_cs_silent=false
15680
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15682 export SHELL
15683 _ASEOF
15684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15688
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15692   emulate sh
15693   NULLCMD=:
15694   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15695   # is contrary to our usage.  Disable this feature.
15696   alias -g '${1+"$@"}'='"$@"'
15697   setopt NO_GLOB_SUBST
15698 else
15699   case `(set -o) 2>/dev/null` in #(
15700   *posix*) :
15701     set -o posix ;; #(
15702   *) :
15703      ;;
15704 esac
15705 fi
15706
15707
15708 as_nl='
15709 '
15710 export as_nl
15711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15715 # Prefer a ksh shell builtin over an external printf program on Solaris,
15716 # but without wasting forks for bash or zsh.
15717 if test -z "$BASH_VERSION$ZSH_VERSION" \
15718     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15719   as_echo='print -r --'
15720   as_echo_n='print -rn --'
15721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15722   as_echo='printf %s\n'
15723   as_echo_n='printf %s'
15724 else
15725   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15726     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15727     as_echo_n='/usr/ucb/echo -n'
15728   else
15729     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15730     as_echo_n_body='eval
15731       arg=$1;
15732       case $arg in #(
15733       *"$as_nl"*)
15734         expr "X$arg" : "X\\(.*\\)$as_nl";
15735         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15736       esac;
15737       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15738     '
15739     export as_echo_n_body
15740     as_echo_n='sh -c $as_echo_n_body as_echo'
15741   fi
15742   export as_echo_body
15743   as_echo='sh -c $as_echo_body as_echo'
15744 fi
15745
15746 # The user is always right.
15747 if test "${PATH_SEPARATOR+set}" != set; then
15748   PATH_SEPARATOR=:
15749   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15750     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15751       PATH_SEPARATOR=';'
15752   }
15753 fi
15754
15755
15756 # IFS
15757 # We need space, tab and new line, in precisely that order.  Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15761 IFS=" ""        $as_nl"
15762
15763 # Find who we are.  Look in the path if we contain no directory separator.
15764 as_myself=
15765 case $0 in #((
15766   *[\\/]* ) as_myself=$0 ;;
15767   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15769 do
15770   IFS=$as_save_IFS
15771   test -z "$as_dir" && as_dir=.
15772     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15773   done
15774 IFS=$as_save_IFS
15775
15776      ;;
15777 esac
15778 # We did not find ourselves, most probably we were run as `sh COMMAND'
15779 # in which case we are not to be found in the path.
15780 if test "x$as_myself" = x; then
15781   as_myself=$0
15782 fi
15783 if test ! -f "$as_myself"; then
15784   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15785   exit 1
15786 fi
15787
15788 # Unset variables that we do not need and which cause bugs (e.g. in
15789 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15790 # suppresses any "Segmentation fault" message there.  '((' could
15791 # trigger a bug in pdksh 5.2.14.
15792 for as_var in BASH_ENV ENV MAIL MAILPATH
15793 do eval test x\${$as_var+set} = xset \
15794   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15795 done
15796 PS1='$ '
15797 PS2='> '
15798 PS4='+ '
15799
15800 # NLS nuisances.
15801 LC_ALL=C
15802 export LC_ALL
15803 LANGUAGE=C
15804 export LANGUAGE
15805
15806 # CDPATH.
15807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15808
15809
15810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15811 # ----------------------------------------
15812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15814 # script with STATUS, using 1 if that was 0.
15815 as_fn_error ()
15816 {
15817   as_status=$1; test $as_status -eq 0 && as_status=1
15818   if test "$4"; then
15819     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15820     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15821   fi
15822   $as_echo "$as_me: error: $2" >&2
15823   as_fn_exit $as_status
15824 } # as_fn_error
15825
15826
15827 # as_fn_set_status STATUS
15828 # -----------------------
15829 # Set $? to STATUS, without forking.
15830 as_fn_set_status ()
15831 {
15832   return $1
15833 } # as_fn_set_status
15834
15835 # as_fn_exit STATUS
15836 # -----------------
15837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15838 as_fn_exit ()
15839 {
15840   set +e
15841   as_fn_set_status $1
15842   exit $1
15843 } # as_fn_exit
15844
15845 # as_fn_unset VAR
15846 # ---------------
15847 # Portably unset VAR.
15848 as_fn_unset ()
15849 {
15850   { eval $1=; unset $1;}
15851 }
15852 as_unset=as_fn_unset
15853 # as_fn_append VAR VALUE
15854 # ----------------------
15855 # Append the text in VALUE to the end of the definition contained in VAR. Take
15856 # advantage of any shell optimizations that allow amortized linear growth over
15857 # repeated appends, instead of the typical quadratic growth present in naive
15858 # implementations.
15859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15860   eval 'as_fn_append ()
15861   {
15862     eval $1+=\$2
15863   }'
15864 else
15865   as_fn_append ()
15866   {
15867     eval $1=\$$1\$2
15868   }
15869 fi # as_fn_append
15870
15871 # as_fn_arith ARG...
15872 # ------------------
15873 # Perform arithmetic evaluation on the ARGs, and store the result in the
15874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15875 # must be portable across $(()) and expr.
15876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15877   eval 'as_fn_arith ()
15878   {
15879     as_val=$(( $* ))
15880   }'
15881 else
15882   as_fn_arith ()
15883   {
15884     as_val=`expr "$@" || test $? -eq 1`
15885   }
15886 fi # as_fn_arith
15887
15888
15889 if expr a : '\(a\)' >/dev/null 2>&1 &&
15890    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15891   as_expr=expr
15892 else
15893   as_expr=false
15894 fi
15895
15896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15897   as_basename=basename
15898 else
15899   as_basename=false
15900 fi
15901
15902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15903   as_dirname=dirname
15904 else
15905   as_dirname=false
15906 fi
15907
15908 as_me=`$as_basename -- "$0" ||
15909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15910          X"$0" : 'X\(//\)$' \| \
15911          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15912 $as_echo X/"$0" |
15913     sed '/^.*\/\([^/][^/]*\)\/*$/{
15914             s//\1/
15915             q
15916           }
15917           /^X\/\(\/\/\)$/{
15918             s//\1/
15919             q
15920           }
15921           /^X\/\(\/\).*/{
15922             s//\1/
15923             q
15924           }
15925           s/.*/./; q'`
15926
15927 # Avoid depending upon Character Ranges.
15928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15931 as_cr_digits='0123456789'
15932 as_cr_alnum=$as_cr_Letters$as_cr_digits
15933
15934 ECHO_C= ECHO_N= ECHO_T=
15935 case `echo -n x` in #(((((
15936 -n*)
15937   case `echo 'xy\c'` in
15938   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15939   xy)  ECHO_C='\c';;
15940   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15941        ECHO_T=' ';;
15942   esac;;
15943 *)
15944   ECHO_N='-n';;
15945 esac
15946
15947 rm -f conf$$ conf$$.exe conf$$.file
15948 if test -d conf$$.dir; then
15949   rm -f conf$$.dir/conf$$.file
15950 else
15951   rm -f conf$$.dir
15952   mkdir conf$$.dir 2>/dev/null
15953 fi
15954 if (echo >conf$$.file) 2>/dev/null; then
15955   if ln -s conf$$.file conf$$ 2>/dev/null; then
15956     as_ln_s='ln -s'
15957     # ... but there are two gotchas:
15958     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15959     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15960     # In both cases, we have to default to `cp -p'.
15961     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15962       as_ln_s='cp -p'
15963   elif ln conf$$.file conf$$ 2>/dev/null; then
15964     as_ln_s=ln
15965   else
15966     as_ln_s='cp -p'
15967   fi
15968 else
15969   as_ln_s='cp -p'
15970 fi
15971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15972 rmdir conf$$.dir 2>/dev/null
15973
15974
15975 # as_fn_mkdir_p
15976 # -------------
15977 # Create "$as_dir" as a directory, including parents if necessary.
15978 as_fn_mkdir_p ()
15979 {
15980
15981   case $as_dir in #(
15982   -*) as_dir=./$as_dir;;
15983   esac
15984   test -d "$as_dir" || eval $as_mkdir_p || {
15985     as_dirs=
15986     while :; do
15987       case $as_dir in #(
15988       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15989       *) as_qdir=$as_dir;;
15990       esac
15991       as_dirs="'$as_qdir' $as_dirs"
15992       as_dir=`$as_dirname -- "$as_dir" ||
15993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15994          X"$as_dir" : 'X\(//\)[^/]' \| \
15995          X"$as_dir" : 'X\(//\)$' \| \
15996          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15997 $as_echo X"$as_dir" |
15998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15999             s//\1/
16000             q
16001           }
16002           /^X\(\/\/\)[^/].*/{
16003             s//\1/
16004             q
16005           }
16006           /^X\(\/\/\)$/{
16007             s//\1/
16008             q
16009           }
16010           /^X\(\/\).*/{
16011             s//\1/
16012             q
16013           }
16014           s/.*/./; q'`
16015       test -d "$as_dir" && break
16016     done
16017     test -z "$as_dirs" || eval "mkdir $as_dirs"
16018   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16019
16020
16021 } # as_fn_mkdir_p
16022 if mkdir -p . 2>/dev/null; then
16023   as_mkdir_p='mkdir -p "$as_dir"'
16024 else
16025   test -d ./-p && rmdir ./-p
16026   as_mkdir_p=false
16027 fi
16028
16029 if test -x / >/dev/null 2>&1; then
16030   as_test_x='test -x'
16031 else
16032   if ls -dL / >/dev/null 2>&1; then
16033     as_ls_L_option=L
16034   else
16035     as_ls_L_option=
16036   fi
16037   as_test_x='
16038     eval sh -c '\''
16039       if test -d "$1"; then
16040         test -d "$1/.";
16041       else
16042         case $1 in #(
16043         -*)set "./$1";;
16044         esac;
16045         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16046         ???[sx]*):;;*)false;;esac;fi
16047     '\'' sh
16048   '
16049 fi
16050 as_executable_p=$as_test_x
16051
16052 # Sed expression to map a string onto a valid CPP name.
16053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16054
16055 # Sed expression to map a string onto a valid variable name.
16056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16057
16058
16059 exec 6>&1
16060 ## ----------------------------------- ##
16061 ## Main body of $CONFIG_STATUS script. ##
16062 ## ----------------------------------- ##
16063 _ASEOF
16064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16065
16066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16067 # Save the log message, to keep $0 and so on meaningful, and to
16068 # report actual input values of CONFIG_FILES etc. instead of their
16069 # values after options handling.
16070 ac_log="
16071 This file was extended by OgreBullet $as_me 0.2, which was
16072 generated by GNU Autoconf 2.68.  Invocation command line was
16073
16074   CONFIG_FILES    = $CONFIG_FILES
16075   CONFIG_HEADERS  = $CONFIG_HEADERS
16076   CONFIG_LINKS    = $CONFIG_LINKS
16077   CONFIG_COMMANDS = $CONFIG_COMMANDS
16078   $ $0 $@
16079
16080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16081 "
16082
16083 _ACEOF
16084
16085 case $ac_config_files in *"
16086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16087 esac
16088
16089 case $ac_config_headers in *"
16090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16091 esac
16092
16093
16094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16095 # Files that config.status was made for.
16096 config_files="$ac_config_files"
16097 config_headers="$ac_config_headers"
16098 config_commands="$ac_config_commands"
16099
16100 _ACEOF
16101
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 ac_cs_usage="\
16104 \`$as_me' instantiates files and other configuration actions
16105 from templates according to the current configuration.  Unless the files
16106 and actions are specified as TAGs, all are instantiated by default.
16107
16108 Usage: $0 [OPTION]... [TAG]...
16109
16110   -h, --help       print this help, then exit
16111   -V, --version    print version number and configuration settings, then exit
16112       --config     print configuration, then exit
16113   -q, --quiet, --silent
16114                    do not print progress messages
16115   -d, --debug      don't remove temporary files
16116       --recheck    update $as_me by reconfiguring in the same conditions
16117       --file=FILE[:TEMPLATE]
16118                    instantiate the configuration file FILE
16119       --header=FILE[:TEMPLATE]
16120                    instantiate the configuration header FILE
16121
16122 Configuration files:
16123 $config_files
16124
16125 Configuration headers:
16126 $config_headers
16127
16128 Configuration commands:
16129 $config_commands
16130
16131 Report bugs to the package provider."
16132
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16136 ac_cs_version="\\
16137 OgreBullet config.status 0.2
16138 configured by $0, generated by GNU Autoconf 2.68,
16139   with options \\"\$ac_cs_config\\"
16140
16141 Copyright (C) 2010 Free Software Foundation, Inc.
16142 This config.status script is free software; the Free Software Foundation
16143 gives unlimited permission to copy, distribute and modify it."
16144
16145 ac_pwd='$ac_pwd'
16146 srcdir='$srcdir'
16147 INSTALL='$INSTALL'
16148 MKDIR_P='$MKDIR_P'
16149 AWK='$AWK'
16150 test -n "\$AWK" || AWK=awk
16151 _ACEOF
16152
16153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16154 # The default lists apply if the user does not specify any file.
16155 ac_need_defaults=:
16156 while test $# != 0
16157 do
16158   case $1 in
16159   --*=?*)
16160     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16161     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16162     ac_shift=:
16163     ;;
16164   --*=)
16165     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16166     ac_optarg=
16167     ac_shift=:
16168     ;;
16169   *)
16170     ac_option=$1
16171     ac_optarg=$2
16172     ac_shift=shift
16173     ;;
16174   esac
16175
16176   case $ac_option in
16177   # Handling of the options.
16178   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16179     ac_cs_recheck=: ;;
16180   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16181     $as_echo "$ac_cs_version"; exit ;;
16182   --config | --confi | --conf | --con | --co | --c )
16183     $as_echo "$ac_cs_config"; exit ;;
16184   --debug | --debu | --deb | --de | --d | -d )
16185     debug=: ;;
16186   --file | --fil | --fi | --f )
16187     $ac_shift
16188     case $ac_optarg in
16189     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16190     '') as_fn_error $? "missing file argument" ;;
16191     esac
16192     as_fn_append CONFIG_FILES " '$ac_optarg'"
16193     ac_need_defaults=false;;
16194   --header | --heade | --head | --hea )
16195     $ac_shift
16196     case $ac_optarg in
16197     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16198     esac
16199     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16200     ac_need_defaults=false;;
16201   --he | --h)
16202     # Conflict between --help and --header
16203     as_fn_error $? "ambiguous option: \`$1'
16204 Try \`$0 --help' for more information.";;
16205   --help | --hel | -h )
16206     $as_echo "$ac_cs_usage"; exit ;;
16207   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16208   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16209     ac_cs_silent=: ;;
16210
16211   # This is an error.
16212   -*) as_fn_error $? "unrecognized option: \`$1'
16213 Try \`$0 --help' for more information." ;;
16214
16215   *) as_fn_append ac_config_targets " $1"
16216      ac_need_defaults=false ;;
16217
16218   esac
16219   shift
16220 done
16221
16222 ac_configure_extra_args=
16223
16224 if $ac_cs_silent; then
16225   exec 6>/dev/null
16226   ac_configure_extra_args="$ac_configure_extra_args --silent"
16227 fi
16228
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 if \$ac_cs_recheck; then
16232   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16233   shift
16234   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16235   CONFIG_SHELL='$SHELL'
16236   export CONFIG_SHELL
16237   exec "\$@"
16238 fi
16239
16240 _ACEOF
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242 exec 5>>config.log
16243 {
16244   echo
16245   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16246 ## Running $as_me. ##
16247 _ASBOX
16248   $as_echo "$ac_log"
16249 } >&5
16250
16251 _ACEOF
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253 #
16254 # INIT-COMMANDS
16255 #
16256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16257
16258
16259 # The HP-UX ksh and POSIX shell print the target directory to stdout
16260 # if CDPATH is set.
16261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16262
16263 sed_quote_subst='$sed_quote_subst'
16264 double_quote_subst='$double_quote_subst'
16265 delay_variable_subst='$delay_variable_subst'
16266 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16267 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16268 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16269 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16270 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16271 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16272 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16273 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16274 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16275 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16276 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16277 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16278 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16279 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16280 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16281 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16282 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16283 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16284 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16285 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16286 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16287 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16288 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16289 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16290 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16291 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16292 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16293 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16294 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16295 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16296 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16297 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16298 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16299 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16300 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16301 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16302 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16303 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16304 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16305 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16306 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16307 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16308 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16309 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16310 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16311 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16312 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16313 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16314 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16315 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16316 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16317 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16318 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16319 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16320 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16321 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16322 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"`'
16323 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16324 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16325 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16326 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16327 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16328 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16329 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16330 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16331 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16332 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16333 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16334 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16335 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16336 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16337 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16338 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16339 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16340 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16341 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16342 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16343 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16344 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16345 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16346 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16347 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16348 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16349 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16350 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16351 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16352 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16353 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16354 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16355 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16356 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16357 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16358 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16359 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16360 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16361 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16362 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16363 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16364 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16365 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16366 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16367 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16368 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16369 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16370 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16371 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16372 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16373 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16374 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16375 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16376 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16377 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16378 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16379 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16380 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16381 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16382 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16383 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16384 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16385 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16386 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16387 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16388 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16389 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16390 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16391 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16392 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16393 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16394 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16395 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16396 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16397 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16398 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16399 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16400 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16401 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16402 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16403 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16404 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16405 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16406 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16407 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16408 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16409 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16410 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16411 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16412 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16413 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16414 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16415 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16416 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16417 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16418 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16419 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16420 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16421 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16422 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16423 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16424 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16425 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16426 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16427 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16428 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16429 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16430 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16431 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16432 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16433 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16434 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16435 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16436 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16437 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16438 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16439 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16440 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16441 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16442 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16443 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16444 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16445 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16446 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16447 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16448 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16449 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16450
16451 LTCC='$LTCC'
16452 LTCFLAGS='$LTCFLAGS'
16453 compiler='$compiler_DEFAULT'
16454
16455 # A function that is used when there is no print builtin or printf.
16456 func_fallback_echo ()
16457 {
16458   eval 'cat <<_LTECHO_EOF
16459 \$1
16460 _LTECHO_EOF'
16461 }
16462
16463 # Quote evaled strings.
16464 for var in SHELL \
16465 ECHO \
16466 PATH_SEPARATOR \
16467 SED \
16468 GREP \
16469 EGREP \
16470 FGREP \
16471 LD \
16472 NM \
16473 LN_S \
16474 lt_SP2NL \
16475 lt_NL2SP \
16476 reload_flag \
16477 OBJDUMP \
16478 deplibs_check_method \
16479 file_magic_cmd \
16480 file_magic_glob \
16481 want_nocaseglob \
16482 DLLTOOL \
16483 sharedlib_from_linklib_cmd \
16484 AR \
16485 AR_FLAGS \
16486 archiver_list_spec \
16487 STRIP \
16488 RANLIB \
16489 CC \
16490 CFLAGS \
16491 compiler \
16492 lt_cv_sys_global_symbol_pipe \
16493 lt_cv_sys_global_symbol_to_cdecl \
16494 lt_cv_sys_global_symbol_to_c_name_address \
16495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16496 nm_file_list_spec \
16497 lt_prog_compiler_no_builtin_flag \
16498 lt_prog_compiler_pic \
16499 lt_prog_compiler_wl \
16500 lt_prog_compiler_static \
16501 lt_cv_prog_compiler_c_o \
16502 need_locks \
16503 MANIFEST_TOOL \
16504 DSYMUTIL \
16505 NMEDIT \
16506 LIPO \
16507 OTOOL \
16508 OTOOL64 \
16509 shrext_cmds \
16510 export_dynamic_flag_spec \
16511 whole_archive_flag_spec \
16512 compiler_needs_object \
16513 with_gnu_ld \
16514 allow_undefined_flag \
16515 no_undefined_flag \
16516 hardcode_libdir_flag_spec \
16517 hardcode_libdir_separator \
16518 exclude_expsyms \
16519 include_expsyms \
16520 file_list_spec \
16521 variables_saved_for_relink \
16522 libname_spec \
16523 library_names_spec \
16524 soname_spec \
16525 install_override_mode \
16526 finish_eval \
16527 old_striplib \
16528 striplib \
16529 compiler_lib_search_dirs \
16530 predep_objects \
16531 postdep_objects \
16532 predeps \
16533 postdeps \
16534 compiler_lib_search_path \
16535 LD_CXX \
16536 reload_flag_CXX \
16537 compiler_CXX \
16538 lt_prog_compiler_no_builtin_flag_CXX \
16539 lt_prog_compiler_pic_CXX \
16540 lt_prog_compiler_wl_CXX \
16541 lt_prog_compiler_static_CXX \
16542 lt_cv_prog_compiler_c_o_CXX \
16543 export_dynamic_flag_spec_CXX \
16544 whole_archive_flag_spec_CXX \
16545 compiler_needs_object_CXX \
16546 with_gnu_ld_CXX \
16547 allow_undefined_flag_CXX \
16548 no_undefined_flag_CXX \
16549 hardcode_libdir_flag_spec_CXX \
16550 hardcode_libdir_separator_CXX \
16551 exclude_expsyms_CXX \
16552 include_expsyms_CXX \
16553 file_list_spec_CXX \
16554 compiler_lib_search_dirs_CXX \
16555 predep_objects_CXX \
16556 postdep_objects_CXX \
16557 predeps_CXX \
16558 postdeps_CXX \
16559 compiler_lib_search_path_CXX; do
16560     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16561     *[\\\\\\\`\\"\\\$]*)
16562       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16563       ;;
16564     *)
16565       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16566       ;;
16567     esac
16568 done
16569
16570 # Double-quote double-evaled strings.
16571 for var in reload_cmds \
16572 old_postinstall_cmds \
16573 old_postuninstall_cmds \
16574 old_archive_cmds \
16575 extract_expsyms_cmds \
16576 old_archive_from_new_cmds \
16577 old_archive_from_expsyms_cmds \
16578 archive_cmds \
16579 archive_expsym_cmds \
16580 module_cmds \
16581 module_expsym_cmds \
16582 export_symbols_cmds \
16583 prelink_cmds \
16584 postlink_cmds \
16585 postinstall_cmds \
16586 postuninstall_cmds \
16587 finish_cmds \
16588 sys_lib_search_path_spec \
16589 sys_lib_dlsearch_path_spec \
16590 reload_cmds_CXX \
16591 old_archive_cmds_CXX \
16592 old_archive_from_new_cmds_CXX \
16593 old_archive_from_expsyms_cmds_CXX \
16594 archive_cmds_CXX \
16595 archive_expsym_cmds_CXX \
16596 module_cmds_CXX \
16597 module_expsym_cmds_CXX \
16598 export_symbols_cmds_CXX \
16599 prelink_cmds_CXX \
16600 postlink_cmds_CXX; do
16601     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16602     *[\\\\\\\`\\"\\\$]*)
16603       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16604       ;;
16605     *)
16606       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16607       ;;
16608     esac
16609 done
16610
16611 ac_aux_dir='$ac_aux_dir'
16612 xsi_shell='$xsi_shell'
16613 lt_shell_append='$lt_shell_append'
16614
16615 # See if we are running on zsh, and set the options which allow our
16616 # commands through without removal of \ escapes INIT.
16617 if test -n "\${ZSH_VERSION+set}" ; then
16618    setopt NO_GLOB_SUBST
16619 fi
16620
16621
16622     PACKAGE='$PACKAGE'
16623     VERSION='$VERSION'
16624     TIMESTAMP='$TIMESTAMP'
16625     RM='$RM'
16626     ofile='$ofile'
16627
16628
16629
16630
16631
16632
16633 _ACEOF
16634
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16636
16637 # Handling of arguments.
16638 for ac_config_target in $ac_config_targets
16639 do
16640   case $ac_config_target in
16641     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16642     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16643     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16644     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16645     "Collisions/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/Makefile" ;;
16646     "Collisions/src/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/src/Makefile" ;;
16647     "Collisions/include/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Makefile" ;;
16648     "Collisions/include/Debug/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Debug/Makefile" ;;
16649     "Collisions/include/Shapes/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Shapes/Makefile" ;;
16650     "Collisions/include/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Utils/Makefile" ;;
16651     "Dynamics/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/Makefile" ;;
16652     "Dynamics/src/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/src/Makefile" ;;
16653     "Dynamics/include/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Makefile" ;;
16654     "Dynamics/include/Constraints/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Constraints/Makefile" ;;
16655     "Dynamics/include/Prefab/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Prefab/Makefile" ;;
16656     "OgreBullet.pc") CONFIG_FILES="$CONFIG_FILES OgreBullet.pc" ;;
16657
16658   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16659   esac
16660 done
16661
16662
16663 # If the user did not use the arguments to specify the items to instantiate,
16664 # then the envvar interface is used.  Set only those that are not.
16665 # We use the long form for the default assignment because of an extremely
16666 # bizarre bug on SunOS 4.1.3.
16667 if $ac_need_defaults; then
16668   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16669   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16670   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16671 fi
16672
16673 # Have a temporary directory for convenience.  Make it in the build tree
16674 # simply because there is no reason against having it here, and in addition,
16675 # creating and moving files from /tmp can sometimes cause problems.
16676 # Hook for its removal unless debugging.
16677 # Note that there is a small window in which the directory will not be cleaned:
16678 # after its creation but before its name has been assigned to `$tmp'.
16679 $debug ||
16680 {
16681   tmp= ac_tmp=
16682   trap 'exit_status=$?
16683   : "${ac_tmp:=$tmp}"
16684   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16685 ' 0
16686   trap 'as_fn_exit 1' 1 2 13 15
16687 }
16688 # Create a (secure) tmp directory for tmp files.
16689
16690 {
16691   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16692   test -d "$tmp"
16693 }  ||
16694 {
16695   tmp=./conf$$-$RANDOM
16696   (umask 077 && mkdir "$tmp")
16697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16698 ac_tmp=$tmp
16699
16700 # Set up the scripts for CONFIG_FILES section.
16701 # No need to generate them if there are no CONFIG_FILES.
16702 # This happens for instance with `./config.status config.h'.
16703 if test -n "$CONFIG_FILES"; then
16704
16705
16706 ac_cr=`echo X | tr X '\015'`
16707 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16708 # But we know of no other shell where ac_cr would be empty at this
16709 # point, so we can use a bashism as a fallback.
16710 if test "x$ac_cr" = x; then
16711   eval ac_cr=\$\'\\r\'
16712 fi
16713 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16714 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16715   ac_cs_awk_cr='\\r'
16716 else
16717   ac_cs_awk_cr=$ac_cr
16718 fi
16719
16720 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16721 _ACEOF
16722
16723
16724 {
16725   echo "cat >conf$$subs.awk <<_ACEOF" &&
16726   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16727   echo "_ACEOF"
16728 } >conf$$subs.sh ||
16729   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16730 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16731 ac_delim='%!_!# '
16732 for ac_last_try in false false false false false :; do
16733   . ./conf$$subs.sh ||
16734     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16735
16736   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16737   if test $ac_delim_n = $ac_delim_num; then
16738     break
16739   elif $ac_last_try; then
16740     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16741   else
16742     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16743   fi
16744 done
16745 rm -f conf$$subs.sh
16746
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16749 _ACEOF
16750 sed -n '
16751 h
16752 s/^/S["/; s/!.*/"]=/
16753 p
16754 g
16755 s/^[^!]*!//
16756 :repl
16757 t repl
16758 s/'"$ac_delim"'$//
16759 t delim
16760 :nl
16761 h
16762 s/\(.\{148\}\)..*/\1/
16763 t more1
16764 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16765 p
16766 n
16767 b repl
16768 :more1
16769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16770 p
16771 g
16772 s/.\{148\}//
16773 t nl
16774 :delim
16775 h
16776 s/\(.\{148\}\)..*/\1/
16777 t more2
16778 s/["\\]/\\&/g; s/^/"/; s/$/"/
16779 p
16780 b
16781 :more2
16782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16783 p
16784 g
16785 s/.\{148\}//
16786 t delim
16787 ' <conf$$subs.awk | sed '
16788 /^[^""]/{
16789   N
16790   s/\n//
16791 }
16792 ' >>$CONFIG_STATUS || ac_write_fail=1
16793 rm -f conf$$subs.awk
16794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16795 _ACAWK
16796 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16797   for (key in S) S_is_set[key] = 1
16798   FS = "\a"
16799
16800 }
16801 {
16802   line = $ 0
16803   nfields = split(line, field, "@")
16804   substed = 0
16805   len = length(field[1])
16806   for (i = 2; i < nfields; i++) {
16807     key = field[i]
16808     keylen = length(key)
16809     if (S_is_set[key]) {
16810       value = S[key]
16811       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16812       len += length(value) + length(field[++i])
16813       substed = 1
16814     } else
16815       len += 1 + keylen
16816   }
16817
16818   print line
16819 }
16820
16821 _ACAWK
16822 _ACEOF
16823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16825   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16826 else
16827   cat
16828 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16829   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16830 _ACEOF
16831
16832 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16833 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16834 # trailing colons and then remove the whole line if VPATH becomes empty
16835 # (actually we leave an empty line to preserve line numbers).
16836 if test "x$srcdir" = x.; then
16837   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16838 h
16839 s///
16840 s/^/:/
16841 s/[      ]*$/:/
16842 s/:\$(srcdir):/:/g
16843 s/:\${srcdir}:/:/g
16844 s/:@srcdir@:/:/g
16845 s/^:*//
16846 s/:*$//
16847 x
16848 s/\(=[   ]*\).*/\1/
16849 G
16850 s/\n//
16851 s/^[^=]*=[       ]*$//
16852 }'
16853 fi
16854
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 fi # test -n "$CONFIG_FILES"
16857
16858 # Set up the scripts for CONFIG_HEADERS section.
16859 # No need to generate them if there are no CONFIG_HEADERS.
16860 # This happens for instance with `./config.status Makefile'.
16861 if test -n "$CONFIG_HEADERS"; then
16862 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16863 BEGIN {
16864 _ACEOF
16865
16866 # Transform confdefs.h into an awk script `defines.awk', embedded as
16867 # here-document in config.status, that substitutes the proper values into
16868 # config.h.in to produce config.h.
16869
16870 # Create a delimiter string that does not exist in confdefs.h, to ease
16871 # handling of long lines.
16872 ac_delim='%!_!# '
16873 for ac_last_try in false false :; do
16874   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16875   if test -z "$ac_tt"; then
16876     break
16877   elif $ac_last_try; then
16878     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16879   else
16880     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16881   fi
16882 done
16883
16884 # For the awk script, D is an array of macro values keyed by name,
16885 # likewise P contains macro parameters if any.  Preserve backslash
16886 # newline sequences.
16887
16888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16889 sed -n '
16890 s/.\{148\}/&'"$ac_delim"'/g
16891 t rset
16892 :rset
16893 s/^[     ]*#[    ]*define[       ][      ]*/ /
16894 t def
16895 d
16896 :def
16897 s/\\$//
16898 t bsnl
16899 s/["\\]/\\&/g
16900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16901 D["\1"]=" \3"/p
16902 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16903 d
16904 :bsnl
16905 s/["\\]/\\&/g
16906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16907 D["\1"]=" \3\\\\\\n"\\/p
16908 t cont
16909 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16910 t cont
16911 d
16912 :cont
16913 n
16914 s/.\{148\}/&'"$ac_delim"'/g
16915 t clear
16916 :clear
16917 s/\\$//
16918 t bsnlc
16919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16920 d
16921 :bsnlc
16922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16923 b cont
16924 ' <confdefs.h | sed '
16925 s/'"$ac_delim"'/"\\\
16926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16927
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929   for (key in D) D_is_set[key] = 1
16930   FS = "\a"
16931 }
16932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16933   line = \$ 0
16934   split(line, arg, " ")
16935   if (arg[1] == "#") {
16936     defundef = arg[2]
16937     mac1 = arg[3]
16938   } else {
16939     defundef = substr(arg[1], 2)
16940     mac1 = arg[2]
16941   }
16942   split(mac1, mac2, "(") #)
16943   macro = mac2[1]
16944   prefix = substr(line, 1, index(line, defundef) - 1)
16945   if (D_is_set[macro]) {
16946     # Preserve the white space surrounding the "#".
16947     print prefix "define", macro P[macro] D[macro]
16948     next
16949   } else {
16950     # Replace #undef with comments.  This is necessary, for example,
16951     # in the case of _POSIX_SOURCE, which is predefined and required
16952     # on some systems where configure will not decide to define it.
16953     if (defundef == "undef") {
16954       print "/*", prefix defundef, macro, "*/"
16955       next
16956     }
16957   }
16958 }
16959 { print }
16960 _ACAWK
16961 _ACEOF
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16964 fi # test -n "$CONFIG_HEADERS"
16965
16966
16967 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16968 shift
16969 for ac_tag
16970 do
16971   case $ac_tag in
16972   :[FHLC]) ac_mode=$ac_tag; continue;;
16973   esac
16974   case $ac_mode$ac_tag in
16975   :[FHL]*:*);;
16976   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16977   :[FH]-) ac_tag=-:-;;
16978   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16979   esac
16980   ac_save_IFS=$IFS
16981   IFS=:
16982   set x $ac_tag
16983   IFS=$ac_save_IFS
16984   shift
16985   ac_file=$1
16986   shift
16987
16988   case $ac_mode in
16989   :L) ac_source=$1;;
16990   :[FH])
16991     ac_file_inputs=
16992     for ac_f
16993     do
16994       case $ac_f in
16995       -) ac_f="$ac_tmp/stdin";;
16996       *) # Look for the file first in the build tree, then in the source tree
16997          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16998          # because $ac_f cannot contain `:'.
16999          test -f "$ac_f" ||
17000            case $ac_f in
17001            [\\/$]*) false;;
17002            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17003            esac ||
17004            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17005       esac
17006       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17007       as_fn_append ac_file_inputs " '$ac_f'"
17008     done
17009
17010     # Let's still pretend it is `configure' which instantiates (i.e., don't
17011     # use $as_me), people would be surprised to read:
17012     #    /* config.h.  Generated by config.status.  */
17013     configure_input='Generated from '`
17014           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17015         `' by configure.'
17016     if test x"$ac_file" != x-; then
17017       configure_input="$ac_file.  $configure_input"
17018       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17019 $as_echo "$as_me: creating $ac_file" >&6;}
17020     fi
17021     # Neutralize special characters interpreted by sed in replacement strings.
17022     case $configure_input in #(
17023     *\&* | *\|* | *\\* )
17024        ac_sed_conf_input=`$as_echo "$configure_input" |
17025        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17026     *) ac_sed_conf_input=$configure_input;;
17027     esac
17028
17029     case $ac_tag in
17030     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17031       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17032     esac
17033     ;;
17034   esac
17035
17036   ac_dir=`$as_dirname -- "$ac_file" ||
17037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17038          X"$ac_file" : 'X\(//\)[^/]' \| \
17039          X"$ac_file" : 'X\(//\)$' \| \
17040          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X"$ac_file" |
17042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17043             s//\1/
17044             q
17045           }
17046           /^X\(\/\/\)[^/].*/{
17047             s//\1/
17048             q
17049           }
17050           /^X\(\/\/\)$/{
17051             s//\1/
17052             q
17053           }
17054           /^X\(\/\).*/{
17055             s//\1/
17056             q
17057           }
17058           s/.*/./; q'`
17059   as_dir="$ac_dir"; as_fn_mkdir_p
17060   ac_builddir=.
17061
17062 case "$ac_dir" in
17063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17064 *)
17065   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17066   # A ".." for each directory in $ac_dir_suffix.
17067   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17068   case $ac_top_builddir_sub in
17069   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17070   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17071   esac ;;
17072 esac
17073 ac_abs_top_builddir=$ac_pwd
17074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17075 # for backward compatibility:
17076 ac_top_builddir=$ac_top_build_prefix
17077
17078 case $srcdir in
17079   .)  # We are building in place.
17080     ac_srcdir=.
17081     ac_top_srcdir=$ac_top_builddir_sub
17082     ac_abs_top_srcdir=$ac_pwd ;;
17083   [\\/]* | ?:[\\/]* )  # Absolute name.
17084     ac_srcdir=$srcdir$ac_dir_suffix;
17085     ac_top_srcdir=$srcdir
17086     ac_abs_top_srcdir=$srcdir ;;
17087   *) # Relative name.
17088     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17089     ac_top_srcdir=$ac_top_build_prefix$srcdir
17090     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17091 esac
17092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17093
17094
17095   case $ac_mode in
17096   :F)
17097   #
17098   # CONFIG_FILE
17099   #
17100
17101   case $INSTALL in
17102   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17103   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17104   esac
17105   ac_MKDIR_P=$MKDIR_P
17106   case $MKDIR_P in
17107   [\\/$]* | ?:[\\/]* ) ;;
17108   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17109   esac
17110 _ACEOF
17111
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 # If the template does not know about datarootdir, expand it.
17114 # FIXME: This hack should be removed a few years after 2.60.
17115 ac_datarootdir_hack=; ac_datarootdir_seen=
17116 ac_sed_dataroot='
17117 /datarootdir/ {
17118   p
17119   q
17120 }
17121 /@datadir@/p
17122 /@docdir@/p
17123 /@infodir@/p
17124 /@localedir@/p
17125 /@mandir@/p'
17126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17127 *datarootdir*) ac_datarootdir_seen=yes;;
17128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17131 _ACEOF
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133   ac_datarootdir_hack='
17134   s&@datadir@&$datadir&g
17135   s&@docdir@&$docdir&g
17136   s&@infodir@&$infodir&g
17137   s&@localedir@&$localedir&g
17138   s&@mandir@&$mandir&g
17139   s&\\\${datarootdir}&$datarootdir&g' ;;
17140 esac
17141 _ACEOF
17142
17143 # Neutralize VPATH when `$srcdir' = `.'.
17144 # Shell code in configure.ac might set extrasub.
17145 # FIXME: do we really want to maintain this feature?
17146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 ac_sed_extra="$ac_vpsub
17148 $extrasub
17149 _ACEOF
17150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17151 :t
17152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17153 s|@configure_input@|$ac_sed_conf_input|;t t
17154 s&@top_builddir@&$ac_top_builddir_sub&;t t
17155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17156 s&@srcdir@&$ac_srcdir&;t t
17157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17158 s&@top_srcdir@&$ac_top_srcdir&;t t
17159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17160 s&@builddir@&$ac_builddir&;t t
17161 s&@abs_builddir@&$ac_abs_builddir&;t t
17162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17163 s&@INSTALL@&$ac_INSTALL&;t t
17164 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17165 $ac_datarootdir_hack
17166 "
17167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17168   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17169
17170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17171   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17172   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17173       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17174   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17175 which seems to be undefined.  Please make sure it is defined" >&5
17176 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17177 which seems to be undefined.  Please make sure it is defined" >&2;}
17178
17179   rm -f "$ac_tmp/stdin"
17180   case $ac_file in
17181   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17182   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17183   esac \
17184   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17185  ;;
17186   :H)
17187   #
17188   # CONFIG_HEADER
17189   #
17190   if test x"$ac_file" != x-; then
17191     {
17192       $as_echo "/* $configure_input  */" \
17193       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17194     } >"$ac_tmp/config.h" \
17195       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17196     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17197       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17198 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17199     else
17200       rm -f "$ac_file"
17201       mv "$ac_tmp/config.h" "$ac_file" \
17202         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17203     fi
17204   else
17205     $as_echo "/* $configure_input  */" \
17206       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17207       || as_fn_error $? "could not create -" "$LINENO" 5
17208   fi
17209 # Compute "$ac_file"'s index in $config_headers.
17210 _am_arg="$ac_file"
17211 _am_stamp_count=1
17212 for _am_header in $config_headers :; do
17213   case $_am_header in
17214     $_am_arg | $_am_arg:* )
17215       break ;;
17216     * )
17217       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17218   esac
17219 done
17220 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17221 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222          X"$_am_arg" : 'X\(//\)[^/]' \| \
17223          X"$_am_arg" : 'X\(//\)$' \| \
17224          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X"$_am_arg" |
17226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17227             s//\1/
17228             q
17229           }
17230           /^X\(\/\/\)[^/].*/{
17231             s//\1/
17232             q
17233           }
17234           /^X\(\/\/\)$/{
17235             s//\1/
17236             q
17237           }
17238           /^X\(\/\).*/{
17239             s//\1/
17240             q
17241           }
17242           s/.*/./; q'`/stamp-h$_am_stamp_count
17243  ;;
17244
17245   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17246 $as_echo "$as_me: executing $ac_file commands" >&6;}
17247  ;;
17248   esac
17249
17250
17251   case $ac_file$ac_mode in
17252     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17253   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17254   # are listed without --file.  Let's play safe and only enable the eval
17255   # if we detect the quoting.
17256   case $CONFIG_FILES in
17257   *\'*) eval set x "$CONFIG_FILES" ;;
17258   *)   set x $CONFIG_FILES ;;
17259   esac
17260   shift
17261   for mf
17262   do
17263     # Strip MF so we end up with the name of the file.
17264     mf=`echo "$mf" | sed -e 's/:.*$//'`
17265     # Check whether this is an Automake generated Makefile or not.
17266     # We used to match only the files named `Makefile.in', but
17267     # some people rename them; so instead we look at the file content.
17268     # Grep'ing the first line is not enough: some people post-process
17269     # each Makefile.in and add a new line on top of each file to say so.
17270     # Grep'ing the whole file is not good either: AIX grep has a line
17271     # limit of 2048, but all sed's we know have understand at least 4000.
17272     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17273       dirpart=`$as_dirname -- "$mf" ||
17274 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275          X"$mf" : 'X\(//\)[^/]' \| \
17276          X"$mf" : 'X\(//\)$' \| \
17277          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17278 $as_echo X"$mf" |
17279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17280             s//\1/
17281             q
17282           }
17283           /^X\(\/\/\)[^/].*/{
17284             s//\1/
17285             q
17286           }
17287           /^X\(\/\/\)$/{
17288             s//\1/
17289             q
17290           }
17291           /^X\(\/\).*/{
17292             s//\1/
17293             q
17294           }
17295           s/.*/./; q'`
17296     else
17297       continue
17298     fi
17299     # Extract the definition of DEPDIR, am__include, and am__quote
17300     # from the Makefile without running `make'.
17301     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17302     test -z "$DEPDIR" && continue
17303     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17304     test -z "am__include" && continue
17305     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17306     # When using ansi2knr, U may be empty or an underscore; expand it
17307     U=`sed -n 's/^U = //p' < "$mf"`
17308     # Find all dependency output files, they are included files with
17309     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17310     # simplest approach to changing $(DEPDIR) to its actual value in the
17311     # expansion.
17312     for file in `sed -n "
17313       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17314          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17315       # Make sure the directory exists.
17316       test -f "$dirpart/$file" && continue
17317       fdir=`$as_dirname -- "$file" ||
17318 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319          X"$file" : 'X\(//\)[^/]' \| \
17320          X"$file" : 'X\(//\)$' \| \
17321          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17322 $as_echo X"$file" |
17323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324             s//\1/
17325             q
17326           }
17327           /^X\(\/\/\)[^/].*/{
17328             s//\1/
17329             q
17330           }
17331           /^X\(\/\/\)$/{
17332             s//\1/
17333             q
17334           }
17335           /^X\(\/\).*/{
17336             s//\1/
17337             q
17338           }
17339           s/.*/./; q'`
17340       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17341       # echo "creating $dirpart/$file"
17342       echo '# dummy' > "$dirpart/$file"
17343     done
17344   done
17345 }
17346  ;;
17347     "libtool":C)
17348
17349     # See if we are running on zsh, and set the options which allow our
17350     # commands through without removal of \ escapes.
17351     if test -n "${ZSH_VERSION+set}" ; then
17352       setopt NO_GLOB_SUBST
17353     fi
17354
17355     cfgfile="${ofile}T"
17356     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17357     $RM "$cfgfile"
17358
17359     cat <<_LT_EOF >> "$cfgfile"
17360 #! $SHELL
17361
17362 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17363 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17365 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17366 #
17367 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17368 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17369 #                 Foundation, Inc.
17370 #   Written by Gordon Matzigkeit, 1996
17371 #
17372 #   This file is part of GNU Libtool.
17373 #
17374 # GNU Libtool is free software; you can redistribute it and/or
17375 # modify it under the terms of the GNU General Public License as
17376 # published by the Free Software Foundation; either version 2 of
17377 # the License, or (at your option) any later version.
17378 #
17379 # As a special exception to the GNU General Public License,
17380 # if you distribute this file as part of a program or library that
17381 # is built using GNU Libtool, you may include this file under the
17382 # same distribution terms that you use for the rest of that program.
17383 #
17384 # GNU Libtool is distributed in the hope that it will be useful,
17385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17387 # GNU General Public License for more details.
17388 #
17389 # You should have received a copy of the GNU General Public License
17390 # along with GNU Libtool; see the file COPYING.  If not, a copy
17391 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17392 # obtained by writing to the Free Software Foundation, Inc.,
17393 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17394
17395
17396 # The names of the tagged configurations supported by this script.
17397 available_tags="CXX "
17398
17399 # ### BEGIN LIBTOOL CONFIG
17400
17401 # Which release of libtool.m4 was used?
17402 macro_version=$macro_version
17403 macro_revision=$macro_revision
17404
17405 # Whether or not to build shared libraries.
17406 build_libtool_libs=$enable_shared
17407
17408 # Whether or not to build static libraries.
17409 build_old_libs=$enable_static
17410
17411 # What type of objects to build.
17412 pic_mode=$pic_mode
17413
17414 # Whether or not to optimize for fast installation.
17415 fast_install=$enable_fast_install
17416
17417 # Shell to use when invoking shell scripts.
17418 SHELL=$lt_SHELL
17419
17420 # An echo program that protects backslashes.
17421 ECHO=$lt_ECHO
17422
17423 # The PATH separator for the build system.
17424 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17425
17426 # The host system.
17427 host_alias=$host_alias
17428 host=$host
17429 host_os=$host_os
17430
17431 # The build system.
17432 build_alias=$build_alias
17433 build=$build
17434 build_os=$build_os
17435
17436 # A sed program that does not truncate output.
17437 SED=$lt_SED
17438
17439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17440 Xsed="\$SED -e 1s/^X//"
17441
17442 # A grep program that handles long lines.
17443 GREP=$lt_GREP
17444
17445 # An ERE matcher.
17446 EGREP=$lt_EGREP
17447
17448 # A literal string matcher.
17449 FGREP=$lt_FGREP
17450
17451 # A BSD- or MS-compatible name lister.
17452 NM=$lt_NM
17453
17454 # Whether we need soft or hard links.
17455 LN_S=$lt_LN_S
17456
17457 # What is the maximum length of a command?
17458 max_cmd_len=$max_cmd_len
17459
17460 # Object file suffix (normally "o").
17461 objext=$ac_objext
17462
17463 # Executable file suffix (normally "").
17464 exeext=$exeext
17465
17466 # whether the shell understands "unset".
17467 lt_unset=$lt_unset
17468
17469 # turn spaces into newlines.
17470 SP2NL=$lt_lt_SP2NL
17471
17472 # turn newlines into spaces.
17473 NL2SP=$lt_lt_NL2SP
17474
17475 # convert \$build file names to \$host format.
17476 to_host_file_cmd=$lt_cv_to_host_file_cmd
17477
17478 # convert \$build files to toolchain format.
17479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17480
17481 # An object symbol dumper.
17482 OBJDUMP=$lt_OBJDUMP
17483
17484 # Method to check whether dependent libraries are shared objects.
17485 deplibs_check_method=$lt_deplibs_check_method
17486
17487 # Command to use when deplibs_check_method = "file_magic".
17488 file_magic_cmd=$lt_file_magic_cmd
17489
17490 # How to find potential files when deplibs_check_method = "file_magic".
17491 file_magic_glob=$lt_file_magic_glob
17492
17493 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17494 want_nocaseglob=$lt_want_nocaseglob
17495
17496 # DLL creation program.
17497 DLLTOOL=$lt_DLLTOOL
17498
17499 # Command to associate shared and link libraries.
17500 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17501
17502 # The archiver.
17503 AR=$lt_AR
17504
17505 # Flags to create an archive.
17506 AR_FLAGS=$lt_AR_FLAGS
17507
17508 # How to feed a file listing to the archiver.
17509 archiver_list_spec=$lt_archiver_list_spec
17510
17511 # A symbol stripping program.
17512 STRIP=$lt_STRIP
17513
17514 # Commands used to install an old-style archive.
17515 RANLIB=$lt_RANLIB
17516 old_postinstall_cmds=$lt_old_postinstall_cmds
17517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17518
17519 # Whether to use a lock for old archive extraction.
17520 lock_old_archive_extraction=$lock_old_archive_extraction
17521
17522 # A C compiler.
17523 LTCC=$lt_CC
17524
17525 # LTCC compiler flags.
17526 LTCFLAGS=$lt_CFLAGS
17527
17528 # Take the output of nm and produce a listing of raw symbols and C names.
17529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17530
17531 # Transform the output of nm in a proper C declaration.
17532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17533
17534 # Transform the output of nm in a C name address pair.
17535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17536
17537 # Transform the output of nm in a C name address pair when lib prefix is needed.
17538 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17539
17540 # Specify filename containing input files for \$NM.
17541 nm_file_list_spec=$lt_nm_file_list_spec
17542
17543 # The root where to search for dependent libraries,and in which our libraries should be installed.
17544 lt_sysroot=$lt_sysroot
17545
17546 # The name of the directory that contains temporary libtool files.
17547 objdir=$objdir
17548
17549 # Used to examine libraries when file_magic_cmd begins with "file".
17550 MAGIC_CMD=$MAGIC_CMD
17551
17552 # Must we lock files when doing compilation?
17553 need_locks=$lt_need_locks
17554
17555 # Manifest tool.
17556 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17557
17558 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17559 DSYMUTIL=$lt_DSYMUTIL
17560
17561 # Tool to change global to local symbols on Mac OS X.
17562 NMEDIT=$lt_NMEDIT
17563
17564 # Tool to manipulate fat objects and archives on Mac OS X.
17565 LIPO=$lt_LIPO
17566
17567 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17568 OTOOL=$lt_OTOOL
17569
17570 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17571 OTOOL64=$lt_OTOOL64
17572
17573 # Old archive suffix (normally "a").
17574 libext=$libext
17575
17576 # Shared library suffix (normally ".so").
17577 shrext_cmds=$lt_shrext_cmds
17578
17579 # The commands to extract the exported symbol list from a shared archive.
17580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17581
17582 # Variables whose values should be saved in libtool wrapper scripts and
17583 # restored at link time.
17584 variables_saved_for_relink=$lt_variables_saved_for_relink
17585
17586 # Do we need the "lib" prefix for modules?
17587 need_lib_prefix=$need_lib_prefix
17588
17589 # Do we need a version for libraries?
17590 need_version=$need_version
17591
17592 # Library versioning type.
17593 version_type=$version_type
17594
17595 # Shared library runtime path variable.
17596 runpath_var=$runpath_var
17597
17598 # Shared library path variable.
17599 shlibpath_var=$shlibpath_var
17600
17601 # Is shlibpath searched before the hard-coded library search path?
17602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17603
17604 # Format of library name prefix.
17605 libname_spec=$lt_libname_spec
17606
17607 # List of archive names.  First name is the real one, the rest are links.
17608 # The last name is the one that the linker finds with -lNAME
17609 library_names_spec=$lt_library_names_spec
17610
17611 # The coded name of the library, if different from the real name.
17612 soname_spec=$lt_soname_spec
17613
17614 # Permission mode override for installation of shared libraries.
17615 install_override_mode=$lt_install_override_mode
17616
17617 # Command to use after installation of a shared archive.
17618 postinstall_cmds=$lt_postinstall_cmds
17619
17620 # Command to use after uninstallation of a shared archive.
17621 postuninstall_cmds=$lt_postuninstall_cmds
17622
17623 # Commands used to finish a libtool library installation in a directory.
17624 finish_cmds=$lt_finish_cmds
17625
17626 # As "finish_cmds", except a single script fragment to be evaled but
17627 # not shown.
17628 finish_eval=$lt_finish_eval
17629
17630 # Whether we should hardcode library paths into libraries.
17631 hardcode_into_libs=$hardcode_into_libs
17632
17633 # Compile-time system search path for libraries.
17634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17635
17636 # Run-time system search path for libraries.
17637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17638
17639 # Whether dlopen is supported.
17640 dlopen_support=$enable_dlopen
17641
17642 # Whether dlopen of programs is supported.
17643 dlopen_self=$enable_dlopen_self
17644
17645 # Whether dlopen of statically linked programs is supported.
17646 dlopen_self_static=$enable_dlopen_self_static
17647
17648 # Commands to strip libraries.
17649 old_striplib=$lt_old_striplib
17650 striplib=$lt_striplib
17651
17652
17653 # The linker used to build libraries.
17654 LD=$lt_LD
17655
17656 # How to create reloadable object files.
17657 reload_flag=$lt_reload_flag
17658 reload_cmds=$lt_reload_cmds
17659
17660 # Commands used to build an old-style archive.
17661 old_archive_cmds=$lt_old_archive_cmds
17662
17663 # A language specific compiler.
17664 CC=$lt_compiler
17665
17666 # Is the compiler the GNU compiler?
17667 with_gcc=$GCC
17668
17669 # Compiler flag to turn off builtin functions.
17670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17671
17672 # Additional compiler flags for building library objects.
17673 pic_flag=$lt_lt_prog_compiler_pic
17674
17675 # How to pass a linker flag through the compiler.
17676 wl=$lt_lt_prog_compiler_wl
17677
17678 # Compiler flag to prevent dynamic linking.
17679 link_static_flag=$lt_lt_prog_compiler_static
17680
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17683
17684 # Whether or not to add -lc for building shared libraries.
17685 build_libtool_need_lc=$archive_cmds_need_lc
17686
17687 # Whether or not to disallow shared libs when runtime libs are static.
17688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17689
17690 # Compiler flag to allow reflexive dlopens.
17691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17692
17693 # Compiler flag to generate shared objects directly from archives.
17694 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17695
17696 # Whether the compiler copes with passing no objects directly.
17697 compiler_needs_object=$lt_compiler_needs_object
17698
17699 # Create an old-style archive from a shared archive.
17700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17701
17702 # Create a temporary old-style archive to link instead of a shared archive.
17703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17704
17705 # Commands used to build a shared archive.
17706 archive_cmds=$lt_archive_cmds
17707 archive_expsym_cmds=$lt_archive_expsym_cmds
17708
17709 # Commands used to build a loadable module if different from building
17710 # a shared archive.
17711 module_cmds=$lt_module_cmds
17712 module_expsym_cmds=$lt_module_expsym_cmds
17713
17714 # Whether we are building with GNU ld or not.
17715 with_gnu_ld=$lt_with_gnu_ld
17716
17717 # Flag that allows shared libraries with undefined symbols to be built.
17718 allow_undefined_flag=$lt_allow_undefined_flag
17719
17720 # Flag that enforces no undefined symbols.
17721 no_undefined_flag=$lt_no_undefined_flag
17722
17723 # Flag to hardcode \$libdir into a binary during linking.
17724 # This must work even if \$libdir does not exist
17725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17726
17727 # Whether we need a single "-rpath" flag with a separated argument.
17728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17729
17730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731 # DIR into the resulting binary.
17732 hardcode_direct=$hardcode_direct
17733
17734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17735 # DIR into the resulting binary and the resulting library dependency is
17736 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17737 # library is relocated.
17738 hardcode_direct_absolute=$hardcode_direct_absolute
17739
17740 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17741 # into the resulting binary.
17742 hardcode_minus_L=$hardcode_minus_L
17743
17744 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17745 # into the resulting binary.
17746 hardcode_shlibpath_var=$hardcode_shlibpath_var
17747
17748 # Set to "yes" if building a shared library automatically hardcodes DIR
17749 # into the library and all subsequent libraries and executables linked
17750 # against it.
17751 hardcode_automatic=$hardcode_automatic
17752
17753 # Set to yes if linker adds runtime paths of dependent libraries
17754 # to runtime path list.
17755 inherit_rpath=$inherit_rpath
17756
17757 # Whether libtool must link a program against all its dependency libraries.
17758 link_all_deplibs=$link_all_deplibs
17759
17760 # Set to "yes" if exported symbols are required.
17761 always_export_symbols=$always_export_symbols
17762
17763 # The commands to list exported symbols.
17764 export_symbols_cmds=$lt_export_symbols_cmds
17765
17766 # Symbols that should not be listed in the preloaded symbols.
17767 exclude_expsyms=$lt_exclude_expsyms
17768
17769 # Symbols that must always be exported.
17770 include_expsyms=$lt_include_expsyms
17771
17772 # Commands necessary for linking programs (against libraries) with templates.
17773 prelink_cmds=$lt_prelink_cmds
17774
17775 # Commands necessary for finishing linking programs.
17776 postlink_cmds=$lt_postlink_cmds
17777
17778 # Specify filename containing input files.
17779 file_list_spec=$lt_file_list_spec
17780
17781 # How to hardcode a shared library path into an executable.
17782 hardcode_action=$hardcode_action
17783
17784 # The directories searched by this compiler when creating a shared library.
17785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17786
17787 # Dependencies to place before and after the objects being linked to
17788 # create a shared library.
17789 predep_objects=$lt_predep_objects
17790 postdep_objects=$lt_postdep_objects
17791 predeps=$lt_predeps
17792 postdeps=$lt_postdeps
17793
17794 # The library search path used internally by the compiler when linking
17795 # a shared library.
17796 compiler_lib_search_path=$lt_compiler_lib_search_path
17797
17798 # ### END LIBTOOL CONFIG
17799
17800 _LT_EOF
17801
17802   case $host_os in
17803   aix3*)
17804     cat <<\_LT_EOF >> "$cfgfile"
17805 # AIX sometimes has problems with the GCC collect2 program.  For some
17806 # reason, if we set the COLLECT_NAMES environment variable, the problems
17807 # vanish in a puff of smoke.
17808 if test "X${COLLECT_NAMES+set}" != Xset; then
17809   COLLECT_NAMES=
17810   export COLLECT_NAMES
17811 fi
17812 _LT_EOF
17813     ;;
17814   esac
17815
17816
17817 ltmain="$ac_aux_dir/ltmain.sh"
17818
17819
17820   # We use sed instead of cat because bash on DJGPP gets confused if
17821   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17822   # text mode, it properly converts lines to CR/LF.  This bash problem
17823   # is reportedly fixed, but why not run on old versions too?
17824   sed '$q' "$ltmain" >> "$cfgfile" \
17825      || (rm -f "$cfgfile"; exit 1)
17826
17827   if test x"$xsi_shell" = xyes; then
17828   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17829 func_dirname ()\
17830 {\
17831 \    case ${1} in\
17832 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17833 \      *  ) func_dirname_result="${3}" ;;\
17834 \    esac\
17835 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17836   && mv -f "$cfgfile.tmp" "$cfgfile" \
17837     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17838 test 0 -eq $? || _lt_function_replace_fail=:
17839
17840
17841   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17842 func_basename ()\
17843 {\
17844 \    func_basename_result="${1##*/}"\
17845 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17846   && mv -f "$cfgfile.tmp" "$cfgfile" \
17847     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848 test 0 -eq $? || _lt_function_replace_fail=:
17849
17850
17851   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17852 func_dirname_and_basename ()\
17853 {\
17854 \    case ${1} in\
17855 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17856 \      *  ) func_dirname_result="${3}" ;;\
17857 \    esac\
17858 \    func_basename_result="${1##*/}"\
17859 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17860   && mv -f "$cfgfile.tmp" "$cfgfile" \
17861     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17862 test 0 -eq $? || _lt_function_replace_fail=:
17863
17864
17865   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17866 func_stripname ()\
17867 {\
17868 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17869 \    # positional parameters, so assign one to ordinary parameter first.\
17870 \    func_stripname_result=${3}\
17871 \    func_stripname_result=${func_stripname_result#"${1}"}\
17872 \    func_stripname_result=${func_stripname_result%"${2}"}\
17873 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17874   && mv -f "$cfgfile.tmp" "$cfgfile" \
17875     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17876 test 0 -eq $? || _lt_function_replace_fail=:
17877
17878
17879   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17880 func_split_long_opt ()\
17881 {\
17882 \    func_split_long_opt_name=${1%%=*}\
17883 \    func_split_long_opt_arg=${1#*=}\
17884 } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
17891 func_split_short_opt ()\
17892 {\
17893 \    func_split_short_opt_arg=${1#??}\
17894 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17895 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17896   && mv -f "$cfgfile.tmp" "$cfgfile" \
17897     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17898 test 0 -eq $? || _lt_function_replace_fail=:
17899
17900
17901   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17902 func_lo2o ()\
17903 {\
17904 \    case ${1} in\
17905 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17906 \      *)    func_lo2o_result=${1} ;;\
17907 \    esac\
17908 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17909   && mv -f "$cfgfile.tmp" "$cfgfile" \
17910     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911 test 0 -eq $? || _lt_function_replace_fail=:
17912
17913
17914   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17915 func_xform ()\
17916 {\
17917     func_xform_result=${1%.*}.lo\
17918 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17919   && mv -f "$cfgfile.tmp" "$cfgfile" \
17920     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921 test 0 -eq $? || _lt_function_replace_fail=:
17922
17923
17924   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17925 func_arith ()\
17926 {\
17927     func_arith_result=$(( $* ))\
17928 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17929   && mv -f "$cfgfile.tmp" "$cfgfile" \
17930     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17931 test 0 -eq $? || _lt_function_replace_fail=:
17932
17933
17934   sed -e '/^func_len ()$/,/^} # func_len /c\
17935 func_len ()\
17936 {\
17937     func_len_result=${#1}\
17938 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17939   && mv -f "$cfgfile.tmp" "$cfgfile" \
17940     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17941 test 0 -eq $? || _lt_function_replace_fail=:
17942
17943 fi
17944
17945 if test x"$lt_shell_append" = xyes; then
17946   sed -e '/^func_append ()$/,/^} # func_append /c\
17947 func_append ()\
17948 {\
17949     eval "${1}+=\\${2}"\
17950 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17951   && mv -f "$cfgfile.tmp" "$cfgfile" \
17952     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17953 test 0 -eq $? || _lt_function_replace_fail=:
17954
17955
17956   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17957 func_append_quoted ()\
17958 {\
17959 \    func_quote_for_eval "${2}"\
17960 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17961 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17962   && mv -f "$cfgfile.tmp" "$cfgfile" \
17963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17964 test 0 -eq $? || _lt_function_replace_fail=:
17965
17966
17967   # Save a `func_append' function call where possible by direct use of '+='
17968   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17969     && mv -f "$cfgfile.tmp" "$cfgfile" \
17970       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17971   test 0 -eq $? || _lt_function_replace_fail=:
17972 else
17973   # Save a `func_append' function call even when '+=' is not available
17974   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17975     && mv -f "$cfgfile.tmp" "$cfgfile" \
17976       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17977   test 0 -eq $? || _lt_function_replace_fail=:
17978 fi
17979
17980 if test x"$_lt_function_replace_fail" = x":"; then
17981   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17982 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17983 fi
17984
17985
17986    mv -f "$cfgfile" "$ofile" ||
17987     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17988   chmod +x "$ofile"
17989
17990
17991     cat <<_LT_EOF >> "$ofile"
17992
17993 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17994
17995 # The linker used to build libraries.
17996 LD=$lt_LD_CXX
17997
17998 # How to create reloadable object files.
17999 reload_flag=$lt_reload_flag_CXX
18000 reload_cmds=$lt_reload_cmds_CXX
18001
18002 # Commands used to build an old-style archive.
18003 old_archive_cmds=$lt_old_archive_cmds_CXX
18004
18005 # A language specific compiler.
18006 CC=$lt_compiler_CXX
18007
18008 # Is the compiler the GNU compiler?
18009 with_gcc=$GCC_CXX
18010
18011 # Compiler flag to turn off builtin functions.
18012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18013
18014 # Additional compiler flags for building library objects.
18015 pic_flag=$lt_lt_prog_compiler_pic_CXX
18016
18017 # How to pass a linker flag through the compiler.
18018 wl=$lt_lt_prog_compiler_wl_CXX
18019
18020 # Compiler flag to prevent dynamic linking.
18021 link_static_flag=$lt_lt_prog_compiler_static_CXX
18022
18023 # Does compiler simultaneously support -c and -o options?
18024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18025
18026 # Whether or not to add -lc for building shared libraries.
18027 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18028
18029 # Whether or not to disallow shared libs when runtime libs are static.
18030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18031
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18034
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18037
18038 # Whether the compiler copes with passing no objects directly.
18039 compiler_needs_object=$lt_compiler_needs_object_CXX
18040
18041 # Create an old-style archive from a shared archive.
18042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18043
18044 # Create a temporary old-style archive to link instead of a shared archive.
18045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18046
18047 # Commands used to build a shared archive.
18048 archive_cmds=$lt_archive_cmds_CXX
18049 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18050
18051 # Commands used to build a loadable module if different from building
18052 # a shared archive.
18053 module_cmds=$lt_module_cmds_CXX
18054 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18055
18056 # Whether we are building with GNU ld or not.
18057 with_gnu_ld=$lt_with_gnu_ld_CXX
18058
18059 # Flag that allows shared libraries with undefined symbols to be built.
18060 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18061
18062 # Flag that enforces no undefined symbols.
18063 no_undefined_flag=$lt_no_undefined_flag_CXX
18064
18065 # Flag to hardcode \$libdir into a binary during linking.
18066 # This must work even if \$libdir does not exist
18067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18068
18069 # Whether we need a single "-rpath" flag with a separated argument.
18070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18071
18072 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18073 # DIR into the resulting binary.
18074 hardcode_direct=$hardcode_direct_CXX
18075
18076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077 # DIR into the resulting binary and the resulting library dependency is
18078 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18079 # library is relocated.
18080 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18081
18082 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18083 # into the resulting binary.
18084 hardcode_minus_L=$hardcode_minus_L_CXX
18085
18086 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18087 # into the resulting binary.
18088 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18089
18090 # Set to "yes" if building a shared library automatically hardcodes DIR
18091 # into the library and all subsequent libraries and executables linked
18092 # against it.
18093 hardcode_automatic=$hardcode_automatic_CXX
18094
18095 # Set to yes if linker adds runtime paths of dependent libraries
18096 # to runtime path list.
18097 inherit_rpath=$inherit_rpath_CXX
18098
18099 # Whether libtool must link a program against all its dependency libraries.
18100 link_all_deplibs=$link_all_deplibs_CXX
18101
18102 # Set to "yes" if exported symbols are required.
18103 always_export_symbols=$always_export_symbols_CXX
18104
18105 # The commands to list exported symbols.
18106 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18107
18108 # Symbols that should not be listed in the preloaded symbols.
18109 exclude_expsyms=$lt_exclude_expsyms_CXX
18110
18111 # Symbols that must always be exported.
18112 include_expsyms=$lt_include_expsyms_CXX
18113
18114 # Commands necessary for linking programs (against libraries) with templates.
18115 prelink_cmds=$lt_prelink_cmds_CXX
18116
18117 # Commands necessary for finishing linking programs.
18118 postlink_cmds=$lt_postlink_cmds_CXX
18119
18120 # Specify filename containing input files.
18121 file_list_spec=$lt_file_list_spec_CXX
18122
18123 # How to hardcode a shared library path into an executable.
18124 hardcode_action=$hardcode_action_CXX
18125
18126 # The directories searched by this compiler when creating a shared library.
18127 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18128
18129 # Dependencies to place before and after the objects being linked to
18130 # create a shared library.
18131 predep_objects=$lt_predep_objects_CXX
18132 postdep_objects=$lt_postdep_objects_CXX
18133 predeps=$lt_predeps_CXX
18134 postdeps=$lt_postdeps_CXX
18135
18136 # The library search path used internally by the compiler when linking
18137 # a shared library.
18138 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18139
18140 # ### END LIBTOOL TAG CONFIG: CXX
18141 _LT_EOF
18142
18143  ;;
18144
18145   esac
18146 done # for ac_tag
18147
18148
18149 as_fn_exit 0
18150 _ACEOF
18151 ac_clean_files=$ac_clean_files_save
18152
18153 test $ac_write_fail = 0 ||
18154   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18155
18156
18157 # configure is writing to config.log, and then calls config.status.
18158 # config.status does its own redirection, appending to config.log.
18159 # Unfortunately, on DOS this fails, as config.log is still kept open
18160 # by configure, so config.status won't be able to write to it; its
18161 # output is simply discarded.  So we exec the FD to /dev/null,
18162 # effectively closing config.log, so it can be properly (re)opened and
18163 # appended to by config.status.  When coming back to configure, we
18164 # need to make the FD available again.
18165 if test "$no_create" != yes; then
18166   ac_cs_success=:
18167   ac_config_status_args=
18168   test "$silent" = yes &&
18169     ac_config_status_args="$ac_config_status_args --quiet"
18170   exec 5>/dev/null
18171   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18172   exec 5>>config.log
18173   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18174   # would make configure fail if this is the last instruction.
18175   $ac_cs_success || as_fn_exit 1
18176 fi
18177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18178   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18180 fi
18181
18182