tsan: New directory.
[platform/upstream/gcc.git] / libsanitizer / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Report bugs to <libsanitizer>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     PATH=/empty FPATH=/empty; export PATH FPATH
180     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$?; test $as_status -eq 0 && as_status=1
375   if test "$3"; then
376     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378   fi
379   $as_echo "$as_me: error: $1" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
565
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 MULTISUBDIR32_FALSE
608 MULTISUBDIR32_TRUE
609 enable_static
610 enable_shared
611 CXXCPP
612 CPP
613 OTOOL64
614 OTOOL
615 LIPO
616 NMEDIT
617 DSYMUTIL
618 RANLIB
619 AR
620 OBJDUMP
621 LN_S
622 NM
623 ac_ct_DUMPBIN
624 DUMPBIN
625 LD
626 FGREP
627 EGREP
628 GREP
629 SED
630 LIBTOOL
631 am__fastdepCCAS_FALSE
632 am__fastdepCCAS_TRUE
633 CCASDEPMODE
634 CCASFLAGS
635 CCAS
636 am__fastdepCXX_FALSE
637 am__fastdepCXX_TRUE
638 CXXDEPMODE
639 ac_ct_CXX
640 CXXFLAGS
641 CXX
642 am__fastdepCC_FALSE
643 am__fastdepCC_TRUE
644 CCDEPMODE
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
657 CC
658 toolexeclibdir
659 toolexecdir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
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_version_specific_runtime_libs
741 enable_multilib
742 enable_maintainer_mode
743 enable_dependency_tracking
744 enable_shared
745 enable_static
746 with_pic
747 enable_fast_install
748 with_gnu_ld
749 enable_libtool_lock
750 '
751       ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CC
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 CXX
760 CXXFLAGS
761 CCC
762 CCAS
763 CCASFLAGS
764 CPP
765 CXXCPP'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820   # If the previous option needs an argument, assign it.
821   if test -n "$ac_prev"; then
822     eval $ac_prev=\$ac_option
823     ac_prev=
824     continue
825   fi
826
827   case $ac_option in
828   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829   *)    ac_optarg=yes ;;
830   esac
831
832   # Accept the important Cygnus configure options, so we can diagnose typos.
833
834   case $ac_dashdash$ac_option in
835   --)
836     ac_dashdash=yes ;;
837
838   -bindir | --bindir | --bindi | --bind | --bin | --bi)
839     ac_prev=bindir ;;
840   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841     bindir=$ac_optarg ;;
842
843   -build | --build | --buil | --bui | --bu)
844     ac_prev=build_alias ;;
845   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846     build_alias=$ac_optarg ;;
847
848   -cache-file | --cache-file | --cache-fil | --cache-fi \
849   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850     ac_prev=cache_file ;;
851   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853     cache_file=$ac_optarg ;;
854
855   --config-cache | -C)
856     cache_file=config.cache ;;
857
858   -datadir | --datadir | --datadi | --datad)
859     ac_prev=datadir ;;
860   -datadir=* | --datadir=* | --datadi=* | --datad=*)
861     datadir=$ac_optarg ;;
862
863   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864   | --dataroo | --dataro | --datar)
865     ac_prev=datarootdir ;;
866   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868     datarootdir=$ac_optarg ;;
869
870   -disable-* | --disable-*)
871     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874       as_fn_error "invalid feature name: $ac_useropt"
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878       *"
879 "enable_$ac_useropt"
880 "*) ;;
881       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882          ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=no ;;
885
886   -docdir | --docdir | --docdi | --doc | --do)
887     ac_prev=docdir ;;
888   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889     docdir=$ac_optarg ;;
890
891   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892     ac_prev=dvidir ;;
893   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894     dvidir=$ac_optarg ;;
895
896   -enable-* | --enable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       as_fn_error "invalid feature name: $ac_useropt"
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=\$ac_optarg ;;
911
912   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914   | --exec | --exe | --ex)
915     ac_prev=exec_prefix ;;
916   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918   | --exec=* | --exe=* | --ex=*)
919     exec_prefix=$ac_optarg ;;
920
921   -gas | --gas | --ga | --g)
922     # Obsolete; use --with-gas.
923     with_gas=yes ;;
924
925   -help | --help | --hel | --he | -h)
926     ac_init_help=long ;;
927   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928     ac_init_help=recursive ;;
929   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930     ac_init_help=short ;;
931
932   -host | --host | --hos | --ho)
933     ac_prev=host_alias ;;
934   -host=* | --host=* | --hos=* | --ho=*)
935     host_alias=$ac_optarg ;;
936
937   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938     ac_prev=htmldir ;;
939   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940   | --ht=*)
941     htmldir=$ac_optarg ;;
942
943   -includedir | --includedir | --includedi | --included | --include \
944   | --includ | --inclu | --incl | --inc)
945     ac_prev=includedir ;;
946   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947   | --includ=* | --inclu=* | --incl=* | --inc=*)
948     includedir=$ac_optarg ;;
949
950   -infodir | --infodir | --infodi | --infod | --info | --inf)
951     ac_prev=infodir ;;
952   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953     infodir=$ac_optarg ;;
954
955   -libdir | --libdir | --libdi | --libd)
956     ac_prev=libdir ;;
957   -libdir=* | --libdir=* | --libdi=* | --libd=*)
958     libdir=$ac_optarg ;;
959
960   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961   | --libexe | --libex | --libe)
962     ac_prev=libexecdir ;;
963   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964   | --libexe=* | --libex=* | --libe=*)
965     libexecdir=$ac_optarg ;;
966
967   -localedir | --localedir | --localedi | --localed | --locale)
968     ac_prev=localedir ;;
969   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970     localedir=$ac_optarg ;;
971
972   -localstatedir | --localstatedir | --localstatedi | --localstated \
973   | --localstate | --localstat | --localsta | --localst | --locals)
974     ac_prev=localstatedir ;;
975   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977     localstatedir=$ac_optarg ;;
978
979   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980     ac_prev=mandir ;;
981   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982     mandir=$ac_optarg ;;
983
984   -nfp | --nfp | --nf)
985     # Obsolete; use --without-fp.
986     with_fp=no ;;
987
988   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989   | --no-cr | --no-c | -n)
990     no_create=yes ;;
991
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     no_recursion=yes ;;
995
996   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998   | --oldin | --oldi | --old | --ol | --o)
999     ac_prev=oldincludedir ;;
1000   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003     oldincludedir=$ac_optarg ;;
1004
1005   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006     ac_prev=prefix ;;
1007   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008     prefix=$ac_optarg ;;
1009
1010   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011   | --program-pre | --program-pr | --program-p)
1012     ac_prev=program_prefix ;;
1013   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015     program_prefix=$ac_optarg ;;
1016
1017   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018   | --program-suf | --program-su | --program-s)
1019     ac_prev=program_suffix ;;
1020   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022     program_suffix=$ac_optarg ;;
1023
1024   -program-transform-name | --program-transform-name \
1025   | --program-transform-nam | --program-transform-na \
1026   | --program-transform-n | --program-transform- \
1027   | --program-transform | --program-transfor \
1028   | --program-transfo | --program-transf \
1029   | --program-trans | --program-tran \
1030   | --progr-tra | --program-tr | --program-t)
1031     ac_prev=program_transform_name ;;
1032   -program-transform-name=* | --program-transform-name=* \
1033   | --program-transform-nam=* | --program-transform-na=* \
1034   | --program-transform-n=* | --program-transform-=* \
1035   | --program-transform=* | --program-transfor=* \
1036   | --program-transfo=* | --program-transf=* \
1037   | --program-trans=* | --program-tran=* \
1038   | --progr-tra=* | --program-tr=* | --program-t=*)
1039     program_transform_name=$ac_optarg ;;
1040
1041   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042     ac_prev=pdfdir ;;
1043   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044     pdfdir=$ac_optarg ;;
1045
1046   -psdir | --psdir | --psdi | --psd | --ps)
1047     ac_prev=psdir ;;
1048   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049     psdir=$ac_optarg ;;
1050
1051   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052   | -silent | --silent | --silen | --sile | --sil)
1053     silent=yes ;;
1054
1055   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056     ac_prev=sbindir ;;
1057   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058   | --sbi=* | --sb=*)
1059     sbindir=$ac_optarg ;;
1060
1061   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063   | --sharedst | --shareds | --shared | --share | --shar \
1064   | --sha | --sh)
1065     ac_prev=sharedstatedir ;;
1066   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069   | --sha=* | --sh=*)
1070     sharedstatedir=$ac_optarg ;;
1071
1072   -site | --site | --sit)
1073     ac_prev=site ;;
1074   -site=* | --site=* | --sit=*)
1075     site=$ac_optarg ;;
1076
1077   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078     ac_prev=srcdir ;;
1079   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080     srcdir=$ac_optarg ;;
1081
1082   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083   | --syscon | --sysco | --sysc | --sys | --sy)
1084     ac_prev=sysconfdir ;;
1085   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087     sysconfdir=$ac_optarg ;;
1088
1089   -target | --target | --targe | --targ | --tar | --ta | --t)
1090     ac_prev=target_alias ;;
1091   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092     target_alias=$ac_optarg ;;
1093
1094   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095     verbose=yes ;;
1096
1097   -version | --version | --versio | --versi | --vers | -V)
1098     ac_init_version=: ;;
1099
1100   -with-* | --with-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=\$ac_optarg ;;
1115
1116   -without-* | --without-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=no ;;
1131
1132   --x)
1133     # Obsolete; use --with-x.
1134     with_x=yes ;;
1135
1136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137   | --x-incl | --x-inc | --x-in | --x-i)
1138     ac_prev=x_includes ;;
1139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141     x_includes=$ac_optarg ;;
1142
1143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145     ac_prev=x_libraries ;;
1146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148     x_libraries=$ac_optarg ;;
1149
1150   -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1152     ;;
1153
1154   *=*)
1155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156     # Reject names that are not valid shell variable names.
1157     case $ac_envvar in #(
1158       '' | [0-9]* | *[!_$as_cr_alnum]* )
1159       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160     esac
1161     eval $ac_envvar=\$ac_optarg
1162     export $ac_envvar ;;
1163
1164   *)
1165     # FIXME: should be removed in autoconf 3.0.
1166     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170     ;;
1171
1172   esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177   as_fn_error "missing argument to $ac_option"
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181   case $enable_option_checking in
1182     no) ;;
1183     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218   if test "x$build_alias" = x; then
1219     cross_compiling=maybe
1220     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221     If a cross compiler is detected then cross compile mode will be used." >&2
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238   as_fn_error "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243   ac_srcdir_defaulted=yes
1244   # Try the directory containing this script, then the parent directory.
1245   ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247          X"$as_myself" : 'X\(//\)[^/]' \| \
1248          X"$as_myself" : 'X\(//\)$' \| \
1249          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)[^/].*/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\).*/{
1264             s//\1/
1265             q
1266           }
1267           s/.*/./; q'`
1268   srcdir=$ac_confdir
1269   if test ! -r "$srcdir/$ac_unique_file"; then
1270     srcdir=..
1271   fi
1272 else
1273   ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282         pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285   srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_env_${ac_var}_value=\$${ac_var}
1296   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304   # Omit some internal or obsolete options to make the list less imposing.
1305   # This message is too long to be a string in the A/UX 3.1 sh.
1306   cat <<_ACEOF
1307 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317   -h, --help              display this help and exit
1318       --help=short        display options specific to this package
1319       --help=recursive    display the short help of all the included packages
1320   -V, --version           display version information and exit
1321   -q, --quiet, --silent   do not print \`checking...' messages
1322       --cache-file=FILE   cache test results in FILE [disabled]
1323   -C, --config-cache      alias for \`--cache-file=config.cache'
1324   -n, --no-create         do not create output files
1325       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328   --prefix=PREFIX         install architecture-independent files in PREFIX
1329                           [$ac_default_prefix]
1330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                           [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341   --bindir=DIR            user executables [EPREFIX/bin]
1342   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343   --libexecdir=DIR        program executables [EPREFIX/libexec]
1344   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347   --libdir=DIR            object code libraries [EPREFIX/lib]
1348   --includedir=DIR        C header files [PREFIX/include]
1349   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352   --infodir=DIR           info documentation [DATAROOTDIR/info]
1353   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354   --mandir=DIR            man documentation [DATAROOTDIR/man]
1355   --docdir=DIR            documentation root [DATAROOTDIR/doc/package-unused]
1356   --htmldir=DIR           html documentation [DOCDIR]
1357   --dvidir=DIR            dvi documentation [DOCDIR]
1358   --pdfdir=DIR            pdf documentation [DOCDIR]
1359   --psdir=DIR             ps documentation [DOCDIR]
1360 _ACEOF
1361
1362   cat <<\_ACEOF
1363
1364 Program names:
1365   --program-prefix=PREFIX            prepend PREFIX to installed program names
1366   --program-suffix=SUFFIX            append SUFFIX to installed program names
1367   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1368
1369 System types:
1370   --build=BUILD     configure for building on BUILD [guessed]
1371   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372   --target=TARGET   configure for building compilers for TARGET [HOST]
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377   case $ac_init_help in
1378      short | recursive ) echo "Configuration of package-unused version-unused:";;
1379    esac
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-option-checking  ignore unrecognized --enable/--with options
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1387   --enable-multilib       build many library versions (default)
1388   --enable-maintainer-mode  enable make rules and dependencies not useful
1389                           (and sometimes confusing) to the casual installer
1390   --disable-dependency-tracking  speeds up one-time build
1391   --enable-dependency-tracking   do not reject slow dependency extractors
1392   --enable-shared[=PKGS]  build shared libraries [default=yes]
1393   --enable-static[=PKGS]  build static libraries [default=yes]
1394   --enable-fast-install[=PKGS]
1395                           optimize for fast installation [default=yes]
1396   --disable-libtool-lock  avoid locking (might break parallel builds)
1397
1398 Optional Packages:
1399   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1400   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1401   --with-pic              try to use only PIC/non-PIC objects [default=use
1402                           both]
1403   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CXX         C++ compiler command
1414   CXXFLAGS    C++ compiler flags
1415   CCAS        assembler compiler command (defaults to CC)
1416   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1417   CPP         C preprocessor
1418   CXXCPP      C++ preprocessor
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <libsanitizer>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429   # If there are subdirs, report their specific --help.
1430   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431     test -d "$ac_dir" ||
1432       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433       continue
1434     ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440   # A ".." for each directory in $ac_dir_suffix.
1441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442   case $ac_top_builddir_sub in
1443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445   esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453   .)  # We are building in place.
1454     ac_srcdir=.
1455     ac_top_srcdir=$ac_top_builddir_sub
1456     ac_abs_top_srcdir=$ac_pwd ;;
1457   [\\/]* | ?:[\\/]* )  # Absolute name.
1458     ac_srcdir=$srcdir$ac_dir_suffix;
1459     ac_top_srcdir=$srcdir
1460     ac_abs_top_srcdir=$srcdir ;;
1461   *) # Relative name.
1462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463     ac_top_srcdir=$ac_top_build_prefix$srcdir
1464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468     cd "$ac_dir" || { ac_status=$?; continue; }
1469     # Check for guested configure.
1470     if test -f "$ac_srcdir/configure.gnu"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473     elif test -f "$ac_srcdir/configure"; then
1474       echo &&
1475       $SHELL "$ac_srcdir/configure" --help=recursive
1476     else
1477       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478     fi || ac_status=$?
1479     cd "$ac_pwd" || { ac_status=$?; break; }
1480   done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485   cat <<\_ACEOF
1486 package-unused configure version-unused
1487 generated by GNU Autoconf 2.64
1488
1489 Copyright (C) 2009 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493   exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506   rm -f conftest.$ac_objext
1507   if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510   *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514   (eval "$ac_compile") 2>conftest.err
1515   ac_status=$?
1516   if test -s conftest.err; then
1517     grep -v '^ *+' conftest.err >conftest.er1
1518     cat conftest.er1 >&5
1519     mv -f conftest.er1 conftest.err
1520   fi
1521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522   test $ac_status = 0; } && {
1523          test -z "$ac_c_werror_flag" ||
1524          test ! -s conftest.err
1525        } && test -s conftest.$ac_objext; then :
1526   ac_retval=0
1527 else
1528   $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531         ac_retval=1
1532 fi
1533   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534   return $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1542 {
1543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544   rm -f conftest.$ac_objext
1545   if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548   *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552   (eval "$ac_compile") 2>conftest.err
1553   ac_status=$?
1554   if test -s conftest.err; then
1555     grep -v '^ *+' conftest.err >conftest.er1
1556     cat conftest.er1 >&5
1557     mv -f conftest.er1 conftest.err
1558   fi
1559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560   test $ac_status = 0; } && {
1561          test -z "$ac_cxx_werror_flag" ||
1562          test ! -s conftest.err
1563        } && test -s conftest.$ac_objext; then :
1564   ac_retval=0
1565 else
1566   $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569         ac_retval=1
1570 fi
1571   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572   return $ac_retval
1573
1574 } # ac_fn_cxx_try_compile
1575
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   rm -f conftest.$ac_objext conftest$ac_exeext
1583   if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586   *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590   (eval "$ac_link") 2>conftest.err
1591   ac_status=$?
1592   if test -s conftest.err; then
1593     grep -v '^ *+' conftest.err >conftest.er1
1594     cat conftest.er1 >&5
1595     mv -f conftest.er1 conftest.err
1596   fi
1597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598   test $ac_status = 0; } && {
1599          test -z "$ac_c_werror_flag" ||
1600          test ! -s conftest.err
1601        } && test -s conftest$ac_exeext && {
1602          test "$cross_compiling" = yes ||
1603          $as_test_x conftest$ac_exeext
1604        }; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610         ac_retval=1
1611 fi
1612   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614   # interfere with the next link command; also delete a directory that is
1615   # left behind by Apple's compiler.  We do this before executing the actions.
1616   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618   return $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1632   $as_echo_n "(cached) " >&6
1633 else
1634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h.  */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640   eval "$3=yes"
1641 else
1642   eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662   *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667   ac_status=$?
1668   if test -s conftest.err; then
1669     grep -v '^ *+' conftest.err >conftest.er1
1670     cat conftest.er1 >&5
1671     mv -f conftest.er1 conftest.err
1672   fi
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; } >/dev/null && {
1675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676          test ! -s conftest.err
1677        }; then :
1678   ac_retval=0
1679 else
1680   $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683     ac_retval=1
1684 fi
1685   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686   return $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_link") 2>&5
1705   ac_status=$?
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708   { { case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_try") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; }; }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: program exited with status $ac_status" >&5
1721        $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724        ac_retval=$ac_status
1725 fi
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728   return $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h.  */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750     which can conflict with char $2 (); below.
1751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752     <limits.h> exists even on freestanding compilers.  */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763    Use char because int might match the return type of a GCC
1764    builtin and then its argument prototype would still apply.  */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770     to always fail with ENOSYS.  Some functions are actually named
1771     something starting with __ and the normal name is an alias.  */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780   ;
1781   return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785   eval "$3=yes"
1786 else
1787   eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790     conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_cxx_try_cpp LINENO
1800 # ------------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_cpp ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } >/dev/null && {
1821          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822          test ! -s conftest.err
1823        }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829     ac_retval=1
1830 fi
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   return $ac_retval
1833
1834 } # ac_fn_cxx_try_cpp
1835
1836 # ac_fn_cxx_try_link LINENO
1837 # -------------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_link ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext conftest$ac_exeext
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_cxx_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest$ac_exeext && {
1862          test "$cross_compiling" = yes ||
1863          $as_test_x conftest$ac_exeext
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874   # interfere with the next link command; also delete a directory that is
1875   # left behind by Apple's compiler.  We do this before executing the actions.
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   return $ac_retval
1879
1880 } # ac_fn_cxx_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by package-unused $as_me version-unused, which was
1886 generated by GNU Autoconf 2.64.  Invocation command line was
1887
1888   $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
1907 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922     $as_echo "PATH: $as_dir"
1923   done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949   for ac_arg
1950   do
1951     case $ac_arg in
1952     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954     | -silent | --silent | --silen | --sile | --sil)
1955       continue ;;
1956     *\'*)
1957       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     esac
1959     case $ac_pass in
1960     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961     2)
1962       as_fn_append ac_configure_args1 " '$ac_arg'"
1963       if test $ac_must_keep_next = true; then
1964         ac_must_keep_next=false # Got value, back to normal.
1965       else
1966         case $ac_arg in
1967           *=* | --config-cache | -C | -disable-* | --disable-* \
1968           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970           | -with-* | --with-* | -without-* | --without-* | --x)
1971             case "$ac_configure_args0 " in
1972               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973             esac
1974             ;;
1975           -* ) ac_must_keep_next=true ;;
1976         esac
1977       fi
1978       as_fn_append ac_configure_args " '$ac_arg'"
1979       ;;
1980     esac
1981   done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log.  We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992   # Save into config.log some information that might help in debugging.
1993   {
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2000 _ASBOX
2001     echo
2002     # The following way of writing the cache mishandles newlines in values,
2003 (
2004   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005     eval ac_val=\$$ac_var
2006     case $ac_val in #(
2007     *${as_nl}*)
2008       case $ac_var in #(
2009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011       esac
2012       case $ac_var in #(
2013       _ | IFS | as_nl) ;; #(
2014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015       *) { eval $ac_var=; unset $ac_var;} ;;
2016       esac ;;
2017     esac
2018   done
2019   (set) 2>&1 |
2020     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021     *${as_nl}ac_space=\ *)
2022       sed -n \
2023         "s/'\''/'\''\\\\'\'''\''/g;
2024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025       ;; #(
2026     *)
2027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028       ;;
2029     esac |
2030     sort
2031 )
2032     echo
2033
2034     cat <<\_ASBOX
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2038 _ASBOX
2039     echo
2040     for ac_var in $ac_subst_vars
2041     do
2042       eval ac_val=\$$ac_var
2043       case $ac_val in
2044       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045       esac
2046       $as_echo "$ac_var='\''$ac_val'\''"
2047     done | sort
2048     echo
2049
2050     if test -n "$ac_subst_files"; then
2051       cat <<\_ASBOX
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2055 _ASBOX
2056       echo
2057       for ac_var in $ac_subst_files
2058       do
2059         eval ac_val=\$$ac_var
2060         case $ac_val in
2061         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062         esac
2063         $as_echo "$ac_var='\''$ac_val'\''"
2064       done | sort
2065       echo
2066     fi
2067
2068     if test -s confdefs.h; then
2069       cat <<\_ASBOX
2070 ## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##
2073 _ASBOX
2074       echo
2075       cat confdefs.h
2076       echo
2077     fi
2078     test "$ac_signal" != 0 &&
2079       $as_echo "$as_me: caught signal $ac_signal"
2080     $as_echo "$as_me: exit $exit_status"
2081   } >&5
2082   rm -f core *.core core.conftest.* &&
2083     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084     exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128   ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130   ac_site_file1=$prefix/share/config.site
2131   ac_site_file2=$prefix/etc/config.site
2132 else
2133   ac_site_file1=$ac_default_prefix/share/config.site
2134   ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138   test "x$ac_site_file" = xNONE && continue
2139   if test -r "$ac_site_file"; then
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142     sed 's/^/| /' "$ac_site_file" >&5
2143     . "$ac_site_file"
2144   fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148   # Some versions of bash will fail to source /dev/null (special
2149   # files actually), so we avoid doing that.
2150   if test -f "$cache_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153     case $cache_file in
2154       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155       *)                      . "./$cache_file";;
2156     esac
2157   fi
2158 else
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161   >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169   eval ac_new_set=\$ac_env_${ac_var}_set
2170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171   eval ac_new_val=\$ac_env_${ac_var}_value
2172   case $ac_old_set,$ac_new_set in
2173     set,)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,set)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,);;
2182     *)
2183       if test "x$ac_old_val" != "x$ac_new_val"; then
2184         # differences in whitespace do not lead to failure.
2185         ac_old_val_w=`echo x $ac_old_val`
2186         ac_new_val_w=`echo x $ac_new_val`
2187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190           ac_cache_corrupted=:
2191         else
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194           eval $ac_var=\$ac_old_val
2195         fi
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200       fi;;
2201   esac
2202   # Pass precious variables to config.status.
2203   if test "$ac_new_set" = set; then
2204     case $ac_new_val in
2205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     *) ac_arg=$ac_var=$ac_new_val ;;
2207     esac
2208     case " $ac_configure_args " in
2209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211     esac
2212   fi
2213 done
2214 if $ac_cache_corrupted; then
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235
2236
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2238 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2239 # Check whether --enable-version-specific-runtime-libs was given.
2240 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2241   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2242  yes) version_specific_libs=yes ;;
2243  no)  version_specific_libs=no ;;
2244  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2245  esac
2246 else
2247   version_specific_libs=no
2248 fi
2249
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2251 $as_echo "$version_specific_libs" >&6; }
2252
2253 # Do not delete or change the following two lines.  For why, see
2254 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2255 ac_aux_dir=
2256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257   for ac_t in install-sh install.sh shtool; do
2258     if test -f "$ac_dir/$ac_t"; then
2259       ac_aux_dir=$ac_dir
2260       ac_install_sh="$ac_aux_dir/$ac_t -c"
2261       break 2
2262     fi
2263   done
2264 done
2265 if test -z "$ac_aux_dir"; then
2266   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2267 fi
2268
2269 # These three variables are undocumented and unsupported,
2270 # and are intended to be withdrawn in a future Autoconf release.
2271 # They can cause serious problems if a builder's source tree is in a directory
2272 # whose full name contains unusual characters.
2273 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2274 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2275 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2276
2277
2278 # Make sure we can run config.sub.
2279 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2280   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2281
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2283 $as_echo_n "checking build system type... " >&6; }
2284 if test "${ac_cv_build+set}" = set; then :
2285   $as_echo_n "(cached) " >&6
2286 else
2287   ac_build_alias=$build_alias
2288 test "x$ac_build_alias" = x &&
2289   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2290 test "x$ac_build_alias" = x &&
2291   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2294
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2297 $as_echo "$ac_cv_build" >&6; }
2298 case $ac_cv_build in
2299 *-*-*) ;;
2300 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2301 esac
2302 build=$ac_cv_build
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_build
2305 shift
2306 build_cpu=$1
2307 build_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 build_os=$*
2312 IFS=$ac_save_IFS
2313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2314
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2317 $as_echo_n "checking host system type... " >&6; }
2318 if test "${ac_cv_host+set}" = set; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   if test "x$host_alias" = x; then
2322   ac_cv_host=$ac_cv_build
2323 else
2324   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2325     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2326 fi
2327
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2330 $as_echo "$ac_cv_host" >&6; }
2331 case $ac_cv_host in
2332 *-*-*) ;;
2333 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2334 esac
2335 host=$ac_cv_host
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_host
2338 shift
2339 host_cpu=$1
2340 host_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 host_os=$*
2345 IFS=$ac_save_IFS
2346 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2347
2348
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2350 $as_echo_n "checking target system type... " >&6; }
2351 if test "${ac_cv_target+set}" = set; then :
2352   $as_echo_n "(cached) " >&6
2353 else
2354   if test "x$target_alias" = x; then
2355   ac_cv_target=$ac_cv_host
2356 else
2357   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2358     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2359 fi
2360
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2363 $as_echo "$ac_cv_target" >&6; }
2364 case $ac_cv_target in
2365 *-*-*) ;;
2366 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2367 esac
2368 target=$ac_cv_target
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_target
2371 shift
2372 target_cpu=$1
2373 target_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 target_os=$*
2378 IFS=$ac_save_IFS
2379 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2380
2381
2382 # The aliases save the names the user supplied, while $host etc.
2383 # will get canonicalized.
2384 test -n "$target_alias" &&
2385   test "$program_prefix$program_suffix$program_transform_name" = \
2386     NONENONEs,x,x, &&
2387   program_prefix=${target_alias}-
2388
2389 target_alias=${target_alias-$host_alias}
2390
2391
2392 am__api_version='1.11'
2393
2394 # Find a good install program.  We prefer a C program (faster),
2395 # so one script is as good as another.  But avoid the broken or
2396 # incompatible versions:
2397 # SysV /etc/install, /usr/sbin/install
2398 # SunOS /usr/etc/install
2399 # IRIX /sbin/install
2400 # AIX /bin/install
2401 # AmigaOS /C/install, which installs bootblocks on floppy discs
2402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2405 # OS/2's system install, which has a completely different semantic
2406 # ./install, which can be erroneously created by make from ./install.sh.
2407 # Reject install programs that cannot install multiple files.
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2409 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2410 if test -z "$INSTALL"; then
2411 if test "${ac_cv_path_install+set}" = set; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419     # Account for people who put trailing slashes in PATH elements.
2420 case $as_dir/ in #((
2421   ./ | .// | /[cC]/* | \
2422   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2423   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2424   /usr/ucb/* ) ;;
2425   *)
2426     # OSF1 and SCO ODT 3.0 have their own names for install.
2427     # Don't use installbsd from OSF since it installs stuff as root
2428     # by default.
2429     for ac_prog in ginstall scoinst install; do
2430       for ac_exec_ext in '' $ac_executable_extensions; do
2431         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2432           if test $ac_prog = install &&
2433             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434             # AIX install.  It has an incompatible calling convention.
2435             :
2436           elif test $ac_prog = install &&
2437             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438             # program-specific install script used by HP pwplus--don't use.
2439             :
2440           else
2441             rm -rf conftest.one conftest.two conftest.dir
2442             echo one > conftest.one
2443             echo two > conftest.two
2444             mkdir conftest.dir
2445             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2446               test -s conftest.one && test -s conftest.two &&
2447               test -s conftest.dir/conftest.one &&
2448               test -s conftest.dir/conftest.two
2449             then
2450               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2451               break 3
2452             fi
2453           fi
2454         fi
2455       done
2456     done
2457     ;;
2458 esac
2459
2460   done
2461 IFS=$as_save_IFS
2462
2463 rm -rf conftest.one conftest.two conftest.dir
2464
2465 fi
2466   if test "${ac_cv_path_install+set}" = set; then
2467     INSTALL=$ac_cv_path_install
2468   else
2469     # As a last resort, use the slow shell script.  Don't cache a
2470     # value for INSTALL within a source directory, because that will
2471     # break other packages using the cache if that directory is
2472     # removed, or if the value is a relative name.
2473     INSTALL=$ac_install_sh
2474   fi
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2477 $as_echo "$INSTALL" >&6; }
2478
2479 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2480 # It thinks the first close brace ends the variable substitution.
2481 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2482
2483 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2484
2485 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2488 $as_echo_n "checking whether build environment is sane... " >&6; }
2489 # Just in case
2490 sleep 1
2491 echo timestamp > conftest.file
2492 # Reject unsafe characters in $srcdir or the absolute working directory
2493 # name.  Accept space and tab only in the latter.
2494 am_lf='
2495 '
2496 case `pwd` in
2497   *[\\\"\#\$\&\'\`$am_lf]*)
2498     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2499 esac
2500 case $srcdir in
2501   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2502     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2503 esac
2504
2505 # Do `set' in a subshell so we don't clobber the current shell's
2506 # arguments.  Must try -L first in case configure is actually a
2507 # symlink; some systems play weird games with the mod time of symlinks
2508 # (eg FreeBSD returns the mod time of the symlink's containing
2509 # directory).
2510 if (
2511    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2512    if test "$*" = "X"; then
2513       # -L didn't work.
2514       set X `ls -t "$srcdir/configure" conftest.file`
2515    fi
2516    rm -f conftest.file
2517    if test "$*" != "X $srcdir/configure conftest.file" \
2518       && test "$*" != "X conftest.file $srcdir/configure"; then
2519
2520       # If neither matched, then we have a broken ls.  This can happen
2521       # if, for instance, CONFIG_SHELL is bash and it inherits a
2522       # broken ls alias from the environment.  This has actually
2523       # happened.  Such a system could not be considered "sane".
2524       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2525 alias in your environment" "$LINENO" 5
2526    fi
2527
2528    test "$2" = conftest.file
2529    )
2530 then
2531    # Ok.
2532    :
2533 else
2534    as_fn_error "newly created file is older than distributed files!
2535 Check your system clock" "$LINENO" 5
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 test "$program_prefix" != NONE &&
2540   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE &&
2543   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548
2549 # expand $ac_aux_dir to an absolute path
2550 am_aux_dir=`cd $ac_aux_dir && pwd`
2551
2552 if test x"${MISSING+set}" != xset; then
2553   case $am_aux_dir in
2554   *\ * | *\     *)
2555     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2556   *)
2557     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2558   esac
2559 fi
2560 # Use eval to expand $SHELL
2561 if eval "$MISSING --run true"; then
2562   am_missing_run="$MISSING --run "
2563 else
2564   am_missing_run=
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2566 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2567 fi
2568
2569 if test x"${install_sh}" != xset; then
2570   case $am_aux_dir in
2571   *\ * | *\     *)
2572     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2573   *)
2574     install_sh="\${SHELL} $am_aux_dir/install-sh"
2575   esac
2576 fi
2577
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'.  However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583   if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$STRIP"; then
2592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2614 $as_echo "$STRIP" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_STRIP"; then
2623   ac_ct_STRIP=$STRIP
2624   # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$ac_ct_STRIP"; then
2632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_STRIP="strip"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2654 $as_echo "$ac_ct_STRIP" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_STRIP" = x; then
2661     STRIP=":"
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     STRIP=$ac_ct_STRIP
2670   fi
2671 else
2672   STRIP="$ac_cv_prog_STRIP"
2673 fi
2674
2675 fi
2676 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2679 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2680 if test -z "$MKDIR_P"; then
2681   if test "${ac_cv_path_mkdir+set}" = set; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_prog in mkdir gmkdir; do
2690          for ac_exec_ext in '' $ac_executable_extensions; do
2691            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2692            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2693              'mkdir (GNU coreutils) '* | \
2694              'mkdir (coreutils) '* | \
2695              'mkdir (fileutils) '4.1*)
2696                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2697                break 3;;
2698            esac
2699          done
2700        done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705
2706   if test "${ac_cv_path_mkdir+set}" = set; then
2707     MKDIR_P="$ac_cv_path_mkdir -p"
2708   else
2709     # As a last resort, use the slow shell script.  Don't cache a
2710     # value for MKDIR_P within a source directory, because that will
2711     # break other packages using the cache if that directory is
2712     # removed, or if the value is a relative name.
2713     test -d ./--version && rmdir ./--version
2714     MKDIR_P="$ac_install_sh -d"
2715   fi
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2718 $as_echo "$MKDIR_P" >&6; }
2719
2720 mkdir_p="$MKDIR_P"
2721 case $mkdir_p in
2722   [\\/$]* | ?:[\\/]*) ;;
2723   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2724 esac
2725
2726 for ac_prog in gawk mawk nawk awk
2727 do
2728   # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_AWK+set}" = set; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$AWK"; then
2736   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743     for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_AWK="$ac_prog"
2746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750   done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 AWK=$ac_cv_prog_AWK
2756 if test -n "$AWK"; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2758 $as_echo "$AWK" >&6; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765   test -n "$AWK" && break
2766 done
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2769 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2770 set x ${MAKE-make}
2771 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   cat >conftest.make <<\_ACEOF
2776 SHELL = /bin/sh
2777 all:
2778         @echo '@@@%%%=$(MAKE)=@@@%%%'
2779 _ACEOF
2780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2782   *@@@%%%=?*=@@@%%%*)
2783     eval ac_cv_prog_make_${ac_make}_set=yes;;
2784   *)
2785     eval ac_cv_prog_make_${ac_make}_set=no;;
2786 esac
2787 rm -f conftest.make
2788 fi
2789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791 $as_echo "yes" >&6; }
2792   SET_MAKE=
2793 else
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796   SET_MAKE="MAKE=${MAKE-make}"
2797 fi
2798
2799 rm -rf .tst 2>/dev/null
2800 mkdir .tst 2>/dev/null
2801 if test -d .tst; then
2802   am__leading_dot=.
2803 else
2804   am__leading_dot=_
2805 fi
2806 rmdir .tst 2>/dev/null
2807
2808 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2809   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2810   # is not polluted with repeated "-I."
2811   am__isrc=' -I$(srcdir)'
2812   # test to see if srcdir already configured
2813   if test -f $srcdir/config.status; then
2814     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2815   fi
2816 fi
2817
2818 # test whether we have cygpath
2819 if test -z "$CYGPATH_W"; then
2820   if (cygpath --version) >/dev/null 2>/dev/null; then
2821     CYGPATH_W='cygpath -w'
2822   else
2823     CYGPATH_W=echo
2824   fi
2825 fi
2826
2827
2828 # Define the identity of the package.
2829  PACKAGE='package-unused'
2830  VERSION='version-unused'
2831
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE "$PACKAGE"
2835 _ACEOF
2836
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define VERSION "$VERSION"
2840 _ACEOF
2841
2842 # Some tools Automake needs.
2843
2844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845
2846
2847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848
2849
2850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851
2852
2853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854
2855
2856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857
2858 # We need awk for the "check" target.  The system "awk" is bad on
2859 # some platforms.
2860 # Always define AMTAR for backward compatibility.
2861
2862 AMTAR=${AMTAR-"${am_missing_run}tar"}
2863
2864 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2865
2866
2867
2868
2869
2870 # Default to --enable-multilib
2871 # Check whether --enable-multilib was given.
2872 if test "${enable_multilib+set}" = set; then :
2873   enableval=$enable_multilib; case "$enableval" in
2874   yes) multilib=yes ;;
2875   no)  multilib=no ;;
2876   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2877  esac
2878 else
2879   multilib=yes
2880 fi
2881
2882
2883 # We may get other options which we leave undocumented:
2884 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2885 # See config-ml.in if you want the gory details.
2886
2887 if test "$srcdir" = "."; then
2888   if test "$with_target_subdir" != "."; then
2889     multi_basedir="$srcdir/$with_multisrctop../.."
2890   else
2891     multi_basedir="$srcdir/$with_multisrctop.."
2892   fi
2893 else
2894   multi_basedir="$srcdir/.."
2895 fi
2896
2897
2898 # Even if the default multilib is not a cross compilation,
2899 # it may be that some of the other multilibs are.
2900 if test $cross_compiling = no && test $multilib = yes \
2901    && test "x${with_multisubdir}" != x ; then
2902    cross_compiling=maybe
2903 fi
2904
2905 ac_config_commands="$ac_config_commands default-1"
2906
2907
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2909 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2910     # Check whether --enable-maintainer-mode was given.
2911 if test "${enable_maintainer_mode+set}" = set; then :
2912   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2913 else
2914   USE_MAINTAINER_MODE=no
2915 fi
2916
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2918 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2919    if test $USE_MAINTAINER_MODE = yes; then
2920   MAINTAINER_MODE_TRUE=
2921   MAINTAINER_MODE_FALSE='#'
2922 else
2923   MAINTAINER_MODE_TRUE='#'
2924   MAINTAINER_MODE_FALSE=
2925 fi
2926
2927   MAINT=$MAINTAINER_MODE_TRUE
2928
2929
2930
2931 # Calculate toolexeclibdir
2932 # Also toolexecdir, though it's only used in toolexeclibdir
2933 case ${version_specific_libs} in
2934   yes)
2935     # Need the gcc compiler version to know where to install libraries
2936     # and header files if --enable-version-specific-runtime-libs option
2937     # is selected.
2938     toolexecdir='$(libdir)/gcc/$(target_alias)'
2939     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2940     ;;
2941   no)
2942     if test -n "$with_cross_host" &&
2943        test x"$with_cross_host" != x"no"; then
2944       # Install a library built with a cross compiler in tooldir, not libdir.
2945       toolexecdir='$(exec_prefix)/$(target_alias)'
2946       toolexeclibdir='$(toolexecdir)/lib'
2947     else
2948       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2949       toolexeclibdir='$(libdir)'
2950     fi
2951     multi_os_directory=`$CC -print-multi-os-directory`
2952     case $multi_os_directory in
2953       .) ;; # Avoid trailing /.
2954       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2955     esac
2956     ;;
2957 esac
2958
2959
2960
2961 # Checks for programs.
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$ac_cv_prog_CC"; then
3007   ac_ct_CC=$CC
3008   # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   if test -n "$ac_ct_CC"; then
3016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025     ac_cv_prog_ac_ct_CC="gcc"
3026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030   done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3039 else
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044   if test "x$ac_ct_CC" = x; then
3045     CC=""
3046   else
3047     case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053     CC=$ac_ct_CC
3054   fi
3055 else
3056   CC="$ac_cv_prog_CC"
3057 fi
3058
3059 if test -z "$CC"; then
3060           if test -n "$ac_tool_prefix"; then
3061     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CC"; then
3069   ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078     ac_cv_prog_CC="${ac_tool_prefix}cc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098   fi
3099 fi
3100 if test -z "$CC"; then
3101   # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if test "${ac_cv_prog_CC+set}" = set; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   if test -n "$CC"; then
3109   ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111   ac_prog_rejected=no
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120        ac_prog_rejected=yes
3121        continue
3122      fi
3123     ac_cv_prog_CC="cc"
3124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128   done
3129 IFS=$as_save_IFS
3130
3131 if test $ac_prog_rejected = yes; then
3132   # We found a bogon in the path, so make sure we never use it.
3133   set dummy $ac_cv_prog_CC
3134   shift
3135   if test $# != 0; then
3136     # We chose a different compiler from the bogus one.
3137     # However, it has the same basename, so the bogon will be chosen
3138     # first if we set CC to just the basename; use the full file name.
3139     shift
3140     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141   fi
3142 fi
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$CC"; then
3157   if test -n "$ac_tool_prefix"; then
3158   for ac_prog in cl.exe
3159   do
3160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$CC"; then
3168   ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197     test -n "$CC" && break
3198   done
3199 fi
3200 if test -z "$CC"; then
3201   ac_ct_CC=$CC
3202   for ac_prog in cl.exe
3203 do
3204   # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test -n "$ac_ct_CC"; then
3212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217   IFS=$as_save_IFS
3218   test -z "$as_dir" && as_dir=.
3219     for ac_exec_ext in '' $ac_executable_extensions; do
3220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221     ac_cv_prog_ac_ct_CC="$ac_prog"
3222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223     break 2
3224   fi
3225 done
3226   done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3235 else
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241   test -n "$ac_ct_CC" && break
3242 done
3243
3244   if test "x$ac_ct_CC" = x; then
3245     CC=""
3246   else
3247     case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253     CC=$ac_ct_CC
3254   fi
3255 fi
3256
3257 fi
3258
3259
3260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error "no acceptable C compiler found in \$PATH
3263 See \`config.log' for more details." "$LINENO" 5; }
3264
3265 # Provide some information about the compiler.
3266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267 set X $ac_compile
3268 ac_compiler=$2
3269 for ac_option in --version -v -V -qversion; do
3270   { { ac_try="$ac_compiler $ac_option >&5"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278   ac_status=$?
3279   if test -s conftest.err; then
3280     sed '10a\
3281 ... rest of stderr output deleted ...
3282          10q' conftest.err >conftest.er1
3283     cat conftest.er1 >&5
3284     rm -f conftest.er1 conftest.err
3285   fi
3286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287   test $ac_status = 0; }
3288 done
3289
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296
3297   ;
3298   return 0;
3299 }
3300 _ACEOF
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3305 # of exeext.
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313 ac_rmfiles=
3314 for ac_file in $ac_files
3315 do
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319   esac
3320 done
3321 rm -f $ac_rmfiles
3322
3323 if { { ac_try="$ac_link_default"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330   (eval "$ac_link_default") 2>&5
3331   ac_status=$?
3332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333   test $ac_status = 0; }; then :
3334   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3338 # Autoconf.
3339 for ac_file in $ac_files ''
3340 do
3341   test -f "$ac_file" || continue
3342   case $ac_file in
3343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344         ;;
3345     [ab].out )
3346         # We found the default executable, but exeext='' is most
3347         # certainly right.
3348         break;;
3349     *.* )
3350         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351         then :; else
3352            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353         fi
3354         # We set ac_cv_exeext here because the later test for it is not
3355         # safe: cross compilers may not add the suffix if given an `-o'
3356         # argument, so we may need to know it at that point already.
3357         # Even if this section looks crufty: it has the advantage of
3358         # actually working.
3359         break;;
3360     * )
3361         break;;
3362   esac
3363 done
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366 else
3367   ac_file=''
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 if test -z "$ac_file"; then :
3372   $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 { as_fn_set_status 77
3378 as_fn_error "C compiler cannot create executables
3379 See \`config.log' for more details." "$LINENO" 5; }; }
3380 fi
3381 ac_exeext=$ac_cv_exeext
3382
3383 # Check that the compiler produces executables we can run.  If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3386 $as_echo_n "checking whether the C compiler works... " >&6; }
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { { case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399   test $ac_status = 0; }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error "cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." "$LINENO" 5; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run.  If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { { ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437   test $ac_status = 0; }; then :
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error "cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." "$LINENO" 5; }
3456 fi
3457 rm -f conftest$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3460
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3463 ac_exeext=$EXEEXT
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465 $as_echo_n "checking for suffix of object files... " >&6; }
3466 if test "${ac_cv_objext+set}" = set; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.o conftest.obj
3481 if { { ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488   (eval "$ac_compile") 2>&5
3489   ac_status=$?
3490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491   test $ac_status = 0; }; then :
3492   for ac_file in conftest.o conftest.obj conftest.*; do
3493   test -f "$ac_file" || continue;
3494   case $ac_file in
3495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497        break;;
3498   esac
3499 done
3500 else
3501   $as_echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error "cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." "$LINENO" 5; }
3508 fi
3509 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512 $as_echo "$ac_cv_objext" >&6; }
3513 OBJEXT=$ac_cv_objext
3514 ac_objext=$OBJEXT
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526 #ifndef __GNUC__
3527        choke me
3528 #endif
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535   ac_compiler_gnu=yes
3536 else
3537   ac_compiler_gnu=no
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3546   GCC=yes
3547 else
3548   GCC=
3549 fi
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then :
3555   $as_echo_n "(cached) " >&6
3556 else
3557   ac_save_c_werror_flag=$ac_c_werror_flag
3558    ac_c_werror_flag=yes
3559    ac_cv_prog_cc_g=no
3560    CFLAGS="-g"
3561    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573   ac_cv_prog_cc_g=yes
3574 else
3575   CFLAGS=""
3576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588
3589 else
3590   ac_c_werror_flag=$ac_save_c_werror_flag
3591          CFLAGS="-g"
3592          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604   ac_cv_prog_cc_g=yes
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611    ac_c_werror_flag=$ac_save_c_werror_flag
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614 $as_echo "$ac_cv_prog_cc_g" >&6; }
3615 if test "$ac_test_CFLAGS" = set; then
3616   CFLAGS=$ac_save_CFLAGS
3617 elif test $ac_cv_prog_cc_g = yes; then
3618   if test "$GCC" = yes; then
3619     CFLAGS="-g -O2"
3620   else
3621     CFLAGS="-g"
3622   fi
3623 else
3624   if test "$GCC" = yes; then
3625     CFLAGS="-O2"
3626   else
3627     CFLAGS=
3628   fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   ac_cv_prog_cc_c89=no
3636 ac_save_CC=$CC
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h.  */
3639 #include <stdarg.h>
3640 #include <stdio.h>
3641 #include <sys/types.h>
3642 #include <sys/stat.h>
3643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3644 struct buf { int x; };
3645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646 static char *e (p, i)
3647      char **p;
3648      int i;
3649 {
3650   return p[i];
3651 }
3652 static char *f (char * (*g) (char **, int), char **p, ...)
3653 {
3654   char *s;
3655   va_list v;
3656   va_start (v,p);
3657   s = g (p, va_arg (v,int));
3658   va_end (v);
3659   return s;
3660 }
3661
3662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3663    function prototypes and stuff, but not '\xHH' hex character constants.
3664    These don't provoke an error unfortunately, instead are silently treated
3665    as 'x'.  The following induces an error, until -std is added to get
3666    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3667    array size at least.  It's necessary to write '\x00'==0 to get something
3668    that's true only with -std.  */
3669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672    inside strings and character constants.  */
3673 #define FOO(x) 'x'
3674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675
3676 int test (int i, double x);
3677 struct s1 {int (*f) (int a);};
3678 struct s2 {int (*f) (double a);};
3679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680 int argc;
3681 char **argv;
3682 int
3683 main ()
3684 {
3685 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 do
3693   CC="$ac_save_CC $ac_arg"
3694   if ac_fn_c_try_compile "$LINENO"; then :
3695   ac_cv_prog_cc_c89=$ac_arg
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext
3698   test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3702
3703 fi
3704 # AC_CACHE_VAL
3705 case "x$ac_cv_prog_cc_c89" in
3706   x)
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 $as_echo "none needed" >&6; } ;;
3709   xno)
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 $as_echo "unsupported" >&6; } ;;
3712   *)
3713     CC="$CC $ac_cv_prog_cc_c89"
3714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716 esac
3717 if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
3719 fi
3720
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 DEPDIR="${am__leading_dot}deps"
3727
3728 ac_config_commands="$ac_config_commands depfiles"
3729
3730
3731 am_make=${MAKE-make}
3732 cat > confinc << 'END'
3733 am__doit:
3734         @echo this is the am__doit target
3735 .PHONY: am__doit
3736 END
3737 # If we don't find an include directive, just comment out the code.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3739 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3740 am__include="#"
3741 am__quote=
3742 _am_result=none
3743 # First try GNU make style include.
3744 echo "include confinc" > confmf
3745 # Ignore all kinds of additional output from `make'.
3746 case `$am_make -s -f confmf 2> /dev/null` in #(
3747 *the\ am__doit\ target*)
3748   am__include=include
3749   am__quote=
3750   _am_result=GNU
3751   ;;
3752 esac
3753 # Now try BSD make style include.
3754 if test "$am__include" = "#"; then
3755    echo '.include "confinc"' > confmf
3756    case `$am_make -s -f confmf 2> /dev/null` in #(
3757    *the\ am__doit\ target*)
3758      am__include=.include
3759      am__quote="\""
3760      _am_result=BSD
3761      ;;
3762    esac
3763 fi
3764
3765
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3767 $as_echo "$_am_result" >&6; }
3768 rm -f confinc confmf
3769
3770 # Check whether --enable-dependency-tracking was given.
3771 if test "${enable_dependency_tracking+set}" = set; then :
3772   enableval=$enable_dependency_tracking;
3773 fi
3774
3775 if test "x$enable_dependency_tracking" != xno; then
3776   am_depcomp="$ac_aux_dir/depcomp"
3777   AMDEPBACKSLASH='\'
3778 fi
3779  if test "x$enable_dependency_tracking" != xno; then
3780   AMDEP_TRUE=
3781   AMDEP_FALSE='#'
3782 else
3783   AMDEP_TRUE='#'
3784   AMDEP_FALSE=
3785 fi
3786
3787
3788
3789 depcc="$CC"   am_compiler_list=
3790
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792 $as_echo_n "checking dependency style of $depcc... " >&6; }
3793 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797   # We make a subdir and do the tests there.  Otherwise we can end up
3798   # making bogus files that we don't know about and never remove.  For
3799   # instance it was reported that on HP-UX the gcc test will end up
3800   # making a dummy file named `D' -- because `-MD' means `put the output
3801   # in D'.
3802   mkdir conftest.dir
3803   # Copy depcomp to subdir because otherwise we won't find it if we're
3804   # using a relative directory.
3805   cp "$am_depcomp" conftest.dir
3806   cd conftest.dir
3807   # We will build objects and dependencies in a subdirectory because
3808   # it helps to detect inapplicable dependency modes.  For instance
3809   # both Tru64's cc and ICC support -MD to output dependencies as a
3810   # side effect of compilation, but ICC will put the dependencies in
3811   # the current directory while Tru64 will put them in the object
3812   # directory.
3813   mkdir sub
3814
3815   am_cv_CC_dependencies_compiler_type=none
3816   if test "$am_compiler_list" = ""; then
3817      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818   fi
3819   am__universal=false
3820   case " $depcc " in #(
3821      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3822      esac
3823
3824   for depmode in $am_compiler_list; do
3825     # Setup a source with many dependencies, because some compilers
3826     # like to wrap large dependency lists on column 80 (with \), and
3827     # we should not choose a depcomp mode which is confused by this.
3828     #
3829     # We need to recreate these files for each test, as the compiler may
3830     # overwrite some of them when testing with obscure command lines.
3831     # This happens at least with the AIX C compiler.
3832     : > sub/conftest.c
3833     for i in 1 2 3 4 5 6; do
3834       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836       # Solaris 8's {/usr,}/bin/sh.
3837       touch sub/conftst$i.h
3838     done
3839     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840
3841     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3842     # mode.  It turns out that the SunPro C++ compiler does not properly
3843     # handle `-M -o', and we need to detect this.  Also, some Intel
3844     # versions had trouble with output in subdirs
3845     am__obj=sub/conftest.${OBJEXT-o}
3846     am__minus_obj="-o $am__obj"
3847     case $depmode in
3848     gcc)
3849       # This depmode causes a compiler race in universal mode.
3850       test "$am__universal" = false || continue
3851       ;;
3852     nosideeffect)
3853       # after this tag, mechanisms are not by side-effect, so they'll
3854       # only be used when explicitly requested
3855       if test "x$enable_dependency_tracking" = xyes; then
3856         continue
3857       else
3858         break
3859       fi
3860       ;;
3861     msvisualcpp | msvcmsys)
3862       # This compiler won't grok `-c -o', but also, the minuso test has
3863       # not run yet.  These depmodes are late enough in the game, and
3864       # so weak that their functioning should not be impacted.
3865       am__obj=conftest.${OBJEXT-o}
3866       am__minus_obj=
3867       ;;
3868     none) break ;;
3869     esac
3870     if depmode=$depmode \
3871        source=sub/conftest.c object=$am__obj \
3872        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3873        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3874          >/dev/null 2>conftest.err &&
3875        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3876        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3877        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3878        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3879       # icc doesn't choke on unknown options, it will just issue warnings
3880       # or remarks (even with -Werror).  So we grep stderr for any message
3881       # that says an option was ignored or not supported.
3882       # When given -MP, icc 7.0 and 7.1 complain thusly:
3883       #   icc: Command line warning: ignoring option '-M'; no argument required
3884       # The diagnosis changed in icc 8.0:
3885       #   icc: Command line remark: option '-MP' not supported
3886       if (grep 'ignoring option' conftest.err ||
3887           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3888         am_cv_CC_dependencies_compiler_type=$depmode
3889         break
3890       fi
3891     fi
3892   done
3893
3894   cd ..
3895   rm -rf conftest.dir
3896 else
3897   am_cv_CC_dependencies_compiler_type=none
3898 fi
3899
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3902 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3904
3905  if
3906   test "x$enable_dependency_tracking" != xno \
3907   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3908   am__fastdepCC_TRUE=
3909   am__fastdepCC_FALSE='#'
3910 else
3911   am__fastdepCC_TRUE='#'
3912   am__fastdepCC_FALSE=
3913 fi
3914
3915
3916 ac_ext=cpp
3917 ac_cpp='$CXXCPP $CPPFLAGS'
3918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3921 if test -z "$CXX"; then
3922   if test -n "$CCC"; then
3923     CXX=$CCC
3924   else
3925     if test -n "$ac_tool_prefix"; then
3926   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3927   do
3928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if test "${ac_cv_prog_CXX+set}" = set; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test -n "$CXX"; then
3936   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943     for ac_exec_ext in '' $ac_executable_extensions; do
3944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950   done
3951 IFS=$as_save_IFS
3952
3953 fi
3954 fi
3955 CXX=$ac_cv_prog_CXX
3956 if test -n "$CXX"; then
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3958 $as_echo "$CXX" >&6; }
3959 else
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965     test -n "$CXX" && break
3966   done
3967 fi
3968 if test -z "$CXX"; then
3969   ac_ct_CXX=$CXX
3970   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3971 do
3972   # Extract the first word of "$ac_prog", so it can be a program name with args.
3973 set dummy $ac_prog; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3977   $as_echo_n "(cached) " >&6
3978 else
3979   if test -n "$ac_ct_CXX"; then
3980   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987     for ac_exec_ext in '' $ac_executable_extensions; do
3988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989     ac_cv_prog_ac_ct_CXX="$ac_prog"
3990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994   done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4000 if test -n "$ac_ct_CXX"; then
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4002 $as_echo "$ac_ct_CXX" >&6; }
4003 else
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009   test -n "$ac_ct_CXX" && break
4010 done
4011
4012   if test "x$ac_ct_CXX" = x; then
4013     CXX="g++"
4014   else
4015     case $cross_compiling:$ac_tool_warned in
4016 yes:)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019 ac_tool_warned=yes ;;
4020 esac
4021     CXX=$ac_ct_CXX
4022   fi
4023 fi
4024
4025   fi
4026 fi
4027 # Provide some information about the compiler.
4028 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4029 set X $ac_compile
4030 ac_compiler=$2
4031 for ac_option in --version -v -V -qversion; do
4032   { { ac_try="$ac_compiler $ac_option >&5"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4040   ac_status=$?
4041   if test -s conftest.err; then
4042     sed '10a\
4043 ... rest of stderr output deleted ...
4044          10q' conftest.err >conftest.er1
4045     cat conftest.er1 >&5
4046     rm -f conftest.er1 conftest.err
4047   fi
4048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049   test $ac_status = 0; }
4050 done
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4053 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4054 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4055   $as_echo_n "(cached) " >&6
4056 else
4057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063 #ifndef __GNUC__
4064        choke me
4065 #endif
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_cxx_try_compile "$LINENO"; then :
4072   ac_compiler_gnu=yes
4073 else
4074   ac_compiler_gnu=no
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4081 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4082 if test $ac_compiler_gnu = yes; then
4083   GXX=yes
4084 else
4085   GXX=
4086 fi
4087 ac_test_CXXFLAGS=${CXXFLAGS+set}
4088 ac_save_CXXFLAGS=$CXXFLAGS
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4090 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4091 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4095    ac_cxx_werror_flag=yes
4096    ac_cv_prog_cxx_g=no
4097    CXXFLAGS="-g"
4098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100
4101 int
4102 main ()
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_cxx_try_compile "$LINENO"; then :
4110   ac_cv_prog_cxx_g=yes
4111 else
4112   CXXFLAGS=""
4113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116 int
4117 main ()
4118 {
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_cxx_try_compile "$LINENO"; then :
4125
4126 else
4127   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4128          CXXFLAGS="-g"
4129          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h.  */
4131
4132 int
4133 main ()
4134 {
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_cxx_try_compile "$LINENO"; then :
4141   ac_cv_prog_cxx_g=yes
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4151 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4152 if test "$ac_test_CXXFLAGS" = set; then
4153   CXXFLAGS=$ac_save_CXXFLAGS
4154 elif test $ac_cv_prog_cxx_g = yes; then
4155   if test "$GXX" = yes; then
4156     CXXFLAGS="-g -O2"
4157   else
4158     CXXFLAGS="-g"
4159   fi
4160 else
4161   if test "$GXX" = yes; then
4162     CXXFLAGS="-O2"
4163   else
4164     CXXFLAGS=
4165   fi
4166 fi
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
4173 depcc="$CXX"  am_compiler_list=
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4176 $as_echo_n "checking dependency style of $depcc... " >&6; }
4177 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4181   # We make a subdir and do the tests there.  Otherwise we can end up
4182   # making bogus files that we don't know about and never remove.  For
4183   # instance it was reported that on HP-UX the gcc test will end up
4184   # making a dummy file named `D' -- because `-MD' means `put the output
4185   # in D'.
4186   mkdir conftest.dir
4187   # Copy depcomp to subdir because otherwise we won't find it if we're
4188   # using a relative directory.
4189   cp "$am_depcomp" conftest.dir
4190   cd conftest.dir
4191   # We will build objects and dependencies in a subdirectory because
4192   # it helps to detect inapplicable dependency modes.  For instance
4193   # both Tru64's cc and ICC support -MD to output dependencies as a
4194   # side effect of compilation, but ICC will put the dependencies in
4195   # the current directory while Tru64 will put them in the object
4196   # directory.
4197   mkdir sub
4198
4199   am_cv_CXX_dependencies_compiler_type=none
4200   if test "$am_compiler_list" = ""; then
4201      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4202   fi
4203   am__universal=false
4204   case " $depcc " in #(
4205      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4206      esac
4207
4208   for depmode in $am_compiler_list; do
4209     # Setup a source with many dependencies, because some compilers
4210     # like to wrap large dependency lists on column 80 (with \), and
4211     # we should not choose a depcomp mode which is confused by this.
4212     #
4213     # We need to recreate these files for each test, as the compiler may
4214     # overwrite some of them when testing with obscure command lines.
4215     # This happens at least with the AIX C compiler.
4216     : > sub/conftest.c
4217     for i in 1 2 3 4 5 6; do
4218       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4219       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4220       # Solaris 8's {/usr,}/bin/sh.
4221       touch sub/conftst$i.h
4222     done
4223     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4224
4225     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4226     # mode.  It turns out that the SunPro C++ compiler does not properly
4227     # handle `-M -o', and we need to detect this.  Also, some Intel
4228     # versions had trouble with output in subdirs
4229     am__obj=sub/conftest.${OBJEXT-o}
4230     am__minus_obj="-o $am__obj"
4231     case $depmode in
4232     gcc)
4233       # This depmode causes a compiler race in universal mode.
4234       test "$am__universal" = false || continue
4235       ;;
4236     nosideeffect)
4237       # after this tag, mechanisms are not by side-effect, so they'll
4238       # only be used when explicitly requested
4239       if test "x$enable_dependency_tracking" = xyes; then
4240         continue
4241       else
4242         break
4243       fi
4244       ;;
4245     msvisualcpp | msvcmsys)
4246       # This compiler won't grok `-c -o', but also, the minuso test has
4247       # not run yet.  These depmodes are late enough in the game, and
4248       # so weak that their functioning should not be impacted.
4249       am__obj=conftest.${OBJEXT-o}
4250       am__minus_obj=
4251       ;;
4252     none) break ;;
4253     esac
4254     if depmode=$depmode \
4255        source=sub/conftest.c object=$am__obj \
4256        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4257        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4258          >/dev/null 2>conftest.err &&
4259        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4260        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4261        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4262        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4263       # icc doesn't choke on unknown options, it will just issue warnings
4264       # or remarks (even with -Werror).  So we grep stderr for any message
4265       # that says an option was ignored or not supported.
4266       # When given -MP, icc 7.0 and 7.1 complain thusly:
4267       #   icc: Command line warning: ignoring option '-M'; no argument required
4268       # The diagnosis changed in icc 8.0:
4269       #   icc: Command line remark: option '-MP' not supported
4270       if (grep 'ignoring option' conftest.err ||
4271           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4272         am_cv_CXX_dependencies_compiler_type=$depmode
4273         break
4274       fi
4275     fi
4276   done
4277
4278   cd ..
4279   rm -rf conftest.dir
4280 else
4281   am_cv_CXX_dependencies_compiler_type=none
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4286 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4287 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4288
4289  if
4290   test "x$enable_dependency_tracking" != xno \
4291   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4292   am__fastdepCXX_TRUE=
4293   am__fastdepCXX_FALSE='#'
4294 else
4295   am__fastdepCXX_TRUE='#'
4296   am__fastdepCXX_FALSE=
4297 fi
4298
4299
4300 # By default we simply use the C compiler to build assembly code.
4301
4302 test "${CCAS+set}" = set || CCAS=$CC
4303 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4304
4305
4306
4307 depcc="$CCAS"   am_compiler_list=
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4310 $as_echo_n "checking dependency style of $depcc... " >&6; }
4311 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4315   # We make a subdir and do the tests there.  Otherwise we can end up
4316   # making bogus files that we don't know about and never remove.  For
4317   # instance it was reported that on HP-UX the gcc test will end up
4318   # making a dummy file named `D' -- because `-MD' means `put the output
4319   # in D'.
4320   mkdir conftest.dir
4321   # Copy depcomp to subdir because otherwise we won't find it if we're
4322   # using a relative directory.
4323   cp "$am_depcomp" conftest.dir
4324   cd conftest.dir
4325   # We will build objects and dependencies in a subdirectory because
4326   # it helps to detect inapplicable dependency modes.  For instance
4327   # both Tru64's cc and ICC support -MD to output dependencies as a
4328   # side effect of compilation, but ICC will put the dependencies in
4329   # the current directory while Tru64 will put them in the object
4330   # directory.
4331   mkdir sub
4332
4333   am_cv_CCAS_dependencies_compiler_type=none
4334   if test "$am_compiler_list" = ""; then
4335      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4336   fi
4337   am__universal=false
4338
4339
4340   for depmode in $am_compiler_list; do
4341     # Setup a source with many dependencies, because some compilers
4342     # like to wrap large dependency lists on column 80 (with \), and
4343     # we should not choose a depcomp mode which is confused by this.
4344     #
4345     # We need to recreate these files for each test, as the compiler may
4346     # overwrite some of them when testing with obscure command lines.
4347     # This happens at least with the AIX C compiler.
4348     : > sub/conftest.c
4349     for i in 1 2 3 4 5 6; do
4350       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4351       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4352       # Solaris 8's {/usr,}/bin/sh.
4353       touch sub/conftst$i.h
4354     done
4355     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356
4357     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4358     # mode.  It turns out that the SunPro C++ compiler does not properly
4359     # handle `-M -o', and we need to detect this.  Also, some Intel
4360     # versions had trouble with output in subdirs
4361     am__obj=sub/conftest.${OBJEXT-o}
4362     am__minus_obj="-o $am__obj"
4363     case $depmode in
4364     gcc)
4365       # This depmode causes a compiler race in universal mode.
4366       test "$am__universal" = false || continue
4367       ;;
4368     nosideeffect)
4369       # after this tag, mechanisms are not by side-effect, so they'll
4370       # only be used when explicitly requested
4371       if test "x$enable_dependency_tracking" = xyes; then
4372         continue
4373       else
4374         break
4375       fi
4376       ;;
4377     msvisualcpp | msvcmsys)
4378       # This compiler won't grok `-c -o', but also, the minuso test has
4379       # not run yet.  These depmodes are late enough in the game, and
4380       # so weak that their functioning should not be impacted.
4381       am__obj=conftest.${OBJEXT-o}
4382       am__minus_obj=
4383       ;;
4384     none) break ;;
4385     esac
4386     if depmode=$depmode \
4387        source=sub/conftest.c object=$am__obj \
4388        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4389        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4390          >/dev/null 2>conftest.err &&
4391        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4392        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4393        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4394        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4395       # icc doesn't choke on unknown options, it will just issue warnings
4396       # or remarks (even with -Werror).  So we grep stderr for any message
4397       # that says an option was ignored or not supported.
4398       # When given -MP, icc 7.0 and 7.1 complain thusly:
4399       #   icc: Command line warning: ignoring option '-M'; no argument required
4400       # The diagnosis changed in icc 8.0:
4401       #   icc: Command line remark: option '-MP' not supported
4402       if (grep 'ignoring option' conftest.err ||
4403           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4404         am_cv_CCAS_dependencies_compiler_type=$depmode
4405         break
4406       fi
4407     fi
4408   done
4409
4410   cd ..
4411   rm -rf conftest.dir
4412 else
4413   am_cv_CCAS_dependencies_compiler_type=none
4414 fi
4415
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4418 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4419 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4420
4421  if
4422   test "x$enable_dependency_tracking" != xno \
4423   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4424   am__fastdepCCAS_TRUE=
4425   am__fastdepCCAS_FALSE='#'
4426 else
4427   am__fastdepCCAS_TRUE='#'
4428   am__fastdepCCAS_FALSE=
4429 fi
4430
4431
4432
4433 enable_dlopen=yes
4434
4435
4436
4437 case `pwd` in
4438   *\ * | *\     *)
4439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4440 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4441 esac
4442
4443
4444
4445 macro_version='2.2.7a'
4446 macro_revision='1.3134'
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460 ltmain="$ac_aux_dir/ltmain.sh"
4461
4462 # Backslashify metacharacters that are still active within
4463 # double-quoted strings.
4464 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4465
4466 # Same as above, but do not quote variable references.
4467 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4468
4469 # Sed substitution to delay expansion of an escaped shell variable in a
4470 # double_quote_subst'ed string.
4471 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4472
4473 # Sed substitution to delay expansion of an escaped single quote.
4474 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4475
4476 # Sed substitution to avoid accidental globbing in evaled expressions
4477 no_glob_subst='s/\*/\\\*/g'
4478
4479 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4484 $as_echo_n "checking how to print strings... " >&6; }
4485 # Test print first, because it will be a builtin if present.
4486 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4487    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4488   ECHO='print -r --'
4489 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4490   ECHO='printf %s\n'
4491 else
4492   # Use this function as a fallback that always works.
4493   func_fallback_echo ()
4494   {
4495     eval 'cat <<_LTECHO_EOF
4496 $1
4497 _LTECHO_EOF'
4498   }
4499   ECHO='func_fallback_echo'
4500 fi
4501
4502 # func_echo_all arg...
4503 # Invoke $ECHO with all args, space-separated.
4504 func_echo_all ()
4505 {
4506     $ECHO ""
4507 }
4508
4509 case "$ECHO" in
4510   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4511 $as_echo "printf" >&6; } ;;
4512   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4513 $as_echo "print -r" >&6; } ;;
4514   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4515 $as_echo "cat" >&6; } ;;
4516 esac
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if test "${ac_cv_path_SED+set}" = set; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4537      for ac_i in 1 2 3 4 5 6 7; do
4538        ac_script="$ac_script$as_nl$ac_script"
4539      done
4540      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4541      { ac_script=; unset ac_script;}
4542      if test -z "$SED"; then
4543   ac_path_SED_found=false
4544   # Loop through the user's path and test for each of PROGNAME-LIST
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550     for ac_prog in sed gsed; do
4551     for ac_exec_ext in '' $ac_executable_extensions; do
4552       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4553       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4554 # Check for GNU ac_path_SED and select it if it is found.
4555   # Check for GNU $ac_path_SED
4556 case `"$ac_path_SED" --version 2>&1` in
4557 *GNU*)
4558   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4559 *)
4560   ac_count=0
4561   $as_echo_n 0123456789 >"conftest.in"
4562   while :
4563   do
4564     cat "conftest.in" "conftest.in" >"conftest.tmp"
4565     mv "conftest.tmp" "conftest.in"
4566     cp "conftest.in" "conftest.nl"
4567     $as_echo '' >> "conftest.nl"
4568     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570     as_fn_arith $ac_count + 1 && ac_count=$as_val
4571     if test $ac_count -gt ${ac_path_SED_max-0}; then
4572       # Best one so far, save it but keep looking for a better one
4573       ac_cv_path_SED="$ac_path_SED"
4574       ac_path_SED_max=$ac_count
4575     fi
4576     # 10*(2^10) chars as input seems more than enough
4577     test $ac_count -gt 10 && break
4578   done
4579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582       $ac_path_SED_found && break 3
4583     done
4584   done
4585   done
4586 IFS=$as_save_IFS
4587   if test -z "$ac_cv_path_SED"; then
4588     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4589   fi
4590 else
4591   ac_cv_path_SED=$SED
4592 fi
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4596 $as_echo "$ac_cv_path_SED" >&6; }
4597  SED="$ac_cv_path_SED"
4598   rm -f conftest.sed
4599
4600 test -z "$SED" && SED=sed
4601 Xsed="$SED -e 1s/^X//"
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if test "${ac_cv_path_GREP+set}" = set; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -z "$GREP"; then
4619   ac_path_GREP_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in grep ggrep; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631   # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo 'GREP' >> "conftest.nl"
4644     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_GREP="$ac_path_GREP"
4650       ac_path_GREP_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_GREP_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_GREP"; then
4664     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_GREP=$GREP
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673  GREP="$ac_cv_path_GREP"
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if test "${ac_cv_path_EGREP+set}" = set; then :
4679   $as_echo_n "(cached) " >&6
4680 else
4681   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682    then ac_cv_path_EGREP="$GREP -E"
4683    else
4684      if test -z "$EGREP"; then
4685   ac_path_EGREP_found=false
4686   # Loop through the user's path and test for each of PROGNAME-LIST
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_prog in egrep; do
4693     for ac_exec_ext in '' $ac_executable_extensions; do
4694       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697   # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 *)
4702   ac_count=0
4703   $as_echo_n 0123456789 >"conftest.in"
4704   while :
4705   do
4706     cat "conftest.in" "conftest.in" >"conftest.tmp"
4707     mv "conftest.tmp" "conftest.in"
4708     cp "conftest.in" "conftest.nl"
4709     $as_echo 'EGREP' >> "conftest.nl"
4710     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712     as_fn_arith $ac_count + 1 && ac_count=$as_val
4713     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714       # Best one so far, save it but keep looking for a better one
4715       ac_cv_path_EGREP="$ac_path_EGREP"
4716       ac_path_EGREP_max=$ac_count
4717     fi
4718     # 10*(2^10) chars as input seems more than enough
4719     test $ac_count -gt 10 && break
4720   done
4721   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4723
4724       $ac_path_EGREP_found && break 3
4725     done
4726   done
4727   done
4728 IFS=$as_save_IFS
4729   if test -z "$ac_cv_path_EGREP"; then
4730     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731   fi
4732 else
4733   ac_cv_path_EGREP=$EGREP
4734 fi
4735
4736    fi
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740  EGREP="$ac_cv_path_EGREP"
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4744 $as_echo_n "checking for fgrep... " >&6; }
4745 if test "${ac_cv_path_FGREP+set}" = set; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4749    then ac_cv_path_FGREP="$GREP -F"
4750    else
4751      if test -z "$FGREP"; then
4752   ac_path_FGREP_found=false
4753   # Loop through the user's path and test for each of PROGNAME-LIST
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_prog in fgrep; do
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763 # Check for GNU ac_path_FGREP and select it if it is found.
4764   # Check for GNU $ac_path_FGREP
4765 case `"$ac_path_FGREP" --version 2>&1` in
4766 *GNU*)
4767   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768 *)
4769   ac_count=0
4770   $as_echo_n 0123456789 >"conftest.in"
4771   while :
4772   do
4773     cat "conftest.in" "conftest.in" >"conftest.tmp"
4774     mv "conftest.tmp" "conftest.in"
4775     cp "conftest.in" "conftest.nl"
4776     $as_echo 'FGREP' >> "conftest.nl"
4777     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779     as_fn_arith $ac_count + 1 && ac_count=$as_val
4780     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781       # Best one so far, save it but keep looking for a better one
4782       ac_cv_path_FGREP="$ac_path_FGREP"
4783       ac_path_FGREP_max=$ac_count
4784     fi
4785     # 10*(2^10) chars as input seems more than enough
4786     test $ac_count -gt 10 && break
4787   done
4788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791       $ac_path_FGREP_found && break 3
4792     done
4793   done
4794   done
4795 IFS=$as_save_IFS
4796   if test -z "$ac_cv_path_FGREP"; then
4797     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798   fi
4799 else
4800   ac_cv_path_FGREP=$FGREP
4801 fi
4802
4803    fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4806 $as_echo "$ac_cv_path_FGREP" >&6; }
4807  FGREP="$ac_cv_path_FGREP"
4808
4809
4810 test -z "$GREP" && GREP=grep
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830 # Check whether --with-gnu-ld was given.
4831 if test "${with_gnu_ld+set}" = set; then :
4832   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4833 else
4834   with_gnu_ld=no
4835 fi
4836
4837 ac_prog=ld
4838 if test "$GCC" = yes; then
4839   # Check if gcc -print-prog-name=ld gives a path.
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4841 $as_echo_n "checking for ld used by $CC... " >&6; }
4842   case $host in
4843   *-*-mingw*)
4844     # gcc leaves a trailing carriage return which upsets mingw
4845     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4846   *)
4847     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4848   esac
4849   case $ac_prog in
4850     # Accept absolute paths.
4851     [\\/]* | ?:[\\/]*)
4852       re_direlt='/[^/][^/]*/\.\./'
4853       # Canonicalize the pathname of ld
4854       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4855       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4856         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4857       done
4858       test -z "$LD" && LD="$ac_prog"
4859       ;;
4860   "")
4861     # If it fails, then pretend we aren't using GCC.
4862     ac_prog=ld
4863     ;;
4864   *)
4865     # If it is relative, then search for the first ld in PATH.
4866     with_gnu_ld=unknown
4867     ;;
4868   esac
4869 elif test "$with_gnu_ld" = yes; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4871 $as_echo_n "checking for GNU ld... " >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4874 $as_echo_n "checking for non-GNU ld... " >&6; }
4875 fi
4876 if test "${lt_cv_path_LD+set}" = set; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   if test -z "$LD"; then
4880   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4881   for ac_dir in $PATH; do
4882     IFS="$lt_save_ifs"
4883     test -z "$ac_dir" && ac_dir=.
4884     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4885       lt_cv_path_LD="$ac_dir/$ac_prog"
4886       # Check to see if the program is GNU ld.  I'd rather use --version,
4887       # but apparently some variants of GNU ld only accept -v.
4888       # Break only if it was the GNU/non-GNU ld that we prefer.
4889       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4890       *GNU* | *'with BFD'*)
4891         test "$with_gnu_ld" != no && break
4892         ;;
4893       *)
4894         test "$with_gnu_ld" != yes && break
4895         ;;
4896       esac
4897     fi
4898   done
4899   IFS="$lt_save_ifs"
4900 else
4901   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4902 fi
4903 fi
4904
4905 LD="$lt_cv_path_LD"
4906 if test -n "$LD"; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4908 $as_echo "$LD" >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4916 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4920 case `$LD -v 2>&1 </dev/null` in
4921 *GNU* | *'with BFD'*)
4922   lt_cv_prog_gnu_ld=yes
4923   ;;
4924 *)
4925   lt_cv_prog_gnu_ld=no
4926   ;;
4927 esac
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4931 with_gnu_ld=$lt_cv_prog_gnu_ld
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4942 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4943 if test "${lt_cv_path_NM+set}" = set; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -n "$NM"; then
4947   # Let the user override the test.
4948   lt_cv_path_NM="$NM"
4949 else
4950   lt_nm_to_check="${ac_tool_prefix}nm"
4951   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4952     lt_nm_to_check="$lt_nm_to_check nm"
4953   fi
4954   for lt_tmp_nm in $lt_nm_to_check; do
4955     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4957       IFS="$lt_save_ifs"
4958       test -z "$ac_dir" && ac_dir=.
4959       tmp_nm="$ac_dir/$lt_tmp_nm"
4960       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4961         # Check to see if the nm accepts a BSD-compat flag.
4962         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4963         #   nm: unknown option "B" ignored
4964         # Tru64's nm complains that /dev/null is an invalid object file
4965         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4966         */dev/null* | *'Invalid file or object type'*)
4967           lt_cv_path_NM="$tmp_nm -B"
4968           break
4969           ;;
4970         *)
4971           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972           */dev/null*)
4973             lt_cv_path_NM="$tmp_nm -p"
4974             break
4975             ;;
4976           *)
4977             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978             continue # so that we can try to find one that supports BSD flags
4979             ;;
4980           esac
4981           ;;
4982         esac
4983       fi
4984     done
4985     IFS="$lt_save_ifs"
4986   done
4987   : ${lt_cv_path_NM=no}
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test "$lt_cv_path_NM" != "no"; then
4993   NM="$lt_cv_path_NM"
4994 else
4995   # Didn't find any BSD compatible name lister, look for dumpbin.
4996   if test -n "$DUMPBIN"; then :
4997     # Let the user override the test.
4998   else
4999     if test -n "$ac_tool_prefix"; then
5000   for ac_prog in dumpbin "link -dump"
5001   do
5002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$DUMPBIN"; then
5010   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039     test -n "$DUMPBIN" && break
5040   done
5041 fi
5042 if test -z "$DUMPBIN"; then
5043   ac_ct_DUMPBIN=$DUMPBIN
5044   for ac_prog in dumpbin "link -dump"
5045 do
5046   # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -n "$ac_ct_DUMPBIN"; then
5054   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083   test -n "$ac_ct_DUMPBIN" && break
5084 done
5085
5086   if test "x$ac_ct_DUMPBIN" = x; then
5087     DUMPBIN=":"
5088   else
5089     case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095     DUMPBIN=$ac_ct_DUMPBIN
5096   fi
5097 fi
5098
5099     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5100     *COFF*)
5101       DUMPBIN="$DUMPBIN -symbols"
5102       ;;
5103     *)
5104       DUMPBIN=:
5105       ;;
5106     esac
5107   fi
5108
5109   if test "$DUMPBIN" != ":"; then
5110     NM="$DUMPBIN"
5111   fi
5112 fi
5113 test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if test "${lt_cv_nm_interface+set}" = set; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   lt_cv_nm_interface="BSD nm"
5126   echo "int some_variable = 0;" > conftest.$ac_ext
5127   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128   (eval "$ac_compile" 2>conftest.err)
5129   cat conftest.err >&5
5130   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132   cat conftest.err >&5
5133   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134   cat conftest.out >&5
5135   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136     lt_cv_nm_interface="MS dumpbin"
5137   fi
5138   rm -f conftest*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144 $as_echo_n "checking whether ln -s works... " >&6; }
5145 LN_S=$as_ln_s
5146 if test "$LN_S" = "ln -s"; then
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151 $as_echo "no, using $LN_S" >&6; }
5152 fi
5153
5154 # find the maximum length of command line arguments
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160     i=0
5161   teststring="ABCD"
5162
5163   case $build_os in
5164   msdosdjgpp*)
5165     # On DJGPP, this test can blow up pretty badly due to problems in libc
5166     # (any single argument exceeding 2000 bytes causes a buffer overrun
5167     # during glob expansion).  Even if it were fixed, the result of this
5168     # check would be larger than it should be.
5169     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5170     ;;
5171
5172   gnu*)
5173     # Under GNU Hurd, this test is not required because there is
5174     # no limit to the length of command line arguments.
5175     # Libtool will interpret -1 as no limit whatsoever
5176     lt_cv_sys_max_cmd_len=-1;
5177     ;;
5178
5179   cygwin* | mingw* | cegcc*)
5180     # On Win9x/ME, this test blows up -- it succeeds, but takes
5181     # about 5 minutes as the teststring grows exponentially.
5182     # Worse, since 9x/ME are not pre-emptively multitasking,
5183     # you end up with a "frozen" computer, even though with patience
5184     # the test eventually succeeds (with a max line length of 256k).
5185     # Instead, let's just punt: use the minimum linelength reported by
5186     # all of the supported platforms: 8192 (on NT/2K/XP).
5187     lt_cv_sys_max_cmd_len=8192;
5188     ;;
5189
5190   mint*)
5191     # On MiNT this can take a long time and run out of memory.
5192     lt_cv_sys_max_cmd_len=8192;
5193     ;;
5194
5195   amigaos*)
5196     # On AmigaOS with pdksh, this test takes hours, literally.
5197     # So we just punt and use a minimum line length of 8192.
5198     lt_cv_sys_max_cmd_len=8192;
5199     ;;
5200
5201   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202     # This has been around since 386BSD, at least.  Likely further.
5203     if test -x /sbin/sysctl; then
5204       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205     elif test -x /usr/sbin/sysctl; then
5206       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207     else
5208       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5209     fi
5210     # And add a safety zone
5211     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5213     ;;
5214
5215   interix*)
5216     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217     lt_cv_sys_max_cmd_len=196608
5218     ;;
5219
5220   osf*)
5221     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5222     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5223     # nice to cause kernel panics so lets avoid the loop below.
5224     # First set a reasonable default.
5225     lt_cv_sys_max_cmd_len=16384
5226     #
5227     if test -x /sbin/sysconfig; then
5228       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5229         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5230       esac
5231     fi
5232     ;;
5233   sco3.2v5*)
5234     lt_cv_sys_max_cmd_len=102400
5235     ;;
5236   sysv5* | sco5v6* | sysv4.2uw2*)
5237     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5238     if test -n "$kargmax"; then
5239       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5240     else
5241       lt_cv_sys_max_cmd_len=32768
5242     fi
5243     ;;
5244   *)
5245     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5246     if test -n "$lt_cv_sys_max_cmd_len"; then
5247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5248       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5249     else
5250       # Make teststring a little bigger before we do anything with it.
5251       # a 1K string should be a reasonable start.
5252       for i in 1 2 3 4 5 6 7 8 ; do
5253         teststring=$teststring$teststring
5254       done
5255       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5256       # If test is not a shell built-in, we'll probably end up computing a
5257       # maximum length that is only half of the actual maximum length, but
5258       # we can't tell.
5259       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5260                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5261               test $i != 17 # 1/2 MB should be enough
5262       do
5263         i=`expr $i + 1`
5264         teststring=$teststring$teststring
5265       done
5266       # Only check the string length outside the loop.
5267       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5268       teststring=
5269       # Add a significant safety factor because C++ compilers can tack on
5270       # massive amounts of additional arguments before passing them to the
5271       # linker.  It appears as though 1/2 is a usable value.
5272       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5273     fi
5274     ;;
5275   esac
5276
5277 fi
5278
5279 if test -n $lt_cv_sys_max_cmd_len ; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5281 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5284 $as_echo "none" >&6; }
5285 fi
5286 max_cmd_len=$lt_cv_sys_max_cmd_len
5287
5288
5289
5290
5291
5292
5293 : ${CP="cp -f"}
5294 : ${MV="mv -f"}
5295 : ${RM="rm -f"}
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5298 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5299 # Try some XSI features
5300 xsi_shell=no
5301 ( _lt_dummy="a/b/c"
5302   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5303       = c,a/b,, \
5304     && eval 'test $(( 1 + 1 )) -eq 2 \
5305     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5306   && xsi_shell=yes
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5308 $as_echo "$xsi_shell" >&6; }
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5312 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5313 lt_shell_append=no
5314 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5315     >/dev/null 2>&1 \
5316   && lt_shell_append=yes
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5318 $as_echo "$lt_shell_append" >&6; }
5319
5320
5321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5322   lt_unset=unset
5323 else
5324   lt_unset=false
5325 fi
5326
5327
5328
5329
5330
5331 # test EBCDIC or ASCII
5332 case `echo X|tr X '\101'` in
5333  A) # ASCII based system
5334     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5335   lt_SP2NL='tr \040 \012'
5336   lt_NL2SP='tr \015\012 \040\040'
5337   ;;
5338  *) # EBCDIC based system
5339   lt_SP2NL='tr \100 \n'
5340   lt_NL2SP='tr \r\n \100\100'
5341   ;;
5342 esac
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5353 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5354 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   lt_cv_ld_reload_flag='-r'
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5360 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5361 reload_flag=$lt_cv_ld_reload_flag
5362 case $reload_flag in
5363 "" | " "*) ;;
5364 *) reload_flag=" $reload_flag" ;;
5365 esac
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 case $host_os in
5368   darwin*)
5369     if test "$GCC" = yes; then
5370       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5371     else
5372       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373     fi
5374     ;;
5375 esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 if test -n "$ac_tool_prefix"; then
5386   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$OBJDUMP"; then
5394   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 OBJDUMP=$ac_cv_prog_OBJDUMP
5414 if test -n "$OBJDUMP"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5416 $as_echo "$OBJDUMP" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423 fi
5424 if test -z "$ac_cv_prog_OBJDUMP"; then
5425   ac_ct_OBJDUMP=$OBJDUMP
5426   # Extract the first word of "objdump", so it can be a program name with args.
5427 set dummy objdump; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test -n "$ac_ct_OBJDUMP"; then
5434   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5454 if test -n "$ac_ct_OBJDUMP"; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5456 $as_echo "$ac_ct_OBJDUMP" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462   if test "x$ac_ct_OBJDUMP" = x; then
5463     OBJDUMP="false"
5464   else
5465     case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471     OBJDUMP=$ac_ct_OBJDUMP
5472   fi
5473 else
5474   OBJDUMP="$ac_cv_prog_OBJDUMP"
5475 fi
5476
5477 test -z "$OBJDUMP" && OBJDUMP=objdump
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5488 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5489 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   lt_cv_file_magic_cmd='$MAGIC_CMD'
5493 lt_cv_file_magic_test_file=
5494 lt_cv_deplibs_check_method='unknown'
5495 # Need to set the preceding variable on all platforms that support
5496 # interlibrary dependencies.
5497 # 'none' -- dependencies not supported.
5498 # `unknown' -- same as none, but documents that we really don't know.
5499 # 'pass_all' -- all dependencies passed with no checks.
5500 # 'test_compile' -- check by making test program.
5501 # 'file_magic [[regex]]' -- check by looking for files in library path
5502 # which responds to the $file_magic_cmd with a given extended regex.
5503 # If you have `file' or equivalent on your system and you're not sure
5504 # whether `pass_all' will *always* work, you probably want this one.
5505
5506 case $host_os in
5507 aix[4-9]*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 beos*)
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 bsdi[45]*)
5516   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5517   lt_cv_file_magic_cmd='/usr/bin/file -L'
5518   lt_cv_file_magic_test_file=/shlib/libc.so
5519   ;;
5520
5521 cygwin*)
5522   # func_win32_libid is a shell function defined in ltmain.sh
5523   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5524   lt_cv_file_magic_cmd='func_win32_libid'
5525   ;;
5526
5527 mingw* | pw32*)
5528   # Base MSYS/MinGW do not provide the 'file' command needed by
5529   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5530   # unless we find 'file', for example because we are cross-compiling.
5531   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5532   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5533     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534     lt_cv_file_magic_cmd='func_win32_libid'
5535   else
5536     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5537     lt_cv_file_magic_cmd='$OBJDUMP -f'
5538   fi
5539   ;;
5540
5541 cegcc*)
5542   # use the weaker test based on 'objdump'. See mingw*.
5543   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5544   lt_cv_file_magic_cmd='$OBJDUMP -f'
5545   ;;
5546
5547 darwin* | rhapsody*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 freebsd* | dragonfly*)
5552   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5553     case $host_cpu in
5554     i*86 )
5555       # Not sure whether the presence of OpenBSD here was a mistake.
5556       # Let's accept both of them until this is cleared up.
5557       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558       lt_cv_file_magic_cmd=/usr/bin/file
5559       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560       ;;
5561     esac
5562   else
5563     lt_cv_deplibs_check_method=pass_all
5564   fi
5565   ;;
5566
5567 gnu*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 haiku*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 hpux10.20* | hpux11*)
5576   lt_cv_file_magic_cmd=/usr/bin/file
5577   case $host_cpu in
5578   ia64*)
5579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5580     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5581     ;;
5582   hppa*64*)
5583     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]'
5584     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5585     ;;
5586   *)
5587     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5588     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5589     ;;
5590   esac
5591   ;;
5592
5593 interix[3-9]*)
5594   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5595   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5596   ;;
5597
5598 irix5* | irix6* | nonstopux*)
5599   case $LD in
5600   *-32|*"-32 ") libmagic=32-bit;;
5601   *-n32|*"-n32 ") libmagic=N32;;
5602   *-64|*"-64 ") libmagic=64-bit;;
5603   *) libmagic=never-match;;
5604   esac
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 # This must be Linux ELF.
5609 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5610   lt_cv_deplibs_check_method=pass_all
5611   ;;
5612
5613 netbsd*)
5614   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5616   else
5617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5618   fi
5619   ;;
5620
5621 newos6*)
5622   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5623   lt_cv_file_magic_cmd=/usr/bin/file
5624   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5625   ;;
5626
5627 *nto* | *qnx*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 openbsd*)
5632   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5633     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5634   else
5635     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636   fi
5637   ;;
5638
5639 osf3* | osf4* | osf5*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 rdos*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 solaris*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 sysv4 | sysv4.3*)
5656   case $host_vendor in
5657   motorola)
5658     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]'
5659     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660     ;;
5661   ncr)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664   sequent)
5665     lt_cv_file_magic_cmd='/bin/file'
5666     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667     ;;
5668   sni)
5669     lt_cv_file_magic_cmd='/bin/file'
5670     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671     lt_cv_file_magic_test_file=/lib/libc.so
5672     ;;
5673   siemens)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676   pc)
5677     lt_cv_deplibs_check_method=pass_all
5678     ;;
5679   esac
5680   ;;
5681
5682 tpf*)
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685 esac
5686
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5689 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5690 file_magic_cmd=$lt_cv_file_magic_cmd
5691 deplibs_check_method=$lt_cv_deplibs_check_method
5692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}ar; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if test "${ac_cv_prog_AR+set}" = set; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   if test -n "$AR"; then
5714   ac_cv_prog_AR="$AR" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_AR="${ac_tool_prefix}ar"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 AR=$ac_cv_prog_AR
5734 if test -n "$AR"; then
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5736 $as_echo "$AR" >&6; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 fi
5744 if test -z "$ac_cv_prog_AR"; then
5745   ac_ct_AR=$AR
5746   # Extract the first word of "ar", so it can be a program name with args.
5747 set dummy ar; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   if test -n "$ac_ct_AR"; then
5754   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761     for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_prog_ac_ct_AR="ar"
5764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768   done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5774 if test -n "$ac_ct_AR"; then
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5776 $as_echo "$ac_ct_AR" >&6; }
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782   if test "x$ac_ct_AR" = x; then
5783     AR="false"
5784   else
5785     case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791     AR=$ac_ct_AR
5792   fi
5793 else
5794   AR="$ac_cv_prog_AR"
5795 fi
5796
5797 test -z "$AR" && AR=ar
5798 test -z "$AR_FLAGS" && AR_FLAGS=cru
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 if test -n "$ac_tool_prefix"; then
5811   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}strip; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_STRIP+set}" = set; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if test -n "$STRIP"; then
5819   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826     for ac_exec_ext in '' $ac_executable_extensions; do
5827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833   done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 STRIP=$ac_cv_prog_STRIP
5839 if test -n "$STRIP"; then
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5841 $as_echo "$STRIP" >&6; }
5842 else
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_STRIP"; then
5850   ac_ct_STRIP=$STRIP
5851   # Extract the first word of "strip", so it can be a program name with args.
5852 set dummy strip; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   if test -n "$ac_ct_STRIP"; then
5859   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866     for ac_exec_ext in '' $ac_executable_extensions; do
5867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868     ac_cv_prog_ac_ct_STRIP="strip"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873   done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5879 if test -n "$ac_ct_STRIP"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5881 $as_echo "$ac_ct_STRIP" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887   if test "x$ac_ct_STRIP" = x; then
5888     STRIP=":"
5889   else
5890     case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896     STRIP=$ac_ct_STRIP
5897   fi
5898 else
5899   STRIP="$ac_cv_prog_STRIP"
5900 fi
5901
5902 test -z "$STRIP" && STRIP=:
5903
5904
5905
5906
5907
5908
5909 if test -n "$ac_tool_prefix"; then
5910   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$RANLIB"; then
5918   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 RANLIB=$ac_cv_prog_RANLIB
5938 if test -n "$RANLIB"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5940 $as_echo "$RANLIB" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 fi
5948 if test -z "$ac_cv_prog_RANLIB"; then
5949   ac_ct_RANLIB=$RANLIB
5950   # Extract the first word of "ranlib", so it can be a program name with args.
5951 set dummy ranlib; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   if test -n "$ac_ct_RANLIB"; then
5958   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_ac_ct_RANLIB="ranlib"
5968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972   done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5978 if test -n "$ac_ct_RANLIB"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5980 $as_echo "$ac_ct_RANLIB" >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986   if test "x$ac_ct_RANLIB" = x; then
5987     RANLIB=":"
5988   else
5989     case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995     RANLIB=$ac_ct_RANLIB
5996   fi
5997 else
5998   RANLIB="$ac_cv_prog_RANLIB"
5999 fi
6000
6001 test -z "$RANLIB" && RANLIB=:
6002
6003
6004
6005
6006
6007
6008 # Determine commands to create old-style static archives.
6009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6010 old_postinstall_cmds='chmod 644 $oldlib'
6011 old_postuninstall_cmds=
6012
6013 if test -n "$RANLIB"; then
6014   case $host_os in
6015   openbsd*)
6016     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6017     ;;
6018   *)
6019     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6020     ;;
6021   esac
6022   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6023 fi
6024
6025 case $host_os in
6026   darwin*)
6027     lock_old_archive_extraction=yes ;;
6028   *)
6029     lock_old_archive_extraction=no ;;
6030 esac
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070 # If no C compiler was specified, use CC.
6071 LTCC=${LTCC-"$CC"}
6072
6073 # If no C compiler flags were specified, use CFLAGS.
6074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6075
6076 # Allow CC to be a program name with arguments.
6077 compiler=$CC
6078
6079
6080 # Check for command to grab the raw symbol name followed by C symbol from nm.
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6082 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6083 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086
6087 # These are sane defaults that work on at least a few old systems.
6088 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6089
6090 # Character class describing NM global symbol codes.
6091 symcode='[BCDEGRST]'
6092
6093 # Regexp to match symbols that can be accessed directly from C.
6094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6095
6096 # Define system-specific variables.
6097 case $host_os in
6098 aix*)
6099   symcode='[BCDT]'
6100   ;;
6101 cygwin* | mingw* | pw32* | cegcc*)
6102   symcode='[ABCDGISTW]'
6103   ;;
6104 hpux*)
6105   if test "$host_cpu" = ia64; then
6106     symcode='[ABCDEGRST]'
6107   fi
6108   ;;
6109 irix* | nonstopux*)
6110   symcode='[BCDEGRST]'
6111   ;;
6112 osf*)
6113   symcode='[BCDEGQRST]'
6114   ;;
6115 solaris*)
6116   symcode='[BDRT]'
6117   ;;
6118 sco3.2v5*)
6119   symcode='[DT]'
6120   ;;
6121 sysv4.2uw2*)
6122   symcode='[DT]'
6123   ;;
6124 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6125   symcode='[ABDT]'
6126   ;;
6127 sysv4)
6128   symcode='[DFNSTU]'
6129   ;;
6130 esac
6131
6132 # If we're using GNU nm, then use its standard symbol codes.
6133 case `$NM -V 2>&1` in
6134 *GNU* | *'with BFD'*)
6135   symcode='[ABCDGIRSTW]' ;;
6136 esac
6137
6138 # Transform an extracted symbol line into a proper C declaration.
6139 # Some systems (esp. on ia64) link data and code symbols differently,
6140 # so use this general approach.
6141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142
6143 # Transform an extracted symbol line into symbol name and symbol address
6144 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6145 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'"
6146
6147 # Handle CRLF in mingw tool chain
6148 opt_cr=
6149 case $build_os in
6150 mingw*)
6151   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6152   ;;
6153 esac
6154
6155 # Try without a prefix underscore, then with it.
6156 for ac_symprfx in "" "_"; do
6157
6158   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6159   symxfrm="\\1 $ac_symprfx\\2 \\2"
6160
6161   # Write the raw and C identifiers.
6162   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6163     # Fake it for dumpbin and say T for any non-static function
6164     # and D for any global variable.
6165     # Also find C++ and __fastcall symbols from MSVC++,
6166     # which start with @ or ?.
6167     lt_cv_sys_global_symbol_pipe="$AWK '"\
6168 "     {last_section=section; section=\$ 3};"\
6169 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6170 "     \$ 0!~/External *\|/{next};"\
6171 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6172 "     {if(hide[section]) next};"\
6173 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6174 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6175 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6176 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6177 "     ' prfx=^$ac_symprfx"
6178   else
6179     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6180   fi
6181
6182   # Check to see that the pipe works correctly.
6183   pipe_works=no
6184
6185   rm -f conftest*
6186   cat > conftest.$ac_ext <<_LT_EOF
6187 #ifdef __cplusplus
6188 extern "C" {
6189 #endif
6190 char nm_test_var;
6191 void nm_test_func(void);
6192 void nm_test_func(void){}
6193 #ifdef __cplusplus
6194 }
6195 #endif
6196 int main(){nm_test_var='a';nm_test_func();return(0);}
6197 _LT_EOF
6198
6199   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6200   (eval $ac_compile) 2>&5
6201   ac_status=$?
6202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203   test $ac_status = 0; }; then
6204     # Now try to grab the symbols.
6205     nlist=conftest.nm
6206     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6207   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6208   ac_status=$?
6209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210   test $ac_status = 0; } && test -s "$nlist"; then
6211       # Try sorting and uniquifying the output.
6212       if sort "$nlist" | uniq > "$nlist"T; then
6213         mv -f "$nlist"T "$nlist"
6214       else
6215         rm -f "$nlist"T
6216       fi
6217
6218       # Make sure that we snagged all the symbols we need.
6219       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6220         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6221           cat <<_LT_EOF > conftest.$ac_ext
6222 #ifdef __cplusplus
6223 extern "C" {
6224 #endif
6225
6226 _LT_EOF
6227           # Now generate the symbol file.
6228           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6229
6230           cat <<_LT_EOF >> conftest.$ac_ext
6231
6232 /* The mapping between symbol names and symbols.  */
6233 const struct {
6234   const char *name;
6235   void       *address;
6236 }
6237 lt__PROGRAM__LTX_preloaded_symbols[] =
6238 {
6239   { "@PROGRAM@", (void *) 0 },
6240 _LT_EOF
6241           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6242           cat <<\_LT_EOF >> conftest.$ac_ext
6243   {0, (void *) 0}
6244 };
6245
6246 /* This works around a problem in FreeBSD linker */
6247 #ifdef FREEBSD_WORKAROUND
6248 static const void *lt_preloaded_setup() {
6249   return lt__PROGRAM__LTX_preloaded_symbols;
6250 }
6251 #endif
6252
6253 #ifdef __cplusplus
6254 }
6255 #endif
6256 _LT_EOF
6257           # Now try linking the two files.
6258           mv conftest.$ac_objext conftstm.$ac_objext
6259           lt_save_LIBS="$LIBS"
6260           lt_save_CFLAGS="$CFLAGS"
6261           LIBS="conftstm.$ac_objext"
6262           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6263           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6264   (eval $ac_link) 2>&5
6265   ac_status=$?
6266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6268             pipe_works=yes
6269           fi
6270           LIBS="$lt_save_LIBS"
6271           CFLAGS="$lt_save_CFLAGS"
6272         else
6273           echo "cannot find nm_test_func in $nlist" >&5
6274         fi
6275       else
6276         echo "cannot find nm_test_var in $nlist" >&5
6277       fi
6278     else
6279       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6280     fi
6281   else
6282     echo "$progname: failed program was:" >&5
6283     cat conftest.$ac_ext >&5
6284   fi
6285   rm -rf conftest* conftst*
6286
6287   # Do not use the global_symbol_pipe unless it works.
6288   if test "$pipe_works" = yes; then
6289     break
6290   else
6291     lt_cv_sys_global_symbol_pipe=
6292   fi
6293 done
6294
6295 fi
6296
6297 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6298   lt_cv_sys_global_symbol_to_cdecl=
6299 fi
6300 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6302 $as_echo "failed" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6305 $as_echo "ok" >&6; }
6306 fi
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 # Check whether --enable-libtool-lock was given.
6331 if test "${enable_libtool_lock+set}" = set; then :
6332   enableval=$enable_libtool_lock;
6333 fi
6334
6335 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6336
6337 # Some flags need to be propagated to the compiler or linker for good
6338 # libtool support.
6339 case $host in
6340 ia64-*-hpux*)
6341   # Find out which ABI we are using.
6342   echo 'int i;' > conftest.$ac_ext
6343   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344   (eval $ac_compile) 2>&5
6345   ac_status=$?
6346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347   test $ac_status = 0; }; then
6348     case `/usr/bin/file conftest.$ac_objext` in
6349       *ELF-32*)
6350         HPUX_IA64_MODE="32"
6351         ;;
6352       *ELF-64*)
6353         HPUX_IA64_MODE="64"
6354         ;;
6355     esac
6356   fi
6357   rm -rf conftest*
6358   ;;
6359 *-*-irix6*)
6360   # Find out which ABI we are using.
6361   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6362   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363   (eval $ac_compile) 2>&5
6364   ac_status=$?
6365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366   test $ac_status = 0; }; then
6367     if test "$lt_cv_prog_gnu_ld" = yes; then
6368       case `/usr/bin/file conftest.$ac_objext` in
6369         *32-bit*)
6370           LD="${LD-ld} -melf32bsmip"
6371           ;;
6372         *N32*)
6373           LD="${LD-ld} -melf32bmipn32"
6374           ;;
6375         *64-bit*)
6376           LD="${LD-ld} -melf64bmip"
6377         ;;
6378       esac
6379     else
6380       case `/usr/bin/file conftest.$ac_objext` in
6381         *32-bit*)
6382           LD="${LD-ld} -32"
6383           ;;
6384         *N32*)
6385           LD="${LD-ld} -n32"
6386           ;;
6387         *64-bit*)
6388           LD="${LD-ld} -64"
6389           ;;
6390       esac
6391     fi
6392   fi
6393   rm -rf conftest*
6394   ;;
6395
6396 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6397 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6398   # Find out which ABI we are using.
6399   echo 'int i;' > conftest.$ac_ext
6400   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401   (eval $ac_compile) 2>&5
6402   ac_status=$?
6403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404   test $ac_status = 0; }; then
6405     case `/usr/bin/file conftest.o` in
6406       *32-bit*)
6407         case $host in
6408           x86_64-*kfreebsd*-gnu)
6409             LD="${LD-ld} -m elf_i386_fbsd"
6410             ;;
6411           x86_64-*linux*)
6412             case `/usr/bin/file conftest.o` in
6413               *x86-64*)
6414                 LD="${LD-ld} -m elf32_x86_64"
6415                 ;;
6416               *)
6417                 LD="${LD-ld} -m elf_i386"
6418                 ;;
6419             esac
6420             ;;
6421           ppc64-*linux*|powerpc64-*linux*)
6422             LD="${LD-ld} -m elf32ppclinux"
6423             ;;
6424           s390x-*linux*)
6425             LD="${LD-ld} -m elf_s390"
6426             ;;
6427           sparc64-*linux*)
6428             LD="${LD-ld} -m elf32_sparc"
6429             ;;
6430         esac
6431         ;;
6432       *64-bit*)
6433         case $host in
6434           x86_64-*kfreebsd*-gnu)
6435             LD="${LD-ld} -m elf_x86_64_fbsd"
6436             ;;
6437           x86_64-*linux*)
6438             LD="${LD-ld} -m elf_x86_64"
6439             ;;
6440           ppc*-*linux*|powerpc*-*linux*)
6441             LD="${LD-ld} -m elf64ppc"
6442             ;;
6443           s390*-*linux*|s390*-*tpf*)
6444             LD="${LD-ld} -m elf64_s390"
6445             ;;
6446           sparc*-*linux*)
6447             LD="${LD-ld} -m elf64_sparc"
6448             ;;
6449         esac
6450         ;;
6451     esac
6452   fi
6453   rm -rf conftest*
6454   ;;
6455
6456 *-*-sco3.2v5*)
6457   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6458   SAVE_CFLAGS="$CFLAGS"
6459   CFLAGS="$CFLAGS -belf"
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6461 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6462 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h.  */
6473
6474 int
6475 main ()
6476 {
6477
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_c_try_link "$LINENO"; then :
6483   lt_cv_cc_needs_belf=yes
6484 else
6485   lt_cv_cc_needs_belf=no
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext \
6488     conftest$ac_exeext conftest.$ac_ext
6489      ac_ext=c
6490 ac_cpp='$CPP $CPPFLAGS'
6491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6497 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6498   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6499     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6500     CFLAGS="$SAVE_CFLAGS"
6501   fi
6502   ;;
6503 sparc*-*solaris*)
6504   # Find out which ABI we are using.
6505   echo 'int i;' > conftest.$ac_ext
6506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507   (eval $ac_compile) 2>&5
6508   ac_status=$?
6509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510   test $ac_status = 0; }; then
6511     case `/usr/bin/file conftest.o` in
6512     *64-bit*)
6513       case $lt_cv_prog_gnu_ld in
6514       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6515       *)
6516         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6517           LD="${LD-ld} -64"
6518         fi
6519         ;;
6520       esac
6521       ;;
6522     esac
6523   fi
6524   rm -rf conftest*
6525   ;;
6526 esac
6527
6528 need_locks="$enable_libtool_lock"
6529
6530
6531   case $host_os in
6532     rhapsody* | darwin*)
6533     if test -n "$ac_tool_prefix"; then
6534   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$DSYMUTIL"; then
6542   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6562 if test -n "$DSYMUTIL"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6564 $as_echo "$DSYMUTIL" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_DSYMUTIL"; then
6573   ac_ct_DSYMUTIL=$DSYMUTIL
6574   # Extract the first word of "dsymutil", so it can be a program name with args.
6575 set dummy dsymutil; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$ac_ct_DSYMUTIL"; then
6582   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6602 if test -n "$ac_ct_DSYMUTIL"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6604 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610   if test "x$ac_ct_DSYMUTIL" = x; then
6611     DSYMUTIL=":"
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     DSYMUTIL=$ac_ct_DSYMUTIL
6620   fi
6621 else
6622   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6623 fi
6624
6625     if test -n "$ac_tool_prefix"; then
6626   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   if test -n "$NMEDIT"; then
6634   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641     for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648   done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 NMEDIT=$ac_cv_prog_NMEDIT
6654 if test -n "$NMEDIT"; then
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6656 $as_echo "$NMEDIT" >&6; }
6657 else
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_NMEDIT"; then
6665   ac_ct_NMEDIT=$NMEDIT
6666   # Extract the first word of "nmedit", so it can be a program name with args.
6667 set dummy nmedit; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   if test -n "$ac_ct_NMEDIT"; then
6674   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6694 if test -n "$ac_ct_NMEDIT"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6696 $as_echo "$ac_ct_NMEDIT" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702   if test "x$ac_ct_NMEDIT" = x; then
6703     NMEDIT=":"
6704   else
6705     case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711     NMEDIT=$ac_ct_NMEDIT
6712   fi
6713 else
6714   NMEDIT="$ac_cv_prog_NMEDIT"
6715 fi
6716
6717     if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if test "${ac_cv_prog_LIPO+set}" = set; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   if test -n "$LIPO"; then
6726   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733     for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740   done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 LIPO=$ac_cv_prog_LIPO
6746 if test -n "$LIPO"; then
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6748 $as_echo "$LIPO" >&6; }
6749 else
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_LIPO"; then
6757   ac_ct_LIPO=$LIPO
6758   # Extract the first word of "lipo", so it can be a program name with args.
6759 set dummy lipo; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   if test -n "$ac_ct_LIPO"; then
6766   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_LIPO="lipo"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6786 if test -n "$ac_ct_LIPO"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6788 $as_echo "$ac_ct_LIPO" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_LIPO" = x; then
6795     LIPO=":"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803     LIPO=$ac_ct_LIPO
6804   fi
6805 else
6806   LIPO="$ac_cv_prog_LIPO"
6807 fi
6808
6809     if test -n "$ac_tool_prefix"; then
6810   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}otool; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   if test -n "$OTOOL"; then
6818   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825     for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832   done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 OTOOL=$ac_cv_prog_OTOOL
6838 if test -n "$OTOOL"; then
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6840 $as_echo "$OTOOL" >&6; }
6841 else
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_OTOOL"; then
6849   ac_ct_OTOOL=$OTOOL
6850   # Extract the first word of "otool", so it can be a program name with args.
6851 set dummy otool; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   if test -n "$ac_ct_OTOOL"; then
6858   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_prog_ac_ct_OTOOL="otool"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872   done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6878 if test -n "$ac_ct_OTOOL"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6880 $as_echo "$ac_ct_OTOOL" >&6; }
6881 else
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886   if test "x$ac_ct_OTOOL" = x; then
6887     OTOOL=":"
6888   else
6889     case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895     OTOOL=$ac_ct_OTOOL
6896   fi
6897 else
6898   OTOOL="$ac_cv_prog_OTOOL"
6899 fi
6900
6901     if test -n "$ac_tool_prefix"; then
6902   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$OTOOL64"; then
6910   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 OTOOL64=$ac_cv_prog_OTOOL64
6930 if test -n "$OTOOL64"; then
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6932 $as_echo "$OTOOL64" >&6; }
6933 else
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_OTOOL64"; then
6941   ac_ct_OTOOL64=$OTOOL64
6942   # Extract the first word of "otool64", so it can be a program name with args.
6943 set dummy otool64; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   if test -n "$ac_ct_OTOOL64"; then
6950   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957     for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_prog_ac_ct_OTOOL64="otool64"
6960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964   done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6970 if test -n "$ac_ct_OTOOL64"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6972 $as_echo "$ac_ct_OTOOL64" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978   if test "x$ac_ct_OTOOL64" = x; then
6979     OTOOL64=":"
6980   else
6981     case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987     OTOOL64=$ac_ct_OTOOL64
6988   fi
6989 else
6990   OTOOL64="$ac_cv_prog_OTOOL64"
6991 fi
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7020 $as_echo_n "checking for -single_module linker flag... " >&6; }
7021 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   lt_cv_apple_cc_single_mod=no
7025       if test -z "${LT_MULTI_MODULE}"; then
7026         # By default we will add the -single_module flag. You can override
7027         # by either setting the environment variable LT_MULTI_MODULE
7028         # non-empty at configure time, or by adding -multi_module to the
7029         # link flags.
7030         rm -rf libconftest.dylib*
7031         echo "int foo(void){return 1;}" > conftest.c
7032         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7033 -dynamiclib -Wl,-single_module conftest.c" >&5
7034         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7035           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7036         _lt_result=$?
7037         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7038           lt_cv_apple_cc_single_mod=yes
7039         else
7040           cat conftest.err >&5
7041         fi
7042         rm -rf libconftest.dylib*
7043         rm -f conftest.*
7044       fi
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7047 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7049 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7050 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   lt_cv_ld_exported_symbols_list=no
7054       save_LDFLAGS=$LDFLAGS
7055       echo "_main" > conftest.sym
7056       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7057       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h.  */
7059
7060 int
7061 main ()
7062 {
7063
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069   lt_cv_ld_exported_symbols_list=yes
7070 else
7071   lt_cv_ld_exported_symbols_list=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074     conftest$ac_exeext conftest.$ac_ext
7075         LDFLAGS="$save_LDFLAGS"
7076
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7079 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7081 $as_echo_n "checking for -force_load linker flag... " >&6; }
7082 if test "${lt_cv_ld_force_load+set}" = set; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   lt_cv_ld_force_load=no
7086       cat > conftest.c << _LT_EOF
7087 int forced_loaded() { return 2;}
7088 _LT_EOF
7089       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7090       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7091       echo "$AR cru libconftest.a conftest.o" >&5
7092       $AR cru libconftest.a conftest.o 2>&5
7093       cat > conftest.c << _LT_EOF
7094 int main() { return 0;}
7095 _LT_EOF
7096       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7097       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7098       _lt_result=$?
7099       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7100         lt_cv_ld_force_load=yes
7101       else
7102         cat conftest.err >&5
7103       fi
7104         rm -f conftest.err libconftest.a conftest conftest.c
7105         rm -rf conftest.dSYM
7106
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7109 $as_echo "$lt_cv_ld_force_load" >&6; }
7110     case $host_os in
7111     rhapsody* | darwin1.[012])
7112       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7113     darwin1.*)
7114       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7115     darwin*) # darwin 5.x on
7116       # if running on 10.5 or later, the deployment target defaults
7117       # to the OS version, if on x86, and 10.4, the deployment
7118       # target defaults to 10.4. Don't you love it?
7119       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7120         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7121           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122         10.[012]*)
7123           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124         10.*)
7125           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7126       esac
7127     ;;
7128   esac
7129     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7130       _lt_dar_single_mod='$single_module'
7131     fi
7132     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7133       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7134     else
7135       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7136     fi
7137     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7138       _lt_dsymutil='~$DSYMUTIL $lib || :'
7139     else
7140       _lt_dsymutil=
7141     fi
7142     ;;
7143   esac
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7151 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7152 # On Suns, sometimes $CPP names a directory.
7153 if test -n "$CPP" && test -d "$CPP"; then
7154   CPP=
7155 fi
7156 if test -z "$CPP"; then
7157   if test "${ac_cv_prog_CPP+set}" = set; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160       # Double quotes because CPP needs to be expanded
7161     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7162     do
7163       ac_preproc_ok=false
7164 for ac_c_preproc_warn_flag in '' yes
7165 do
7166   # Use a header file that comes with gcc, so configuring glibc
7167   # with a fresh cross-compiler works.
7168   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7169   # <limits.h> exists even on freestanding compilers.
7170   # On the NeXT, cc -E runs the code through the compiler's parser,
7171   # not just through cpp. "Syntax error" is here to catch this case.
7172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174 #ifdef __STDC__
7175 # include <limits.h>
7176 #else
7177 # include <assert.h>
7178 #endif
7179                      Syntax error
7180 _ACEOF
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182
7183 else
7184   # Broken: fails on valid input.
7185 continue
7186 fi
7187 rm -f conftest.err conftest.$ac_ext
7188
7189   # OK, works on sane cases.  Now check whether nonexistent headers
7190   # can be detected and how.
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 #include <ac_nonexistent.h>
7194 _ACEOF
7195 if ac_fn_c_try_cpp "$LINENO"; then :
7196   # Broken: success on invalid input.
7197 continue
7198 else
7199   # Passes both tests.
7200 ac_preproc_ok=:
7201 break
7202 fi
7203 rm -f conftest.err conftest.$ac_ext
7204
7205 done
7206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7207 rm -f conftest.err conftest.$ac_ext
7208 if $ac_preproc_ok; then :
7209   break
7210 fi
7211
7212     done
7213     ac_cv_prog_CPP=$CPP
7214
7215 fi
7216   CPP=$ac_cv_prog_CPP
7217 else
7218   ac_cv_prog_CPP=$CPP
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7221 $as_echo "$CPP" >&6; }
7222 ac_preproc_ok=false
7223 for ac_c_preproc_warn_flag in '' yes
7224 do
7225   # Use a header file that comes with gcc, so configuring glibc
7226   # with a fresh cross-compiler works.
7227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7228   # <limits.h> exists even on freestanding compilers.
7229   # On the NeXT, cc -E runs the code through the compiler's parser,
7230   # not just through cpp. "Syntax error" is here to catch this case.
7231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h.  */
7233 #ifdef __STDC__
7234 # include <limits.h>
7235 #else
7236 # include <assert.h>
7237 #endif
7238                      Syntax error
7239 _ACEOF
7240 if ac_fn_c_try_cpp "$LINENO"; then :
7241
7242 else
7243   # Broken: fails on valid input.
7244 continue
7245 fi
7246 rm -f conftest.err conftest.$ac_ext
7247
7248   # OK, works on sane cases.  Now check whether nonexistent headers
7249   # can be detected and how.
7250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h.  */
7252 #include <ac_nonexistent.h>
7253 _ACEOF
7254 if ac_fn_c_try_cpp "$LINENO"; then :
7255   # Broken: success on invalid input.
7256 continue
7257 else
7258   # Passes both tests.
7259 ac_preproc_ok=:
7260 break
7261 fi
7262 rm -f conftest.err conftest.$ac_ext
7263
7264 done
7265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7266 rm -f conftest.err conftest.$ac_ext
7267 if $ac_preproc_ok; then :
7268
7269 else
7270   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7272 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7273 See \`config.log' for more details." "$LINENO" 5; }
7274 fi
7275
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7284 $as_echo_n "checking for ANSI C header files... " >&6; }
7285 if test "${ac_cv_header_stdc+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h.  */
7290 #include <stdlib.h>
7291 #include <stdarg.h>
7292 #include <string.h>
7293 #include <float.h>
7294
7295 int
7296 main ()
7297 {
7298
7299   ;
7300   return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304   ac_cv_header_stdc=yes
7305 else
7306   ac_cv_header_stdc=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309
7310 if test $ac_cv_header_stdc = yes; then
7311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314 #include <string.h>
7315
7316 _ACEOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318   $EGREP "memchr" >/dev/null 2>&1; then :
7319
7320 else
7321   ac_cv_header_stdc=no
7322 fi
7323 rm -f conftest*
7324
7325 fi
7326
7327 if test $ac_cv_header_stdc = yes; then
7328   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h.  */
7331 #include <stdlib.h>
7332
7333 _ACEOF
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335   $EGREP "free" >/dev/null 2>&1; then :
7336
7337 else
7338   ac_cv_header_stdc=no
7339 fi
7340 rm -f conftest*
7341
7342 fi
7343
7344 if test $ac_cv_header_stdc = yes; then
7345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7346   if test "$cross_compiling" = yes; then :
7347   :
7348 else
7349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h.  */
7351 #include <ctype.h>
7352 #include <stdlib.h>
7353 #if ((' ' & 0x0FF) == 0x020)
7354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7356 #else
7357 # define ISLOWER(c) \
7358                    (('a' <= (c) && (c) <= 'i') \
7359                      || ('j' <= (c) && (c) <= 'r') \
7360                      || ('s' <= (c) && (c) <= 'z'))
7361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7362 #endif
7363
7364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7365 int
7366 main ()
7367 {
7368   int i;
7369   for (i = 0; i < 256; i++)
7370     if (XOR (islower (i), ISLOWER (i))
7371         || toupper (i) != TOUPPER (i))
7372       return 2;
7373   return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_run "$LINENO"; then :
7377
7378 else
7379   ac_cv_header_stdc=no
7380 fi
7381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7382   conftest.$ac_objext conftest.beam conftest.$ac_ext
7383 fi
7384
7385 fi
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7388 $as_echo "$ac_cv_header_stdc" >&6; }
7389 if test $ac_cv_header_stdc = yes; then
7390
7391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7392
7393 fi
7394
7395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7397                   inttypes.h stdint.h unistd.h
7398 do :
7399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7401 "
7402 eval as_val=\$$as_ac_Header
7403    if test "x$as_val" = x""yes; then :
7404   cat >>confdefs.h <<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 _ACEOF
7407
7408 fi
7409
7410 done
7411
7412
7413 for ac_header in dlfcn.h
7414 do :
7415   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7416 "
7417 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7418   cat >>confdefs.h <<_ACEOF
7419 #define HAVE_DLFCN_H 1
7420 _ACEOF
7421
7422 fi
7423
7424 done
7425
7426
7427
7428
7429
7430
7431 # Set options
7432
7433
7434
7435
7436   enable_win32_dll=no
7437
7438
7439             # Check whether --enable-shared was given.
7440 if test "${enable_shared+set}" = set; then :
7441   enableval=$enable_shared; p=${PACKAGE-default}
7442     case $enableval in
7443     yes) enable_shared=yes ;;
7444     no) enable_shared=no ;;
7445     *)
7446       enable_shared=no
7447       # Look at the argument we got.  We use all the common list separators.
7448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449       for pkg in $enableval; do
7450         IFS="$lt_save_ifs"
7451         if test "X$pkg" = "X$p"; then
7452           enable_shared=yes
7453         fi
7454       done
7455       IFS="$lt_save_ifs"
7456       ;;
7457     esac
7458 else
7459   enable_shared=yes
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470   # Check whether --enable-static was given.
7471 if test "${enable_static+set}" = set; then :
7472   enableval=$enable_static; p=${PACKAGE-default}
7473     case $enableval in
7474     yes) enable_static=yes ;;
7475     no) enable_static=no ;;
7476     *)
7477      enable_static=no
7478       # Look at the argument we got.  We use all the common list separators.
7479       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480       for pkg in $enableval; do
7481         IFS="$lt_save_ifs"
7482         if test "X$pkg" = "X$p"; then
7483           enable_static=yes
7484         fi
7485       done
7486       IFS="$lt_save_ifs"
7487       ;;
7488     esac
7489 else
7490   enable_static=yes
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 # Check whether --with-pic was given.
7503 if test "${with_pic+set}" = set; then :
7504   withval=$with_pic; pic_mode="$withval"
7505 else
7506   pic_mode=default
7507 fi
7508
7509
7510 test -z "$pic_mode" && pic_mode=default
7511
7512
7513
7514
7515
7516
7517
7518   # Check whether --enable-fast-install was given.
7519 if test "${enable_fast_install+set}" = set; then :
7520   enableval=$enable_fast_install; p=${PACKAGE-default}
7521     case $enableval in
7522     yes) enable_fast_install=yes ;;
7523     no) enable_fast_install=no ;;
7524     *)
7525       enable_fast_install=no
7526       # Look at the argument we got.  We use all the common list separators.
7527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528       for pkg in $enableval; do
7529         IFS="$lt_save_ifs"
7530         if test "X$pkg" = "X$p"; then
7531           enable_fast_install=yes
7532         fi
7533       done
7534       IFS="$lt_save_ifs"
7535       ;;
7536     esac
7537 else
7538   enable_fast_install=yes
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ltmain"
7553
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582 test -z "$LN_S" && LN_S="ln -s"
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597 if test -n "${ZSH_VERSION+set}" ; then
7598    setopt NO_GLOB_SUBST
7599 fi
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7602 $as_echo_n "checking for objdir... " >&6; }
7603 if test "${lt_cv_objdir+set}" = set; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   rm -f .libs 2>/dev/null
7607 mkdir .libs 2>/dev/null
7608 if test -d .libs; then
7609   lt_cv_objdir=.libs
7610 else
7611   # MS-DOS does not allow filenames that begin with a dot.
7612   lt_cv_objdir=_libs
7613 fi
7614 rmdir .libs 2>/dev/null
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7617 $as_echo "$lt_cv_objdir" >&6; }
7618 objdir=$lt_cv_objdir
7619
7620
7621
7622
7623
7624 cat >>confdefs.h <<_ACEOF
7625 #define LT_OBJDIR "$lt_cv_objdir/"
7626 _ACEOF
7627
7628
7629
7630
7631 case $host_os in
7632 aix3*)
7633   # AIX sometimes has problems with the GCC collect2 program.  For some
7634   # reason, if we set the COLLECT_NAMES environment variable, the problems
7635   # vanish in a puff of smoke.
7636   if test "X${COLLECT_NAMES+set}" != Xset; then
7637     COLLECT_NAMES=
7638     export COLLECT_NAMES
7639   fi
7640   ;;
7641 esac
7642
7643 # Global variables:
7644 ofile=libtool
7645 can_build_shared=yes
7646
7647 # All known linkers require a `.a' archive for static linking (except MSVC,
7648 # which needs '.lib').
7649 libext=a
7650
7651 with_gnu_ld="$lt_cv_prog_gnu_ld"
7652
7653 old_CC="$CC"
7654 old_CFLAGS="$CFLAGS"
7655
7656 # Set sane defaults for various variables
7657 test -z "$CC" && CC=cc
7658 test -z "$LTCC" && LTCC=$CC
7659 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7660 test -z "$LD" && LD=ld
7661 test -z "$ac_objext" && ac_objext=o
7662
7663 for cc_temp in $compiler""; do
7664   case $cc_temp in
7665     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7666     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667     \-*) ;;
7668     *) break;;
7669   esac
7670 done
7671 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7672
7673
7674 # Only perform the check for file, if the check method requires it
7675 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7676 case $deplibs_check_method in
7677 file_magic*)
7678   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7680 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   case $MAGIC_CMD in
7685 [\\/*] |  ?:[\\/]*)
7686   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7687   ;;
7688 *)
7689   lt_save_MAGIC_CMD="$MAGIC_CMD"
7690   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692   for ac_dir in $ac_dummy; do
7693     IFS="$lt_save_ifs"
7694     test -z "$ac_dir" && ac_dir=.
7695     if test -f $ac_dir/${ac_tool_prefix}file; then
7696       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7697       if test -n "$file_magic_test_file"; then
7698         case $deplibs_check_method in
7699         "file_magic "*)
7700           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703             $EGREP "$file_magic_regex" > /dev/null; then
7704             :
7705           else
7706             cat <<_LT_EOF 1>&2
7707
7708 *** Warning: the command libtool uses to detect shared libraries,
7709 *** $file_magic_cmd, produces output that libtool cannot recognize.
7710 *** The result is that libtool may fail to recognize shared libraries
7711 *** as such.  This will affect the creation of libtool libraries that
7712 *** depend on shared libraries, but programs linked with such libtool
7713 *** libraries will work regardless of this problem.  Nevertheless, you
7714 *** may want to report the problem to your system manager and/or to
7715 *** bug-libtool@gnu.org
7716
7717 _LT_EOF
7718           fi ;;
7719         esac
7720       fi
7721       break
7722     fi
7723   done
7724   IFS="$lt_save_ifs"
7725   MAGIC_CMD="$lt_save_MAGIC_CMD"
7726   ;;
7727 esac
7728 fi
7729
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if test -n "$MAGIC_CMD"; then
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7733 $as_echo "$MAGIC_CMD" >&6; }
7734 else
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740
7741
7742
7743 if test -z "$lt_cv_path_MAGIC_CMD"; then
7744   if test -n "$ac_tool_prefix"; then
7745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7746 $as_echo_n "checking for file... " >&6; }
7747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   case $MAGIC_CMD in
7751 [\\/*] |  ?:[\\/]*)
7752   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7753   ;;
7754 *)
7755   lt_save_MAGIC_CMD="$MAGIC_CMD"
7756   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7757   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7758   for ac_dir in $ac_dummy; do
7759     IFS="$lt_save_ifs"
7760     test -z "$ac_dir" && ac_dir=.
7761     if test -f $ac_dir/file; then
7762       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7763       if test -n "$file_magic_test_file"; then
7764         case $deplibs_check_method in
7765         "file_magic "*)
7766           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7767           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7769             $EGREP "$file_magic_regex" > /dev/null; then
7770             :
7771           else
7772             cat <<_LT_EOF 1>&2
7773
7774 *** Warning: the command libtool uses to detect shared libraries,
7775 *** $file_magic_cmd, produces output that libtool cannot recognize.
7776 *** The result is that libtool may fail to recognize shared libraries
7777 *** as such.  This will affect the creation of libtool libraries that
7778 *** depend on shared libraries, but programs linked with such libtool
7779 *** libraries will work regardless of this problem.  Nevertheless, you
7780 *** may want to report the problem to your system manager and/or to
7781 *** bug-libtool@gnu.org
7782
7783 _LT_EOF
7784           fi ;;
7785         esac
7786       fi
7787       break
7788     fi
7789   done
7790   IFS="$lt_save_ifs"
7791   MAGIC_CMD="$lt_save_MAGIC_CMD"
7792   ;;
7793 esac
7794 fi
7795
7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797 if test -n "$MAGIC_CMD"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7799 $as_echo "$MAGIC_CMD" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806   else
7807     MAGIC_CMD=:
7808   fi
7809 fi
7810
7811   fi
7812   ;;
7813 esac
7814
7815 # Use C for the default configuration in the libtool script
7816
7817 lt_save_CC="$CC"
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824
7825 # Source file extension for C test sources.
7826 ac_ext=c
7827
7828 # Object file extension for compiled C test sources.
7829 objext=o
7830 objext=$objext
7831
7832 # Code to be used in simple compile tests
7833 lt_simple_compile_test_code="int some_variable = 0;"
7834
7835 # Code to be used in simple link tests
7836 lt_simple_link_test_code='int main(){return(0);}'
7837
7838
7839
7840
7841
7842
7843
7844 # If no C compiler was specified, use CC.
7845 LTCC=${LTCC-"$CC"}
7846
7847 # If no C compiler flags were specified, use CFLAGS.
7848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849
7850 # Allow CC to be a program name with arguments.
7851 compiler=$CC
7852
7853 # Save the default compiler, since it gets overwritten when the other
7854 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7855 compiler_DEFAULT=$CC
7856
7857 # save warnings/boilerplate of simple test code
7858 ac_outfile=conftest.$ac_objext
7859 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861 _lt_compiler_boilerplate=`cat conftest.err`
7862 $RM conftest*
7863
7864 ac_outfile=conftest.$ac_objext
7865 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867 _lt_linker_boilerplate=`cat conftest.err`
7868 $RM -r conftest*
7869
7870
7871 ## CAVEAT EMPTOR:
7872 ## There is no encapsulation within the following macros, do not change
7873 ## the running order or otherwise move them around unless you know exactly
7874 ## what you are doing...
7875 if test -n "$compiler"; then
7876
7877 lt_prog_compiler_no_builtin_flag=
7878
7879 if test "$GCC" = yes; then
7880   case $cc_basename in
7881   nvcc*)
7882     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7883   *)
7884     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7885   esac
7886
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7888 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   lt_cv_prog_compiler_rtti_exceptions=no
7893    ac_outfile=conftest.$ac_objext
7894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7895    lt_compiler_flag="-fno-rtti -fno-exceptions"
7896    # Insert the option either (1) after the last *FLAGS variable, or
7897    # (2) before a word containing "conftest.", or (3) at the end.
7898    # Note that $ac_compile itself does not contain backslashes and begins
7899    # with a dollar sign (not a hyphen), so the echo should work correctly.
7900    # The option is referenced via a variable to avoid confusing sed.
7901    lt_compile=`echo "$ac_compile" | $SED \
7902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904    -e 's:$: $lt_compiler_flag:'`
7905    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7906    (eval "$lt_compile" 2>conftest.err)
7907    ac_status=$?
7908    cat conftest.err >&5
7909    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910    if (exit $ac_status) && test -s "$ac_outfile"; then
7911      # The compiler can only warn and ignore the option if not recognized
7912      # So say no if there are warnings other than the usual output.
7913      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7914      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7916        lt_cv_prog_compiler_rtti_exceptions=yes
7917      fi
7918    fi
7919    $RM conftest*
7920
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7923 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7924
7925 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7926     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7927 else
7928     :
7929 fi
7930
7931 fi
7932
7933
7934
7935
7936
7937
7938   lt_prog_compiler_wl=
7939 lt_prog_compiler_pic=
7940 lt_prog_compiler_static=
7941
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7944
7945   if test "$GCC" = yes; then
7946     lt_prog_compiler_wl='-Wl,'
7947     lt_prog_compiler_static='-static'
7948
7949     case $host_os in
7950       aix*)
7951       # All AIX code is PIC.
7952       if test "$host_cpu" = ia64; then
7953         # AIX 5 now supports IA64 processor
7954         lt_prog_compiler_static='-Bstatic'
7955       fi
7956       lt_prog_compiler_pic='-fPIC'
7957       ;;
7958
7959     amigaos*)
7960       case $host_cpu in
7961       powerpc)
7962             # see comment about AmigaOS4 .so support
7963             lt_prog_compiler_pic='-fPIC'
7964         ;;
7965       m68k)
7966             # FIXME: we need at least 68020 code to build shared libraries, but
7967             # adding the `-m68020' flag to GCC prevents building anything better,
7968             # like `-m68040'.
7969             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7970         ;;
7971       esac
7972       ;;
7973
7974     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7975       # PIC is the default for these OSes.
7976       ;;
7977
7978     mingw* | cygwin* | pw32* | os2* | cegcc*)
7979       # This hack is so that the source file can tell whether it is being
7980       # built for inclusion in a dll (and should export symbols for example).
7981       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7982       # (--disable-auto-import) libraries
7983       lt_prog_compiler_pic='-DDLL_EXPORT'
7984       ;;
7985
7986     darwin* | rhapsody*)
7987       # PIC is the default on this platform
7988       # Common symbols not allowed in MH_DYLIB files
7989       lt_prog_compiler_pic='-fno-common'
7990       ;;
7991
7992     haiku*)
7993       # PIC is the default for Haiku.
7994       # The "-static" flag exists, but is broken.
7995       lt_prog_compiler_static=
7996       ;;
7997
7998     hpux*)
7999       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8000       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8001       # sets the default TLS model and affects inlining.
8002       case $host_cpu in
8003       hppa*64*)
8004         # +Z the default
8005         ;;
8006       *)
8007         lt_prog_compiler_pic='-fPIC'
8008         ;;
8009       esac
8010       ;;
8011
8012     interix[3-9]*)
8013       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8014       # Instead, we relocate shared libraries at runtime.
8015       ;;
8016
8017     msdosdjgpp*)
8018       # Just because we use GCC doesn't mean we suddenly get shared libraries
8019       # on systems that don't support them.
8020       lt_prog_compiler_can_build_shared=no
8021       enable_shared=no
8022       ;;
8023
8024     *nto* | *qnx*)
8025       # QNX uses GNU C++, but need to define -shared option too, otherwise
8026       # it will coredump.
8027       lt_prog_compiler_pic='-fPIC -shared'
8028       ;;
8029
8030     sysv4*MP*)
8031       if test -d /usr/nec; then
8032         lt_prog_compiler_pic=-Kconform_pic
8033       fi
8034       ;;
8035
8036     *)
8037       lt_prog_compiler_pic='-fPIC'
8038       ;;
8039     esac
8040
8041     case $cc_basename in
8042     nvcc*) # Cuda Compiler Driver 2.2
8043       lt_prog_compiler_wl='-Xlinker '
8044       lt_prog_compiler_pic='-Xcompiler -fPIC'
8045       ;;
8046     esac
8047   else
8048     # PORTME Check for flag to pass linker flags through the system compiler.
8049     case $host_os in
8050     aix*)
8051       lt_prog_compiler_wl='-Wl,'
8052       if test "$host_cpu" = ia64; then
8053         # AIX 5 now supports IA64 processor
8054         lt_prog_compiler_static='-Bstatic'
8055       else
8056         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8057       fi
8058       ;;
8059
8060     mingw* | cygwin* | pw32* | os2* | cegcc*)
8061       # This hack is so that the source file can tell whether it is being
8062       # built for inclusion in a dll (and should export symbols for example).
8063       lt_prog_compiler_pic='-DDLL_EXPORT'
8064       ;;
8065
8066     hpux9* | hpux10* | hpux11*)
8067       lt_prog_compiler_wl='-Wl,'
8068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8069       # not for PA HP-UX.
8070       case $host_cpu in
8071       hppa*64*|ia64*)
8072         # +Z the default
8073         ;;
8074       *)
8075         lt_prog_compiler_pic='+Z'
8076         ;;
8077       esac
8078       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8079       lt_prog_compiler_static='${wl}-a ${wl}archive'
8080       ;;
8081
8082     irix5* | irix6* | nonstopux*)
8083       lt_prog_compiler_wl='-Wl,'
8084       # PIC (with -KPIC) is the default.
8085       lt_prog_compiler_static='-non_shared'
8086       ;;
8087
8088     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8089       case $cc_basename in
8090       # old Intel for x86_64 which still supported -KPIC.
8091       ecc*)
8092         lt_prog_compiler_wl='-Wl,'
8093         lt_prog_compiler_pic='-KPIC'
8094         lt_prog_compiler_static='-static'
8095         ;;
8096       # icc used to be incompatible with GCC.
8097       # ICC 10 doesn't accept -KPIC any more.
8098       icc* | ifort*)
8099         lt_prog_compiler_wl='-Wl,'
8100         lt_prog_compiler_pic='-fPIC'
8101         lt_prog_compiler_static='-static'
8102         ;;
8103       # Lahey Fortran 8.1.
8104       lf95*)
8105         lt_prog_compiler_wl='-Wl,'
8106         lt_prog_compiler_pic='--shared'
8107         lt_prog_compiler_static='--static'
8108         ;;
8109       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8110         # Portland Group compilers (*not* the Pentium gcc compiler,
8111         # which looks to be a dead project)
8112         lt_prog_compiler_wl='-Wl,'
8113         lt_prog_compiler_pic='-fpic'
8114         lt_prog_compiler_static='-Bstatic'
8115         ;;
8116       ccc*)
8117         lt_prog_compiler_wl='-Wl,'
8118         # All Alpha code is PIC.
8119         lt_prog_compiler_static='-non_shared'
8120         ;;
8121       xl* | bgxl* | bgf* | mpixl*)
8122         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8123         lt_prog_compiler_wl='-Wl,'
8124         lt_prog_compiler_pic='-qpic'
8125         lt_prog_compiler_static='-qstaticlink'
8126         ;;
8127       *)
8128         case `$CC -V 2>&1 | sed 5q` in
8129         *Sun\ F* | *Sun*Fortran*)
8130           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8131           lt_prog_compiler_pic='-KPIC'
8132           lt_prog_compiler_static='-Bstatic'
8133           lt_prog_compiler_wl=''
8134           ;;
8135         *Sun\ C*)
8136           # Sun C 5.9
8137           lt_prog_compiler_pic='-KPIC'
8138           lt_prog_compiler_static='-Bstatic'
8139           lt_prog_compiler_wl='-Wl,'
8140           ;;
8141         esac
8142         ;;
8143       esac
8144       ;;
8145
8146     newsos6)
8147       lt_prog_compiler_pic='-KPIC'
8148       lt_prog_compiler_static='-Bstatic'
8149       ;;
8150
8151     *nto* | *qnx*)
8152       # QNX uses GNU C++, but need to define -shared option too, otherwise
8153       # it will coredump.
8154       lt_prog_compiler_pic='-fPIC -shared'
8155       ;;
8156
8157     osf3* | osf4* | osf5*)
8158       lt_prog_compiler_wl='-Wl,'
8159       # All OSF/1 code is PIC.
8160       lt_prog_compiler_static='-non_shared'
8161       ;;
8162
8163     rdos*)
8164       lt_prog_compiler_static='-non_shared'
8165       ;;
8166
8167     solaris*)
8168       lt_prog_compiler_pic='-KPIC'
8169       lt_prog_compiler_static='-Bstatic'
8170       case $cc_basename in
8171       f77* | f90* | f95*)
8172         lt_prog_compiler_wl='-Qoption ld ';;
8173       *)
8174         lt_prog_compiler_wl='-Wl,';;
8175       esac
8176       ;;
8177
8178     sunos4*)
8179       lt_prog_compiler_wl='-Qoption ld '
8180       lt_prog_compiler_pic='-PIC'
8181       lt_prog_compiler_static='-Bstatic'
8182       ;;
8183
8184     sysv4 | sysv4.2uw2* | sysv4.3*)
8185       lt_prog_compiler_wl='-Wl,'
8186       lt_prog_compiler_pic='-KPIC'
8187       lt_prog_compiler_static='-Bstatic'
8188       ;;
8189
8190     sysv4*MP*)
8191       if test -d /usr/nec ;then
8192         lt_prog_compiler_pic='-Kconform_pic'
8193         lt_prog_compiler_static='-Bstatic'
8194       fi
8195       ;;
8196
8197     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8198       lt_prog_compiler_wl='-Wl,'
8199       lt_prog_compiler_pic='-KPIC'
8200       lt_prog_compiler_static='-Bstatic'
8201       ;;
8202
8203     unicos*)
8204       lt_prog_compiler_wl='-Wl,'
8205       lt_prog_compiler_can_build_shared=no
8206       ;;
8207
8208     uts4*)
8209       lt_prog_compiler_pic='-pic'
8210       lt_prog_compiler_static='-Bstatic'
8211       ;;
8212
8213     *)
8214       lt_prog_compiler_can_build_shared=no
8215       ;;
8216     esac
8217   fi
8218
8219 case $host_os in
8220   # For platforms which do not support PIC, -DPIC is meaningless:
8221   *djgpp*)
8222     lt_prog_compiler_pic=
8223     ;;
8224   *)
8225     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8226     ;;
8227 esac
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8229 $as_echo "$lt_prog_compiler_pic" >&6; }
8230
8231
8232
8233
8234
8235
8236 #
8237 # Check to make sure the PIC flag actually works.
8238 #
8239 if test -n "$lt_prog_compiler_pic"; then
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8242 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   lt_cv_prog_compiler_pic_works=no
8246    ac_outfile=conftest.$ac_objext
8247    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8249    # Insert the option either (1) after the last *FLAGS variable, or
8250    # (2) before a word containing "conftest.", or (3) at the end.
8251    # Note that $ac_compile itself does not contain backslashes and begins
8252    # with a dollar sign (not a hyphen), so the echo should work correctly.
8253    # The option is referenced via a variable to avoid confusing sed.
8254    lt_compile=`echo "$ac_compile" | $SED \
8255    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257    -e 's:$: $lt_compiler_flag:'`
8258    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259    (eval "$lt_compile" 2>conftest.err)
8260    ac_status=$?
8261    cat conftest.err >&5
8262    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263    if (exit $ac_status) && test -s "$ac_outfile"; then
8264      # The compiler can only warn and ignore the option if not recognized
8265      # So say no if there are warnings other than the usual output.
8266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269        lt_cv_prog_compiler_pic_works=yes
8270      fi
8271    fi
8272    $RM conftest*
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8277
8278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8279     case $lt_prog_compiler_pic in
8280      "" | " "*) ;;
8281      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8282      esac
8283 else
8284     lt_prog_compiler_pic=
8285      lt_prog_compiler_can_build_shared=no
8286 fi
8287
8288 fi
8289
8290
8291
8292
8293
8294
8295 #
8296 # Check to make sure the static flag actually works.
8297 #
8298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8301 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   lt_cv_prog_compiler_static_works=no
8305    save_LDFLAGS="$LDFLAGS"
8306    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8307    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8308    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8309      # The linker can only warn and ignore the option if not recognized
8310      # So say no if there are warnings
8311      if test -s conftest.err; then
8312        # Append any errors to the config.log.
8313        cat conftest.err 1>&5
8314        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8315        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316        if diff conftest.exp conftest.er2 >/dev/null; then
8317          lt_cv_prog_compiler_static_works=yes
8318        fi
8319      else
8320        lt_cv_prog_compiler_static_works=yes
8321      fi
8322    fi
8323    $RM -r conftest*
8324    LDFLAGS="$save_LDFLAGS"
8325
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8328 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8329
8330 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8331     :
8332 else
8333     lt_prog_compiler_static=
8334 fi
8335
8336
8337
8338
8339
8340
8341
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8344 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   lt_cv_prog_compiler_c_o=no
8348    $RM -r conftest 2>/dev/null
8349    mkdir conftest
8350    cd conftest
8351    mkdir out
8352    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353
8354    lt_compiler_flag="-o out/conftest2.$ac_objext"
8355    # Insert the option either (1) after the last *FLAGS variable, or
8356    # (2) before a word containing "conftest.", or (3) at the end.
8357    # Note that $ac_compile itself does not contain backslashes and begins
8358    # with a dollar sign (not a hyphen), so the echo should work correctly.
8359    lt_compile=`echo "$ac_compile" | $SED \
8360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362    -e 's:$: $lt_compiler_flag:'`
8363    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8364    (eval "$lt_compile" 2>out/conftest.err)
8365    ac_status=$?
8366    cat out/conftest.err >&5
8367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8369    then
8370      # The compiler can only warn and ignore the option if not recognized
8371      # So say no if there are warnings
8372      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8373      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8374      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8375        lt_cv_prog_compiler_c_o=yes
8376      fi
8377    fi
8378    chmod u+w . 2>&5
8379    $RM conftest*
8380    # SGI C++ compiler will create directory out/ii_files/ for
8381    # template instantiation
8382    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8383    $RM out/* && rmdir out
8384    cd ..
8385    $RM -r conftest
8386    $RM conftest*
8387
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8390 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8391
8392
8393
8394
8395
8396
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   lt_cv_prog_compiler_c_o=no
8403    $RM -r conftest 2>/dev/null
8404    mkdir conftest
8405    cd conftest
8406    mkdir out
8407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408
8409    lt_compiler_flag="-o out/conftest2.$ac_objext"
8410    # Insert the option either (1) after the last *FLAGS variable, or
8411    # (2) before a word containing "conftest.", or (3) at the end.
8412    # Note that $ac_compile itself does not contain backslashes and begins
8413    # with a dollar sign (not a hyphen), so the echo should work correctly.
8414    lt_compile=`echo "$ac_compile" | $SED \
8415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417    -e 's:$: $lt_compiler_flag:'`
8418    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419    (eval "$lt_compile" 2>out/conftest.err)
8420    ac_status=$?
8421    cat out/conftest.err >&5
8422    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424    then
8425      # The compiler can only warn and ignore the option if not recognized
8426      # So say no if there are warnings
8427      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8428      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430        lt_cv_prog_compiler_c_o=yes
8431      fi
8432    fi
8433    chmod u+w . 2>&5
8434    $RM conftest*
8435    # SGI C++ compiler will create directory out/ii_files/ for
8436    # template instantiation
8437    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438    $RM out/* && rmdir out
8439    cd ..
8440    $RM -r conftest
8441    $RM conftest*
8442
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8446
8447
8448
8449
8450 hard_links="nottested"
8451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8452   # do not overwrite the value of need_locks provided by the user
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8454 $as_echo_n "checking if we can lock with hard links... " >&6; }
8455   hard_links=yes
8456   $RM conftest*
8457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458   touch conftest.a
8459   ln conftest.a conftest.b 2>&5 || hard_links=no
8460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8462 $as_echo "$hard_links" >&6; }
8463   if test "$hard_links" = no; then
8464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8465 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8466     need_locks=warn
8467   fi
8468 else
8469   need_locks=no
8470 fi
8471
8472
8473
8474
8475
8476
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8479
8480   runpath_var=
8481   allow_undefined_flag=
8482   always_export_symbols=no
8483   archive_cmds=
8484   archive_expsym_cmds=
8485   compiler_needs_object=no
8486   enable_shared_with_static_runtimes=no
8487   export_dynamic_flag_spec=
8488   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8489   hardcode_automatic=no
8490   hardcode_direct=no
8491   hardcode_direct_absolute=no
8492   hardcode_libdir_flag_spec=
8493   hardcode_libdir_flag_spec_ld=
8494   hardcode_libdir_separator=
8495   hardcode_minus_L=no
8496   hardcode_shlibpath_var=unsupported
8497   inherit_rpath=no
8498   link_all_deplibs=unknown
8499   module_cmds=
8500   module_expsym_cmds=
8501   old_archive_from_new_cmds=
8502   old_archive_from_expsyms_cmds=
8503   thread_safe_flag_spec=
8504   whole_archive_flag_spec=
8505   # include_expsyms should be a list of space-separated symbols to be *always*
8506   # included in the symbol list
8507   include_expsyms=
8508   # exclude_expsyms can be an extended regexp of symbols to exclude
8509   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8510   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8511   # as well as any symbol that contains `d'.
8512   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8513   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8514   # platforms (ab)use it in PIC code, but their linkers get confused if
8515   # the symbol is explicitly referenced.  Since portable code cannot
8516   # rely on this symbol name, it's probably fine to never include it in
8517   # preloaded symbol tables.
8518   # Exclude shared library initialization/finalization symbols.
8519   extract_expsyms_cmds=
8520
8521   case $host_os in
8522   cygwin* | mingw* | pw32* | cegcc*)
8523     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8524     # When not using gcc, we currently assume that we are using
8525     # Microsoft Visual C++.
8526     if test "$GCC" != yes; then
8527       with_gnu_ld=no
8528     fi
8529     ;;
8530   interix*)
8531     # we just hope/assume this is gcc and not c89 (= MSVC++)
8532     with_gnu_ld=yes
8533     ;;
8534   openbsd*)
8535     with_gnu_ld=no
8536     ;;
8537   esac
8538
8539   ld_shlibs=yes
8540
8541   # On some targets, GNU ld is compatible enough with the native linker
8542   # that we're better off using the native interface for both.
8543   lt_use_gnu_ld_interface=no
8544   if test "$with_gnu_ld" = yes; then
8545     case $host_os in
8546       aix*)
8547         # The AIX port of GNU ld has always aspired to compatibility
8548         # with the native linker.  However, as the warning in the GNU ld
8549         # block says, versions before 2.19.5* couldn't really create working
8550         # shared libraries, regardless of the interface used.
8551         case `$LD -v 2>&1` in
8552           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8553           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8554           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8555           *)
8556             lt_use_gnu_ld_interface=yes
8557             ;;
8558         esac
8559         ;;
8560       *)
8561         lt_use_gnu_ld_interface=yes
8562         ;;
8563     esac
8564   fi
8565
8566   if test "$lt_use_gnu_ld_interface" = yes; then
8567     # If archive_cmds runs LD, not CC, wlarc should be empty
8568     wlarc='${wl}'
8569
8570     # Set some defaults for GNU ld with shared library support. These
8571     # are reset later if shared libraries are not supported. Putting them
8572     # here allows them to be overridden if necessary.
8573     runpath_var=LD_RUN_PATH
8574     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8575     export_dynamic_flag_spec='${wl}--export-dynamic'
8576     # ancient GNU ld didn't support --whole-archive et. al.
8577     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8578       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8579     else
8580       whole_archive_flag_spec=
8581     fi
8582     supports_anon_versioning=no
8583     case `$LD -v 2>&1` in
8584       *GNU\ gold*) supports_anon_versioning=yes ;;
8585       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8586       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8587       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8588       *\ 2.11.*) ;; # other 2.11 versions
8589       *) supports_anon_versioning=yes ;;
8590     esac
8591
8592     # See if GNU ld supports shared libraries.
8593     case $host_os in
8594     aix[3-9]*)
8595       # On AIX/PPC, the GNU linker is very broken
8596       if test "$host_cpu" != ia64; then
8597         ld_shlibs=no
8598         cat <<_LT_EOF 1>&2
8599
8600 *** Warning: the GNU linker, at least up to release 2.19, is reported
8601 *** to be unable to reliably create shared libraries on AIX.
8602 *** Therefore, libtool is disabling shared libraries support.  If you
8603 *** really care for shared libraries, you may want to install binutils
8604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8605 *** You will then need to restart the configuration process.
8606
8607 _LT_EOF
8608       fi
8609       ;;
8610
8611     amigaos*)
8612       case $host_cpu in
8613       powerpc)
8614             # see comment about AmigaOS4 .so support
8615             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616             archive_expsym_cmds=''
8617         ;;
8618       m68k)
8619             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)'
8620             hardcode_libdir_flag_spec='-L$libdir'
8621             hardcode_minus_L=yes
8622         ;;
8623       esac
8624       ;;
8625
8626     beos*)
8627       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628         allow_undefined_flag=unsupported
8629         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630         # support --undefined.  This deserves some investigation.  FIXME
8631         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632       else
8633         ld_shlibs=no
8634       fi
8635       ;;
8636
8637     cygwin* | mingw* | pw32* | cegcc*)
8638       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639       # as there is no search path for DLLs.
8640       hardcode_libdir_flag_spec='-L$libdir'
8641       export_dynamic_flag_spec='${wl}--export-all-symbols'
8642       allow_undefined_flag=unsupported
8643       always_export_symbols=no
8644       enable_shared_with_static_runtimes=yes
8645       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8646
8647       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8648         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8649         # If the export-symbols file already is a .def file (1st line
8650         # is EXPORTS), use it as is; otherwise, prepend...
8651         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8652           cp $export_symbols $output_objdir/$soname.def;
8653         else
8654           echo EXPORTS > $output_objdir/$soname.def;
8655           cat $export_symbols >> $output_objdir/$soname.def;
8656         fi~
8657         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8658       else
8659         ld_shlibs=no
8660       fi
8661       ;;
8662
8663     haiku*)
8664       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665       link_all_deplibs=yes
8666       ;;
8667
8668     interix[3-9]*)
8669       hardcode_direct=no
8670       hardcode_shlibpath_var=no
8671       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8672       export_dynamic_flag_spec='${wl}-E'
8673       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8674       # Instead, shared libraries are loaded at an image base (0x10000000 by
8675       # default) and relocated if they conflict, which is a slow very memory
8676       # consuming and fragmenting process.  To avoid this, we pick a random,
8677       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8678       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8679       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8680       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'
8681       ;;
8682
8683     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8684       tmp_diet=no
8685       if test "$host_os" = linux-dietlibc; then
8686         case $cc_basename in
8687           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8688         esac
8689       fi
8690       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8691          && test "$tmp_diet" = no
8692       then
8693         tmp_addflag=
8694         tmp_sharedflag='-shared'
8695         case $cc_basename,$host_cpu in
8696         pgcc*)                          # Portland Group C compiler
8697           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'
8698           tmp_addflag=' $pic_flag'
8699           ;;
8700         pgf77* | pgf90* | pgf95* | pgfortran*)
8701                                         # Portland Group f77 and f90 compilers
8702           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'
8703           tmp_addflag=' $pic_flag -Mnomain' ;;
8704         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8705           tmp_addflag=' -i_dynamic' ;;
8706         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8707           tmp_addflag=' -i_dynamic -nofor_main' ;;
8708         ifc* | ifort*)                  # Intel Fortran compiler
8709           tmp_addflag=' -nofor_main' ;;
8710         lf95*)                          # Lahey Fortran 8.1
8711           whole_archive_flag_spec=
8712           tmp_sharedflag='--shared' ;;
8713         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8714           tmp_sharedflag='-qmkshrobj'
8715           tmp_addflag= ;;
8716         nvcc*)  # Cuda Compiler Driver 2.2
8717           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'
8718           compiler_needs_object=yes
8719           ;;
8720         esac
8721         case `$CC -V 2>&1 | sed 5q` in
8722         *Sun\ C*)                       # Sun C 5.9
8723           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'
8724           compiler_needs_object=yes
8725           tmp_sharedflag='-G' ;;
8726         *Sun\ F*)                       # Sun Fortran 8.3
8727           tmp_sharedflag='-G' ;;
8728         esac
8729         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730
8731         if test "x$supports_anon_versioning" = xyes; then
8732           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8733             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8734             echo "local: *; };" >> $output_objdir/$libname.ver~
8735             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8736         fi
8737
8738         case $cc_basename in
8739         xlf* | bgf* | bgxlf* | mpixlf*)
8740           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8741           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8742           hardcode_libdir_flag_spec=
8743           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8744           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8745           if test "x$supports_anon_versioning" = xyes; then
8746             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8747               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748               echo "local: *; };" >> $output_objdir/$libname.ver~
8749               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8750           fi
8751           ;;
8752         esac
8753       else
8754         ld_shlibs=no
8755       fi
8756       ;;
8757
8758     netbsd*)
8759       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8760         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8761         wlarc=
8762       else
8763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765       fi
8766       ;;
8767
8768     solaris*)
8769       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8770         ld_shlibs=no
8771         cat <<_LT_EOF 1>&2
8772
8773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8774 *** create shared libraries on Solaris systems.  Therefore, libtool
8775 *** is disabling shared libraries support.  We urge you to upgrade GNU
8776 *** binutils to release 2.9.1 or newer.  Another option is to modify
8777 *** your PATH or compiler configuration so that the native linker is
8778 *** used, and then restart.
8779
8780 _LT_EOF
8781       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8782         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784       else
8785         ld_shlibs=no
8786       fi
8787       ;;
8788
8789     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8790       case `$LD -v 2>&1` in
8791         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8792         ld_shlibs=no
8793         cat <<_LT_EOF 1>&2
8794
8795 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8796 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8797 *** is disabling shared libraries support.  We urge you to upgrade GNU
8798 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8799 *** your PATH or compiler configuration so that the native linker is
8800 *** used, and then restart.
8801
8802 _LT_EOF
8803         ;;
8804         *)
8805           # For security reasons, it is highly recommended that you always
8806           # use absolute paths for naming shared libraries, and exclude the
8807           # DT_RUNPATH tag from executables and libraries.  But doing so
8808           # requires that you compile everything twice, which is a pain.
8809           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813           else
8814             ld_shlibs=no
8815           fi
8816         ;;
8817       esac
8818       ;;
8819
8820     sunos4*)
8821       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822       wlarc=
8823       hardcode_direct=yes
8824       hardcode_shlibpath_var=no
8825       ;;
8826
8827     *)
8828       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831       else
8832         ld_shlibs=no
8833       fi
8834       ;;
8835     esac
8836
8837     if test "$ld_shlibs" = no; then
8838       runpath_var=
8839       hardcode_libdir_flag_spec=
8840       export_dynamic_flag_spec=
8841       whole_archive_flag_spec=
8842     fi
8843   else
8844     # PORTME fill in a description of your system's linker (not GNU ld)
8845     case $host_os in
8846     aix3*)
8847       allow_undefined_flag=unsupported
8848       always_export_symbols=yes
8849       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'
8850       # Note: this linker hardcodes the directories in LIBPATH if there
8851       # are no directories specified by -L.
8852       hardcode_minus_L=yes
8853       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8854         # Neither direct hardcoding nor static linking is supported with a
8855         # broken collect2.
8856         hardcode_direct=unsupported
8857       fi
8858       ;;
8859
8860     aix[4-9]*)
8861       if test "$host_cpu" = ia64; then
8862         # On IA64, the linker does run time linking by default, so we don't
8863         # have to do anything special.
8864         aix_use_runtimelinking=no
8865         exp_sym_flag='-Bexport'
8866         no_entry_flag=""
8867       else
8868         # If we're using GNU nm, then we don't want the "-C" option.
8869         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8870         # Also, AIX nm treats weak defined symbols like other global
8871         # defined symbols, whereas GNU nm marks them as "W".
8872         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8873           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'
8874         else
8875           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'
8876         fi
8877         aix_use_runtimelinking=no
8878
8879         # Test if we are trying to use run time linking or normal
8880         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8881         # need to do runtime linking.
8882         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8883           for ld_flag in $LDFLAGS; do
8884           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8885             aix_use_runtimelinking=yes
8886             break
8887           fi
8888           done
8889           ;;
8890         esac
8891
8892         exp_sym_flag='-bexport'
8893         no_entry_flag='-bnoentry'
8894       fi
8895
8896       # When large executables or shared objects are built, AIX ld can
8897       # have problems creating the table of contents.  If linking a library
8898       # or program results in "error TOC overflow" add -mminimal-toc to
8899       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8900       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8901
8902       archive_cmds=''
8903       hardcode_direct=yes
8904       hardcode_direct_absolute=yes
8905       hardcode_libdir_separator=':'
8906       link_all_deplibs=yes
8907       file_list_spec='${wl}-f,'
8908
8909       if test "$GCC" = yes; then
8910         case $host_os in aix4.[012]|aix4.[012].*)
8911         # We only want to do this on AIX 4.2 and lower, the check
8912         # below for broken collect2 doesn't work under 4.3+
8913           collect2name=`${CC} -print-prog-name=collect2`
8914           if test -f "$collect2name" &&
8915            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8916           then
8917           # We have reworked collect2
8918           :
8919           else
8920           # We have old collect2
8921           hardcode_direct=unsupported
8922           # It fails to find uninstalled libraries when the uninstalled
8923           # path is not listed in the libpath.  Setting hardcode_minus_L
8924           # to unsupported forces relinking
8925           hardcode_minus_L=yes
8926           hardcode_libdir_flag_spec='-L$libdir'
8927           hardcode_libdir_separator=
8928           fi
8929           ;;
8930         esac
8931         shared_flag='-shared'
8932         if test "$aix_use_runtimelinking" = yes; then
8933           shared_flag="$shared_flag "'${wl}-G'
8934         fi
8935       else
8936         # not using gcc
8937         if test "$host_cpu" = ia64; then
8938         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8939         # chokes on -Wl,-G. The following line is correct:
8940           shared_flag='-G'
8941         else
8942           if test "$aix_use_runtimelinking" = yes; then
8943             shared_flag='${wl}-G'
8944           else
8945             shared_flag='${wl}-bM:SRE'
8946           fi
8947         fi
8948       fi
8949
8950       export_dynamic_flag_spec='${wl}-bexpall'
8951       # It seems that -bexpall does not export symbols beginning with
8952       # underscore (_), so it is better to generate a list of symbols to export.
8953       always_export_symbols=yes
8954       if test "$aix_use_runtimelinking" = yes; then
8955         # Warning - without using the other runtime loading flags (-brtl),
8956         # -berok will link without error, but may produce a broken library.
8957         allow_undefined_flag='-berok'
8958         # Determine the default libpath from the value encoded in an
8959         # empty executable.
8960         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972
8973 lt_aix_libpath_sed='
8974     /Import File Strings/,/^$/ {
8975         /^0/ {
8976             s/^0  *\(.*\)$/\1/
8977             p
8978         }
8979     }'
8980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981 # Check for a 64-bit object if we didn't find anything.
8982 if test -z "$aix_libpath"; then
8983   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 fi
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext \
8987     conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989
8990         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991         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"
8992       else
8993         if test "$host_cpu" = ia64; then
8994           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8995           allow_undefined_flag="-z nodefs"
8996           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"
8997         else
8998          # Determine the default libpath from the value encoded in an
8999          # empty executable.
9000          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002
9003 int
9004 main ()
9005 {
9006
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 if ac_fn_c_try_link "$LINENO"; then :
9012
9013 lt_aix_libpath_sed='
9014     /Import File Strings/,/^$/ {
9015         /^0/ {
9016             s/^0  *\(.*\)$/\1/
9017             p
9018         }
9019     }'
9020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021 # Check for a 64-bit object if we didn't find anything.
9022 if test -z "$aix_libpath"; then
9023   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024 fi
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext \
9027     conftest$ac_exeext conftest.$ac_ext
9028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9029
9030          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031           # Warning - without using the other run time loading flags,
9032           # -berok will link without error, but may produce a broken library.
9033           no_undefined_flag=' ${wl}-bernotok'
9034           allow_undefined_flag=' ${wl}-berok'
9035           if test "$with_gnu_ld" = yes; then
9036             # We only use this code for GNU lds that support --whole-archive.
9037             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9038           else
9039             # Exported symbols can be pulled into shared objects from archives
9040             whole_archive_flag_spec='$convenience'
9041           fi
9042           archive_cmds_need_lc=yes
9043           # This is similar to how AIX traditionally builds its shared libraries.
9044           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'
9045         fi
9046       fi
9047       ;;
9048
9049     amigaos*)
9050       case $host_cpu in
9051       powerpc)
9052             # see comment about AmigaOS4 .so support
9053             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054             archive_expsym_cmds=''
9055         ;;
9056       m68k)
9057             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)'
9058             hardcode_libdir_flag_spec='-L$libdir'
9059             hardcode_minus_L=yes
9060         ;;
9061       esac
9062       ;;
9063
9064     bsdi[45]*)
9065       export_dynamic_flag_spec=-rdynamic
9066       ;;
9067
9068     cygwin* | mingw* | pw32* | cegcc*)
9069       # When not using gcc, we currently assume that we are using
9070       # Microsoft Visual C++.
9071       # hardcode_libdir_flag_spec is actually meaningless, as there is
9072       # no search path for DLLs.
9073       hardcode_libdir_flag_spec=' '
9074       allow_undefined_flag=unsupported
9075       # Tell ltmain to make .lib files, not .a files.
9076       libext=lib
9077       # Tell ltmain to make .dll files, not .so files.
9078       shrext_cmds=".dll"
9079       # FIXME: Setting linknames here is a bad hack.
9080       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9081       # The linker will automatically build a .lib file if we build a DLL.
9082       old_archive_from_new_cmds='true'
9083       # FIXME: Should let the user specify the lib program.
9084       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085       fix_srcfile_path='`cygpath -w "$srcfile"`'
9086       enable_shared_with_static_runtimes=yes
9087       ;;
9088
9089     darwin* | rhapsody*)
9090
9091
9092   archive_cmds_need_lc=no
9093   hardcode_direct=no
9094   hardcode_automatic=yes
9095   hardcode_shlibpath_var=unsupported
9096   if test "$lt_cv_ld_force_load" = "yes"; then
9097     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\"`'
9098   else
9099     whole_archive_flag_spec=''
9100   fi
9101   link_all_deplibs=yes
9102   allow_undefined_flag="$_lt_dar_allow_undefined"
9103   case $cc_basename in
9104      ifort*) _lt_dar_can_shared=yes ;;
9105      *) _lt_dar_can_shared=$GCC ;;
9106   esac
9107   if test "$_lt_dar_can_shared" = "yes"; then
9108     output_verbose_link_cmd=func_echo_all
9109     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111     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}"
9112     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}"
9113
9114   else
9115   ld_shlibs=no
9116   fi
9117
9118       ;;
9119
9120     dgux*)
9121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122       hardcode_libdir_flag_spec='-L$libdir'
9123       hardcode_shlibpath_var=no
9124       ;;
9125
9126     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127     # support.  Future versions do this automatically, but an explicit c++rt0.o
9128     # does not break anything, and helps significantly (at the cost of a little
9129     # extra space).
9130     freebsd2.2*)
9131       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132       hardcode_libdir_flag_spec='-R$libdir'
9133       hardcode_direct=yes
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138     freebsd2.*)
9139       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140       hardcode_direct=yes
9141       hardcode_minus_L=yes
9142       hardcode_shlibpath_var=no
9143       ;;
9144
9145     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146     freebsd* | dragonfly*)
9147       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9148       hardcode_libdir_flag_spec='-R$libdir'
9149       hardcode_direct=yes
9150       hardcode_shlibpath_var=no
9151       ;;
9152
9153     hpux9*)
9154       if test "$GCC" = yes; then
9155         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9156       else
9157         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'
9158       fi
9159       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160       hardcode_libdir_separator=:
9161       hardcode_direct=yes
9162
9163       # hardcode_minus_L: Not really in the search PATH,
9164       # but as the default location of the library.
9165       hardcode_minus_L=yes
9166       export_dynamic_flag_spec='${wl}-E'
9167       ;;
9168
9169     hpux10*)
9170       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172       else
9173         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174       fi
9175       if test "$with_gnu_ld" = no; then
9176         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177         hardcode_libdir_flag_spec_ld='+b $libdir'
9178         hardcode_libdir_separator=:
9179         hardcode_direct=yes
9180         hardcode_direct_absolute=yes
9181         export_dynamic_flag_spec='${wl}-E'
9182         # hardcode_minus_L: Not really in the search PATH,
9183         # but as the default location of the library.
9184         hardcode_minus_L=yes
9185       fi
9186       ;;
9187
9188     hpux11*)
9189       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9190         case $host_cpu in
9191         hppa*64*)
9192           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9193           ;;
9194         ia64*)
9195           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9196           ;;
9197         *)
9198           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9199           ;;
9200         esac
9201       else
9202         case $host_cpu in
9203         hppa*64*)
9204           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205           ;;
9206         ia64*)
9207           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9208           ;;
9209         *)
9210
9211           # Older versions of the 11.00 compiler do not understand -b yet
9212           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9213           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9214 $as_echo_n "checking if $CC understands -b... " >&6; }
9215 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218   lt_cv_prog_compiler__b=no
9219    save_LDFLAGS="$LDFLAGS"
9220    LDFLAGS="$LDFLAGS -b"
9221    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9222    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9223      # The linker can only warn and ignore the option if not recognized
9224      # So say no if there are warnings
9225      if test -s conftest.err; then
9226        # Append any errors to the config.log.
9227        cat conftest.err 1>&5
9228        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9229        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230        if diff conftest.exp conftest.er2 >/dev/null; then
9231          lt_cv_prog_compiler__b=yes
9232        fi
9233      else
9234        lt_cv_prog_compiler__b=yes
9235      fi
9236    fi
9237    $RM -r conftest*
9238    LDFLAGS="$save_LDFLAGS"
9239
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9242 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9243
9244 if test x"$lt_cv_prog_compiler__b" = xyes; then
9245     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246 else
9247     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9248 fi
9249
9250           ;;
9251         esac
9252       fi
9253       if test "$with_gnu_ld" = no; then
9254         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255         hardcode_libdir_separator=:
9256
9257         case $host_cpu in
9258         hppa*64*|ia64*)
9259           hardcode_direct=no
9260           hardcode_shlibpath_var=no
9261           ;;
9262         *)
9263           hardcode_direct=yes
9264           hardcode_direct_absolute=yes
9265           export_dynamic_flag_spec='${wl}-E'
9266
9267           # hardcode_minus_L: Not really in the search PATH,
9268           # but as the default location of the library.
9269           hardcode_minus_L=yes
9270           ;;
9271         esac
9272       fi
9273       ;;
9274
9275     irix5* | irix6* | nonstopux*)
9276       if test "$GCC" = yes; then
9277         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9278         # Try to use the -exported_symbol ld option, if it does not
9279         # work, assume that -exports_file does not work either and
9280         # implicitly export all symbols.
9281         save_LDFLAGS="$LDFLAGS"
9282         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h.  */
9285 int foo(void) {}
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9289
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext \
9292     conftest$ac_exeext conftest.$ac_ext
9293         LDFLAGS="$save_LDFLAGS"
9294       else
9295         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'
9296         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'
9297       fi
9298       archive_cmds_need_lc='no'
9299       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300       hardcode_libdir_separator=:
9301       inherit_rpath=yes
9302       link_all_deplibs=yes
9303       ;;
9304
9305     netbsd*)
9306       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9307         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9308       else
9309         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9310       fi
9311       hardcode_libdir_flag_spec='-R$libdir'
9312       hardcode_direct=yes
9313       hardcode_shlibpath_var=no
9314       ;;
9315
9316     newsos6)
9317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318       hardcode_direct=yes
9319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320       hardcode_libdir_separator=:
9321       hardcode_shlibpath_var=no
9322       ;;
9323
9324     *nto* | *qnx*)
9325       ;;
9326
9327     openbsd*)
9328       if test -f /usr/libexec/ld.so; then
9329         hardcode_direct=yes
9330         hardcode_shlibpath_var=no
9331         hardcode_direct_absolute=yes
9332         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9333           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9334           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9335           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9336           export_dynamic_flag_spec='${wl}-E'
9337         else
9338           case $host_os in
9339            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9340              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341              hardcode_libdir_flag_spec='-R$libdir'
9342              ;;
9343            *)
9344              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346              ;;
9347           esac
9348         fi
9349       else
9350         ld_shlibs=no
9351       fi
9352       ;;
9353
9354     os2*)
9355       hardcode_libdir_flag_spec='-L$libdir'
9356       hardcode_minus_L=yes
9357       allow_undefined_flag=unsupported
9358       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'
9359       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9360       ;;
9361
9362     osf3*)
9363       if test "$GCC" = yes; then
9364         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9365         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'
9366       else
9367         allow_undefined_flag=' -expect_unresolved \*'
9368         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'
9369       fi
9370       archive_cmds_need_lc='no'
9371       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372       hardcode_libdir_separator=:
9373       ;;
9374
9375     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9376       if test "$GCC" = yes; then
9377         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9378         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9379         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380       else
9381         allow_undefined_flag=' -expect_unresolved \*'
9382         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'
9383         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~
9384         $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'
9385
9386         # Both c and cxx compiler support -rpath directly
9387         hardcode_libdir_flag_spec='-rpath $libdir'
9388       fi
9389       archive_cmds_need_lc='no'
9390       hardcode_libdir_separator=:
9391       ;;
9392
9393     solaris*)
9394       no_undefined_flag=' -z defs'
9395       if test "$GCC" = yes; then
9396         wlarc='${wl}'
9397         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9400       else
9401         case `$CC -V 2>&1` in
9402         *"Compilers 5.0"*)
9403           wlarc=''
9404           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9407           ;;
9408         *)
9409           wlarc='${wl}'
9410           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9411           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9412           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9413           ;;
9414         esac
9415       fi
9416       hardcode_libdir_flag_spec='-R$libdir'
9417       hardcode_shlibpath_var=no
9418       case $host_os in
9419       solaris2.[0-5] | solaris2.[0-5].*) ;;
9420       *)
9421         # The compiler driver will combine and reorder linker options,
9422         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9423         # but is careful enough not to reorder.
9424         # Supported since Solaris 2.6 (maybe 2.5.1?)
9425         if test "$GCC" = yes; then
9426           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9427         else
9428           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9429         fi
9430         ;;
9431       esac
9432       link_all_deplibs=yes
9433       ;;
9434
9435     sunos4*)
9436       if test "x$host_vendor" = xsequent; then
9437         # Use $CC to link under sequent, because it throws in some extra .o
9438         # files that make .init and .fini sections work.
9439         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9440       else
9441         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9442       fi
9443       hardcode_libdir_flag_spec='-L$libdir'
9444       hardcode_direct=yes
9445       hardcode_minus_L=yes
9446       hardcode_shlibpath_var=no
9447       ;;
9448
9449     sysv4)
9450       case $host_vendor in
9451         sni)
9452           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453           hardcode_direct=yes # is this really true???
9454         ;;
9455         siemens)
9456           ## LD is ld it makes a PLAMLIB
9457           ## CC just makes a GrossModule.
9458           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9459           reload_cmds='$CC -r -o $output$reload_objs'
9460           hardcode_direct=no
9461         ;;
9462         motorola)
9463           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9465         ;;
9466       esac
9467       runpath_var='LD_RUN_PATH'
9468       hardcode_shlibpath_var=no
9469       ;;
9470
9471     sysv4.3*)
9472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473       hardcode_shlibpath_var=no
9474       export_dynamic_flag_spec='-Bexport'
9475       ;;
9476
9477     sysv4*MP*)
9478       if test -d /usr/nec; then
9479         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480         hardcode_shlibpath_var=no
9481         runpath_var=LD_RUN_PATH
9482         hardcode_runpath_var=yes
9483         ld_shlibs=yes
9484       fi
9485       ;;
9486
9487     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9488       no_undefined_flag='${wl}-z,text'
9489       archive_cmds_need_lc=no
9490       hardcode_shlibpath_var=no
9491       runpath_var='LD_RUN_PATH'
9492
9493       if test "$GCC" = yes; then
9494         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496       else
9497         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499       fi
9500       ;;
9501
9502     sysv5* | sco3.2v5* | sco5v6*)
9503       # Note: We can NOT use -z defs as we might desire, because we do not
9504       # link with -lc, and that would cause any symbols used from libc to
9505       # always be unresolved, which means just about no library would
9506       # ever link correctly.  If we're not using GNU ld we use -z text
9507       # though, which does catch some bad symbols but isn't as heavy-handed
9508       # as -z defs.
9509       no_undefined_flag='${wl}-z,text'
9510       allow_undefined_flag='${wl}-z,nodefs'
9511       archive_cmds_need_lc=no
9512       hardcode_shlibpath_var=no
9513       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9514       hardcode_libdir_separator=':'
9515       link_all_deplibs=yes
9516       export_dynamic_flag_spec='${wl}-Bexport'
9517       runpath_var='LD_RUN_PATH'
9518
9519       if test "$GCC" = yes; then
9520         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522       else
9523         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525       fi
9526       ;;
9527
9528     uts4*)
9529       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530       hardcode_libdir_flag_spec='-L$libdir'
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     *)
9535       ld_shlibs=no
9536       ;;
9537     esac
9538
9539     if test x$host_vendor = xsni; then
9540       case $host in
9541       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9542         export_dynamic_flag_spec='${wl}-Blargedynsym'
9543         ;;
9544       esac
9545     fi
9546   fi
9547
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9549 $as_echo "$ld_shlibs" >&6; }
9550 test "$ld_shlibs" = no && can_build_shared=no
9551
9552 with_gnu_ld=$with_gnu_ld
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 #
9569 # Do we need to explicitly link libc?
9570 #
9571 case "x$archive_cmds_need_lc" in
9572 x|xyes)
9573   # Assume -lc should be added
9574   archive_cmds_need_lc=yes
9575
9576   if test "$enable_shared" = yes && test "$GCC" = yes; then
9577     case $archive_cmds in
9578     *'~'*)
9579       # FIXME: we may have to deal with multi-command sequences.
9580       ;;
9581     '$CC '*)
9582       # Test whether the compiler implicitly links with -lc since on some
9583       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9584       # to ld, don't add -lc before -lgcc.
9585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9586 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9587 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   $RM conftest*
9591         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592
9593         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594   (eval $ac_compile) 2>&5
9595   ac_status=$?
9596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597   test $ac_status = 0; } 2>conftest.err; then
9598           soname=conftest
9599           lib=conftest
9600           libobjs=conftest.$ac_objext
9601           deplibs=
9602           wl=$lt_prog_compiler_wl
9603           pic_flag=$lt_prog_compiler_pic
9604           compiler_flags=-v
9605           linker_flags=-v
9606           verstring=
9607           output_objdir=.
9608           libname=conftest
9609           lt_save_allow_undefined_flag=$allow_undefined_flag
9610           allow_undefined_flag=
9611           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9612   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9613   ac_status=$?
9614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615   test $ac_status = 0; }
9616           then
9617             lt_cv_archive_cmds_need_lc=no
9618           else
9619             lt_cv_archive_cmds_need_lc=yes
9620           fi
9621           allow_undefined_flag=$lt_save_allow_undefined_flag
9622         else
9623           cat conftest.err 1>&5
9624         fi
9625         $RM conftest*
9626
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9629 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9630       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9631       ;;
9632     esac
9633   fi
9634   ;;
9635 esac
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9795
9796 if test "$GCC" = yes; then
9797   case $host_os in
9798     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9799     *) lt_awk_arg="/^libraries:/" ;;
9800   esac
9801   case $host_os in
9802     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9803     *) lt_sed_strip_eq="s,=/,/,g" ;;
9804   esac
9805   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9806   case $lt_search_path_spec in
9807   *\;*)
9808     # if the path contains ";" then we assume it to be the separator
9809     # otherwise default to the standard path separator (i.e. ":") - it is
9810     # assumed that no part of a normal pathname contains ";" but that should
9811     # okay in the real world where ";" in dirpaths is itself problematic.
9812     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9813     ;;
9814   *)
9815     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9816     ;;
9817   esac
9818   # Ok, now we have the path, separated by spaces, we can step through it
9819   # and add multilib dir if necessary.
9820   lt_tmp_lt_search_path_spec=
9821   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9822   for lt_sys_path in $lt_search_path_spec; do
9823     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9824       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9825     else
9826       test -d "$lt_sys_path" && \
9827         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9828     fi
9829   done
9830   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9831 BEGIN {RS=" "; FS="/|\n";} {
9832   lt_foo="";
9833   lt_count=0;
9834   for (lt_i = NF; lt_i > 0; lt_i--) {
9835     if ($lt_i != "" && $lt_i != ".") {
9836       if ($lt_i == "..") {
9837         lt_count++;
9838       } else {
9839         if (lt_count == 0) {
9840           lt_foo="/" $lt_i lt_foo;
9841         } else {
9842           lt_count--;
9843         }
9844       }
9845     }
9846   }
9847   if (lt_foo != "") { lt_freq[lt_foo]++; }
9848   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9849 }'`
9850   # AWK program above erroneously prepends '/' to C:/dos/paths
9851   # for these hosts.
9852   case $host_os in
9853     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9854       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9855   esac
9856   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9857 else
9858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9859 fi
9860 library_names_spec=
9861 libname_spec='lib$name'
9862 soname_spec=
9863 shrext_cmds=".so"
9864 postinstall_cmds=
9865 postuninstall_cmds=
9866 finish_cmds=
9867 finish_eval=
9868 shlibpath_var=
9869 shlibpath_overrides_runpath=unknown
9870 version_type=none
9871 dynamic_linker="$host_os ld.so"
9872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9873 need_lib_prefix=unknown
9874 hardcode_into_libs=no
9875
9876 # when you set need_version to no, make sure it does not cause -set_version
9877 # flags to be left without arguments
9878 need_version=unknown
9879
9880 case $host_os in
9881 aix3*)
9882   version_type=linux
9883   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9884   shlibpath_var=LIBPATH
9885
9886   # AIX 3 has no versioning support, so we append a major version to the name.
9887   soname_spec='${libname}${release}${shared_ext}$major'
9888   ;;
9889
9890 aix[4-9]*)
9891   version_type=linux
9892   need_lib_prefix=no
9893   need_version=no
9894   hardcode_into_libs=yes
9895   if test "$host_cpu" = ia64; then
9896     # AIX 5 supports IA64
9897     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9898     shlibpath_var=LD_LIBRARY_PATH
9899   else
9900     # With GCC up to 2.95.x, collect2 would create an import file
9901     # for dependence libraries.  The import file would start with
9902     # the line `#! .'.  This would cause the generated library to
9903     # depend on `.', always an invalid library.  This was fixed in
9904     # development snapshots of GCC prior to 3.0.
9905     case $host_os in
9906       aix4 | aix4.[01] | aix4.[01].*)
9907       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9908            echo ' yes '
9909            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9910         :
9911       else
9912         can_build_shared=no
9913       fi
9914       ;;
9915     esac
9916     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9917     # soname into executable. Probably we can add versioning support to
9918     # collect2, so additional links can be useful in future.
9919     if test "$aix_use_runtimelinking" = yes; then
9920       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9921       # instead of lib<name>.a to let people know that these are not
9922       # typical AIX shared libraries.
9923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924     else
9925       # We preserve .a as extension for shared libraries through AIX4.2
9926       # and later when we are not doing run time linking.
9927       library_names_spec='${libname}${release}.a $libname.a'
9928       soname_spec='${libname}${release}${shared_ext}$major'
9929     fi
9930     shlibpath_var=LIBPATH
9931   fi
9932   ;;
9933
9934 amigaos*)
9935   case $host_cpu in
9936   powerpc)
9937     # Since July 2007 AmigaOS4 officially supports .so libraries.
9938     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940     ;;
9941   m68k)
9942     library_names_spec='$libname.ixlibrary $libname.a'
9943     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9944     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'
9945     ;;
9946   esac
9947   ;;
9948
9949 beos*)
9950   library_names_spec='${libname}${shared_ext}'
9951   dynamic_linker="$host_os ld.so"
9952   shlibpath_var=LIBRARY_PATH
9953   ;;
9954
9955 bsdi[45]*)
9956   version_type=linux
9957   need_version=no
9958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959   soname_spec='${libname}${release}${shared_ext}$major'
9960   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9963   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9964   # the default ld.so.conf also contains /usr/contrib/lib and
9965   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9966   # libtool to hard-code these into programs
9967   ;;
9968
9969 cygwin* | mingw* | pw32* | cegcc*)
9970   version_type=windows
9971   shrext_cmds=".dll"
9972   need_version=no
9973   need_lib_prefix=no
9974
9975   case $GCC,$host_os in
9976   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9977     library_names_spec='$libname.dll.a'
9978     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9979     postinstall_cmds='base_file=`basename \${file}`~
9980       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9981       dldir=$destdir/`dirname \$dlpath`~
9982       test -d \$dldir || mkdir -p \$dldir~
9983       $install_prog $dir/$dlname \$dldir/$dlname~
9984       chmod a+x \$dldir/$dlname~
9985       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9986         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9987       fi'
9988     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989       dlpath=$dir/\$dldll~
9990        $RM \$dlpath'
9991     shlibpath_overrides_runpath=yes
9992
9993     case $host_os in
9994     cygwin*)
9995       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997
9998       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9999       ;;
10000     mingw* | cegcc*)
10001       # MinGW DLLs use traditional 'lib' prefix
10002       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003       ;;
10004     pw32*)
10005       # pw32 DLLs use 'pw' prefix rather than 'lib'
10006       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10007       ;;
10008     esac
10009     ;;
10010
10011   *)
10012     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10013     ;;
10014   esac
10015   dynamic_linker='Win32 ld.exe'
10016   # FIXME: first we should search . and the directory the executable is in
10017   shlibpath_var=PATH
10018   ;;
10019
10020 darwin* | rhapsody*)
10021   dynamic_linker="$host_os dyld"
10022   version_type=darwin
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10026   soname_spec='${libname}${release}${major}$shared_ext'
10027   shlibpath_overrides_runpath=yes
10028   shlibpath_var=DYLD_LIBRARY_PATH
10029   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10030
10031   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033   ;;
10034
10035 dgux*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   ;;
10043
10044 freebsd* | dragonfly*)
10045   # DragonFly does not have aout.  When/if they implement a new
10046   # versioning mechanism, adjust this.
10047   if test -x /usr/bin/objformat; then
10048     objformat=`/usr/bin/objformat`
10049   else
10050     case $host_os in
10051     freebsd[23].*) objformat=aout ;;
10052     *) objformat=elf ;;
10053     esac
10054   fi
10055   version_type=freebsd-$objformat
10056   case $version_type in
10057     freebsd-elf*)
10058       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10059       need_version=no
10060       need_lib_prefix=no
10061       ;;
10062     freebsd-*)
10063       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10064       need_version=yes
10065       ;;
10066   esac
10067   shlibpath_var=LD_LIBRARY_PATH
10068   case $host_os in
10069   freebsd2.*)
10070     shlibpath_overrides_runpath=yes
10071     ;;
10072   freebsd3.[01]* | freebsdelf3.[01]*)
10073     shlibpath_overrides_runpath=yes
10074     hardcode_into_libs=yes
10075     ;;
10076   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10077   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10078     shlibpath_overrides_runpath=no
10079     hardcode_into_libs=yes
10080     ;;
10081   *) # from 4.6 on, and DragonFly
10082     shlibpath_overrides_runpath=yes
10083     hardcode_into_libs=yes
10084     ;;
10085   esac
10086   ;;
10087
10088 gnu*)
10089   version_type=linux
10090   need_lib_prefix=no
10091   need_version=no
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10093   soname_spec='${libname}${release}${shared_ext}$major'
10094   shlibpath_var=LD_LIBRARY_PATH
10095   hardcode_into_libs=yes
10096   ;;
10097
10098 haiku*)
10099   version_type=linux
10100   need_lib_prefix=no
10101   need_version=no
10102   dynamic_linker="$host_os runtime_loader"
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   shlibpath_var=LIBRARY_PATH
10106   shlibpath_overrides_runpath=yes
10107   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10108   hardcode_into_libs=yes
10109   ;;
10110
10111 hpux9* | hpux10* | hpux11*)
10112   # Give a soname corresponding to the major version so that dld.sl refuses to
10113   # link against other versions.
10114   version_type=sunos
10115   need_lib_prefix=no
10116   need_version=no
10117   case $host_cpu in
10118   ia64*)
10119     shrext_cmds='.so'
10120     hardcode_into_libs=yes
10121     dynamic_linker="$host_os dld.so"
10122     shlibpath_var=LD_LIBRARY_PATH
10123     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125     soname_spec='${libname}${release}${shared_ext}$major'
10126     if test "X$HPUX_IA64_MODE" = X32; then
10127       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10128     else
10129       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10130     fi
10131     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10132     ;;
10133   hppa*64*)
10134     shrext_cmds='.sl'
10135     hardcode_into_libs=yes
10136     dynamic_linker="$host_os dld.sl"
10137     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10138     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140     soname_spec='${libname}${release}${shared_ext}$major'
10141     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10142     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10143     ;;
10144   *)
10145     shrext_cmds='.sl'
10146     dynamic_linker="$host_os dld.sl"
10147     shlibpath_var=SHLIB_PATH
10148     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150     soname_spec='${libname}${release}${shared_ext}$major'
10151     ;;
10152   esac
10153   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10154   postinstall_cmds='chmod 555 $lib'
10155   # or fails outright, so override atomically:
10156   install_override_mode=555
10157   ;;
10158
10159 interix[3-9]*)
10160   version_type=linux
10161   need_lib_prefix=no
10162   need_version=no
10163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164   soname_spec='${libname}${release}${shared_ext}$major'
10165   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10166   shlibpath_var=LD_LIBRARY_PATH
10167   shlibpath_overrides_runpath=no
10168   hardcode_into_libs=yes
10169   ;;
10170
10171 irix5* | irix6* | nonstopux*)
10172   case $host_os in
10173     nonstopux*) version_type=nonstopux ;;
10174     *)
10175         if test "$lt_cv_prog_gnu_ld" = yes; then
10176                 version_type=linux
10177         else
10178                 version_type=irix
10179         fi ;;
10180   esac
10181   need_lib_prefix=no
10182   need_version=no
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10185   case $host_os in
10186   irix5* | nonstopux*)
10187     libsuff= shlibsuff=
10188     ;;
10189   *)
10190     case $LD in # libtool.m4 will add one of these switches to LD
10191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10192       libsuff= shlibsuff= libmagic=32-bit;;
10193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10194       libsuff=32 shlibsuff=N32 libmagic=N32;;
10195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10197     *) libsuff= shlibsuff= libmagic=never-match;;
10198     esac
10199     ;;
10200   esac
10201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10202   shlibpath_overrides_runpath=no
10203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10205   hardcode_into_libs=yes
10206   ;;
10207
10208 # No shared lib support for Linux oldld, aout, or coff.
10209 linux*oldld* | linux*aout* | linux*coff*)
10210   dynamic_linker=no
10211   ;;
10212
10213 # This must be Linux ELF.
10214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10215   version_type=linux
10216   need_lib_prefix=no
10217   need_version=no
10218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219   soname_spec='${libname}${release}${shared_ext}$major'
10220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   shlibpath_overrides_runpath=no
10223
10224   # Some binutils ld are patched to set DT_RUNPATH
10225   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   lt_cv_shlibpath_overrides_runpath=no
10229     save_LDFLAGS=$LDFLAGS
10230     save_libdir=$libdir
10231     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10232          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h.  */
10235
10236 int
10237 main ()
10238 {
10239
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10246   lt_cv_shlibpath_overrides_runpath=yes
10247 fi
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext \
10250     conftest$ac_exeext conftest.$ac_ext
10251     LDFLAGS=$save_LDFLAGS
10252     libdir=$save_libdir
10253
10254 fi
10255
10256   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10257
10258   # This implies no fast_install, which is unacceptable.
10259   # Some rework will be needed to allow for fast_install
10260   # before this can be enabled.
10261   hardcode_into_libs=yes
10262
10263   # Append ld.so.conf contents to the search path
10264   if test -f /etc/ld.so.conf; then
10265     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' ' '`
10266     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10267   fi
10268
10269   # We used to test for /lib/ld.so.1 and disable shared libraries on
10270   # powerpc, because MkLinux only supported shared libraries with the
10271   # GNU dynamic linker.  Since this was broken with cross compilers,
10272   # most powerpc-linux boxes support dynamic linking these days and
10273   # people can always --disable-shared, the test was removed, and we
10274   # assume the GNU/Linux dynamic linker is in use.
10275   dynamic_linker='GNU/Linux ld.so'
10276   ;;
10277
10278 netbsd*)
10279   version_type=sunos
10280   need_lib_prefix=no
10281   need_version=no
10282   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285     dynamic_linker='NetBSD (a.out) ld.so'
10286   else
10287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288     soname_spec='${libname}${release}${shared_ext}$major'
10289     dynamic_linker='NetBSD ld.elf_so'
10290   fi
10291   shlibpath_var=LD_LIBRARY_PATH
10292   shlibpath_overrides_runpath=yes
10293   hardcode_into_libs=yes
10294   ;;
10295
10296 newsos6)
10297   version_type=linux
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299   shlibpath_var=LD_LIBRARY_PATH
10300   shlibpath_overrides_runpath=yes
10301   ;;
10302
10303 *nto* | *qnx*)
10304   version_type=qnx
10305   need_lib_prefix=no
10306   need_version=no
10307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   shlibpath_var=LD_LIBRARY_PATH
10310   shlibpath_overrides_runpath=no
10311   hardcode_into_libs=yes
10312   dynamic_linker='ldqnx.so'
10313   ;;
10314
10315 openbsd*)
10316   version_type=sunos
10317   sys_lib_dlsearch_path_spec="/usr/lib"
10318   need_lib_prefix=no
10319   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10320   case $host_os in
10321     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10322     *)                          need_version=no  ;;
10323   esac
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326   shlibpath_var=LD_LIBRARY_PATH
10327   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10328     case $host_os in
10329       openbsd2.[89] | openbsd2.[89].*)
10330         shlibpath_overrides_runpath=no
10331         ;;
10332       *)
10333         shlibpath_overrides_runpath=yes
10334         ;;
10335       esac
10336   else
10337     shlibpath_overrides_runpath=yes
10338   fi
10339   ;;
10340
10341 os2*)
10342   libname_spec='$name'
10343   shrext_cmds=".dll"
10344   need_lib_prefix=no
10345   library_names_spec='$libname${shared_ext} $libname.a'
10346   dynamic_linker='OS/2 ld.exe'
10347   shlibpath_var=LIBPATH
10348   ;;
10349
10350 osf3* | osf4* | osf5*)
10351   version_type=osf
10352   need_lib_prefix=no
10353   need_version=no
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359   ;;
10360
10361 rdos*)
10362   dynamic_linker=no
10363   ;;
10364
10365 solaris*)
10366   version_type=linux
10367   need_lib_prefix=no
10368   need_version=no
10369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370   soname_spec='${libname}${release}${shared_ext}$major'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   shlibpath_overrides_runpath=yes
10373   hardcode_into_libs=yes
10374   # ldd complains unless libraries are executable
10375   postinstall_cmds='chmod +x $lib'
10376   ;;
10377
10378 sunos4*)
10379   version_type=sunos
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=yes
10384   if test "$with_gnu_ld" = yes; then
10385     need_lib_prefix=no
10386   fi
10387   need_version=yes
10388   ;;
10389
10390 sysv4 | sysv4.3*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   case $host_vendor in
10396     sni)
10397       shlibpath_overrides_runpath=no
10398       need_lib_prefix=no
10399       runpath_var=LD_RUN_PATH
10400       ;;
10401     siemens)
10402       need_lib_prefix=no
10403       ;;
10404     motorola)
10405       need_lib_prefix=no
10406       need_version=no
10407       shlibpath_overrides_runpath=no
10408       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409       ;;
10410   esac
10411   ;;
10412
10413 sysv4*MP*)
10414   if test -d /usr/nec ;then
10415     version_type=linux
10416     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417     soname_spec='$libname${shared_ext}.$major'
10418     shlibpath_var=LD_LIBRARY_PATH
10419   fi
10420   ;;
10421
10422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10423   version_type=freebsd-elf
10424   need_lib_prefix=no
10425   need_version=no
10426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427   soname_spec='${libname}${release}${shared_ext}$major'
10428   shlibpath_var=LD_LIBRARY_PATH
10429   shlibpath_overrides_runpath=yes
10430   hardcode_into_libs=yes
10431   if test "$with_gnu_ld" = yes; then
10432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10433   else
10434     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435     case $host_os in
10436       sco3.2v5*)
10437         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10438         ;;
10439     esac
10440   fi
10441   sys_lib_dlsearch_path_spec='/usr/lib'
10442   ;;
10443
10444 tpf*)
10445   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10446   version_type=linux
10447   need_lib_prefix=no
10448   need_version=no
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=no
10452   hardcode_into_libs=yes
10453   ;;
10454
10455 uts4*)
10456   version_type=linux
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   ;;
10461
10462 *)
10463   dynamic_linker=no
10464   ;;
10465 esac
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10469
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 fi
10474
10475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10476   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10477 fi
10478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10479   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10480 fi
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
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10575 hardcode_action=
10576 if test -n "$hardcode_libdir_flag_spec" ||
10577    test -n "$runpath_var" ||
10578    test "X$hardcode_automatic" = "Xyes" ; then
10579
10580   # We can hardcode non-existent directories.
10581   if test "$hardcode_direct" != no &&
10582      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583      # have to relink, otherwise we might link with an installed library
10584      # when we should be linking with a yet-to-be-installed one
10585      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586      test "$hardcode_minus_L" != no; then
10587     # Linking always hardcodes the temporary library directory.
10588     hardcode_action=relink
10589   else
10590     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591     hardcode_action=immediate
10592   fi
10593 else
10594   # We cannot hardcode anything, or else we can only hardcode existing
10595   # directories.
10596   hardcode_action=unsupported
10597 fi
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10599 $as_echo "$hardcode_action" >&6; }
10600
10601 if test "$hardcode_action" = relink ||
10602    test "$inherit_rpath" = yes; then
10603   # Fast installation is not supported
10604   enable_fast_install=no
10605 elif test "$shlibpath_overrides_runpath" = yes ||
10606      test "$enable_shared" = no; then
10607   # Fast installation is not necessary
10608   enable_fast_install=needless
10609 fi
10610
10611
10612
10613
10614
10615
10616   if test "x$enable_dlopen" != xyes; then
10617   enable_dlopen=unknown
10618   enable_dlopen_self=unknown
10619   enable_dlopen_self_static=unknown
10620 else
10621   lt_cv_dlopen=no
10622   lt_cv_dlopen_libs=
10623
10624   case $host_os in
10625   beos*)
10626     lt_cv_dlopen="load_add_on"
10627     lt_cv_dlopen_libs=
10628     lt_cv_dlopen_self=yes
10629     ;;
10630
10631   mingw* | pw32* | cegcc*)
10632     lt_cv_dlopen="LoadLibrary"
10633     lt_cv_dlopen_libs=
10634     ;;
10635
10636   cygwin*)
10637     lt_cv_dlopen="dlopen"
10638     lt_cv_dlopen_libs=
10639     ;;
10640
10641   darwin*)
10642   # if libdl is installed we need to link against it
10643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldl  $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char dlopen ();
10660 int
10661 main ()
10662 {
10663 return dlopen ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669   ac_cv_lib_dl_dlopen=yes
10670 else
10671   ac_cv_lib_dl_dlopen=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 else
10682
10683     lt_cv_dlopen="dyld"
10684     lt_cv_dlopen_libs=
10685     lt_cv_dlopen_self=yes
10686
10687 fi
10688
10689     ;;
10690
10691   *)
10692     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10693 if test "x$ac_cv_func_shl_load" = x""yes; then :
10694   lt_cv_dlopen="shl_load"
10695 else
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-ldld  $LIBS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705
10706 /* Override any GCC internal prototype to avoid an error.
10707    Use char because int might match the return type of a GCC
10708    builtin and then its argument prototype would still apply.  */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char shl_load ();
10713 int
10714 main ()
10715 {
10716 return shl_load ();
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722   ac_cv_lib_dld_shl_load=yes
10723 else
10724   ac_cv_lib_dld_shl_load=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727     conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10732 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10733   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10734 else
10735   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10736 if test "x$ac_cv_func_dlopen" = x""yes; then :
10737   lt_cv_dlopen="dlopen"
10738 else
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldl  $LIBS"
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h.  */
10748
10749 /* Override any GCC internal prototype to avoid an error.
10750    Use char because int might match the return type of a GCC
10751    builtin and then its argument prototype would still apply.  */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char dlopen ();
10756 int
10757 main ()
10758 {
10759 return dlopen ();
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765   ac_cv_lib_dl_dlopen=yes
10766 else
10767   ac_cv_lib_dl_dlopen=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext \
10770     conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10775 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10776   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10777 else
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10780 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-lsvld  $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h.  */
10787
10788 /* Override any GCC internal prototype to avoid an error.
10789    Use char because int might match the return type of a GCC
10790    builtin and then its argument prototype would still apply.  */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char dlopen ();
10795 int
10796 main ()
10797 {
10798 return dlopen ();
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804   ac_cv_lib_svld_dlopen=yes
10805 else
10806   ac_cv_lib_svld_dlopen=no
10807 fi
10808 rm -f core conftest.err conftest.$ac_objext \
10809     conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10814 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10815   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10816 else
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldld  $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dld_link ();
10834 int
10835 main ()
10836 {
10837 return dld_link ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843   ac_cv_lib_dld_dld_link=yes
10844 else
10845   ac_cv_lib_dld_dld_link=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848     conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10853 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10854   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10855 fi
10856
10857
10858 fi
10859
10860
10861 fi
10862
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870 fi
10871
10872     ;;
10873   esac
10874
10875   if test "x$lt_cv_dlopen" != xno; then
10876     enable_dlopen=yes
10877   else
10878     enable_dlopen=no
10879   fi
10880
10881   case $lt_cv_dlopen in
10882   dlopen)
10883     save_CPPFLAGS="$CPPFLAGS"
10884     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10885
10886     save_LDFLAGS="$LDFLAGS"
10887     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10888
10889     save_LIBS="$LIBS"
10890     LIBS="$lt_cv_dlopen_libs $LIBS"
10891
10892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10894 if test "${lt_cv_dlopen_self+set}" = set; then :
10895   $as_echo_n "(cached) " >&6
10896 else
10897           if test "$cross_compiling" = yes; then :
10898   lt_cv_dlopen_self=cross
10899 else
10900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901   lt_status=$lt_dlunknown
10902   cat > conftest.$ac_ext <<_LT_EOF
10903 #line 10903 "configure"
10904 #include "confdefs.h"
10905
10906 #if HAVE_DLFCN_H
10907 #include <dlfcn.h>
10908 #endif
10909
10910 #include <stdio.h>
10911
10912 #ifdef RTLD_GLOBAL
10913 #  define LT_DLGLOBAL           RTLD_GLOBAL
10914 #else
10915 #  ifdef DL_GLOBAL
10916 #    define LT_DLGLOBAL         DL_GLOBAL
10917 #  else
10918 #    define LT_DLGLOBAL         0
10919 #  endif
10920 #endif
10921
10922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923    find out it does not work in some platform. */
10924 #ifndef LT_DLLAZY_OR_NOW
10925 #  ifdef RTLD_LAZY
10926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10927 #  else
10928 #    ifdef DL_LAZY
10929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10930 #    else
10931 #      ifdef RTLD_NOW
10932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10933 #      else
10934 #        ifdef DL_NOW
10935 #          define LT_DLLAZY_OR_NOW      DL_NOW
10936 #        else
10937 #          define LT_DLLAZY_OR_NOW      0
10938 #        endif
10939 #      endif
10940 #    endif
10941 #  endif
10942 #endif
10943
10944 /* When -fvisbility=hidden is used, assume the code has been annotated
10945    correspondingly for the symbols needed.  */
10946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10947 void fnord () __attribute__((visibility("default")));
10948 #endif
10949
10950 void fnord () { int i=42; }
10951 int main ()
10952 {
10953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954   int status = $lt_dlunknown;
10955
10956   if (self)
10957     {
10958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10959       else
10960         {
10961           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10962           else puts (dlerror ());
10963         }
10964       /* dlclose (self); */
10965     }
10966   else
10967     puts (dlerror ());
10968
10969   return status;
10970 }
10971 _LT_EOF
10972   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10973   (eval $ac_link) 2>&5
10974   ac_status=$?
10975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10977     (./conftest; exit; ) >&5 2>/dev/null
10978     lt_status=$?
10979     case x$lt_status in
10980       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983     esac
10984   else :
10985     # compilation failed
10986     lt_cv_dlopen_self=no
10987   fi
10988 fi
10989 rm -fr conftest*
10990
10991
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10994 $as_echo "$lt_cv_dlopen_self" >&6; }
10995
10996     if test "x$lt_cv_dlopen_self" = xyes; then
10997       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11000 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003           if test "$cross_compiling" = yes; then :
11004   lt_cv_dlopen_self_static=cross
11005 else
11006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007   lt_status=$lt_dlunknown
11008   cat > conftest.$ac_ext <<_LT_EOF
11009 #line 11009 "configure"
11010 #include "confdefs.h"
11011
11012 #if HAVE_DLFCN_H
11013 #include <dlfcn.h>
11014 #endif
11015
11016 #include <stdio.h>
11017
11018 #ifdef RTLD_GLOBAL
11019 #  define LT_DLGLOBAL           RTLD_GLOBAL
11020 #else
11021 #  ifdef DL_GLOBAL
11022 #    define LT_DLGLOBAL         DL_GLOBAL
11023 #  else
11024 #    define LT_DLGLOBAL         0
11025 #  endif
11026 #endif
11027
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029    find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11031 #  ifdef RTLD_LAZY
11032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11033 #  else
11034 #    ifdef DL_LAZY
11035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11036 #    else
11037 #      ifdef RTLD_NOW
11038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11039 #      else
11040 #        ifdef DL_NOW
11041 #          define LT_DLLAZY_OR_NOW      DL_NOW
11042 #        else
11043 #          define LT_DLLAZY_OR_NOW      0
11044 #        endif
11045 #      endif
11046 #    endif
11047 #  endif
11048 #endif
11049
11050 /* When -fvisbility=hidden is used, assume the code has been annotated
11051    correspondingly for the symbols needed.  */
11052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053 void fnord () __attribute__((visibility("default")));
11054 #endif
11055
11056 void fnord () { int i=42; }
11057 int main ()
11058 {
11059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060   int status = $lt_dlunknown;
11061
11062   if (self)
11063     {
11064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11065       else
11066         {
11067           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11068           else puts (dlerror ());
11069         }
11070       /* dlclose (self); */
11071     }
11072   else
11073     puts (dlerror ());
11074
11075   return status;
11076 }
11077 _LT_EOF
11078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11079   (eval $ac_link) 2>&5
11080   ac_status=$?
11081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11083     (./conftest; exit; ) >&5 2>/dev/null
11084     lt_status=$?
11085     case x$lt_status in
11086       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11087       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11088       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11089     esac
11090   else :
11091     # compilation failed
11092     lt_cv_dlopen_self_static=no
11093   fi
11094 fi
11095 rm -fr conftest*
11096
11097
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11101     fi
11102
11103     CPPFLAGS="$save_CPPFLAGS"
11104     LDFLAGS="$save_LDFLAGS"
11105     LIBS="$save_LIBS"
11106     ;;
11107   esac
11108
11109   case $lt_cv_dlopen_self in
11110   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11111   *) enable_dlopen_self=unknown ;;
11112   esac
11113
11114   case $lt_cv_dlopen_self_static in
11115   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11116   *) enable_dlopen_self_static=unknown ;;
11117   esac
11118 fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 striplib=
11137 old_striplib=
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11141   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11142   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 else
11146 # FIXME - insert some real tests, host_os isn't really good enough
11147   case $host_os in
11148   darwin*)
11149     if test -n "$STRIP" ; then
11150       striplib="$STRIP -x"
11151       old_striplib="$STRIP -S"
11152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11154     else
11155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157     fi
11158     ;;
11159   *)
11160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162     ;;
11163   esac
11164 fi
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177   # Report which library types will actually be built
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11181 $as_echo "$can_build_shared" >&6; }
11182
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11184 $as_echo_n "checking whether to build shared libraries... " >&6; }
11185   test "$can_build_shared" = "no" && enable_shared=no
11186
11187   # On AIX, shared libraries and static libraries use the same namespace, and
11188   # are all built from PIC.
11189   case $host_os in
11190   aix3*)
11191     test "$enable_shared" = yes && enable_static=no
11192     if test -n "$RANLIB"; then
11193       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11194       postinstall_cmds='$RANLIB $lib'
11195     fi
11196     ;;
11197
11198   aix[4-9]*)
11199     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11200       test "$enable_shared" = yes && enable_static=no
11201     fi
11202     ;;
11203   esac
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11205 $as_echo "$enable_shared" >&6; }
11206
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11208 $as_echo_n "checking whether to build static libraries... " >&6; }
11209   # Make sure either enable_shared or enable_static is yes.
11210   test "$enable_shared" = yes || enable_static=yes
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11212 $as_echo "$enable_static" >&6; }
11213
11214
11215
11216
11217 fi
11218 ac_ext=c
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11223
11224 CC="$lt_save_CC"
11225
11226       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11227     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11228     (test "X$CXX" != "Xg++"))) ; then
11229   ac_ext=cpp
11230 ac_cpp='$CXXCPP $CPPFLAGS'
11231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11235 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11236 if test -z "$CXXCPP"; then
11237   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11238   $as_echo_n "(cached) " >&6
11239 else
11240       # Double quotes because CXXCPP needs to be expanded
11241     for CXXCPP in "$CXX -E" "/lib/cpp"
11242     do
11243       ac_preproc_ok=false
11244 for ac_cxx_preproc_warn_flag in '' yes
11245 do
11246   # Use a header file that comes with gcc, so configuring glibc
11247   # with a fresh cross-compiler works.
11248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11249   # <limits.h> exists even on freestanding compilers.
11250   # On the NeXT, cc -E runs the code through the compiler's parser,
11251   # not just through cpp. "Syntax error" is here to catch this case.
11252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h.  */
11254 #ifdef __STDC__
11255 # include <limits.h>
11256 #else
11257 # include <assert.h>
11258 #endif
11259                      Syntax error
11260 _ACEOF
11261 if ac_fn_cxx_try_cpp "$LINENO"; then :
11262
11263 else
11264   # Broken: fails on valid input.
11265 continue
11266 fi
11267 rm -f conftest.err conftest.$ac_ext
11268
11269   # OK, works on sane cases.  Now check whether nonexistent headers
11270   # can be detected and how.
11271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h.  */
11273 #include <ac_nonexistent.h>
11274 _ACEOF
11275 if ac_fn_cxx_try_cpp "$LINENO"; then :
11276   # Broken: success on invalid input.
11277 continue
11278 else
11279   # Passes both tests.
11280 ac_preproc_ok=:
11281 break
11282 fi
11283 rm -f conftest.err conftest.$ac_ext
11284
11285 done
11286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11287 rm -f conftest.err conftest.$ac_ext
11288 if $ac_preproc_ok; then :
11289   break
11290 fi
11291
11292     done
11293     ac_cv_prog_CXXCPP=$CXXCPP
11294
11295 fi
11296   CXXCPP=$ac_cv_prog_CXXCPP
11297 else
11298   ac_cv_prog_CXXCPP=$CXXCPP
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11301 $as_echo "$CXXCPP" >&6; }
11302 ac_preproc_ok=false
11303 for ac_cxx_preproc_warn_flag in '' yes
11304 do
11305   # Use a header file that comes with gcc, so configuring glibc
11306   # with a fresh cross-compiler works.
11307   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308   # <limits.h> exists even on freestanding compilers.
11309   # On the NeXT, cc -E runs the code through the compiler's parser,
11310   # not just through cpp. "Syntax error" is here to catch this case.
11311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313 #ifdef __STDC__
11314 # include <limits.h>
11315 #else
11316 # include <assert.h>
11317 #endif
11318                      Syntax error
11319 _ACEOF
11320 if ac_fn_cxx_try_cpp "$LINENO"; then :
11321
11322 else
11323   # Broken: fails on valid input.
11324 continue
11325 fi
11326 rm -f conftest.err conftest.$ac_ext
11327
11328   # OK, works on sane cases.  Now check whether nonexistent headers
11329   # can be detected and how.
11330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332 #include <ac_nonexistent.h>
11333 _ACEOF
11334 if ac_fn_cxx_try_cpp "$LINENO"; then :
11335   # Broken: success on invalid input.
11336 continue
11337 else
11338   # Passes both tests.
11339 ac_preproc_ok=:
11340 break
11341 fi
11342 rm -f conftest.err conftest.$ac_ext
11343
11344 done
11345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11346 rm -f conftest.err conftest.$ac_ext
11347 if $ac_preproc_ok; then :
11348
11349 else
11350   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11352 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11353 See \`config.log' for more details." "$LINENO" 5; }
11354 fi
11355
11356 ac_ext=c
11357 ac_cpp='$CPP $CPPFLAGS'
11358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11361
11362 else
11363   _lt_caught_CXX_error=yes
11364 fi
11365
11366 ac_ext=cpp
11367 ac_cpp='$CXXCPP $CPPFLAGS'
11368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11371
11372 archive_cmds_need_lc_CXX=no
11373 allow_undefined_flag_CXX=
11374 always_export_symbols_CXX=no
11375 archive_expsym_cmds_CXX=
11376 compiler_needs_object_CXX=no
11377 export_dynamic_flag_spec_CXX=
11378 hardcode_direct_CXX=no
11379 hardcode_direct_absolute_CXX=no
11380 hardcode_libdir_flag_spec_CXX=
11381 hardcode_libdir_flag_spec_ld_CXX=
11382 hardcode_libdir_separator_CXX=
11383 hardcode_minus_L_CXX=no
11384 hardcode_shlibpath_var_CXX=unsupported
11385 hardcode_automatic_CXX=no
11386 inherit_rpath_CXX=no
11387 module_cmds_CXX=
11388 module_expsym_cmds_CXX=
11389 link_all_deplibs_CXX=unknown
11390 old_archive_cmds_CXX=$old_archive_cmds
11391 reload_flag_CXX=$reload_flag
11392 reload_cmds_CXX=$reload_cmds
11393 no_undefined_flag_CXX=
11394 whole_archive_flag_spec_CXX=
11395 enable_shared_with_static_runtimes_CXX=no
11396
11397 # Source file extension for C++ test sources.
11398 ac_ext=cpp
11399
11400 # Object file extension for compiled C++ test sources.
11401 objext=o
11402 objext_CXX=$objext
11403
11404 # No sense in running all these tests if we already determined that
11405 # the CXX compiler isn't working.  Some variables (like enable_shared)
11406 # are currently assumed to apply to all compilers on this platform,
11407 # and will be corrupted by setting them based on a non-working compiler.
11408 if test "$_lt_caught_CXX_error" != yes; then
11409   # Code to be used in simple compile tests
11410   lt_simple_compile_test_code="int some_variable = 0;"
11411
11412   # Code to be used in simple link tests
11413   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11414
11415   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11416
11417
11418
11419
11420
11421
11422 # If no C compiler was specified, use CC.
11423 LTCC=${LTCC-"$CC"}
11424
11425 # If no C compiler flags were specified, use CFLAGS.
11426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11427
11428 # Allow CC to be a program name with arguments.
11429 compiler=$CC
11430
11431
11432   # save warnings/boilerplate of simple test code
11433   ac_outfile=conftest.$ac_objext
11434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11436 _lt_compiler_boilerplate=`cat conftest.err`
11437 $RM conftest*
11438
11439   ac_outfile=conftest.$ac_objext
11440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11442 _lt_linker_boilerplate=`cat conftest.err`
11443 $RM -r conftest*
11444
11445
11446   # Allow CC to be a program name with arguments.
11447   lt_save_CC=$CC
11448   lt_save_LD=$LD
11449   lt_save_GCC=$GCC
11450   GCC=$GXX
11451   lt_save_with_gnu_ld=$with_gnu_ld
11452   lt_save_path_LD=$lt_cv_path_LD
11453   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11454     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11455   else
11456     $as_unset lt_cv_prog_gnu_ld
11457   fi
11458   if test -n "${lt_cv_path_LDCXX+set}"; then
11459     lt_cv_path_LD=$lt_cv_path_LDCXX
11460   else
11461     $as_unset lt_cv_path_LD
11462   fi
11463   test -z "${LDCXX+set}" || LD=$LDCXX
11464   CC=${CXX-"c++"}
11465   compiler=$CC
11466   compiler_CXX=$CC
11467   for cc_temp in $compiler""; do
11468   case $cc_temp in
11469     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11470     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11471     \-*) ;;
11472     *) break;;
11473   esac
11474 done
11475 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11476
11477
11478   if test -n "$compiler"; then
11479     # We don't want -fno-exception when compiling C++ code, so set the
11480     # no_builtin_flag separately
11481     if test "$GXX" = yes; then
11482       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11483     else
11484       lt_prog_compiler_no_builtin_flag_CXX=
11485     fi
11486
11487     if test "$GXX" = yes; then
11488       # Set up default GNU C++ configuration
11489
11490
11491
11492 # Check whether --with-gnu-ld was given.
11493 if test "${with_gnu_ld+set}" = set; then :
11494   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11495 else
11496   with_gnu_ld=no
11497 fi
11498
11499 ac_prog=ld
11500 if test "$GCC" = yes; then
11501   # Check if gcc -print-prog-name=ld gives a path.
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11503 $as_echo_n "checking for ld used by $CC... " >&6; }
11504   case $host in
11505   *-*-mingw*)
11506     # gcc leaves a trailing carriage return which upsets mingw
11507     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11508   *)
11509     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11510   esac
11511   case $ac_prog in
11512     # Accept absolute paths.
11513     [\\/]* | ?:[\\/]*)
11514       re_direlt='/[^/][^/]*/\.\./'
11515       # Canonicalize the pathname of ld
11516       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11517       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11518         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11519       done
11520       test -z "$LD" && LD="$ac_prog"
11521       ;;
11522   "")
11523     # If it fails, then pretend we aren't using GCC.
11524     ac_prog=ld
11525     ;;
11526   *)
11527     # If it is relative, then search for the first ld in PATH.
11528     with_gnu_ld=unknown
11529     ;;
11530   esac
11531 elif test "$with_gnu_ld" = yes; then
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11533 $as_echo_n "checking for GNU ld... " >&6; }
11534 else
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11536 $as_echo_n "checking for non-GNU ld... " >&6; }
11537 fi
11538 if test "${lt_cv_path_LD+set}" = set; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541   if test -z "$LD"; then
11542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11543   for ac_dir in $PATH; do
11544     IFS="$lt_save_ifs"
11545     test -z "$ac_dir" && ac_dir=.
11546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11547       lt_cv_path_LD="$ac_dir/$ac_prog"
11548       # Check to see if the program is GNU ld.  I'd rather use --version,
11549       # but apparently some variants of GNU ld only accept -v.
11550       # Break only if it was the GNU/non-GNU ld that we prefer.
11551       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11552       *GNU* | *'with BFD'*)
11553         test "$with_gnu_ld" != no && break
11554         ;;
11555       *)
11556         test "$with_gnu_ld" != yes && break
11557         ;;
11558       esac
11559     fi
11560   done
11561   IFS="$lt_save_ifs"
11562 else
11563   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11564 fi
11565 fi
11566
11567 LD="$lt_cv_path_LD"
11568 if test -n "$LD"; then
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11570 $as_echo "$LD" >&6; }
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 fi
11575 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11578 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11582 case `$LD -v 2>&1 </dev/null` in
11583 *GNU* | *'with BFD'*)
11584   lt_cv_prog_gnu_ld=yes
11585   ;;
11586 *)
11587   lt_cv_prog_gnu_ld=no
11588   ;;
11589 esac
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11593 with_gnu_ld=$lt_cv_prog_gnu_ld
11594
11595
11596
11597
11598
11599
11600
11601       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11602       # archiving commands below assume that GNU ld is being used.
11603       if test "$with_gnu_ld" = yes; then
11604         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11605         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11606
11607         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11608         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11609
11610         # If archive_cmds runs LD, not CC, wlarc should be empty
11611         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11612         #     investigate it a little bit more. (MM)
11613         wlarc='${wl}'
11614
11615         # ancient GNU ld didn't support --whole-archive et. al.
11616         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11617           $GREP 'no-whole-archive' > /dev/null; then
11618           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11619         else
11620           whole_archive_flag_spec_CXX=
11621         fi
11622       else
11623         with_gnu_ld=no
11624         wlarc=
11625
11626         # A generic and very simple default shared library creation
11627         # command for GNU C++ for the case where it uses the native
11628         # linker, instead of GNU ld.  If possible, this setting should
11629         # overridden to take advantage of the native linker features on
11630         # the platform it is being used on.
11631         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11632       fi
11633
11634       # Commands to make compiler produce verbose output that lists
11635       # what "hidden" libraries, object files and flags are used when
11636       # linking a shared library.
11637       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11638
11639     else
11640       GXX=no
11641       with_gnu_ld=no
11642       wlarc=
11643     fi
11644
11645     # PORTME: fill in a description of your system's C++ link characteristics
11646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11648     ld_shlibs_CXX=yes
11649     case $host_os in
11650       aix3*)
11651         # FIXME: insert proper C++ library support
11652         ld_shlibs_CXX=no
11653         ;;
11654       aix[4-9]*)
11655         if test "$host_cpu" = ia64; then
11656           # On IA64, the linker does run time linking by default, so we don't
11657           # have to do anything special.
11658           aix_use_runtimelinking=no
11659           exp_sym_flag='-Bexport'
11660           no_entry_flag=""
11661         else
11662           aix_use_runtimelinking=no
11663
11664           # Test if we are trying to use run time linking or normal
11665           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11666           # need to do runtime linking.
11667           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11668             for ld_flag in $LDFLAGS; do
11669               case $ld_flag in
11670               *-brtl*)
11671                 aix_use_runtimelinking=yes
11672                 break
11673                 ;;
11674               esac
11675             done
11676             ;;
11677           esac
11678
11679           exp_sym_flag='-bexport'
11680           no_entry_flag='-bnoentry'
11681         fi
11682
11683         # When large executables or shared objects are built, AIX ld can
11684         # have problems creating the table of contents.  If linking a library
11685         # or program results in "error TOC overflow" add -mminimal-toc to
11686         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11687         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11688
11689         archive_cmds_CXX=''
11690         hardcode_direct_CXX=yes
11691         hardcode_direct_absolute_CXX=yes
11692         hardcode_libdir_separator_CXX=':'
11693         link_all_deplibs_CXX=yes
11694         file_list_spec_CXX='${wl}-f,'
11695
11696         if test "$GXX" = yes; then
11697           case $host_os in aix4.[012]|aix4.[012].*)
11698           # We only want to do this on AIX 4.2 and lower, the check
11699           # below for broken collect2 doesn't work under 4.3+
11700           collect2name=`${CC} -print-prog-name=collect2`
11701           if test -f "$collect2name" &&
11702              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11703           then
11704             # We have reworked collect2
11705             :
11706           else
11707             # We have old collect2
11708             hardcode_direct_CXX=unsupported
11709             # It fails to find uninstalled libraries when the uninstalled
11710             # path is not listed in the libpath.  Setting hardcode_minus_L
11711             # to unsupported forces relinking
11712             hardcode_minus_L_CXX=yes
11713             hardcode_libdir_flag_spec_CXX='-L$libdir'
11714             hardcode_libdir_separator_CXX=
11715           fi
11716           esac
11717           shared_flag='-shared'
11718           if test "$aix_use_runtimelinking" = yes; then
11719             shared_flag="$shared_flag "'${wl}-G'
11720           fi
11721         else
11722           # not using gcc
11723           if test "$host_cpu" = ia64; then
11724           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11725           # chokes on -Wl,-G. The following line is correct:
11726           shared_flag='-G'
11727           else
11728             if test "$aix_use_runtimelinking" = yes; then
11729               shared_flag='${wl}-G'
11730             else
11731               shared_flag='${wl}-bM:SRE'
11732             fi
11733           fi
11734         fi
11735
11736         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11737         # It seems that -bexpall does not export symbols beginning with
11738         # underscore (_), so it is better to generate a list of symbols to
11739         # export.
11740         always_export_symbols_CXX=yes
11741         if test "$aix_use_runtimelinking" = yes; then
11742           # Warning - without using the other runtime loading flags (-brtl),
11743           # -berok will link without error, but may produce a broken library.
11744           allow_undefined_flag_CXX='-berok'
11745           # Determine the default libpath from the value encoded in an empty
11746           # executable.
11747           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h.  */
11749
11750 int
11751 main ()
11752 {
11753
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_cxx_try_link "$LINENO"; then :
11759
11760 lt_aix_libpath_sed='
11761     /Import File Strings/,/^$/ {
11762         /^0/ {
11763             s/^0  *\(.*\)$/\1/
11764             p
11765         }
11766     }'
11767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11768 # Check for a 64-bit object if we didn't find anything.
11769 if test -z "$aix_libpath"; then
11770   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11771 fi
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774     conftest$ac_exeext conftest.$ac_ext
11775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11776
11777           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11778
11779           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"
11780         else
11781           if test "$host_cpu" = ia64; then
11782             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11783             allow_undefined_flag_CXX="-z nodefs"
11784             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"
11785           else
11786             # Determine the default libpath from the value encoded in an
11787             # empty executable.
11788             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790
11791 int
11792 main ()
11793 {
11794
11795   ;
11796   return 0;
11797 }
11798 _ACEOF
11799 if ac_fn_cxx_try_link "$LINENO"; then :
11800
11801 lt_aix_libpath_sed='
11802     /Import File Strings/,/^$/ {
11803         /^0/ {
11804             s/^0  *\(.*\)$/\1/
11805             p
11806         }
11807     }'
11808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809 # Check for a 64-bit object if we didn't find anything.
11810 if test -z "$aix_libpath"; then
11811   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11812 fi
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815     conftest$ac_exeext conftest.$ac_ext
11816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11817
11818             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11819             # Warning - without using the other run time loading flags,
11820             # -berok will link without error, but may produce a broken library.
11821             no_undefined_flag_CXX=' ${wl}-bernotok'
11822             allow_undefined_flag_CXX=' ${wl}-berok'
11823             if test "$with_gnu_ld" = yes; then
11824               # We only use this code for GNU lds that support --whole-archive.
11825               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11826             else
11827               # Exported symbols can be pulled into shared objects from archives
11828               whole_archive_flag_spec_CXX='$convenience'
11829             fi
11830             archive_cmds_need_lc_CXX=yes
11831             # This is similar to how AIX traditionally builds its shared
11832             # libraries.
11833             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'
11834           fi
11835         fi
11836         ;;
11837
11838       beos*)
11839         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11840           allow_undefined_flag_CXX=unsupported
11841           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11842           # support --undefined.  This deserves some investigation.  FIXME
11843           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11844         else
11845           ld_shlibs_CXX=no
11846         fi
11847         ;;
11848
11849       chorus*)
11850         case $cc_basename in
11851           *)
11852           # FIXME: insert proper C++ library support
11853           ld_shlibs_CXX=no
11854           ;;
11855         esac
11856         ;;
11857
11858       cygwin* | mingw* | pw32* | cegcc*)
11859         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11860         # as there is no search path for DLLs.
11861         hardcode_libdir_flag_spec_CXX='-L$libdir'
11862         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11863         allow_undefined_flag_CXX=unsupported
11864         always_export_symbols_CXX=no
11865         enable_shared_with_static_runtimes_CXX=yes
11866
11867         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11868           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'
11869           # If the export-symbols file already is a .def file (1st line
11870           # is EXPORTS), use it as is; otherwise, prepend...
11871           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11872             cp $export_symbols $output_objdir/$soname.def;
11873           else
11874             echo EXPORTS > $output_objdir/$soname.def;
11875             cat $export_symbols >> $output_objdir/$soname.def;
11876           fi~
11877           $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'
11878         else
11879           ld_shlibs_CXX=no
11880         fi
11881         ;;
11882       darwin* | rhapsody*)
11883
11884
11885   archive_cmds_need_lc_CXX=no
11886   hardcode_direct_CXX=no
11887   hardcode_automatic_CXX=yes
11888   hardcode_shlibpath_var_CXX=unsupported
11889   if test "$lt_cv_ld_force_load" = "yes"; then
11890     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\"`'
11891   else
11892     whole_archive_flag_spec_CXX=''
11893   fi
11894   link_all_deplibs_CXX=yes
11895   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11896   case $cc_basename in
11897      ifort*) _lt_dar_can_shared=yes ;;
11898      *) _lt_dar_can_shared=$GCC ;;
11899   esac
11900   if test "$_lt_dar_can_shared" = "yes"; then
11901     output_verbose_link_cmd=func_echo_all
11902     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}"
11903     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11904     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}"
11905     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}"
11906        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11907       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}"
11908       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}"
11909     fi
11910
11911   else
11912   ld_shlibs_CXX=no
11913   fi
11914
11915         ;;
11916
11917       dgux*)
11918         case $cc_basename in
11919           ec++*)
11920             # FIXME: insert proper C++ library support
11921             ld_shlibs_CXX=no
11922             ;;
11923           ghcx*)
11924             # Green Hills C++ Compiler
11925             # FIXME: insert proper C++ library support
11926             ld_shlibs_CXX=no
11927             ;;
11928           *)
11929             # FIXME: insert proper C++ library support
11930             ld_shlibs_CXX=no
11931             ;;
11932         esac
11933         ;;
11934
11935       freebsd2.*)
11936         # C++ shared libraries reported to be fairly broken before
11937         # switch to ELF
11938         ld_shlibs_CXX=no
11939         ;;
11940
11941       freebsd-elf*)
11942         archive_cmds_need_lc_CXX=no
11943         ;;
11944
11945       freebsd* | dragonfly*)
11946         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11947         # conventions
11948         ld_shlibs_CXX=yes
11949         ;;
11950
11951       gnu*)
11952         ;;
11953
11954       haiku*)
11955         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11956         link_all_deplibs_CXX=yes
11957         ;;
11958
11959       hpux9*)
11960         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11961         hardcode_libdir_separator_CXX=:
11962         export_dynamic_flag_spec_CXX='${wl}-E'
11963         hardcode_direct_CXX=yes
11964         hardcode_minus_L_CXX=yes # Not in the search PATH,
11965                                              # but as the default
11966                                              # location of the library.
11967
11968         case $cc_basename in
11969           CC*)
11970             # FIXME: insert proper C++ library support
11971             ld_shlibs_CXX=no
11972             ;;
11973           aCC*)
11974             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'
11975             # Commands to make compiler produce verbose output that lists
11976             # what "hidden" libraries, object files and flags are used when
11977             # linking a shared library.
11978             #
11979             # There doesn't appear to be a way to prevent this compiler from
11980             # explicitly linking system object files so we need to strip them
11981             # from the output so that they don't get included in the library
11982             # dependencies.
11983             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"'
11984             ;;
11985           *)
11986             if test "$GXX" = yes; then
11987               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11988             else
11989               # FIXME: insert proper C++ library support
11990               ld_shlibs_CXX=no
11991             fi
11992             ;;
11993         esac
11994         ;;
11995
11996       hpux10*|hpux11*)
11997         if test $with_gnu_ld = no; then
11998           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11999           hardcode_libdir_separator_CXX=:
12000
12001           case $host_cpu in
12002             hppa*64*|ia64*)
12003               ;;
12004             *)
12005               export_dynamic_flag_spec_CXX='${wl}-E'
12006               ;;
12007           esac
12008         fi
12009         case $host_cpu in
12010           hppa*64*|ia64*)
12011             hardcode_direct_CXX=no
12012             hardcode_shlibpath_var_CXX=no
12013             ;;
12014           *)
12015             hardcode_direct_CXX=yes
12016             hardcode_direct_absolute_CXX=yes
12017             hardcode_minus_L_CXX=yes # Not in the search PATH,
12018                                                  # but as the default
12019                                                  # location of the library.
12020             ;;
12021         esac
12022
12023         case $cc_basename in
12024           CC*)
12025             # FIXME: insert proper C++ library support
12026             ld_shlibs_CXX=no
12027             ;;
12028           aCC*)
12029             case $host_cpu in
12030               hppa*64*)
12031                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12032                 ;;
12033               ia64*)
12034                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12035                 ;;
12036               *)
12037                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12038                 ;;
12039             esac
12040             # Commands to make compiler produce verbose output that lists
12041             # what "hidden" libraries, object files and flags are used when
12042             # linking a shared library.
12043             #
12044             # There doesn't appear to be a way to prevent this compiler from
12045             # explicitly linking system object files so we need to strip them
12046             # from the output so that they don't get included in the library
12047             # dependencies.
12048             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"'
12049             ;;
12050           *)
12051             if test "$GXX" = yes; then
12052               if test $with_gnu_ld = no; then
12053                 case $host_cpu in
12054                   hppa*64*)
12055                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12056                     ;;
12057                   ia64*)
12058                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12059                     ;;
12060                   *)
12061                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12062                     ;;
12063                 esac
12064               fi
12065             else
12066               # FIXME: insert proper C++ library support
12067               ld_shlibs_CXX=no
12068             fi
12069             ;;
12070         esac
12071         ;;
12072
12073       interix[3-9]*)
12074         hardcode_direct_CXX=no
12075         hardcode_shlibpath_var_CXX=no
12076         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12077         export_dynamic_flag_spec_CXX='${wl}-E'
12078         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12079         # Instead, shared libraries are loaded at an image base (0x10000000 by
12080         # default) and relocated if they conflict, which is a slow very memory
12081         # consuming and fragmenting process.  To avoid this, we pick a random,
12082         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12083         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12084         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'
12085         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'
12086         ;;
12087       irix5* | irix6*)
12088         case $cc_basename in
12089           CC*)
12090             # SGI C++
12091             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'
12092
12093             # Archives containing C++ object files must be created using
12094             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12095             # necessary to make sure instantiated templates are included
12096             # in the archive.
12097             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12098             ;;
12099           *)
12100             if test "$GXX" = yes; then
12101               if test "$with_gnu_ld" = no; then
12102                 archive_cmds_CXX='$CC -shared -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'
12103               else
12104                 archive_cmds_CXX='$CC -shared -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'
12105               fi
12106             fi
12107             link_all_deplibs_CXX=yes
12108             ;;
12109         esac
12110         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111         hardcode_libdir_separator_CXX=:
12112         inherit_rpath_CXX=yes
12113         ;;
12114
12115       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12116         case $cc_basename in
12117           KCC*)
12118             # Kuck and Associates, Inc. (KAI) C++ Compiler
12119
12120             # KCC will only create a shared library if the output file
12121             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12122             # to its proper name (with version) after linking.
12123             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'
12124             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'
12125             # Commands to make compiler produce verbose output that lists
12126             # what "hidden" libraries, object files and flags are used when
12127             # linking a shared library.
12128             #
12129             # There doesn't appear to be a way to prevent this compiler from
12130             # explicitly linking system object files so we need to strip them
12131             # from the output so that they don't get included in the library
12132             # dependencies.
12133             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"'
12134
12135             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12136             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12137
12138             # Archives containing C++ object files must be created using
12139             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12140             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12141             ;;
12142           icpc* | ecpc* )
12143             # Intel C++
12144             with_gnu_ld=yes
12145             # version 8.0 and above of icpc choke on multiply defined symbols
12146             # if we add $predep_objects and $postdep_objects, however 7.1 and
12147             # earlier do not add the objects themselves.
12148             case `$CC -V 2>&1` in
12149               *"Version 7."*)
12150                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151                 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'
12152                 ;;
12153               *)  # Version 8.0 or newer
12154                 tmp_idyn=
12155                 case $host_cpu in
12156                   ia64*) tmp_idyn=' -i_dynamic';;
12157                 esac
12158                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159                 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'
12160                 ;;
12161             esac
12162             archive_cmds_need_lc_CXX=no
12163             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12164             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12165             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12166             ;;
12167           pgCC* | pgcpp*)
12168             # Portland Group C++ compiler
12169             case `$CC -V` in
12170             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12171               prelink_cmds_CXX='tpldir=Template.dir~
12172                 rm -rf $tpldir~
12173                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12174                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12175               old_archive_cmds_CXX='tpldir=Template.dir~
12176                 rm -rf $tpldir~
12177                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12178                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12179                 $RANLIB $oldlib'
12180               archive_cmds_CXX='tpldir=Template.dir~
12181                 rm -rf $tpldir~
12182                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12183                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12184               archive_expsym_cmds_CXX='tpldir=Template.dir~
12185                 rm -rf $tpldir~
12186                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12187                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12188               ;;
12189             *) # Version 6 and above use weak symbols
12190               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12191               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'
12192               ;;
12193             esac
12194
12195             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12196             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12197             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'
12198             ;;
12199           cxx*)
12200             # Compaq C++
12201             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12202             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'
12203
12204             runpath_var=LD_RUN_PATH
12205             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12206             hardcode_libdir_separator_CXX=:
12207
12208             # Commands to make compiler produce verbose output that lists
12209             # what "hidden" libraries, object files and flags are used when
12210             # linking a shared library.
12211             #
12212             # There doesn't appear to be a way to prevent this compiler from
12213             # explicitly linking system object files so we need to strip them
12214             # from the output so that they don't get included in the library
12215             # dependencies.
12216             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'
12217             ;;
12218           xl* | mpixl* | bgxl*)
12219             # IBM XL 8.0 on PPC, with GNU ld
12220             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12221             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12222             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223             if test "x$supports_anon_versioning" = xyes; then
12224               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12225                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12226                 echo "local: *; };" >> $output_objdir/$libname.ver~
12227                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12228             fi
12229             ;;
12230           *)
12231             case `$CC -V 2>&1 | sed 5q` in
12232             *Sun\ C*)
12233               # Sun C++ 5.9
12234               no_undefined_flag_CXX=' -zdefs'
12235               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236               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'
12237               hardcode_libdir_flag_spec_CXX='-R$libdir'
12238               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'
12239               compiler_needs_object_CXX=yes
12240
12241               # Not sure whether something based on
12242               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12243               # would be better.
12244               output_verbose_link_cmd='func_echo_all'
12245
12246               # Archives containing C++ object files must be created using
12247               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12248               # necessary to make sure instantiated templates are included
12249               # in the archive.
12250               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12251               ;;
12252             esac
12253             ;;
12254         esac
12255         ;;
12256
12257       lynxos*)
12258         # FIXME: insert proper C++ library support
12259         ld_shlibs_CXX=no
12260         ;;
12261
12262       m88k*)
12263         # FIXME: insert proper C++ library support
12264         ld_shlibs_CXX=no
12265         ;;
12266
12267       mvs*)
12268         case $cc_basename in
12269           cxx*)
12270             # FIXME: insert proper C++ library support
12271             ld_shlibs_CXX=no
12272             ;;
12273           *)
12274             # FIXME: insert proper C++ library support
12275             ld_shlibs_CXX=no
12276             ;;
12277         esac
12278         ;;
12279
12280       netbsd*)
12281         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12282           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12283           wlarc=
12284           hardcode_libdir_flag_spec_CXX='-R$libdir'
12285           hardcode_direct_CXX=yes
12286           hardcode_shlibpath_var_CXX=no
12287         fi
12288         # Workaround some broken pre-1.5 toolchains
12289         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12290         ;;
12291
12292       *nto* | *qnx*)
12293         ld_shlibs_CXX=yes
12294         ;;
12295
12296       openbsd2*)
12297         # C++ shared libraries are fairly broken
12298         ld_shlibs_CXX=no
12299         ;;
12300
12301       openbsd*)
12302         if test -f /usr/libexec/ld.so; then
12303           hardcode_direct_CXX=yes
12304           hardcode_shlibpath_var_CXX=no
12305           hardcode_direct_absolute_CXX=yes
12306           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12307           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12308           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12309             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12310             export_dynamic_flag_spec_CXX='${wl}-E'
12311             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12312           fi
12313           output_verbose_link_cmd=func_echo_all
12314         else
12315           ld_shlibs_CXX=no
12316         fi
12317         ;;
12318
12319       osf3* | osf4* | osf5*)
12320         case $cc_basename in
12321           KCC*)
12322             # Kuck and Associates, Inc. (KAI) C++ Compiler
12323
12324             # KCC will only create a shared library if the output file
12325             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12326             # to its proper name (with version) after linking.
12327             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'
12328
12329             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12330             hardcode_libdir_separator_CXX=:
12331
12332             # Archives containing C++ object files must be created using
12333             # the KAI C++ compiler.
12334             case $host in
12335               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12336               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12337             esac
12338             ;;
12339           RCC*)
12340             # Rational C++ 2.4.1
12341             # FIXME: insert proper C++ library support
12342             ld_shlibs_CXX=no
12343             ;;
12344           cxx*)
12345             case $host in
12346               osf3*)
12347                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12348                 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'
12349                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12350                 ;;
12351               *)
12352                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12353                 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'
12354                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12355                   echo "-hidden">> $lib.exp~
12356                   $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~
12357                   $RM $lib.exp'
12358                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12359                 ;;
12360             esac
12361
12362             hardcode_libdir_separator_CXX=:
12363
12364             # Commands to make compiler produce verbose output that lists
12365             # what "hidden" libraries, object files and flags are used when
12366             # linking a shared library.
12367             #
12368             # There doesn't appear to be a way to prevent this compiler from
12369             # explicitly linking system object files so we need to strip them
12370             # from the output so that they don't get included in the library
12371             # dependencies.
12372             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"'
12373             ;;
12374           *)
12375             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12376               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12377               case $host in
12378                 osf3*)
12379                   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'
12380                   ;;
12381                 *)
12382                   archive_cmds_CXX='$CC -shared -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'
12383                   ;;
12384               esac
12385
12386               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12387               hardcode_libdir_separator_CXX=:
12388
12389               # Commands to make compiler produce verbose output that lists
12390               # what "hidden" libraries, object files and flags are used when
12391               # linking a shared library.
12392               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12393
12394             else
12395               # FIXME: insert proper C++ library support
12396               ld_shlibs_CXX=no
12397             fi
12398             ;;
12399         esac
12400         ;;
12401
12402       psos*)
12403         # FIXME: insert proper C++ library support
12404         ld_shlibs_CXX=no
12405         ;;
12406
12407       sunos4*)
12408         case $cc_basename in
12409           CC*)
12410             # Sun C++ 4.x
12411             # FIXME: insert proper C++ library support
12412             ld_shlibs_CXX=no
12413             ;;
12414           lcc*)
12415             # Lucid
12416             # FIXME: insert proper C++ library support
12417             ld_shlibs_CXX=no
12418             ;;
12419           *)
12420             # FIXME: insert proper C++ library support
12421             ld_shlibs_CXX=no
12422             ;;
12423         esac
12424         ;;
12425
12426       solaris*)
12427         case $cc_basename in
12428           CC*)
12429             # Sun C++ 4.2, 5.x and Centerline C++
12430             archive_cmds_need_lc_CXX=yes
12431             no_undefined_flag_CXX=' -zdefs'
12432             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12433             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12434               $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'
12435
12436             hardcode_libdir_flag_spec_CXX='-R$libdir'
12437             hardcode_shlibpath_var_CXX=no
12438             case $host_os in
12439               solaris2.[0-5] | solaris2.[0-5].*) ;;
12440               *)
12441                 # The compiler driver will combine and reorder linker options,
12442                 # but understands `-z linker_flag'.
12443                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12444                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12445                 ;;
12446             esac
12447             link_all_deplibs_CXX=yes
12448
12449             output_verbose_link_cmd='func_echo_all'
12450
12451             # Archives containing C++ object files must be created using
12452             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12453             # necessary to make sure instantiated templates are included
12454             # in the archive.
12455             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12456             ;;
12457           gcx*)
12458             # Green Hills C++ Compiler
12459             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12460
12461             # The C++ compiler must be used to create the archive.
12462             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12463             ;;
12464           *)
12465             # GNU C++ compiler with Solaris linker
12466             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12467               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12468               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12469                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12470                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12471                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12472
12473                 # Commands to make compiler produce verbose output that lists
12474                 # what "hidden" libraries, object files and flags are used when
12475                 # linking a shared library.
12476                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12477               else
12478                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12479                 # platform.
12480                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12481                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12482                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12483
12484                 # Commands to make compiler produce verbose output that lists
12485                 # what "hidden" libraries, object files and flags are used when
12486                 # linking a shared library.
12487                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12488               fi
12489
12490               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12491               case $host_os in
12492                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12493                 *)
12494                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12495                   ;;
12496               esac
12497             fi
12498             ;;
12499         esac
12500         ;;
12501
12502     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12503       no_undefined_flag_CXX='${wl}-z,text'
12504       archive_cmds_need_lc_CXX=no
12505       hardcode_shlibpath_var_CXX=no
12506       runpath_var='LD_RUN_PATH'
12507
12508       case $cc_basename in
12509         CC*)
12510           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12511           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12512           ;;
12513         *)
12514           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12515           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12516           ;;
12517       esac
12518       ;;
12519
12520       sysv5* | sco3.2v5* | sco5v6*)
12521         # Note: We can NOT use -z defs as we might desire, because we do not
12522         # link with -lc, and that would cause any symbols used from libc to
12523         # always be unresolved, which means just about no library would
12524         # ever link correctly.  If we're not using GNU ld we use -z text
12525         # though, which does catch some bad symbols but isn't as heavy-handed
12526         # as -z defs.
12527         no_undefined_flag_CXX='${wl}-z,text'
12528         allow_undefined_flag_CXX='${wl}-z,nodefs'
12529         archive_cmds_need_lc_CXX=no
12530         hardcode_shlibpath_var_CXX=no
12531         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12532         hardcode_libdir_separator_CXX=':'
12533         link_all_deplibs_CXX=yes
12534         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12535         runpath_var='LD_RUN_PATH'
12536
12537         case $cc_basename in
12538           CC*)
12539             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12542               '"$old_archive_cmds_CXX"
12543             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12544               '"$reload_cmds_CXX"
12545             ;;
12546           *)
12547             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12548             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549             ;;
12550         esac
12551       ;;
12552
12553       tandem*)
12554         case $cc_basename in
12555           NCC*)
12556             # NonStop-UX NCC 3.20
12557             # FIXME: insert proper C++ library support
12558             ld_shlibs_CXX=no
12559             ;;
12560           *)
12561             # FIXME: insert proper C++ library support
12562             ld_shlibs_CXX=no
12563             ;;
12564         esac
12565         ;;
12566
12567       vxworks*)
12568         # FIXME: insert proper C++ library support
12569         ld_shlibs_CXX=no
12570         ;;
12571
12572       *)
12573         # FIXME: insert proper C++ library support
12574         ld_shlibs_CXX=no
12575         ;;
12576     esac
12577
12578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12579 $as_echo "$ld_shlibs_CXX" >&6; }
12580     test "$ld_shlibs_CXX" = no && can_build_shared=no
12581
12582     GCC_CXX="$GXX"
12583     LD_CXX="$LD"
12584
12585     ## CAVEAT EMPTOR:
12586     ## There is no encapsulation within the following macros, do not change
12587     ## the running order or otherwise move them around unless you know exactly
12588     ## what you are doing...
12589     # Dependencies to place before and after the object being linked:
12590 predep_objects_CXX=
12591 postdep_objects_CXX=
12592 predeps_CXX=
12593 postdeps_CXX=
12594 compiler_lib_search_path_CXX=
12595
12596 cat > conftest.$ac_ext <<_LT_EOF
12597 class Foo
12598 {
12599 public:
12600   Foo (void) { a = 0; }
12601 private:
12602   int a;
12603 };
12604 _LT_EOF
12605
12606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12607   (eval $ac_compile) 2>&5
12608   ac_status=$?
12609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610   test $ac_status = 0; }; then
12611   # Parse the compiler output and extract the necessary
12612   # objects, libraries and library flags.
12613
12614   # Sentinel used to keep track of whether or not we are before
12615   # the conftest object file.
12616   pre_test_object_deps_done=no
12617
12618   for p in `eval "$output_verbose_link_cmd"`; do
12619     case $p in
12620
12621     -L* | -R* | -l*)
12622        # Some compilers place space between "-{L,R}" and the path.
12623        # Remove the space.
12624        if test $p = "-L" ||
12625           test $p = "-R"; then
12626          prev=$p
12627          continue
12628        else
12629          prev=
12630        fi
12631
12632        if test "$pre_test_object_deps_done" = no; then
12633          case $p in
12634          -L* | -R*)
12635            # Internal compiler library paths should come after those
12636            # provided the user.  The postdeps already come after the
12637            # user supplied libs so there is no need to process them.
12638            if test -z "$compiler_lib_search_path_CXX"; then
12639              compiler_lib_search_path_CXX="${prev}${p}"
12640            else
12641              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12642            fi
12643            ;;
12644          # The "-l" case would never come before the object being
12645          # linked, so don't bother handling this case.
12646          esac
12647        else
12648          if test -z "$postdeps_CXX"; then
12649            postdeps_CXX="${prev}${p}"
12650          else
12651            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12652          fi
12653        fi
12654        ;;
12655
12656     *.$objext)
12657        # This assumes that the test object file only shows up
12658        # once in the compiler output.
12659        if test "$p" = "conftest.$objext"; then
12660          pre_test_object_deps_done=yes
12661          continue
12662        fi
12663
12664        if test "$pre_test_object_deps_done" = no; then
12665          if test -z "$predep_objects_CXX"; then
12666            predep_objects_CXX="$p"
12667          else
12668            predep_objects_CXX="$predep_objects_CXX $p"
12669          fi
12670        else
12671          if test -z "$postdep_objects_CXX"; then
12672            postdep_objects_CXX="$p"
12673          else
12674            postdep_objects_CXX="$postdep_objects_CXX $p"
12675          fi
12676        fi
12677        ;;
12678
12679     *) ;; # Ignore the rest.
12680
12681     esac
12682   done
12683
12684   # Clean up.
12685   rm -f a.out a.exe
12686 else
12687   echo "libtool.m4: error: problem compiling CXX test program"
12688 fi
12689
12690 $RM -f confest.$objext
12691
12692 # PORTME: override above test on systems where it is broken
12693 case $host_os in
12694 interix[3-9]*)
12695   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12696   # hack all around it, let's just trust "g++" to DTRT.
12697   predep_objects_CXX=
12698   postdep_objects_CXX=
12699   postdeps_CXX=
12700   ;;
12701
12702 linux*)
12703   case `$CC -V 2>&1 | sed 5q` in
12704   *Sun\ C*)
12705     # Sun C++ 5.9
12706
12707     # The more standards-conforming stlport4 library is
12708     # incompatible with the Cstd library. Avoid specifying
12709     # it if it's in CXXFLAGS. Ignore libCrun as
12710     # -library=stlport4 depends on it.
12711     case " $CXX $CXXFLAGS " in
12712     *" -library=stlport4 "*)
12713       solaris_use_stlport4=yes
12714       ;;
12715     esac
12716
12717     if test "$solaris_use_stlport4" != yes; then
12718       postdeps_CXX='-library=Cstd -library=Crun'
12719     fi
12720     ;;
12721   esac
12722   ;;
12723
12724 solaris*)
12725   case $cc_basename in
12726   CC*)
12727     # The more standards-conforming stlport4 library is
12728     # incompatible with the Cstd library. Avoid specifying
12729     # it if it's in CXXFLAGS. Ignore libCrun as
12730     # -library=stlport4 depends on it.
12731     case " $CXX $CXXFLAGS " in
12732     *" -library=stlport4 "*)
12733       solaris_use_stlport4=yes
12734       ;;
12735     esac
12736
12737     # Adding this requires a known-good setup of shared libraries for
12738     # Sun compiler versions before 5.6, else PIC objects from an old
12739     # archive will be linked into the output, leading to subtle bugs.
12740     if test "$solaris_use_stlport4" != yes; then
12741       postdeps_CXX='-library=Cstd -library=Crun'
12742     fi
12743     ;;
12744   esac
12745   ;;
12746 esac
12747
12748
12749 case " $postdeps_CXX " in
12750 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12751 esac
12752  compiler_lib_search_dirs_CXX=
12753 if test -n "${compiler_lib_search_path_CXX}"; then
12754  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12755 fi
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787     lt_prog_compiler_wl_CXX=
12788 lt_prog_compiler_pic_CXX=
12789 lt_prog_compiler_static_CXX=
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12793
12794   # C++ specific cases for pic, static, wl, etc.
12795   if test "$GXX" = yes; then
12796     lt_prog_compiler_wl_CXX='-Wl,'
12797     lt_prog_compiler_static_CXX='-static'
12798
12799     case $host_os in
12800     aix*)
12801       # All AIX code is PIC.
12802       if test "$host_cpu" = ia64; then
12803         # AIX 5 now supports IA64 processor
12804         lt_prog_compiler_static_CXX='-Bstatic'
12805       fi
12806       lt_prog_compiler_pic_CXX='-fPIC'
12807       ;;
12808
12809     amigaos*)
12810       case $host_cpu in
12811       powerpc)
12812             # see comment about AmigaOS4 .so support
12813             lt_prog_compiler_pic_CXX='-fPIC'
12814         ;;
12815       m68k)
12816             # FIXME: we need at least 68020 code to build shared libraries, but
12817             # adding the `-m68020' flag to GCC prevents building anything better,
12818             # like `-m68040'.
12819             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12820         ;;
12821       esac
12822       ;;
12823
12824     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12825       # PIC is the default for these OSes.
12826       ;;
12827     mingw* | cygwin* | os2* | pw32* | cegcc*)
12828       # This hack is so that the source file can tell whether it is being
12829       # built for inclusion in a dll (and should export symbols for example).
12830       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12831       # (--disable-auto-import) libraries
12832       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12833       ;;
12834     darwin* | rhapsody*)
12835       # PIC is the default on this platform
12836       # Common symbols not allowed in MH_DYLIB files
12837       lt_prog_compiler_pic_CXX='-fno-common'
12838       ;;
12839     *djgpp*)
12840       # DJGPP does not support shared libraries at all
12841       lt_prog_compiler_pic_CXX=
12842       ;;
12843     haiku*)
12844       # PIC is the default for Haiku.
12845       # The "-static" flag exists, but is broken.
12846       lt_prog_compiler_static_CXX=
12847       ;;
12848     interix[3-9]*)
12849       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12850       # Instead, we relocate shared libraries at runtime.
12851       ;;
12852     sysv4*MP*)
12853       if test -d /usr/nec; then
12854         lt_prog_compiler_pic_CXX=-Kconform_pic
12855       fi
12856       ;;
12857     hpux*)
12858       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12859       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12860       # sets the default TLS model and affects inlining.
12861       case $host_cpu in
12862       hppa*64*)
12863         ;;
12864       *)
12865         lt_prog_compiler_pic_CXX='-fPIC'
12866         ;;
12867       esac
12868       ;;
12869     *qnx* | *nto*)
12870       # QNX uses GNU C++, but need to define -shared option too, otherwise
12871       # it will coredump.
12872       lt_prog_compiler_pic_CXX='-fPIC -shared'
12873       ;;
12874     *)
12875       lt_prog_compiler_pic_CXX='-fPIC'
12876       ;;
12877     esac
12878   else
12879     case $host_os in
12880       aix[4-9]*)
12881         # All AIX code is PIC.
12882         if test "$host_cpu" = ia64; then
12883           # AIX 5 now supports IA64 processor
12884           lt_prog_compiler_static_CXX='-Bstatic'
12885         else
12886           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12887         fi
12888         ;;
12889       chorus*)
12890         case $cc_basename in
12891         cxch68*)
12892           # Green Hills C++ Compiler
12893           # _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"
12894           ;;
12895         esac
12896         ;;
12897       dgux*)
12898         case $cc_basename in
12899           ec++*)
12900             lt_prog_compiler_pic_CXX='-KPIC'
12901             ;;
12902           ghcx*)
12903             # Green Hills C++ Compiler
12904             lt_prog_compiler_pic_CXX='-pic'
12905             ;;
12906           *)
12907             ;;
12908         esac
12909         ;;
12910       freebsd* | dragonfly*)
12911         # FreeBSD uses GNU C++
12912         ;;
12913       hpux9* | hpux10* | hpux11*)
12914         case $cc_basename in
12915           CC*)
12916             lt_prog_compiler_wl_CXX='-Wl,'
12917             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12918             if test "$host_cpu" != ia64; then
12919               lt_prog_compiler_pic_CXX='+Z'
12920             fi
12921             ;;
12922           aCC*)
12923             lt_prog_compiler_wl_CXX='-Wl,'
12924             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12925             case $host_cpu in
12926             hppa*64*|ia64*)
12927               # +Z the default
12928               ;;
12929             *)
12930               lt_prog_compiler_pic_CXX='+Z'
12931               ;;
12932             esac
12933             ;;
12934           *)
12935             ;;
12936         esac
12937         ;;
12938       interix*)
12939         # This is c89, which is MS Visual C++ (no shared libs)
12940         # Anyone wants to do a port?
12941         ;;
12942       irix5* | irix6* | nonstopux*)
12943         case $cc_basename in
12944           CC*)
12945             lt_prog_compiler_wl_CXX='-Wl,'
12946             lt_prog_compiler_static_CXX='-non_shared'
12947             # CC pic flag -KPIC is the default.
12948             ;;
12949           *)
12950             ;;
12951         esac
12952         ;;
12953       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12954         case $cc_basename in
12955           KCC*)
12956             # KAI C++ Compiler
12957             lt_prog_compiler_wl_CXX='--backend -Wl,'
12958             lt_prog_compiler_pic_CXX='-fPIC'
12959             ;;
12960           ecpc* )
12961             # old Intel C++ for x86_64 which still supported -KPIC.
12962             lt_prog_compiler_wl_CXX='-Wl,'
12963             lt_prog_compiler_pic_CXX='-KPIC'
12964             lt_prog_compiler_static_CXX='-static'
12965             ;;
12966           icpc* )
12967             # Intel C++, used to be incompatible with GCC.
12968             # ICC 10 doesn't accept -KPIC any more.
12969             lt_prog_compiler_wl_CXX='-Wl,'
12970             lt_prog_compiler_pic_CXX='-fPIC'
12971             lt_prog_compiler_static_CXX='-static'
12972             ;;
12973           pgCC* | pgcpp*)
12974             # Portland Group C++ compiler
12975             lt_prog_compiler_wl_CXX='-Wl,'
12976             lt_prog_compiler_pic_CXX='-fpic'
12977             lt_prog_compiler_static_CXX='-Bstatic'
12978             ;;
12979           cxx*)
12980             # Compaq C++
12981             # Make sure the PIC flag is empty.  It appears that all Alpha
12982             # Linux and Compaq Tru64 Unix objects are PIC.
12983             lt_prog_compiler_pic_CXX=
12984             lt_prog_compiler_static_CXX='-non_shared'
12985             ;;
12986           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12987             # IBM XL 8.0, 9.0 on PPC and BlueGene
12988             lt_prog_compiler_wl_CXX='-Wl,'
12989             lt_prog_compiler_pic_CXX='-qpic'
12990             lt_prog_compiler_static_CXX='-qstaticlink'
12991             ;;
12992           *)
12993             case `$CC -V 2>&1 | sed 5q` in
12994             *Sun\ C*)
12995               # Sun C++ 5.9
12996               lt_prog_compiler_pic_CXX='-KPIC'
12997               lt_prog_compiler_static_CXX='-Bstatic'
12998               lt_prog_compiler_wl_CXX='-Qoption ld '
12999               ;;
13000             esac
13001             ;;
13002         esac
13003         ;;
13004       lynxos*)
13005         ;;
13006       m88k*)
13007         ;;
13008       mvs*)
13009         case $cc_basename in
13010           cxx*)
13011             lt_prog_compiler_pic_CXX='-W c,exportall'
13012             ;;
13013           *)
13014             ;;
13015         esac
13016         ;;
13017       netbsd*)
13018         ;;
13019       *qnx* | *nto*)
13020         # QNX uses GNU C++, but need to define -shared option too, otherwise
13021         # it will coredump.
13022         lt_prog_compiler_pic_CXX='-fPIC -shared'
13023         ;;
13024       osf3* | osf4* | osf5*)
13025         case $cc_basename in
13026           KCC*)
13027             lt_prog_compiler_wl_CXX='--backend -Wl,'
13028             ;;
13029           RCC*)
13030             # Rational C++ 2.4.1
13031             lt_prog_compiler_pic_CXX='-pic'
13032             ;;
13033           cxx*)
13034             # Digital/Compaq C++
13035             lt_prog_compiler_wl_CXX='-Wl,'
13036             # Make sure the PIC flag is empty.  It appears that all Alpha
13037             # Linux and Compaq Tru64 Unix objects are PIC.
13038             lt_prog_compiler_pic_CXX=
13039             lt_prog_compiler_static_CXX='-non_shared'
13040             ;;
13041           *)
13042             ;;
13043         esac
13044         ;;
13045       psos*)
13046         ;;
13047       solaris*)
13048         case $cc_basename in
13049           CC*)
13050             # Sun C++ 4.2, 5.x and Centerline C++
13051             lt_prog_compiler_pic_CXX='-KPIC'
13052             lt_prog_compiler_static_CXX='-Bstatic'
13053             lt_prog_compiler_wl_CXX='-Qoption ld '
13054             ;;
13055           gcx*)
13056             # Green Hills C++ Compiler
13057             lt_prog_compiler_pic_CXX='-PIC'
13058             ;;
13059           *)
13060             ;;
13061         esac
13062         ;;
13063       sunos4*)
13064         case $cc_basename in
13065           CC*)
13066             # Sun C++ 4.x
13067             lt_prog_compiler_pic_CXX='-pic'
13068             lt_prog_compiler_static_CXX='-Bstatic'
13069             ;;
13070           lcc*)
13071             # Lucid
13072             lt_prog_compiler_pic_CXX='-pic'
13073             ;;
13074           *)
13075             ;;
13076         esac
13077         ;;
13078       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13079         case $cc_basename in
13080           CC*)
13081             lt_prog_compiler_wl_CXX='-Wl,'
13082             lt_prog_compiler_pic_CXX='-KPIC'
13083             lt_prog_compiler_static_CXX='-Bstatic'
13084             ;;
13085         esac
13086         ;;
13087       tandem*)
13088         case $cc_basename in
13089           NCC*)
13090             # NonStop-UX NCC 3.20
13091             lt_prog_compiler_pic_CXX='-KPIC'
13092             ;;
13093           *)
13094             ;;
13095         esac
13096         ;;
13097       vxworks*)
13098         ;;
13099       *)
13100         lt_prog_compiler_can_build_shared_CXX=no
13101         ;;
13102     esac
13103   fi
13104
13105 case $host_os in
13106   # For platforms which do not support PIC, -DPIC is meaningless:
13107   *djgpp*)
13108     lt_prog_compiler_pic_CXX=
13109     ;;
13110   *)
13111     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13112     ;;
13113 esac
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13115 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13116
13117
13118
13119 #
13120 # Check to make sure the PIC flag actually works.
13121 #
13122 if test -n "$lt_prog_compiler_pic_CXX"; then
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13125 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   lt_cv_prog_compiler_pic_works_CXX=no
13129    ac_outfile=conftest.$ac_objext
13130    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13131    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13132    # Insert the option either (1) after the last *FLAGS variable, or
13133    # (2) before a word containing "conftest.", or (3) at the end.
13134    # Note that $ac_compile itself does not contain backslashes and begins
13135    # with a dollar sign (not a hyphen), so the echo should work correctly.
13136    # The option is referenced via a variable to avoid confusing sed.
13137    lt_compile=`echo "$ac_compile" | $SED \
13138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13140    -e 's:$: $lt_compiler_flag:'`
13141    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13142    (eval "$lt_compile" 2>conftest.err)
13143    ac_status=$?
13144    cat conftest.err >&5
13145    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146    if (exit $ac_status) && test -s "$ac_outfile"; then
13147      # The compiler can only warn and ignore the option if not recognized
13148      # So say no if there are warnings other than the usual output.
13149      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13150      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13151      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13152        lt_cv_prog_compiler_pic_works_CXX=yes
13153      fi
13154    fi
13155    $RM conftest*
13156
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13159 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13160
13161 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13162     case $lt_prog_compiler_pic_CXX in
13163      "" | " "*) ;;
13164      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13165      esac
13166 else
13167     lt_prog_compiler_pic_CXX=
13168      lt_prog_compiler_can_build_shared_CXX=no
13169 fi
13170
13171 fi
13172
13173
13174
13175 #
13176 # Check to make sure the static flag actually works.
13177 #
13178 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13180 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13181 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   lt_cv_prog_compiler_static_works_CXX=no
13185    save_LDFLAGS="$LDFLAGS"
13186    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13187    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13188    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13189      # The linker can only warn and ignore the option if not recognized
13190      # So say no if there are warnings
13191      if test -s conftest.err; then
13192        # Append any errors to the config.log.
13193        cat conftest.err 1>&5
13194        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13195        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13196        if diff conftest.exp conftest.er2 >/dev/null; then
13197          lt_cv_prog_compiler_static_works_CXX=yes
13198        fi
13199      else
13200        lt_cv_prog_compiler_static_works_CXX=yes
13201      fi
13202    fi
13203    $RM -r conftest*
13204    LDFLAGS="$save_LDFLAGS"
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13208 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13209
13210 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13211     :
13212 else
13213     lt_prog_compiler_static_CXX=
13214 fi
13215
13216
13217
13218
13219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13221 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   lt_cv_prog_compiler_c_o_CXX=no
13225    $RM -r conftest 2>/dev/null
13226    mkdir conftest
13227    cd conftest
13228    mkdir out
13229    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13230
13231    lt_compiler_flag="-o out/conftest2.$ac_objext"
13232    # Insert the option either (1) after the last *FLAGS variable, or
13233    # (2) before a word containing "conftest.", or (3) at the end.
13234    # Note that $ac_compile itself does not contain backslashes and begins
13235    # with a dollar sign (not a hyphen), so the echo should work correctly.
13236    lt_compile=`echo "$ac_compile" | $SED \
13237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13239    -e 's:$: $lt_compiler_flag:'`
13240    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13241    (eval "$lt_compile" 2>out/conftest.err)
13242    ac_status=$?
13243    cat out/conftest.err >&5
13244    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13246    then
13247      # The compiler can only warn and ignore the option if not recognized
13248      # So say no if there are warnings
13249      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13250      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13251      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13252        lt_cv_prog_compiler_c_o_CXX=yes
13253      fi
13254    fi
13255    chmod u+w . 2>&5
13256    $RM conftest*
13257    # SGI C++ compiler will create directory out/ii_files/ for
13258    # template instantiation
13259    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13260    $RM out/* && rmdir out
13261    cd ..
13262    $RM -r conftest
13263    $RM conftest*
13264
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13267 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13268
13269
13270
13271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13273 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13274   $as_echo_n "(cached) " >&6
13275 else
13276   lt_cv_prog_compiler_c_o_CXX=no
13277    $RM -r conftest 2>/dev/null
13278    mkdir conftest
13279    cd conftest
13280    mkdir out
13281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13282
13283    lt_compiler_flag="-o out/conftest2.$ac_objext"
13284    # Insert the option either (1) after the last *FLAGS variable, or
13285    # (2) before a word containing "conftest.", or (3) at the end.
13286    # Note that $ac_compile itself does not contain backslashes and begins
13287    # with a dollar sign (not a hyphen), so the echo should work correctly.
13288    lt_compile=`echo "$ac_compile" | $SED \
13289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13291    -e 's:$: $lt_compiler_flag:'`
13292    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13293    (eval "$lt_compile" 2>out/conftest.err)
13294    ac_status=$?
13295    cat out/conftest.err >&5
13296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13298    then
13299      # The compiler can only warn and ignore the option if not recognized
13300      # So say no if there are warnings
13301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13304        lt_cv_prog_compiler_c_o_CXX=yes
13305      fi
13306    fi
13307    chmod u+w . 2>&5
13308    $RM conftest*
13309    # SGI C++ compiler will create directory out/ii_files/ for
13310    # template instantiation
13311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13312    $RM out/* && rmdir out
13313    cd ..
13314    $RM -r conftest
13315    $RM conftest*
13316
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13319 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13320
13321
13322
13323
13324 hard_links="nottested"
13325 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13326   # do not overwrite the value of need_locks provided by the user
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13328 $as_echo_n "checking if we can lock with hard links... " >&6; }
13329   hard_links=yes
13330   $RM conftest*
13331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13332   touch conftest.a
13333   ln conftest.a conftest.b 2>&5 || hard_links=no
13334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13336 $as_echo "$hard_links" >&6; }
13337   if test "$hard_links" = no; then
13338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13340     need_locks=warn
13341   fi
13342 else
13343   need_locks=no
13344 fi
13345
13346
13347
13348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13350
13351   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13352   case $host_os in
13353   aix[4-9]*)
13354     # If we're using GNU nm, then we don't want the "-C" option.
13355     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13356     # Also, AIX nm treats weak defined symbols like other global defined
13357     # symbols, whereas GNU nm marks them as "W".
13358     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13359       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'
13360     else
13361       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'
13362     fi
13363     ;;
13364   pw32*)
13365     export_symbols_cmds_CXX="$ltdll_cmds"
13366   ;;
13367   cygwin* | mingw* | cegcc*)
13368     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13369   ;;
13370   *)
13371     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13372   ;;
13373   esac
13374   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13377 $as_echo "$ld_shlibs_CXX" >&6; }
13378 test "$ld_shlibs_CXX" = no && can_build_shared=no
13379
13380 with_gnu_ld_CXX=$with_gnu_ld
13381
13382
13383
13384
13385
13386
13387 #
13388 # Do we need to explicitly link libc?
13389 #
13390 case "x$archive_cmds_need_lc_CXX" in
13391 x|xyes)
13392   # Assume -lc should be added
13393   archive_cmds_need_lc_CXX=yes
13394
13395   if test "$enable_shared" = yes && test "$GCC" = yes; then
13396     case $archive_cmds_CXX in
13397     *'~'*)
13398       # FIXME: we may have to deal with multi-command sequences.
13399       ;;
13400     '$CC '*)
13401       # Test whether the compiler implicitly links with -lc since on some
13402       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13403       # to ld, don't add -lc before -lgcc.
13404       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13405 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13406 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13407   $as_echo_n "(cached) " >&6
13408 else
13409   $RM conftest*
13410         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13411
13412         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13413   (eval $ac_compile) 2>&5
13414   ac_status=$?
13415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13416   test $ac_status = 0; } 2>conftest.err; then
13417           soname=conftest
13418           lib=conftest
13419           libobjs=conftest.$ac_objext
13420           deplibs=
13421           wl=$lt_prog_compiler_wl_CXX
13422           pic_flag=$lt_prog_compiler_pic_CXX
13423           compiler_flags=-v
13424           linker_flags=-v
13425           verstring=
13426           output_objdir=.
13427           libname=conftest
13428           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13429           allow_undefined_flag_CXX=
13430           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13431   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13432   ac_status=$?
13433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434   test $ac_status = 0; }
13435           then
13436             lt_cv_archive_cmds_need_lc_CXX=no
13437           else
13438             lt_cv_archive_cmds_need_lc_CXX=yes
13439           fi
13440           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13441         else
13442           cat conftest.err 1>&5
13443         fi
13444         $RM conftest*
13445
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13448 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13449       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13450       ;;
13451     esac
13452   fi
13453   ;;
13454 esac
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13520 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13521
13522 library_names_spec=
13523 libname_spec='lib$name'
13524 soname_spec=
13525 shrext_cmds=".so"
13526 postinstall_cmds=
13527 postuninstall_cmds=
13528 finish_cmds=
13529 finish_eval=
13530 shlibpath_var=
13531 shlibpath_overrides_runpath=unknown
13532 version_type=none
13533 dynamic_linker="$host_os ld.so"
13534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13535 need_lib_prefix=unknown
13536 hardcode_into_libs=no
13537
13538 # when you set need_version to no, make sure it does not cause -set_version
13539 # flags to be left without arguments
13540 need_version=unknown
13541
13542 case $host_os in
13543 aix3*)
13544   version_type=linux
13545   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13546   shlibpath_var=LIBPATH
13547
13548   # AIX 3 has no versioning support, so we append a major version to the name.
13549   soname_spec='${libname}${release}${shared_ext}$major'
13550   ;;
13551
13552 aix[4-9]*)
13553   version_type=linux
13554   need_lib_prefix=no
13555   need_version=no
13556   hardcode_into_libs=yes
13557   if test "$host_cpu" = ia64; then
13558     # AIX 5 supports IA64
13559     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13560     shlibpath_var=LD_LIBRARY_PATH
13561   else
13562     # With GCC up to 2.95.x, collect2 would create an import file
13563     # for dependence libraries.  The import file would start with
13564     # the line `#! .'.  This would cause the generated library to
13565     # depend on `.', always an invalid library.  This was fixed in
13566     # development snapshots of GCC prior to 3.0.
13567     case $host_os in
13568       aix4 | aix4.[01] | aix4.[01].*)
13569       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13570            echo ' yes '
13571            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13572         :
13573       else
13574         can_build_shared=no
13575       fi
13576       ;;
13577     esac
13578     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13579     # soname into executable. Probably we can add versioning support to
13580     # collect2, so additional links can be useful in future.
13581     if test "$aix_use_runtimelinking" = yes; then
13582       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13583       # instead of lib<name>.a to let people know that these are not
13584       # typical AIX shared libraries.
13585       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586     else
13587       # We preserve .a as extension for shared libraries through AIX4.2
13588       # and later when we are not doing run time linking.
13589       library_names_spec='${libname}${release}.a $libname.a'
13590       soname_spec='${libname}${release}${shared_ext}$major'
13591     fi
13592     shlibpath_var=LIBPATH
13593   fi
13594   ;;
13595
13596 amigaos*)
13597   case $host_cpu in
13598   powerpc)
13599     # Since July 2007 AmigaOS4 officially supports .so libraries.
13600     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602     ;;
13603   m68k)
13604     library_names_spec='$libname.ixlibrary $libname.a'
13605     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13606     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'
13607     ;;
13608   esac
13609   ;;
13610
13611 beos*)
13612   library_names_spec='${libname}${shared_ext}'
13613   dynamic_linker="$host_os ld.so"
13614   shlibpath_var=LIBRARY_PATH
13615   ;;
13616
13617 bsdi[45]*)
13618   version_type=linux
13619   need_version=no
13620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621   soname_spec='${libname}${release}${shared_ext}$major'
13622   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13623   shlibpath_var=LD_LIBRARY_PATH
13624   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13625   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13626   # the default ld.so.conf also contains /usr/contrib/lib and
13627   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13628   # libtool to hard-code these into programs
13629   ;;
13630
13631 cygwin* | mingw* | pw32* | cegcc*)
13632   version_type=windows
13633   shrext_cmds=".dll"
13634   need_version=no
13635   need_lib_prefix=no
13636
13637   case $GCC,$host_os in
13638   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13639     library_names_spec='$libname.dll.a'
13640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13641     postinstall_cmds='base_file=`basename \${file}`~
13642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13643       dldir=$destdir/`dirname \$dlpath`~
13644       test -d \$dldir || mkdir -p \$dldir~
13645       $install_prog $dir/$dlname \$dldir/$dlname~
13646       chmod a+x \$dldir/$dlname~
13647       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13648         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13649       fi'
13650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13651       dlpath=$dir/\$dldll~
13652        $RM \$dlpath'
13653     shlibpath_overrides_runpath=yes
13654
13655     case $host_os in
13656     cygwin*)
13657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13658       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13659
13660       ;;
13661     mingw* | cegcc*)
13662       # MinGW DLLs use traditional 'lib' prefix
13663       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13664       ;;
13665     pw32*)
13666       # pw32 DLLs use 'pw' prefix rather than 'lib'
13667       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13668       ;;
13669     esac
13670     ;;
13671
13672   *)
13673     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13674     ;;
13675   esac
13676   dynamic_linker='Win32 ld.exe'
13677   # FIXME: first we should search . and the directory the executable is in
13678   shlibpath_var=PATH
13679   ;;
13680
13681 darwin* | rhapsody*)
13682   dynamic_linker="$host_os dyld"
13683   version_type=darwin
13684   need_lib_prefix=no
13685   need_version=no
13686   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13687   soname_spec='${libname}${release}${major}$shared_ext'
13688   shlibpath_overrides_runpath=yes
13689   shlibpath_var=DYLD_LIBRARY_PATH
13690   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13691
13692   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13693   ;;
13694
13695 dgux*)
13696   version_type=linux
13697   need_lib_prefix=no
13698   need_version=no
13699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13700   soname_spec='${libname}${release}${shared_ext}$major'
13701   shlibpath_var=LD_LIBRARY_PATH
13702   ;;
13703
13704 freebsd* | dragonfly*)
13705   # DragonFly does not have aout.  When/if they implement a new
13706   # versioning mechanism, adjust this.
13707   if test -x /usr/bin/objformat; then
13708     objformat=`/usr/bin/objformat`
13709   else
13710     case $host_os in
13711     freebsd[23].*) objformat=aout ;;
13712     *) objformat=elf ;;
13713     esac
13714   fi
13715   version_type=freebsd-$objformat
13716   case $version_type in
13717     freebsd-elf*)
13718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13719       need_version=no
13720       need_lib_prefix=no
13721       ;;
13722     freebsd-*)
13723       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13724       need_version=yes
13725       ;;
13726   esac
13727   shlibpath_var=LD_LIBRARY_PATH
13728   case $host_os in
13729   freebsd2.*)
13730     shlibpath_overrides_runpath=yes
13731     ;;
13732   freebsd3.[01]* | freebsdelf3.[01]*)
13733     shlibpath_overrides_runpath=yes
13734     hardcode_into_libs=yes
13735     ;;
13736   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13737   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13738     shlibpath_overrides_runpath=no
13739     hardcode_into_libs=yes
13740     ;;
13741   *) # from 4.6 on, and DragonFly
13742     shlibpath_overrides_runpath=yes
13743     hardcode_into_libs=yes
13744     ;;
13745   esac
13746   ;;
13747
13748 gnu*)
13749   version_type=linux
13750   need_lib_prefix=no
13751   need_version=no
13752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13753   soname_spec='${libname}${release}${shared_ext}$major'
13754   shlibpath_var=LD_LIBRARY_PATH
13755   hardcode_into_libs=yes
13756   ;;
13757
13758 haiku*)
13759   version_type=linux
13760   need_lib_prefix=no
13761   need_version=no
13762   dynamic_linker="$host_os runtime_loader"
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13764   soname_spec='${libname}${release}${shared_ext}$major'
13765   shlibpath_var=LIBRARY_PATH
13766   shlibpath_overrides_runpath=yes
13767   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13768   hardcode_into_libs=yes
13769   ;;
13770
13771 hpux9* | hpux10* | hpux11*)
13772   # Give a soname corresponding to the major version so that dld.sl refuses to
13773   # link against other versions.
13774   version_type=sunos
13775   need_lib_prefix=no
13776   need_version=no
13777   case $host_cpu in
13778   ia64*)
13779     shrext_cmds='.so'
13780     hardcode_into_libs=yes
13781     dynamic_linker="$host_os dld.so"
13782     shlibpath_var=LD_LIBRARY_PATH
13783     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785     soname_spec='${libname}${release}${shared_ext}$major'
13786     if test "X$HPUX_IA64_MODE" = X32; then
13787       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13788     else
13789       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13790     fi
13791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13792     ;;
13793   hppa*64*)
13794     shrext_cmds='.sl'
13795     hardcode_into_libs=yes
13796     dynamic_linker="$host_os dld.sl"
13797     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13800     soname_spec='${libname}${release}${shared_ext}$major'
13801     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13803     ;;
13804   *)
13805     shrext_cmds='.sl'
13806     dynamic_linker="$host_os dld.sl"
13807     shlibpath_var=SHLIB_PATH
13808     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13810     soname_spec='${libname}${release}${shared_ext}$major'
13811     ;;
13812   esac
13813   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13814   postinstall_cmds='chmod 555 $lib'
13815   # or fails outright, so override atomically:
13816   install_override_mode=555
13817   ;;
13818
13819 interix[3-9]*)
13820   version_type=linux
13821   need_lib_prefix=no
13822   need_version=no
13823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13824   soname_spec='${libname}${release}${shared_ext}$major'
13825   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13826   shlibpath_var=LD_LIBRARY_PATH
13827   shlibpath_overrides_runpath=no
13828   hardcode_into_libs=yes
13829   ;;
13830
13831 irix5* | irix6* | nonstopux*)
13832   case $host_os in
13833     nonstopux*) version_type=nonstopux ;;
13834     *)
13835         if test "$lt_cv_prog_gnu_ld" = yes; then
13836                 version_type=linux
13837         else
13838                 version_type=irix
13839         fi ;;
13840   esac
13841   need_lib_prefix=no
13842   need_version=no
13843   soname_spec='${libname}${release}${shared_ext}$major'
13844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13845   case $host_os in
13846   irix5* | nonstopux*)
13847     libsuff= shlibsuff=
13848     ;;
13849   *)
13850     case $LD in # libtool.m4 will add one of these switches to LD
13851     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13852       libsuff= shlibsuff= libmagic=32-bit;;
13853     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13854       libsuff=32 shlibsuff=N32 libmagic=N32;;
13855     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13856       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13857     *) libsuff= shlibsuff= libmagic=never-match;;
13858     esac
13859     ;;
13860   esac
13861   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13862   shlibpath_overrides_runpath=no
13863   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13864   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13865   hardcode_into_libs=yes
13866   ;;
13867
13868 # No shared lib support for Linux oldld, aout, or coff.
13869 linux*oldld* | linux*aout* | linux*coff*)
13870   dynamic_linker=no
13871   ;;
13872
13873 # This must be Linux ELF.
13874 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13875   version_type=linux
13876   need_lib_prefix=no
13877   need_version=no
13878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879   soname_spec='${libname}${release}${shared_ext}$major'
13880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13881   shlibpath_var=LD_LIBRARY_PATH
13882   shlibpath_overrides_runpath=no
13883
13884   # Some binutils ld are patched to set DT_RUNPATH
13885   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13886   $as_echo_n "(cached) " >&6
13887 else
13888   lt_cv_shlibpath_overrides_runpath=no
13889     save_LDFLAGS=$LDFLAGS
13890     save_libdir=$libdir
13891     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13892          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895
13896 int
13897 main ()
13898 {
13899
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_cxx_try_link "$LINENO"; then :
13905   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13906   lt_cv_shlibpath_overrides_runpath=yes
13907 fi
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910     conftest$ac_exeext conftest.$ac_ext
13911     LDFLAGS=$save_LDFLAGS
13912     libdir=$save_libdir
13913
13914 fi
13915
13916   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13917
13918   # This implies no fast_install, which is unacceptable.
13919   # Some rework will be needed to allow for fast_install
13920   # before this can be enabled.
13921   hardcode_into_libs=yes
13922
13923   # Append ld.so.conf contents to the search path
13924   if test -f /etc/ld.so.conf; then
13925     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' ' '`
13926     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13927   fi
13928
13929   # We used to test for /lib/ld.so.1 and disable shared libraries on
13930   # powerpc, because MkLinux only supported shared libraries with the
13931   # GNU dynamic linker.  Since this was broken with cross compilers,
13932   # most powerpc-linux boxes support dynamic linking these days and
13933   # people can always --disable-shared, the test was removed, and we
13934   # assume the GNU/Linux dynamic linker is in use.
13935   dynamic_linker='GNU/Linux ld.so'
13936   ;;
13937
13938 netbsd*)
13939   version_type=sunos
13940   need_lib_prefix=no
13941   need_version=no
13942   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13944     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13945     dynamic_linker='NetBSD (a.out) ld.so'
13946   else
13947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13948     soname_spec='${libname}${release}${shared_ext}$major'
13949     dynamic_linker='NetBSD ld.elf_so'
13950   fi
13951   shlibpath_var=LD_LIBRARY_PATH
13952   shlibpath_overrides_runpath=yes
13953   hardcode_into_libs=yes
13954   ;;
13955
13956 newsos6)
13957   version_type=linux
13958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959   shlibpath_var=LD_LIBRARY_PATH
13960   shlibpath_overrides_runpath=yes
13961   ;;
13962
13963 *nto* | *qnx*)
13964   version_type=qnx
13965   need_lib_prefix=no
13966   need_version=no
13967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968   soname_spec='${libname}${release}${shared_ext}$major'
13969   shlibpath_var=LD_LIBRARY_PATH
13970   shlibpath_overrides_runpath=no
13971   hardcode_into_libs=yes
13972   dynamic_linker='ldqnx.so'
13973   ;;
13974
13975 openbsd*)
13976   version_type=sunos
13977   sys_lib_dlsearch_path_spec="/usr/lib"
13978   need_lib_prefix=no
13979   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13980   case $host_os in
13981     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13982     *)                          need_version=no  ;;
13983   esac
13984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13986   shlibpath_var=LD_LIBRARY_PATH
13987   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13988     case $host_os in
13989       openbsd2.[89] | openbsd2.[89].*)
13990         shlibpath_overrides_runpath=no
13991         ;;
13992       *)
13993         shlibpath_overrides_runpath=yes
13994         ;;
13995       esac
13996   else
13997     shlibpath_overrides_runpath=yes
13998   fi
13999   ;;
14000
14001 os2*)
14002   libname_spec='$name'
14003   shrext_cmds=".dll"
14004   need_lib_prefix=no
14005   library_names_spec='$libname${shared_ext} $libname.a'
14006   dynamic_linker='OS/2 ld.exe'
14007   shlibpath_var=LIBPATH
14008   ;;
14009
14010 osf3* | osf4* | osf5*)
14011   version_type=osf
14012   need_lib_prefix=no
14013   need_version=no
14014   soname_spec='${libname}${release}${shared_ext}$major'
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016   shlibpath_var=LD_LIBRARY_PATH
14017   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14018   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14019   ;;
14020
14021 rdos*)
14022   dynamic_linker=no
14023   ;;
14024
14025 solaris*)
14026   version_type=linux
14027   need_lib_prefix=no
14028   need_version=no
14029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030   soname_spec='${libname}${release}${shared_ext}$major'
14031   shlibpath_var=LD_LIBRARY_PATH
14032   shlibpath_overrides_runpath=yes
14033   hardcode_into_libs=yes
14034   # ldd complains unless libraries are executable
14035   postinstall_cmds='chmod +x $lib'
14036   ;;
14037
14038 sunos4*)
14039   version_type=sunos
14040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14041   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14042   shlibpath_var=LD_LIBRARY_PATH
14043   shlibpath_overrides_runpath=yes
14044   if test "$with_gnu_ld" = yes; then
14045     need_lib_prefix=no
14046   fi
14047   need_version=yes
14048   ;;
14049
14050 sysv4 | sysv4.3*)
14051   version_type=linux
14052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053   soname_spec='${libname}${release}${shared_ext}$major'
14054   shlibpath_var=LD_LIBRARY_PATH
14055   case $host_vendor in
14056     sni)
14057       shlibpath_overrides_runpath=no
14058       need_lib_prefix=no
14059       runpath_var=LD_RUN_PATH
14060       ;;
14061     siemens)
14062       need_lib_prefix=no
14063       ;;
14064     motorola)
14065       need_lib_prefix=no
14066       need_version=no
14067       shlibpath_overrides_runpath=no
14068       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14069       ;;
14070   esac
14071   ;;
14072
14073 sysv4*MP*)
14074   if test -d /usr/nec ;then
14075     version_type=linux
14076     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14077     soname_spec='$libname${shared_ext}.$major'
14078     shlibpath_var=LD_LIBRARY_PATH
14079   fi
14080   ;;
14081
14082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14083   version_type=freebsd-elf
14084   need_lib_prefix=no
14085   need_version=no
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=yes
14090   hardcode_into_libs=yes
14091   if test "$with_gnu_ld" = yes; then
14092     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14093   else
14094     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14095     case $host_os in
14096       sco3.2v5*)
14097         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14098         ;;
14099     esac
14100   fi
14101   sys_lib_dlsearch_path_spec='/usr/lib'
14102   ;;
14103
14104 tpf*)
14105   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14106   version_type=linux
14107   need_lib_prefix=no
14108   need_version=no
14109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110   shlibpath_var=LD_LIBRARY_PATH
14111   shlibpath_overrides_runpath=no
14112   hardcode_into_libs=yes
14113   ;;
14114
14115 uts4*)
14116   version_type=linux
14117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118   soname_spec='${libname}${release}${shared_ext}$major'
14119   shlibpath_var=LD_LIBRARY_PATH
14120   ;;
14121
14122 *)
14123   dynamic_linker=no
14124   ;;
14125 esac
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14127 $as_echo "$dynamic_linker" >&6; }
14128 test "$dynamic_linker" = no && can_build_shared=no
14129
14130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14131 if test "$GCC" = yes; then
14132   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14133 fi
14134
14135 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14136   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14137 fi
14138 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14139   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14140 fi
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14181 hardcode_action_CXX=
14182 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14183    test -n "$runpath_var_CXX" ||
14184    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14185
14186   # We can hardcode non-existent directories.
14187   if test "$hardcode_direct_CXX" != no &&
14188      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14189      # have to relink, otherwise we might link with an installed library
14190      # when we should be linking with a yet-to-be-installed one
14191      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14192      test "$hardcode_minus_L_CXX" != no; then
14193     # Linking always hardcodes the temporary library directory.
14194     hardcode_action_CXX=relink
14195   else
14196     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14197     hardcode_action_CXX=immediate
14198   fi
14199 else
14200   # We cannot hardcode anything, or else we can only hardcode existing
14201   # directories.
14202   hardcode_action_CXX=unsupported
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14205 $as_echo "$hardcode_action_CXX" >&6; }
14206
14207 if test "$hardcode_action_CXX" = relink ||
14208    test "$inherit_rpath_CXX" = yes; then
14209   # Fast installation is not supported
14210   enable_fast_install=no
14211 elif test "$shlibpath_overrides_runpath" = yes ||
14212      test "$enable_shared" = no; then
14213   # Fast installation is not necessary
14214   enable_fast_install=needless
14215 fi
14216
14217
14218
14219
14220
14221
14222
14223   fi # test -n "$compiler"
14224
14225   CC=$lt_save_CC
14226   LDCXX=$LD
14227   LD=$lt_save_LD
14228   GCC=$lt_save_GCC
14229   with_gnu_ld=$lt_save_with_gnu_ld
14230   lt_cv_path_LDCXX=$lt_cv_path_LD
14231   lt_cv_path_LD=$lt_save_path_LD
14232   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14233   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14234 fi # test "$_lt_caught_CXX_error" != yes
14235
14236 ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254         ac_config_commands="$ac_config_commands libtool"
14255
14256
14257
14258
14259 # Only expand once:
14260
14261
14262
14263
14264
14265
14266 if test "${multilib}" = "yes"; then
14267   multilib_arg="--enable-multilib"
14268 else
14269   multilib_arg=
14270 fi
14271  if test "x$with_multisubdir" = "x32"; then
14272   MULTISUBDIR32_TRUE=
14273   MULTISUBDIR32_FALSE='#'
14274 else
14275   MULTISUBDIR32_TRUE='#'
14276   MULTISUBDIR32_FALSE=
14277 fi
14278
14279
14280 ac_config_files="$ac_config_files Makefile"
14281
14282
14283 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14284
14285
14286 if test "x$with_multisubdir" != "x32"; then
14287   ac_config_files="$ac_config_files tsan/Makefile"
14288
14289 fi
14290
14291 cat >confcache <<\_ACEOF
14292 # This file is a shell script that caches the results of configure
14293 # tests run on this system so they can be shared between configure
14294 # scripts and configure runs, see configure's option --config-cache.
14295 # It is not useful on other systems.  If it contains results you don't
14296 # want to keep, you may remove or edit it.
14297 #
14298 # config.status only pays attention to the cache file if you give it
14299 # the --recheck option to rerun configure.
14300 #
14301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14303 # following values.
14304
14305 _ACEOF
14306
14307 # The following way of writing the cache mishandles newlines in values,
14308 # but we know of no workaround that is simple, portable, and efficient.
14309 # So, we kill variables containing newlines.
14310 # Ultrix sh set writes to stderr and can't be redirected directly,
14311 # and sets the high bit in the cache file unless we assign to the vars.
14312 (
14313   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14314     eval ac_val=\$$ac_var
14315     case $ac_val in #(
14316     *${as_nl}*)
14317       case $ac_var in #(
14318       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14320       esac
14321       case $ac_var in #(
14322       _ | IFS | as_nl) ;; #(
14323       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14324       *) { eval $ac_var=; unset $ac_var;} ;;
14325       esac ;;
14326     esac
14327   done
14328
14329   (set) 2>&1 |
14330     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14331     *${as_nl}ac_space=\ *)
14332       # `set' does not quote correctly, so add quotes: double-quote
14333       # substitution turns \\\\ into \\, and sed turns \\ into \.
14334       sed -n \
14335         "s/'/'\\\\''/g;
14336           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14337       ;; #(
14338     *)
14339       # `set' quotes correctly as required by POSIX, so do not add quotes.
14340       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14341       ;;
14342     esac |
14343     sort
14344 ) |
14345   sed '
14346      /^ac_cv_env_/b end
14347      t clear
14348      :clear
14349      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14350      t end
14351      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14352      :end' >>confcache
14353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14354   if test -w "$cache_file"; then
14355     test "x$cache_file" != "x/dev/null" &&
14356       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14357 $as_echo "$as_me: updating cache $cache_file" >&6;}
14358     cat confcache >$cache_file
14359   else
14360     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14361 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14362   fi
14363 fi
14364 rm -f confcache
14365
14366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14367 # Let make expand exec_prefix.
14368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14369
14370 # Transform confdefs.h into DEFS.
14371 # Protect against shell expansion while executing Makefile rules.
14372 # Protect against Makefile macro expansion.
14373 #
14374 # If the first sed substitution is executed (which looks for macros that
14375 # take arguments), then branch to the quote section.  Otherwise,
14376 # look for a macro that doesn't take arguments.
14377 ac_script='
14378 :mline
14379 /\\$/{
14380  N
14381  s,\\\n,,
14382  b mline
14383 }
14384 t clear
14385 :clear
14386 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14387 t quote
14388 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14389 t quote
14390 b any
14391 :quote
14392 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14393 s/\[/\\&/g
14394 s/\]/\\&/g
14395 s/\$/$$/g
14396 H
14397 :any
14398 ${
14399         g
14400         s/^\n//
14401         s/\n/ /g
14402         p
14403 }
14404 '
14405 DEFS=`sed -n "$ac_script" confdefs.h`
14406
14407
14408 ac_libobjs=
14409 ac_ltlibobjs=
14410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14411   # 1. Remove the extension, and $U if already installed.
14412   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14413   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14414   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14415   #    will be set to the directory where LIBOBJS objects are built.
14416   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14417   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14418 done
14419 LIBOBJS=$ac_libobjs
14420
14421 LTLIBOBJS=$ac_ltlibobjs
14422
14423
14424  if test -n "$EXEEXT"; then
14425   am__EXEEXT_TRUE=
14426   am__EXEEXT_FALSE='#'
14427 else
14428   am__EXEEXT_TRUE='#'
14429   am__EXEEXT_FALSE=
14430 fi
14431
14432 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14433   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14435 fi
14436 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14437   as_fn_error "conditional \"AMDEP\" was never defined.
14438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14439 fi
14440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14441   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14443 fi
14444 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14445   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14447 fi
14448 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14449   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14451 fi
14452 if test -z "${MULTISUBDIR32_TRUE}" && test -z "${MULTISUBDIR32_FALSE}"; then
14453   as_fn_error "conditional \"MULTISUBDIR32\" was never defined.
14454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14455 fi
14456
14457 : ${CONFIG_STATUS=./config.status}
14458 ac_write_fail=0
14459 ac_clean_files_save=$ac_clean_files
14460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14462 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14463 as_write_fail=0
14464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14465 #! $SHELL
14466 # Generated by $as_me.
14467 # Run this file to recreate the current configuration.
14468 # Compiler output produced by configure, useful for debugging
14469 # configure, is in config.log if it exists.
14470
14471 debug=false
14472 ac_cs_recheck=false
14473 ac_cs_silent=false
14474
14475 SHELL=\${CONFIG_SHELL-$SHELL}
14476 export SHELL
14477 _ASEOF
14478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14479 ## -------------------- ##
14480 ## M4sh Initialization. ##
14481 ## -------------------- ##
14482
14483 # Be more Bourne compatible
14484 DUALCASE=1; export DUALCASE # for MKS sh
14485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14486   emulate sh
14487   NULLCMD=:
14488   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14489   # is contrary to our usage.  Disable this feature.
14490   alias -g '${1+"$@"}'='"$@"'
14491   setopt NO_GLOB_SUBST
14492 else
14493   case `(set -o) 2>/dev/null` in #(
14494   *posix*) :
14495     set -o posix ;; #(
14496   *) :
14497      ;;
14498 esac
14499 fi
14500
14501
14502 as_nl='
14503 '
14504 export as_nl
14505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14506 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14509 # Prefer a ksh shell builtin over an external printf program on Solaris,
14510 # but without wasting forks for bash or zsh.
14511 if test -z "$BASH_VERSION$ZSH_VERSION" \
14512     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14513   as_echo='print -r --'
14514   as_echo_n='print -rn --'
14515 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14516   as_echo='printf %s\n'
14517   as_echo_n='printf %s'
14518 else
14519   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14520     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14521     as_echo_n='/usr/ucb/echo -n'
14522   else
14523     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14524     as_echo_n_body='eval
14525       arg=$1;
14526       case $arg in #(
14527       *"$as_nl"*)
14528         expr "X$arg" : "X\\(.*\\)$as_nl";
14529         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14530       esac;
14531       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14532     '
14533     export as_echo_n_body
14534     as_echo_n='sh -c $as_echo_n_body as_echo'
14535   fi
14536   export as_echo_body
14537   as_echo='sh -c $as_echo_body as_echo'
14538 fi
14539
14540 # The user is always right.
14541 if test "${PATH_SEPARATOR+set}" != set; then
14542   PATH_SEPARATOR=:
14543   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14544     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14545       PATH_SEPARATOR=';'
14546   }
14547 fi
14548
14549
14550 # IFS
14551 # We need space, tab and new line, in precisely that order.  Quoting is
14552 # there to prevent editors from complaining about space-tab.
14553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14554 # splitting by setting IFS to empty value.)
14555 IFS=" ""        $as_nl"
14556
14557 # Find who we are.  Look in the path if we contain no directory separator.
14558 case $0 in #((
14559   *[\\/]* ) as_myself=$0 ;;
14560   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14562 do
14563   IFS=$as_save_IFS
14564   test -z "$as_dir" && as_dir=.
14565     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14566   done
14567 IFS=$as_save_IFS
14568
14569      ;;
14570 esac
14571 # We did not find ourselves, most probably we were run as `sh COMMAND'
14572 # in which case we are not to be found in the path.
14573 if test "x$as_myself" = x; then
14574   as_myself=$0
14575 fi
14576 if test ! -f "$as_myself"; then
14577   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14578   exit 1
14579 fi
14580
14581 # Unset variables that we do not need and which cause bugs (e.g. in
14582 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14583 # suppresses any "Segmentation fault" message there.  '((' could
14584 # trigger a bug in pdksh 5.2.14.
14585 for as_var in BASH_ENV ENV MAIL MAILPATH
14586 do eval test x\${$as_var+set} = xset \
14587   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14588 done
14589 PS1='$ '
14590 PS2='> '
14591 PS4='+ '
14592
14593 # NLS nuisances.
14594 LC_ALL=C
14595 export LC_ALL
14596 LANGUAGE=C
14597 export LANGUAGE
14598
14599 # CDPATH.
14600 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14601
14602
14603 # as_fn_error ERROR [LINENO LOG_FD]
14604 # ---------------------------------
14605 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14606 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14607 # script with status $?, using 1 if that was 0.
14608 as_fn_error ()
14609 {
14610   as_status=$?; test $as_status -eq 0 && as_status=1
14611   if test "$3"; then
14612     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14613     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14614   fi
14615   $as_echo "$as_me: error: $1" >&2
14616   as_fn_exit $as_status
14617 } # as_fn_error
14618
14619
14620 # as_fn_set_status STATUS
14621 # -----------------------
14622 # Set $? to STATUS, without forking.
14623 as_fn_set_status ()
14624 {
14625   return $1
14626 } # as_fn_set_status
14627
14628 # as_fn_exit STATUS
14629 # -----------------
14630 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14631 as_fn_exit ()
14632 {
14633   set +e
14634   as_fn_set_status $1
14635   exit $1
14636 } # as_fn_exit
14637
14638 # as_fn_unset VAR
14639 # ---------------
14640 # Portably unset VAR.
14641 as_fn_unset ()
14642 {
14643   { eval $1=; unset $1;}
14644 }
14645 as_unset=as_fn_unset
14646 # as_fn_append VAR VALUE
14647 # ----------------------
14648 # Append the text in VALUE to the end of the definition contained in VAR. Take
14649 # advantage of any shell optimizations that allow amortized linear growth over
14650 # repeated appends, instead of the typical quadratic growth present in naive
14651 # implementations.
14652 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14653   eval 'as_fn_append ()
14654   {
14655     eval $1+=\$2
14656   }'
14657 else
14658   as_fn_append ()
14659   {
14660     eval $1=\$$1\$2
14661   }
14662 fi # as_fn_append
14663
14664 # as_fn_arith ARG...
14665 # ------------------
14666 # Perform arithmetic evaluation on the ARGs, and store the result in the
14667 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14668 # must be portable across $(()) and expr.
14669 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14670   eval 'as_fn_arith ()
14671   {
14672     as_val=$(( $* ))
14673   }'
14674 else
14675   as_fn_arith ()
14676   {
14677     as_val=`expr "$@" || test $? -eq 1`
14678   }
14679 fi # as_fn_arith
14680
14681
14682 if expr a : '\(a\)' >/dev/null 2>&1 &&
14683    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14684   as_expr=expr
14685 else
14686   as_expr=false
14687 fi
14688
14689 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14690   as_basename=basename
14691 else
14692   as_basename=false
14693 fi
14694
14695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14696   as_dirname=dirname
14697 else
14698   as_dirname=false
14699 fi
14700
14701 as_me=`$as_basename -- "$0" ||
14702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14703          X"$0" : 'X\(//\)$' \| \
14704          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X/"$0" |
14706     sed '/^.*\/\([^/][^/]*\)\/*$/{
14707             s//\1/
14708             q
14709           }
14710           /^X\/\(\/\/\)$/{
14711             s//\1/
14712             q
14713           }
14714           /^X\/\(\/\).*/{
14715             s//\1/
14716             q
14717           }
14718           s/.*/./; q'`
14719
14720 # Avoid depending upon Character Ranges.
14721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14724 as_cr_digits='0123456789'
14725 as_cr_alnum=$as_cr_Letters$as_cr_digits
14726
14727 ECHO_C= ECHO_N= ECHO_T=
14728 case `echo -n x` in #(((((
14729 -n*)
14730   case `echo 'xy\c'` in
14731   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14732   xy)  ECHO_C='\c';;
14733   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14734        ECHO_T=' ';;
14735   esac;;
14736 *)
14737   ECHO_N='-n';;
14738 esac
14739
14740 rm -f conf$$ conf$$.exe conf$$.file
14741 if test -d conf$$.dir; then
14742   rm -f conf$$.dir/conf$$.file
14743 else
14744   rm -f conf$$.dir
14745   mkdir conf$$.dir 2>/dev/null
14746 fi
14747 if (echo >conf$$.file) 2>/dev/null; then
14748   if ln -s conf$$.file conf$$ 2>/dev/null; then
14749     as_ln_s='ln -s'
14750     # ... but there are two gotchas:
14751     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14752     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14753     # In both cases, we have to default to `cp -p'.
14754     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14755       as_ln_s='cp -p'
14756   elif ln conf$$.file conf$$ 2>/dev/null; then
14757     as_ln_s=ln
14758   else
14759     as_ln_s='cp -p'
14760   fi
14761 else
14762   as_ln_s='cp -p'
14763 fi
14764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14765 rmdir conf$$.dir 2>/dev/null
14766
14767
14768 # as_fn_mkdir_p
14769 # -------------
14770 # Create "$as_dir" as a directory, including parents if necessary.
14771 as_fn_mkdir_p ()
14772 {
14773
14774   case $as_dir in #(
14775   -*) as_dir=./$as_dir;;
14776   esac
14777   test -d "$as_dir" || eval $as_mkdir_p || {
14778     as_dirs=
14779     while :; do
14780       case $as_dir in #(
14781       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14782       *) as_qdir=$as_dir;;
14783       esac
14784       as_dirs="'$as_qdir' $as_dirs"
14785       as_dir=`$as_dirname -- "$as_dir" ||
14786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14787          X"$as_dir" : 'X\(//\)[^/]' \| \
14788          X"$as_dir" : 'X\(//\)$' \| \
14789          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14790 $as_echo X"$as_dir" |
14791     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14792             s//\1/
14793             q
14794           }
14795           /^X\(\/\/\)[^/].*/{
14796             s//\1/
14797             q
14798           }
14799           /^X\(\/\/\)$/{
14800             s//\1/
14801             q
14802           }
14803           /^X\(\/\).*/{
14804             s//\1/
14805             q
14806           }
14807           s/.*/./; q'`
14808       test -d "$as_dir" && break
14809     done
14810     test -z "$as_dirs" || eval "mkdir $as_dirs"
14811   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14812
14813
14814 } # as_fn_mkdir_p
14815 if mkdir -p . 2>/dev/null; then
14816   as_mkdir_p='mkdir -p "$as_dir"'
14817 else
14818   test -d ./-p && rmdir ./-p
14819   as_mkdir_p=false
14820 fi
14821
14822 if test -x / >/dev/null 2>&1; then
14823   as_test_x='test -x'
14824 else
14825   if ls -dL / >/dev/null 2>&1; then
14826     as_ls_L_option=L
14827   else
14828     as_ls_L_option=
14829   fi
14830   as_test_x='
14831     eval sh -c '\''
14832       if test -d "$1"; then
14833         test -d "$1/.";
14834       else
14835         case $1 in #(
14836         -*)set "./$1";;
14837         esac;
14838         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14839         ???[sx]*):;;*)false;;esac;fi
14840     '\'' sh
14841   '
14842 fi
14843 as_executable_p=$as_test_x
14844
14845 # Sed expression to map a string onto a valid CPP name.
14846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14847
14848 # Sed expression to map a string onto a valid variable name.
14849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14850
14851
14852 exec 6>&1
14853 ## ----------------------------------- ##
14854 ## Main body of $CONFIG_STATUS script. ##
14855 ## ----------------------------------- ##
14856 _ASEOF
14857 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14858
14859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860 # Save the log message, to keep $0 and so on meaningful, and to
14861 # report actual input values of CONFIG_FILES etc. instead of their
14862 # values after options handling.
14863 ac_log="
14864 This file was extended by package-unused $as_me version-unused, which was
14865 generated by GNU Autoconf 2.64.  Invocation command line was
14866
14867   CONFIG_FILES    = $CONFIG_FILES
14868   CONFIG_HEADERS  = $CONFIG_HEADERS
14869   CONFIG_LINKS    = $CONFIG_LINKS
14870   CONFIG_COMMANDS = $CONFIG_COMMANDS
14871   $ $0 $@
14872
14873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14874 "
14875
14876 _ACEOF
14877
14878 case $ac_config_files in *"
14879 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14880 esac
14881
14882
14883
14884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14885 # Files that config.status was made for.
14886 config_files="$ac_config_files"
14887 config_commands="$ac_config_commands"
14888
14889 _ACEOF
14890
14891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14892 ac_cs_usage="\
14893 \`$as_me' instantiates files and other configuration actions
14894 from templates according to the current configuration.  Unless the files
14895 and actions are specified as TAGs, all are instantiated by default.
14896
14897 Usage: $0 [OPTION]... [TAG]...
14898
14899   -h, --help       print this help, then exit
14900   -V, --version    print version number and configuration settings, then exit
14901   -q, --quiet, --silent
14902                    do not print progress messages
14903   -d, --debug      don't remove temporary files
14904       --recheck    update $as_me by reconfiguring in the same conditions
14905       --file=FILE[:TEMPLATE]
14906                    instantiate the configuration file FILE
14907
14908 Configuration files:
14909 $config_files
14910
14911 Configuration commands:
14912 $config_commands
14913
14914 Report bugs to <libsanitizer>."
14915
14916 _ACEOF
14917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14918 ac_cs_version="\\
14919 package-unused config.status version-unused
14920 configured by $0, generated by GNU Autoconf 2.64,
14921   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14922
14923 Copyright (C) 2009 Free Software Foundation, Inc.
14924 This config.status script is free software; the Free Software Foundation
14925 gives unlimited permission to copy, distribute and modify it."
14926
14927 ac_pwd='$ac_pwd'
14928 srcdir='$srcdir'
14929 INSTALL='$INSTALL'
14930 MKDIR_P='$MKDIR_P'
14931 AWK='$AWK'
14932 test -n "\$AWK" || AWK=awk
14933 _ACEOF
14934
14935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936 # The default lists apply if the user does not specify any file.
14937 ac_need_defaults=:
14938 while test $# != 0
14939 do
14940   case $1 in
14941   --*=*)
14942     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14943     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14944     ac_shift=:
14945     ;;
14946   *)
14947     ac_option=$1
14948     ac_optarg=$2
14949     ac_shift=shift
14950     ;;
14951   esac
14952
14953   case $ac_option in
14954   # Handling of the options.
14955   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14956     ac_cs_recheck=: ;;
14957   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14958     $as_echo "$ac_cs_version"; exit ;;
14959   --debug | --debu | --deb | --de | --d | -d )
14960     debug=: ;;
14961   --file | --fil | --fi | --f )
14962     $ac_shift
14963     case $ac_optarg in
14964     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14965     esac
14966     as_fn_append CONFIG_FILES " '$ac_optarg'"
14967     ac_need_defaults=false;;
14968   --he | --h |  --help | --hel | -h )
14969     $as_echo "$ac_cs_usage"; exit ;;
14970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14972     ac_cs_silent=: ;;
14973
14974   # This is an error.
14975   -*) as_fn_error "unrecognized option: \`$1'
14976 Try \`$0 --help' for more information." ;;
14977
14978   *) as_fn_append ac_config_targets " $1"
14979      ac_need_defaults=false ;;
14980
14981   esac
14982   shift
14983 done
14984
14985 ac_configure_extra_args=
14986
14987 if $ac_cs_silent; then
14988   exec 6>/dev/null
14989   ac_configure_extra_args="$ac_configure_extra_args --silent"
14990 fi
14991
14992 _ACEOF
14993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14994 if \$ac_cs_recheck; then
14995   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14996   shift
14997   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14998   CONFIG_SHELL='$SHELL'
14999   export CONFIG_SHELL
15000   exec "\$@"
15001 fi
15002
15003 _ACEOF
15004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15005 exec 5>>config.log
15006 {
15007   echo
15008   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15009 ## Running $as_me. ##
15010 _ASBOX
15011   $as_echo "$ac_log"
15012 } >&5
15013
15014 _ACEOF
15015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15016 #
15017 # INIT-COMMANDS
15018 #
15019
15020 srcdir="$srcdir"
15021 host="$host"
15022 target="$target"
15023 with_multisubdir="$with_multisubdir"
15024 with_multisrctop="$with_multisrctop"
15025 with_target_subdir="$with_target_subdir"
15026 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15027 multi_basedir="$multi_basedir"
15028 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15029 CC="$CC"
15030 CXX="$CXX"
15031 GFORTRAN="$GFORTRAN"
15032 GCJ="$GCJ"
15033 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15034
15035
15036 # The HP-UX ksh and POSIX shell print the target directory to stdout
15037 # if CDPATH is set.
15038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15039
15040 sed_quote_subst='$sed_quote_subst'
15041 double_quote_subst='$double_quote_subst'
15042 delay_variable_subst='$delay_variable_subst'
15043 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15044 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15045 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15047 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15048 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15049 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15050 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15051 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15052 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15053 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15054 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15055 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15056 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15057 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15058 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15059 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15060 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15061 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15062 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15063 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15064 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15065 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15066 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15067 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15068 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15069 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15070 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15071 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15072 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15073 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15074 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15075 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15076 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15077 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15078 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15079 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15080 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15081 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15082 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15083 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15084 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15085 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15086 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15087 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15088 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15089 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15090 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15091 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"`'
15092 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15093 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15094 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15095 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15096 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15097 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15098 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15099 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15100 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15101 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15102 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15103 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15104 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15105 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15106 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15107 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15108 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15109 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15110 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15111 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15112 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15113 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15114 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15115 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15116 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15117 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15118 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15119 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15120 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15121 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15122 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15123 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15124 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15125 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15126 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15127 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15128 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15129 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15130 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15131 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15132 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15133 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15134 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15135 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15136 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15137 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15138 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15139 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15140 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15141 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15142 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15143 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15144 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15145 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15146 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15147 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15148 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15149 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15150 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15151 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15152 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15153 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15154 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15155 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15156 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15157 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15158 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15159 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15160 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15161 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15162 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15163 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15164 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15165 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15166 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15167 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15168 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15169 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15170 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15171 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15172 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15173 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15174 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15175 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15176 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15177 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15178 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15179 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15180 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15181 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15182 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15183 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15184 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15185 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15186 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15187 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15188 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15189 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15190 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15191 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15192 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15193 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15194 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15195 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15196 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15197 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15198 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15199 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15200 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15201 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15202 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15203 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15204 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15205 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15206 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15207 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15208 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15209 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15210 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15211 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15212 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15213 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15214 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15215 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15216 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15217 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15218
15219 LTCC='$LTCC'
15220 LTCFLAGS='$LTCFLAGS'
15221 compiler='$compiler_DEFAULT'
15222
15223 # A function that is used when there is no print builtin or printf.
15224 func_fallback_echo ()
15225 {
15226   eval 'cat <<_LTECHO_EOF
15227 \$1
15228 _LTECHO_EOF'
15229 }
15230
15231 # Quote evaled strings.
15232 for var in SHELL \
15233 ECHO \
15234 SED \
15235 GREP \
15236 EGREP \
15237 FGREP \
15238 LD \
15239 NM \
15240 LN_S \
15241 lt_SP2NL \
15242 lt_NL2SP \
15243 reload_flag \
15244 OBJDUMP \
15245 deplibs_check_method \
15246 file_magic_cmd \
15247 AR \
15248 AR_FLAGS \
15249 STRIP \
15250 RANLIB \
15251 CC \
15252 CFLAGS \
15253 compiler \
15254 lt_cv_sys_global_symbol_pipe \
15255 lt_cv_sys_global_symbol_to_cdecl \
15256 lt_cv_sys_global_symbol_to_c_name_address \
15257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15258 lt_prog_compiler_no_builtin_flag \
15259 lt_prog_compiler_wl \
15260 lt_prog_compiler_pic \
15261 lt_prog_compiler_static \
15262 lt_cv_prog_compiler_c_o \
15263 need_locks \
15264 DSYMUTIL \
15265 NMEDIT \
15266 LIPO \
15267 OTOOL \
15268 OTOOL64 \
15269 shrext_cmds \
15270 export_dynamic_flag_spec \
15271 whole_archive_flag_spec \
15272 compiler_needs_object \
15273 with_gnu_ld \
15274 allow_undefined_flag \
15275 no_undefined_flag \
15276 hardcode_libdir_flag_spec \
15277 hardcode_libdir_flag_spec_ld \
15278 hardcode_libdir_separator \
15279 fix_srcfile_path \
15280 exclude_expsyms \
15281 include_expsyms \
15282 file_list_spec \
15283 variables_saved_for_relink \
15284 libname_spec \
15285 library_names_spec \
15286 soname_spec \
15287 install_override_mode \
15288 finish_eval \
15289 old_striplib \
15290 striplib \
15291 compiler_lib_search_dirs \
15292 predep_objects \
15293 postdep_objects \
15294 predeps \
15295 postdeps \
15296 compiler_lib_search_path \
15297 LD_CXX \
15298 reload_flag_CXX \
15299 compiler_CXX \
15300 lt_prog_compiler_no_builtin_flag_CXX \
15301 lt_prog_compiler_wl_CXX \
15302 lt_prog_compiler_pic_CXX \
15303 lt_prog_compiler_static_CXX \
15304 lt_cv_prog_compiler_c_o_CXX \
15305 export_dynamic_flag_spec_CXX \
15306 whole_archive_flag_spec_CXX \
15307 compiler_needs_object_CXX \
15308 with_gnu_ld_CXX \
15309 allow_undefined_flag_CXX \
15310 no_undefined_flag_CXX \
15311 hardcode_libdir_flag_spec_CXX \
15312 hardcode_libdir_flag_spec_ld_CXX \
15313 hardcode_libdir_separator_CXX \
15314 fix_srcfile_path_CXX \
15315 exclude_expsyms_CXX \
15316 include_expsyms_CXX \
15317 file_list_spec_CXX \
15318 compiler_lib_search_dirs_CXX \
15319 predep_objects_CXX \
15320 postdep_objects_CXX \
15321 predeps_CXX \
15322 postdeps_CXX \
15323 compiler_lib_search_path_CXX; do
15324     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15325     *[\\\\\\\`\\"\\\$]*)
15326       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15327       ;;
15328     *)
15329       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15330       ;;
15331     esac
15332 done
15333
15334 # Double-quote double-evaled strings.
15335 for var in reload_cmds \
15336 old_postinstall_cmds \
15337 old_postuninstall_cmds \
15338 old_archive_cmds \
15339 extract_expsyms_cmds \
15340 old_archive_from_new_cmds \
15341 old_archive_from_expsyms_cmds \
15342 archive_cmds \
15343 archive_expsym_cmds \
15344 module_cmds \
15345 module_expsym_cmds \
15346 export_symbols_cmds \
15347 prelink_cmds \
15348 postinstall_cmds \
15349 postuninstall_cmds \
15350 finish_cmds \
15351 sys_lib_search_path_spec \
15352 sys_lib_dlsearch_path_spec \
15353 reload_cmds_CXX \
15354 old_archive_cmds_CXX \
15355 old_archive_from_new_cmds_CXX \
15356 old_archive_from_expsyms_cmds_CXX \
15357 archive_cmds_CXX \
15358 archive_expsym_cmds_CXX \
15359 module_cmds_CXX \
15360 module_expsym_cmds_CXX \
15361 export_symbols_cmds_CXX \
15362 prelink_cmds_CXX; do
15363     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15364     *[\\\\\\\`\\"\\\$]*)
15365       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15366       ;;
15367     *)
15368       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15369       ;;
15370     esac
15371 done
15372
15373 ac_aux_dir='$ac_aux_dir'
15374 xsi_shell='$xsi_shell'
15375 lt_shell_append='$lt_shell_append'
15376
15377 # See if we are running on zsh, and set the options which allow our
15378 # commands through without removal of \ escapes INIT.
15379 if test -n "\${ZSH_VERSION+set}" ; then
15380    setopt NO_GLOB_SUBST
15381 fi
15382
15383
15384     PACKAGE='$PACKAGE'
15385     VERSION='$VERSION'
15386     TIMESTAMP='$TIMESTAMP'
15387     RM='$RM'
15388     ofile='$ofile'
15389
15390
15391
15392
15393
15394
15395 _ACEOF
15396
15397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15398
15399 # Handling of arguments.
15400 for ac_config_target in $ac_config_targets
15401 do
15402   case $ac_config_target in
15403     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15404     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15405     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15406     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15407     "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15408     "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15409     "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15410     "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
15411
15412   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15413   esac
15414 done
15415
15416
15417 # If the user did not use the arguments to specify the items to instantiate,
15418 # then the envvar interface is used.  Set only those that are not.
15419 # We use the long form for the default assignment because of an extremely
15420 # bizarre bug on SunOS 4.1.3.
15421 if $ac_need_defaults; then
15422   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15423   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15424 fi
15425
15426 # Have a temporary directory for convenience.  Make it in the build tree
15427 # simply because there is no reason against having it here, and in addition,
15428 # creating and moving files from /tmp can sometimes cause problems.
15429 # Hook for its removal unless debugging.
15430 # Note that there is a small window in which the directory will not be cleaned:
15431 # after its creation but before its name has been assigned to `$tmp'.
15432 $debug ||
15433 {
15434   tmp=
15435   trap 'exit_status=$?
15436   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15437 ' 0
15438   trap 'as_fn_exit 1' 1 2 13 15
15439 }
15440 # Create a (secure) tmp directory for tmp files.
15441
15442 {
15443   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15444   test -n "$tmp" && test -d "$tmp"
15445 }  ||
15446 {
15447   tmp=./conf$$-$RANDOM
15448   (umask 077 && mkdir "$tmp")
15449 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15450
15451 # Set up the scripts for CONFIG_FILES section.
15452 # No need to generate them if there are no CONFIG_FILES.
15453 # This happens for instance with `./config.status config.h'.
15454 if test -n "$CONFIG_FILES"; then
15455
15456
15457 ac_cr=`echo X | tr X '\015'`
15458 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15459 # But we know of no other shell where ac_cr would be empty at this
15460 # point, so we can use a bashism as a fallback.
15461 if test "x$ac_cr" = x; then
15462   eval ac_cr=\$\'\\r\'
15463 fi
15464 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15465 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15466   ac_cs_awk_cr='\r'
15467 else
15468   ac_cs_awk_cr=$ac_cr
15469 fi
15470
15471 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15472 _ACEOF
15473
15474
15475 {
15476   echo "cat >conf$$subs.awk <<_ACEOF" &&
15477   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15478   echo "_ACEOF"
15479 } >conf$$subs.sh ||
15480   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15481 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15482 ac_delim='%!_!# '
15483 for ac_last_try in false false false false false :; do
15484   . ./conf$$subs.sh ||
15485     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15486
15487   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15488   if test $ac_delim_n = $ac_delim_num; then
15489     break
15490   elif $ac_last_try; then
15491     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15492   else
15493     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15494   fi
15495 done
15496 rm -f conf$$subs.sh
15497
15498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15499 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15500 _ACEOF
15501 sed -n '
15502 h
15503 s/^/S["/; s/!.*/"]=/
15504 p
15505 g
15506 s/^[^!]*!//
15507 :repl
15508 t repl
15509 s/'"$ac_delim"'$//
15510 t delim
15511 :nl
15512 h
15513 s/\(.\{148\}\).*/\1/
15514 t more1
15515 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15516 p
15517 n
15518 b repl
15519 :more1
15520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15521 p
15522 g
15523 s/.\{148\}//
15524 t nl
15525 :delim
15526 h
15527 s/\(.\{148\}\).*/\1/
15528 t more2
15529 s/["\\]/\\&/g; s/^/"/; s/$/"/
15530 p
15531 b
15532 :more2
15533 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15534 p
15535 g
15536 s/.\{148\}//
15537 t delim
15538 ' <conf$$subs.awk | sed '
15539 /^[^""]/{
15540   N
15541   s/\n//
15542 }
15543 ' >>$CONFIG_STATUS || ac_write_fail=1
15544 rm -f conf$$subs.awk
15545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546 _ACAWK
15547 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15548   for (key in S) S_is_set[key] = 1
15549   FS = "\a"
15550
15551 }
15552 {
15553   line = $ 0
15554   nfields = split(line, field, "@")
15555   substed = 0
15556   len = length(field[1])
15557   for (i = 2; i < nfields; i++) {
15558     key = field[i]
15559     keylen = length(key)
15560     if (S_is_set[key]) {
15561       value = S[key]
15562       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15563       len += length(value) + length(field[++i])
15564       substed = 1
15565     } else
15566       len += 1 + keylen
15567   }
15568
15569   print line
15570 }
15571
15572 _ACAWK
15573 _ACEOF
15574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15575 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15576   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15577 else
15578   cat
15579 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15580   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15581 _ACEOF
15582
15583 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15585 # trailing colons and then remove the whole line if VPATH becomes empty
15586 # (actually we leave an empty line to preserve line numbers).
15587 if test "x$srcdir" = x.; then
15588   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15589 s/:*\$(srcdir):*/:/
15590 s/:*\${srcdir}:*/:/
15591 s/:*@srcdir@:*/:/
15592 s/^\([^=]*=[     ]*\):*/\1/
15593 s/:*$//
15594 s/^[^=]*=[       ]*$//
15595 }'
15596 fi
15597
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599 fi # test -n "$CONFIG_FILES"
15600
15601
15602 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15603 shift
15604 for ac_tag
15605 do
15606   case $ac_tag in
15607   :[FHLC]) ac_mode=$ac_tag; continue;;
15608   esac
15609   case $ac_mode$ac_tag in
15610   :[FHL]*:*);;
15611   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15612   :[FH]-) ac_tag=-:-;;
15613   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15614   esac
15615   ac_save_IFS=$IFS
15616   IFS=:
15617   set x $ac_tag
15618   IFS=$ac_save_IFS
15619   shift
15620   ac_file=$1
15621   shift
15622
15623   case $ac_mode in
15624   :L) ac_source=$1;;
15625   :[FH])
15626     ac_file_inputs=
15627     for ac_f
15628     do
15629       case $ac_f in
15630       -) ac_f="$tmp/stdin";;
15631       *) # Look for the file first in the build tree, then in the source tree
15632          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15633          # because $ac_f cannot contain `:'.
15634          test -f "$ac_f" ||
15635            case $ac_f in
15636            [\\/$]*) false;;
15637            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15638            esac ||
15639            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15640       esac
15641       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15642       as_fn_append ac_file_inputs " '$ac_f'"
15643     done
15644
15645     # Let's still pretend it is `configure' which instantiates (i.e., don't
15646     # use $as_me), people would be surprised to read:
15647     #    /* config.h.  Generated by config.status.  */
15648     configure_input='Generated from '`
15649           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15650         `' by configure.'
15651     if test x"$ac_file" != x-; then
15652       configure_input="$ac_file.  $configure_input"
15653       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15654 $as_echo "$as_me: creating $ac_file" >&6;}
15655     fi
15656     # Neutralize special characters interpreted by sed in replacement strings.
15657     case $configure_input in #(
15658     *\&* | *\|* | *\\* )
15659        ac_sed_conf_input=`$as_echo "$configure_input" |
15660        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15661     *) ac_sed_conf_input=$configure_input;;
15662     esac
15663
15664     case $ac_tag in
15665     *:-:* | *:-) cat >"$tmp/stdin" \
15666       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15667     esac
15668     ;;
15669   esac
15670
15671   ac_dir=`$as_dirname -- "$ac_file" ||
15672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15673          X"$ac_file" : 'X\(//\)[^/]' \| \
15674          X"$ac_file" : 'X\(//\)$' \| \
15675          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15676 $as_echo X"$ac_file" |
15677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15678             s//\1/
15679             q
15680           }
15681           /^X\(\/\/\)[^/].*/{
15682             s//\1/
15683             q
15684           }
15685           /^X\(\/\/\)$/{
15686             s//\1/
15687             q
15688           }
15689           /^X\(\/\).*/{
15690             s//\1/
15691             q
15692           }
15693           s/.*/./; q'`
15694   as_dir="$ac_dir"; as_fn_mkdir_p
15695   ac_builddir=.
15696
15697 case "$ac_dir" in
15698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15699 *)
15700   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15701   # A ".." for each directory in $ac_dir_suffix.
15702   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15703   case $ac_top_builddir_sub in
15704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15706   esac ;;
15707 esac
15708 ac_abs_top_builddir=$ac_pwd
15709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15710 # for backward compatibility:
15711 ac_top_builddir=$ac_top_build_prefix
15712
15713 case $srcdir in
15714   .)  # We are building in place.
15715     ac_srcdir=.
15716     ac_top_srcdir=$ac_top_builddir_sub
15717     ac_abs_top_srcdir=$ac_pwd ;;
15718   [\\/]* | ?:[\\/]* )  # Absolute name.
15719     ac_srcdir=$srcdir$ac_dir_suffix;
15720     ac_top_srcdir=$srcdir
15721     ac_abs_top_srcdir=$srcdir ;;
15722   *) # Relative name.
15723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15724     ac_top_srcdir=$ac_top_build_prefix$srcdir
15725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15726 esac
15727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15728
15729
15730   case $ac_mode in
15731   :F)
15732   #
15733   # CONFIG_FILE
15734   #
15735
15736   case $INSTALL in
15737   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15738   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15739   esac
15740   ac_MKDIR_P=$MKDIR_P
15741   case $MKDIR_P in
15742   [\\/$]* | ?:[\\/]* ) ;;
15743   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15744   esac
15745 _ACEOF
15746
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 # If the template does not know about datarootdir, expand it.
15749 # FIXME: This hack should be removed a few years after 2.60.
15750 ac_datarootdir_hack=; ac_datarootdir_seen=
15751 ac_sed_dataroot='
15752 /datarootdir/ {
15753   p
15754   q
15755 }
15756 /@datadir@/p
15757 /@docdir@/p
15758 /@infodir@/p
15759 /@localedir@/p
15760 /@mandir@/p'
15761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15762 *datarootdir*) ac_datarootdir_seen=yes;;
15763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15766 _ACEOF
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768   ac_datarootdir_hack='
15769   s&@datadir@&$datadir&g
15770   s&@docdir@&$docdir&g
15771   s&@infodir@&$infodir&g
15772   s&@localedir@&$localedir&g
15773   s&@mandir@&$mandir&g
15774   s&\\\${datarootdir}&$datarootdir&g' ;;
15775 esac
15776 _ACEOF
15777
15778 # Neutralize VPATH when `$srcdir' = `.'.
15779 # Shell code in configure.ac might set extrasub.
15780 # FIXME: do we really want to maintain this feature?
15781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782 ac_sed_extra="$ac_vpsub
15783 $extrasub
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786 :t
15787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15788 s|@configure_input@|$ac_sed_conf_input|;t t
15789 s&@top_builddir@&$ac_top_builddir_sub&;t t
15790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15791 s&@srcdir@&$ac_srcdir&;t t
15792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793 s&@top_srcdir@&$ac_top_srcdir&;t t
15794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795 s&@builddir@&$ac_builddir&;t t
15796 s&@abs_builddir@&$ac_abs_builddir&;t t
15797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798 s&@INSTALL@&$ac_INSTALL&;t t
15799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15800 $ac_datarootdir_hack
15801 "
15802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15803   || as_fn_error "could not create $ac_file" "$LINENO" 5
15804
15805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15806   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15807   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15808   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15809 which seems to be undefined.  Please make sure it is defined." >&5
15810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15811 which seems to be undefined.  Please make sure it is defined." >&2;}
15812
15813   rm -f "$tmp/stdin"
15814   case $ac_file in
15815   -) cat "$tmp/out" && rm -f "$tmp/out";;
15816   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15817   esac \
15818   || as_fn_error "could not create $ac_file" "$LINENO" 5
15819  ;;
15820
15821
15822   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15823 $as_echo "$as_me: executing $ac_file commands" >&6;}
15824  ;;
15825   esac
15826
15827
15828   case $ac_file$ac_mode in
15829     "default-1":C)
15830 # Only add multilib support code if we just rebuilt the top-level
15831 # Makefile.
15832 case " $CONFIG_FILES " in
15833  *" Makefile "*)
15834    ac_file=Makefile . ${multi_basedir}/config-ml.in
15835    ;;
15836 esac ;;
15837     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15838   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15839   # are listed without --file.  Let's play safe and only enable the eval
15840   # if we detect the quoting.
15841   case $CONFIG_FILES in
15842   *\'*) eval set x "$CONFIG_FILES" ;;
15843   *)   set x $CONFIG_FILES ;;
15844   esac
15845   shift
15846   for mf
15847   do
15848     # Strip MF so we end up with the name of the file.
15849     mf=`echo "$mf" | sed -e 's/:.*$//'`
15850     # Check whether this is an Automake generated Makefile or not.
15851     # We used to match only the files named `Makefile.in', but
15852     # some people rename them; so instead we look at the file content.
15853     # Grep'ing the first line is not enough: some people post-process
15854     # each Makefile.in and add a new line on top of each file to say so.
15855     # Grep'ing the whole file is not good either: AIX grep has a line
15856     # limit of 2048, but all sed's we know have understand at least 4000.
15857     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15858       dirpart=`$as_dirname -- "$mf" ||
15859 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860          X"$mf" : 'X\(//\)[^/]' \| \
15861          X"$mf" : 'X\(//\)$' \| \
15862          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15863 $as_echo X"$mf" |
15864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865             s//\1/
15866             q
15867           }
15868           /^X\(\/\/\)[^/].*/{
15869             s//\1/
15870             q
15871           }
15872           /^X\(\/\/\)$/{
15873             s//\1/
15874             q
15875           }
15876           /^X\(\/\).*/{
15877             s//\1/
15878             q
15879           }
15880           s/.*/./; q'`
15881     else
15882       continue
15883     fi
15884     # Extract the definition of DEPDIR, am__include, and am__quote
15885     # from the Makefile without running `make'.
15886     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15887     test -z "$DEPDIR" && continue
15888     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15889     test -z "am__include" && continue
15890     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15891     # When using ansi2knr, U may be empty or an underscore; expand it
15892     U=`sed -n 's/^U = //p' < "$mf"`
15893     # Find all dependency output files, they are included files with
15894     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15895     # simplest approach to changing $(DEPDIR) to its actual value in the
15896     # expansion.
15897     for file in `sed -n "
15898       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15899          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15900       # Make sure the directory exists.
15901       test -f "$dirpart/$file" && continue
15902       fdir=`$as_dirname -- "$file" ||
15903 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15904          X"$file" : 'X\(//\)[^/]' \| \
15905          X"$file" : 'X\(//\)$' \| \
15906          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15907 $as_echo X"$file" |
15908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15909             s//\1/
15910             q
15911           }
15912           /^X\(\/\/\)[^/].*/{
15913             s//\1/
15914             q
15915           }
15916           /^X\(\/\/\)$/{
15917             s//\1/
15918             q
15919           }
15920           /^X\(\/\).*/{
15921             s//\1/
15922             q
15923           }
15924           s/.*/./; q'`
15925       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15926       # echo "creating $dirpart/$file"
15927       echo '# dummy' > "$dirpart/$file"
15928     done
15929   done
15930 }
15931  ;;
15932     "libtool":C)
15933
15934     # See if we are running on zsh, and set the options which allow our
15935     # commands through without removal of \ escapes.
15936     if test -n "${ZSH_VERSION+set}" ; then
15937       setopt NO_GLOB_SUBST
15938     fi
15939
15940     cfgfile="${ofile}T"
15941     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15942     $RM "$cfgfile"
15943
15944     cat <<_LT_EOF >> "$cfgfile"
15945 #! $SHELL
15946
15947 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15948 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15951 #
15952 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15953 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15954 #   Written by Gordon Matzigkeit, 1996
15955 #
15956 #   This file is part of GNU Libtool.
15957 #
15958 # GNU Libtool is free software; you can redistribute it and/or
15959 # modify it under the terms of the GNU General Public License as
15960 # published by the Free Software Foundation; either version 2 of
15961 # the License, or (at your option) any later version.
15962 #
15963 # As a special exception to the GNU General Public License,
15964 # if you distribute this file as part of a program or library that
15965 # is built using GNU Libtool, you may include this file under the
15966 # same distribution terms that you use for the rest of that program.
15967 #
15968 # GNU Libtool is distributed in the hope that it will be useful,
15969 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15970 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15971 # GNU General Public License for more details.
15972 #
15973 # You should have received a copy of the GNU General Public License
15974 # along with GNU Libtool; see the file COPYING.  If not, a copy
15975 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15976 # obtained by writing to the Free Software Foundation, Inc.,
15977 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15978
15979
15980 # The names of the tagged configurations supported by this script.
15981 available_tags="CXX "
15982
15983 # ### BEGIN LIBTOOL CONFIG
15984
15985 # Which release of libtool.m4 was used?
15986 macro_version=$macro_version
15987 macro_revision=$macro_revision
15988
15989 # Whether or not to build shared libraries.
15990 build_libtool_libs=$enable_shared
15991
15992 # Whether or not to build static libraries.
15993 build_old_libs=$enable_static
15994
15995 # What type of objects to build.
15996 pic_mode=$pic_mode
15997
15998 # Whether or not to optimize for fast installation.
15999 fast_install=$enable_fast_install
16000
16001 # Shell to use when invoking shell scripts.
16002 SHELL=$lt_SHELL
16003
16004 # An echo program that protects backslashes.
16005 ECHO=$lt_ECHO
16006
16007 # The host system.
16008 host_alias=$host_alias
16009 host=$host
16010 host_os=$host_os
16011
16012 # The build system.
16013 build_alias=$build_alias
16014 build=$build
16015 build_os=$build_os
16016
16017 # A sed program that does not truncate output.
16018 SED=$lt_SED
16019
16020 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16021 Xsed="\$SED -e 1s/^X//"
16022
16023 # A grep program that handles long lines.
16024 GREP=$lt_GREP
16025
16026 # An ERE matcher.
16027 EGREP=$lt_EGREP
16028
16029 # A literal string matcher.
16030 FGREP=$lt_FGREP
16031
16032 # A BSD- or MS-compatible name lister.
16033 NM=$lt_NM
16034
16035 # Whether we need soft or hard links.
16036 LN_S=$lt_LN_S
16037
16038 # What is the maximum length of a command?
16039 max_cmd_len=$max_cmd_len
16040
16041 # Object file suffix (normally "o").
16042 objext=$ac_objext
16043
16044 # Executable file suffix (normally "").
16045 exeext=$exeext
16046
16047 # whether the shell understands "unset".
16048 lt_unset=$lt_unset
16049
16050 # turn spaces into newlines.
16051 SP2NL=$lt_lt_SP2NL
16052
16053 # turn newlines into spaces.
16054 NL2SP=$lt_lt_NL2SP
16055
16056 # An object symbol dumper.
16057 OBJDUMP=$lt_OBJDUMP
16058
16059 # Method to check whether dependent libraries are shared objects.
16060 deplibs_check_method=$lt_deplibs_check_method
16061
16062 # Command to use when deplibs_check_method == "file_magic".
16063 file_magic_cmd=$lt_file_magic_cmd
16064
16065 # The archiver.
16066 AR=$lt_AR
16067 AR_FLAGS=$lt_AR_FLAGS
16068
16069 # A symbol stripping program.
16070 STRIP=$lt_STRIP
16071
16072 # Commands used to install an old-style archive.
16073 RANLIB=$lt_RANLIB
16074 old_postinstall_cmds=$lt_old_postinstall_cmds
16075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16076
16077 # Whether to use a lock for old archive extraction.
16078 lock_old_archive_extraction=$lock_old_archive_extraction
16079
16080 # A C compiler.
16081 LTCC=$lt_CC
16082
16083 # LTCC compiler flags.
16084 LTCFLAGS=$lt_CFLAGS
16085
16086 # Take the output of nm and produce a listing of raw symbols and C names.
16087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16088
16089 # Transform the output of nm in a proper C declaration.
16090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16091
16092 # Transform the output of nm in a C name address pair.
16093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16094
16095 # Transform the output of nm in a C name address pair when lib prefix is needed.
16096 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16097
16098 # The name of the directory that contains temporary libtool files.
16099 objdir=$objdir
16100
16101 # Used to examine libraries when file_magic_cmd begins with "file".
16102 MAGIC_CMD=$MAGIC_CMD
16103
16104 # Must we lock files when doing compilation?
16105 need_locks=$lt_need_locks
16106
16107 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16108 DSYMUTIL=$lt_DSYMUTIL
16109
16110 # Tool to change global to local symbols on Mac OS X.
16111 NMEDIT=$lt_NMEDIT
16112
16113 # Tool to manipulate fat objects and archives on Mac OS X.
16114 LIPO=$lt_LIPO
16115
16116 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16117 OTOOL=$lt_OTOOL
16118
16119 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16120 OTOOL64=$lt_OTOOL64
16121
16122 # Old archive suffix (normally "a").
16123 libext=$libext
16124
16125 # Shared library suffix (normally ".so").
16126 shrext_cmds=$lt_shrext_cmds
16127
16128 # The commands to extract the exported symbol list from a shared archive.
16129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16130
16131 # Variables whose values should be saved in libtool wrapper scripts and
16132 # restored at link time.
16133 variables_saved_for_relink=$lt_variables_saved_for_relink
16134
16135 # Do we need the "lib" prefix for modules?
16136 need_lib_prefix=$need_lib_prefix
16137
16138 # Do we need a version for libraries?
16139 need_version=$need_version
16140
16141 # Library versioning type.
16142 version_type=$version_type
16143
16144 # Shared library runtime path variable.
16145 runpath_var=$runpath_var
16146
16147 # Shared library path variable.
16148 shlibpath_var=$shlibpath_var
16149
16150 # Is shlibpath searched before the hard-coded library search path?
16151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16152
16153 # Format of library name prefix.
16154 libname_spec=$lt_libname_spec
16155
16156 # List of archive names.  First name is the real one, the rest are links.
16157 # The last name is the one that the linker finds with -lNAME
16158 library_names_spec=$lt_library_names_spec
16159
16160 # The coded name of the library, if different from the real name.
16161 soname_spec=$lt_soname_spec
16162
16163 # Permission mode override for installation of shared libraries.
16164 install_override_mode=$lt_install_override_mode
16165
16166 # Command to use after installation of a shared archive.
16167 postinstall_cmds=$lt_postinstall_cmds
16168
16169 # Command to use after uninstallation of a shared archive.
16170 postuninstall_cmds=$lt_postuninstall_cmds
16171
16172 # Commands used to finish a libtool library installation in a directory.
16173 finish_cmds=$lt_finish_cmds
16174
16175 # As "finish_cmds", except a single script fragment to be evaled but
16176 # not shown.
16177 finish_eval=$lt_finish_eval
16178
16179 # Whether we should hardcode library paths into libraries.
16180 hardcode_into_libs=$hardcode_into_libs
16181
16182 # Compile-time system search path for libraries.
16183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16184
16185 # Run-time system search path for libraries.
16186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16187
16188 # Whether dlopen is supported.
16189 dlopen_support=$enable_dlopen
16190
16191 # Whether dlopen of programs is supported.
16192 dlopen_self=$enable_dlopen_self
16193
16194 # Whether dlopen of statically linked programs is supported.
16195 dlopen_self_static=$enable_dlopen_self_static
16196
16197 # Commands to strip libraries.
16198 old_striplib=$lt_old_striplib
16199 striplib=$lt_striplib
16200
16201
16202 # The linker used to build libraries.
16203 LD=$lt_LD
16204
16205 # How to create reloadable object files.
16206 reload_flag=$lt_reload_flag
16207 reload_cmds=$lt_reload_cmds
16208
16209 # Commands used to build an old-style archive.
16210 old_archive_cmds=$lt_old_archive_cmds
16211
16212 # A language specific compiler.
16213 CC=$lt_compiler
16214
16215 # Is the compiler the GNU compiler?
16216 with_gcc=$GCC
16217
16218 # Compiler flag to turn off builtin functions.
16219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16220
16221 # How to pass a linker flag through the compiler.
16222 wl=$lt_lt_prog_compiler_wl
16223
16224 # Additional compiler flags for building library objects.
16225 pic_flag=$lt_lt_prog_compiler_pic
16226
16227 # Compiler flag to prevent dynamic linking.
16228 link_static_flag=$lt_lt_prog_compiler_static
16229
16230 # Does compiler simultaneously support -c and -o options?
16231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16232
16233 # Whether or not to add -lc for building shared libraries.
16234 build_libtool_need_lc=$archive_cmds_need_lc
16235
16236 # Whether or not to disallow shared libs when runtime libs are static.
16237 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16238
16239 # Compiler flag to allow reflexive dlopens.
16240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16241
16242 # Compiler flag to generate shared objects directly from archives.
16243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16244
16245 # Whether the compiler copes with passing no objects directly.
16246 compiler_needs_object=$lt_compiler_needs_object
16247
16248 # Create an old-style archive from a shared archive.
16249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16250
16251 # Create a temporary old-style archive to link instead of a shared archive.
16252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16253
16254 # Commands used to build a shared archive.
16255 archive_cmds=$lt_archive_cmds
16256 archive_expsym_cmds=$lt_archive_expsym_cmds
16257
16258 # Commands used to build a loadable module if different from building
16259 # a shared archive.
16260 module_cmds=$lt_module_cmds
16261 module_expsym_cmds=$lt_module_expsym_cmds
16262
16263 # Whether we are building with GNU ld or not.
16264 with_gnu_ld=$lt_with_gnu_ld
16265
16266 # Flag that allows shared libraries with undefined symbols to be built.
16267 allow_undefined_flag=$lt_allow_undefined_flag
16268
16269 # Flag that enforces no undefined symbols.
16270 no_undefined_flag=$lt_no_undefined_flag
16271
16272 # Flag to hardcode \$libdir into a binary during linking.
16273 # This must work even if \$libdir does not exist
16274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16275
16276 # If ld is used when linking, flag to hardcode \$libdir into a binary
16277 # during linking.  This must work even if \$libdir does not exist.
16278 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16279
16280 # Whether we need a single "-rpath" flag with a separated argument.
16281 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16282
16283 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16284 # DIR into the resulting binary.
16285 hardcode_direct=$hardcode_direct
16286
16287 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16288 # DIR into the resulting binary and the resulting library dependency is
16289 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16290 # library is relocated.
16291 hardcode_direct_absolute=$hardcode_direct_absolute
16292
16293 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16294 # into the resulting binary.
16295 hardcode_minus_L=$hardcode_minus_L
16296
16297 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16298 # into the resulting binary.
16299 hardcode_shlibpath_var=$hardcode_shlibpath_var
16300
16301 # Set to "yes" if building a shared library automatically hardcodes DIR
16302 # into the library and all subsequent libraries and executables linked
16303 # against it.
16304 hardcode_automatic=$hardcode_automatic
16305
16306 # Set to yes if linker adds runtime paths of dependent libraries
16307 # to runtime path list.
16308 inherit_rpath=$inherit_rpath
16309
16310 # Whether libtool must link a program against all its dependency libraries.
16311 link_all_deplibs=$link_all_deplibs
16312
16313 # Fix the shell variable \$srcfile for the compiler.
16314 fix_srcfile_path=$lt_fix_srcfile_path
16315
16316 # Set to "yes" if exported symbols are required.
16317 always_export_symbols=$always_export_symbols
16318
16319 # The commands to list exported symbols.
16320 export_symbols_cmds=$lt_export_symbols_cmds
16321
16322 # Symbols that should not be listed in the preloaded symbols.
16323 exclude_expsyms=$lt_exclude_expsyms
16324
16325 # Symbols that must always be exported.
16326 include_expsyms=$lt_include_expsyms
16327
16328 # Commands necessary for linking programs (against libraries) with templates.
16329 prelink_cmds=$lt_prelink_cmds
16330
16331 # Specify filename containing input files.
16332 file_list_spec=$lt_file_list_spec
16333
16334 # How to hardcode a shared library path into an executable.
16335 hardcode_action=$hardcode_action
16336
16337 # The directories searched by this compiler when creating a shared library.
16338 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16339
16340 # Dependencies to place before and after the objects being linked to
16341 # create a shared library.
16342 predep_objects=$lt_predep_objects
16343 postdep_objects=$lt_postdep_objects
16344 predeps=$lt_predeps
16345 postdeps=$lt_postdeps
16346
16347 # The library search path used internally by the compiler when linking
16348 # a shared library.
16349 compiler_lib_search_path=$lt_compiler_lib_search_path
16350
16351 # ### END LIBTOOL CONFIG
16352
16353 _LT_EOF
16354
16355   case $host_os in
16356   aix3*)
16357     cat <<\_LT_EOF >> "$cfgfile"
16358 # AIX sometimes has problems with the GCC collect2 program.  For some
16359 # reason, if we set the COLLECT_NAMES environment variable, the problems
16360 # vanish in a puff of smoke.
16361 if test "X${COLLECT_NAMES+set}" != Xset; then
16362   COLLECT_NAMES=
16363   export COLLECT_NAMES
16364 fi
16365 _LT_EOF
16366     ;;
16367   esac
16368
16369
16370 ltmain="$ac_aux_dir/ltmain.sh"
16371
16372
16373   # We use sed instead of cat because bash on DJGPP gets confused if
16374   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16375   # text mode, it properly converts lines to CR/LF.  This bash problem
16376   # is reportedly fixed, but why not run on old versions too?
16377   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16378     || (rm -f "$cfgfile"; exit 1)
16379
16380   case $xsi_shell in
16381   yes)
16382     cat << \_LT_EOF >> "$cfgfile"
16383
16384 # func_dirname file append nondir_replacement
16385 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16386 # otherwise set result to NONDIR_REPLACEMENT.
16387 func_dirname ()
16388 {
16389   case ${1} in
16390     */*) func_dirname_result="${1%/*}${2}" ;;
16391     *  ) func_dirname_result="${3}" ;;
16392   esac
16393 }
16394
16395 # func_basename file
16396 func_basename ()
16397 {
16398   func_basename_result="${1##*/}"
16399 }
16400
16401 # func_dirname_and_basename file append nondir_replacement
16402 # perform func_basename and func_dirname in a single function
16403 # call:
16404 #   dirname:  Compute the dirname of FILE.  If nonempty,
16405 #             add APPEND to the result, otherwise set result
16406 #             to NONDIR_REPLACEMENT.
16407 #             value returned in "$func_dirname_result"
16408 #   basename: Compute filename of FILE.
16409 #             value retuned in "$func_basename_result"
16410 # Implementation must be kept synchronized with func_dirname
16411 # and func_basename. For efficiency, we do not delegate to
16412 # those functions but instead duplicate the functionality here.
16413 func_dirname_and_basename ()
16414 {
16415   case ${1} in
16416     */*) func_dirname_result="${1%/*}${2}" ;;
16417     *  ) func_dirname_result="${3}" ;;
16418   esac
16419   func_basename_result="${1##*/}"
16420 }
16421
16422 # func_stripname prefix suffix name
16423 # strip PREFIX and SUFFIX off of NAME.
16424 # PREFIX and SUFFIX must not contain globbing or regex special
16425 # characters, hashes, percent signs, but SUFFIX may contain a leading
16426 # dot (in which case that matches only a dot).
16427 func_stripname ()
16428 {
16429   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16430   # positional parameters, so assign one to ordinary parameter first.
16431   func_stripname_result=${3}
16432   func_stripname_result=${func_stripname_result#"${1}"}
16433   func_stripname_result=${func_stripname_result%"${2}"}
16434 }
16435
16436 # func_opt_split
16437 func_opt_split ()
16438 {
16439   func_opt_split_opt=${1%%=*}
16440   func_opt_split_arg=${1#*=}
16441 }
16442
16443 # func_lo2o object
16444 func_lo2o ()
16445 {
16446   case ${1} in
16447     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16448     *)    func_lo2o_result=${1} ;;
16449   esac
16450 }
16451
16452 # func_xform libobj-or-source
16453 func_xform ()
16454 {
16455   func_xform_result=${1%.*}.lo
16456 }
16457
16458 # func_arith arithmetic-term...
16459 func_arith ()
16460 {
16461   func_arith_result=$(( $* ))
16462 }
16463
16464 # func_len string
16465 # STRING may not start with a hyphen.
16466 func_len ()
16467 {
16468   func_len_result=${#1}
16469 }
16470
16471 _LT_EOF
16472     ;;
16473   *) # Bourne compatible functions.
16474     cat << \_LT_EOF >> "$cfgfile"
16475
16476 # func_dirname file append nondir_replacement
16477 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16478 # otherwise set result to NONDIR_REPLACEMENT.
16479 func_dirname ()
16480 {
16481   # Extract subdirectory from the argument.
16482   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16483   if test "X$func_dirname_result" = "X${1}"; then
16484     func_dirname_result="${3}"
16485   else
16486     func_dirname_result="$func_dirname_result${2}"
16487   fi
16488 }
16489
16490 # func_basename file
16491 func_basename ()
16492 {
16493   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16494 }
16495
16496
16497 # func_stripname prefix suffix name
16498 # strip PREFIX and SUFFIX off of NAME.
16499 # PREFIX and SUFFIX must not contain globbing or regex special
16500 # characters, hashes, percent signs, but SUFFIX may contain a leading
16501 # dot (in which case that matches only a dot).
16502 # func_strip_suffix prefix name
16503 func_stripname ()
16504 {
16505   case ${2} in
16506     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16507     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16508   esac
16509 }
16510
16511 # sed scripts:
16512 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16513 my_sed_long_arg='1s/^-[^=]*=//'
16514
16515 # func_opt_split
16516 func_opt_split ()
16517 {
16518   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16519   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16520 }
16521
16522 # func_lo2o object
16523 func_lo2o ()
16524 {
16525   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16526 }
16527
16528 # func_xform libobj-or-source
16529 func_xform ()
16530 {
16531   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16532 }
16533
16534 # func_arith arithmetic-term...
16535 func_arith ()
16536 {
16537   func_arith_result=`expr "$@"`
16538 }
16539
16540 # func_len string
16541 # STRING may not start with a hyphen.
16542 func_len ()
16543 {
16544   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16545 }
16546
16547 _LT_EOF
16548 esac
16549
16550 case $lt_shell_append in
16551   yes)
16552     cat << \_LT_EOF >> "$cfgfile"
16553
16554 # func_append var value
16555 # Append VALUE to the end of shell variable VAR.
16556 func_append ()
16557 {
16558   eval "$1+=\$2"
16559 }
16560 _LT_EOF
16561     ;;
16562   *)
16563     cat << \_LT_EOF >> "$cfgfile"
16564
16565 # func_append var value
16566 # Append VALUE to the end of shell variable VAR.
16567 func_append ()
16568 {
16569   eval "$1=\$$1\$2"
16570 }
16571
16572 _LT_EOF
16573     ;;
16574   esac
16575
16576
16577   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16578     || (rm -f "$cfgfile"; exit 1)
16579
16580   mv -f "$cfgfile" "$ofile" ||
16581     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16582   chmod +x "$ofile"
16583
16584
16585     cat <<_LT_EOF >> "$ofile"
16586
16587 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16588
16589 # The linker used to build libraries.
16590 LD=$lt_LD_CXX
16591
16592 # How to create reloadable object files.
16593 reload_flag=$lt_reload_flag_CXX
16594 reload_cmds=$lt_reload_cmds_CXX
16595
16596 # Commands used to build an old-style archive.
16597 old_archive_cmds=$lt_old_archive_cmds_CXX
16598
16599 # A language specific compiler.
16600 CC=$lt_compiler_CXX
16601
16602 # Is the compiler the GNU compiler?
16603 with_gcc=$GCC_CXX
16604
16605 # Compiler flag to turn off builtin functions.
16606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16607
16608 # How to pass a linker flag through the compiler.
16609 wl=$lt_lt_prog_compiler_wl_CXX
16610
16611 # Additional compiler flags for building library objects.
16612 pic_flag=$lt_lt_prog_compiler_pic_CXX
16613
16614 # Compiler flag to prevent dynamic linking.
16615 link_static_flag=$lt_lt_prog_compiler_static_CXX
16616
16617 # Does compiler simultaneously support -c and -o options?
16618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16619
16620 # Whether or not to add -lc for building shared libraries.
16621 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16622
16623 # Whether or not to disallow shared libs when runtime libs are static.
16624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16625
16626 # Compiler flag to allow reflexive dlopens.
16627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16628
16629 # Compiler flag to generate shared objects directly from archives.
16630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16631
16632 # Whether the compiler copes with passing no objects directly.
16633 compiler_needs_object=$lt_compiler_needs_object_CXX
16634
16635 # Create an old-style archive from a shared archive.
16636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16637
16638 # Create a temporary old-style archive to link instead of a shared archive.
16639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16640
16641 # Commands used to build a shared archive.
16642 archive_cmds=$lt_archive_cmds_CXX
16643 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16644
16645 # Commands used to build a loadable module if different from building
16646 # a shared archive.
16647 module_cmds=$lt_module_cmds_CXX
16648 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16649
16650 # Whether we are building with GNU ld or not.
16651 with_gnu_ld=$lt_with_gnu_ld_CXX
16652
16653 # Flag that allows shared libraries with undefined symbols to be built.
16654 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16655
16656 # Flag that enforces no undefined symbols.
16657 no_undefined_flag=$lt_no_undefined_flag_CXX
16658
16659 # Flag to hardcode \$libdir into a binary during linking.
16660 # This must work even if \$libdir does not exist
16661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16662
16663 # If ld is used when linking, flag to hardcode \$libdir into a binary
16664 # during linking.  This must work even if \$libdir does not exist.
16665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16666
16667 # Whether we need a single "-rpath" flag with a separated argument.
16668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16669
16670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16671 # DIR into the resulting binary.
16672 hardcode_direct=$hardcode_direct_CXX
16673
16674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16675 # DIR into the resulting binary and the resulting library dependency is
16676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16677 # library is relocated.
16678 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16679
16680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16681 # into the resulting binary.
16682 hardcode_minus_L=$hardcode_minus_L_CXX
16683
16684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16685 # into the resulting binary.
16686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16687
16688 # Set to "yes" if building a shared library automatically hardcodes DIR
16689 # into the library and all subsequent libraries and executables linked
16690 # against it.
16691 hardcode_automatic=$hardcode_automatic_CXX
16692
16693 # Set to yes if linker adds runtime paths of dependent libraries
16694 # to runtime path list.
16695 inherit_rpath=$inherit_rpath_CXX
16696
16697 # Whether libtool must link a program against all its dependency libraries.
16698 link_all_deplibs=$link_all_deplibs_CXX
16699
16700 # Fix the shell variable \$srcfile for the compiler.
16701 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16702
16703 # Set to "yes" if exported symbols are required.
16704 always_export_symbols=$always_export_symbols_CXX
16705
16706 # The commands to list exported symbols.
16707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16708
16709 # Symbols that should not be listed in the preloaded symbols.
16710 exclude_expsyms=$lt_exclude_expsyms_CXX
16711
16712 # Symbols that must always be exported.
16713 include_expsyms=$lt_include_expsyms_CXX
16714
16715 # Commands necessary for linking programs (against libraries) with templates.
16716 prelink_cmds=$lt_prelink_cmds_CXX
16717
16718 # Specify filename containing input files.
16719 file_list_spec=$lt_file_list_spec_CXX
16720
16721 # How to hardcode a shared library path into an executable.
16722 hardcode_action=$hardcode_action_CXX
16723
16724 # The directories searched by this compiler when creating a shared library.
16725 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16726
16727 # Dependencies to place before and after the objects being linked to
16728 # create a shared library.
16729 predep_objects=$lt_predep_objects_CXX
16730 postdep_objects=$lt_postdep_objects_CXX
16731 predeps=$lt_predeps_CXX
16732 postdeps=$lt_postdeps_CXX
16733
16734 # The library search path used internally by the compiler when linking
16735 # a shared library.
16736 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16737
16738 # ### END LIBTOOL TAG CONFIG: CXX
16739 _LT_EOF
16740
16741  ;;
16742     "interception/Makefile":F) cat > vpsed$$ << \_EOF
16743 s!`test -f '$<' || echo '$(srcdir)/'`!!
16744 _EOF
16745    sed -f vpsed$$ $ac_file > tmp$$
16746    mv tmp$$ $ac_file
16747    rm vpsed$$
16748    echo 'MULTISUBDIR =' >> $ac_file
16749    ml_norecursion=yes
16750    . ${multi_basedir}/config-ml.in
16751    { ml_norecursion=; unset ml_norecursion;}
16752  ;;
16753     "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
16754 s!`test -f '$<' || echo '$(srcdir)/'`!!
16755 _EOF
16756    sed -f vpsed$$ $ac_file > tmp$$
16757    mv tmp$$ $ac_file
16758    rm vpsed$$
16759    echo 'MULTISUBDIR =' >> $ac_file
16760    ml_norecursion=yes
16761    . ${multi_basedir}/config-ml.in
16762    { ml_norecursion=; unset ml_norecursion;}
16763  ;;
16764     "asan/Makefile":F) cat > vpsed$$ << \_EOF
16765 s!`test -f '$<' || echo '$(srcdir)/'`!!
16766 _EOF
16767    sed -f vpsed$$ $ac_file > tmp$$
16768    mv tmp$$ $ac_file
16769    rm vpsed$$
16770    echo 'MULTISUBDIR =' >> $ac_file
16771    ml_norecursion=yes
16772    . ${multi_basedir}/config-ml.in
16773    { ml_norecursion=; unset ml_norecursion;}
16774  ;;
16775     "tsan/Makefile":F) cat > vpsed$$ << \_EOF
16776 s!`test -f '$<' || echo '$(srcdir)/'`!!
16777 _EOF
16778     sed -f vpsed$$ $ac_file > tmp$$
16779     mv tmp$$ $ac_file
16780     rm vpsed$$
16781     echo 'MULTISUBDIR =' >> $ac_file
16782     ml_norecursion=yes
16783     . ${multi_basedir}/config-ml.in
16784     { ml_norecursion=; unset ml_norecursion;}
16785  ;;
16786
16787   esac
16788 done # for ac_tag
16789
16790
16791 as_fn_exit 0
16792 _ACEOF
16793 ac_clean_files=$ac_clean_files_save
16794
16795 test $ac_write_fail = 0 ||
16796   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16797
16798
16799 # configure is writing to config.log, and then calls config.status.
16800 # config.status does its own redirection, appending to config.log.
16801 # Unfortunately, on DOS this fails, as config.log is still kept open
16802 # by configure, so config.status won't be able to write to it; its
16803 # output is simply discarded.  So we exec the FD to /dev/null,
16804 # effectively closing config.log, so it can be properly (re)opened and
16805 # appended to by config.status.  When coming back to configure, we
16806 # need to make the FD available again.
16807 if test "$no_create" != yes; then
16808   ac_cs_success=:
16809   ac_config_status_args=
16810   test "$silent" = yes &&
16811     ac_config_status_args="$ac_config_status_args --quiet"
16812   exec 5>/dev/null
16813   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16814   exec 5>>config.log
16815   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16816   # would make configure fail if this is the last instruction.
16817   $ac_cs_success || as_fn_exit $?
16818 fi
16819 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16820   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16821 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16822 fi
16823