[libsanitizer] add mach_override and enable libsanitizer on darwin
[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 USING_MACH_OVERRIDE_FALSE
608 USING_MACH_OVERRIDE_TRUE
609 TSAN_SUPPORTED_FALSE
610 TSAN_SUPPORTED_TRUE
611 enable_static
612 enable_shared
613 CXXCPP
614 CPP
615 OTOOL64
616 OTOOL
617 LIPO
618 NMEDIT
619 DSYMUTIL
620 RANLIB
621 AR
622 OBJDUMP
623 LN_S
624 NM
625 ac_ct_DUMPBIN
626 DUMPBIN
627 LD
628 FGREP
629 EGREP
630 GREP
631 SED
632 LIBTOOL
633 am__fastdepCCAS_FALSE
634 am__fastdepCCAS_TRUE
635 CCASDEPMODE
636 CCASFLAGS
637 CCAS
638 am__fastdepCXX_FALSE
639 am__fastdepCXX_TRUE
640 CXXDEPMODE
641 ac_ct_CXX
642 CXXFLAGS
643 CXX
644 am__fastdepCC_FALSE
645 am__fastdepCC_TRUE
646 CCDEPMODE
647 AMDEPBACKSLASH
648 AMDEP_FALSE
649 AMDEP_TRUE
650 am__quote
651 am__include
652 DEPDIR
653 OBJEXT
654 EXEEXT
655 ac_ct_CC
656 CPPFLAGS
657 LDFLAGS
658 CFLAGS
659 CC
660 toolexeclibdir
661 toolexecdir
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 multi_basedir
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_version_specific_runtime_libs
743 enable_multilib
744 enable_maintainer_mode
745 enable_dependency_tracking
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
752 '
753       ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CXX
762 CXXFLAGS
763 CCC
764 CCAS
765 CCASFLAGS
766 CPP
767 CXXCPP'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822   # If the previous option needs an argument, assign it.
823   if test -n "$ac_prev"; then
824     eval $ac_prev=\$ac_option
825     ac_prev=
826     continue
827   fi
828
829   case $ac_option in
830   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831   *)    ac_optarg=yes ;;
832   esac
833
834   # Accept the important Cygnus configure options, so we can diagnose typos.
835
836   case $ac_dashdash$ac_option in
837   --)
838     ac_dashdash=yes ;;
839
840   -bindir | --bindir | --bindi | --bind | --bin | --bi)
841     ac_prev=bindir ;;
842   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843     bindir=$ac_optarg ;;
844
845   -build | --build | --buil | --bui | --bu)
846     ac_prev=build_alias ;;
847   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848     build_alias=$ac_optarg ;;
849
850   -cache-file | --cache-file | --cache-fil | --cache-fi \
851   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852     ac_prev=cache_file ;;
853   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855     cache_file=$ac_optarg ;;
856
857   --config-cache | -C)
858     cache_file=config.cache ;;
859
860   -datadir | --datadir | --datadi | --datad)
861     ac_prev=datadir ;;
862   -datadir=* | --datadir=* | --datadi=* | --datad=*)
863     datadir=$ac_optarg ;;
864
865   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866   | --dataroo | --dataro | --datar)
867     ac_prev=datarootdir ;;
868   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870     datarootdir=$ac_optarg ;;
871
872   -disable-* | --disable-*)
873     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874     # Reject names that are not valid shell variable names.
875     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876       as_fn_error "invalid feature name: $ac_useropt"
877     ac_useropt_orig=$ac_useropt
878     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879     case $ac_user_opts in
880       *"
881 "enable_$ac_useropt"
882 "*) ;;
883       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884          ac_unrecognized_sep=', ';;
885     esac
886     eval enable_$ac_useropt=no ;;
887
888   -docdir | --docdir | --docdi | --doc | --do)
889     ac_prev=docdir ;;
890   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891     docdir=$ac_optarg ;;
892
893   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894     ac_prev=dvidir ;;
895   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896     dvidir=$ac_optarg ;;
897
898   -enable-* | --enable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=\$ac_optarg ;;
913
914   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916   | --exec | --exe | --ex)
917     ac_prev=exec_prefix ;;
918   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920   | --exec=* | --exe=* | --ex=*)
921     exec_prefix=$ac_optarg ;;
922
923   -gas | --gas | --ga | --g)
924     # Obsolete; use --with-gas.
925     with_gas=yes ;;
926
927   -help | --help | --hel | --he | -h)
928     ac_init_help=long ;;
929   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930     ac_init_help=recursive ;;
931   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932     ac_init_help=short ;;
933
934   -host | --host | --hos | --ho)
935     ac_prev=host_alias ;;
936   -host=* | --host=* | --hos=* | --ho=*)
937     host_alias=$ac_optarg ;;
938
939   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940     ac_prev=htmldir ;;
941   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942   | --ht=*)
943     htmldir=$ac_optarg ;;
944
945   -includedir | --includedir | --includedi | --included | --include \
946   | --includ | --inclu | --incl | --inc)
947     ac_prev=includedir ;;
948   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949   | --includ=* | --inclu=* | --incl=* | --inc=*)
950     includedir=$ac_optarg ;;
951
952   -infodir | --infodir | --infodi | --infod | --info | --inf)
953     ac_prev=infodir ;;
954   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955     infodir=$ac_optarg ;;
956
957   -libdir | --libdir | --libdi | --libd)
958     ac_prev=libdir ;;
959   -libdir=* | --libdir=* | --libdi=* | --libd=*)
960     libdir=$ac_optarg ;;
961
962   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963   | --libexe | --libex | --libe)
964     ac_prev=libexecdir ;;
965   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966   | --libexe=* | --libex=* | --libe=*)
967     libexecdir=$ac_optarg ;;
968
969   -localedir | --localedir | --localedi | --localed | --locale)
970     ac_prev=localedir ;;
971   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972     localedir=$ac_optarg ;;
973
974   -localstatedir | --localstatedir | --localstatedi | --localstated \
975   | --localstate | --localstat | --localsta | --localst | --locals)
976     ac_prev=localstatedir ;;
977   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979     localstatedir=$ac_optarg ;;
980
981   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982     ac_prev=mandir ;;
983   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984     mandir=$ac_optarg ;;
985
986   -nfp | --nfp | --nf)
987     # Obsolete; use --without-fp.
988     with_fp=no ;;
989
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n)
992     no_create=yes ;;
993
994   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996     no_recursion=yes ;;
997
998   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000   | --oldin | --oldi | --old | --ol | --o)
1001     ac_prev=oldincludedir ;;
1002   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005     oldincludedir=$ac_optarg ;;
1006
1007   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008     ac_prev=prefix ;;
1009   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010     prefix=$ac_optarg ;;
1011
1012   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013   | --program-pre | --program-pr | --program-p)
1014     ac_prev=program_prefix ;;
1015   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017     program_prefix=$ac_optarg ;;
1018
1019   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020   | --program-suf | --program-su | --program-s)
1021     ac_prev=program_suffix ;;
1022   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024     program_suffix=$ac_optarg ;;
1025
1026   -program-transform-name | --program-transform-name \
1027   | --program-transform-nam | --program-transform-na \
1028   | --program-transform-n | --program-transform- \
1029   | --program-transform | --program-transfor \
1030   | --program-transfo | --program-transf \
1031   | --program-trans | --program-tran \
1032   | --progr-tra | --program-tr | --program-t)
1033     ac_prev=program_transform_name ;;
1034   -program-transform-name=* | --program-transform-name=* \
1035   | --program-transform-nam=* | --program-transform-na=* \
1036   | --program-transform-n=* | --program-transform-=* \
1037   | --program-transform=* | --program-transfor=* \
1038   | --program-transfo=* | --program-transf=* \
1039   | --program-trans=* | --program-tran=* \
1040   | --progr-tra=* | --program-tr=* | --program-t=*)
1041     program_transform_name=$ac_optarg ;;
1042
1043   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044     ac_prev=pdfdir ;;
1045   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046     pdfdir=$ac_optarg ;;
1047
1048   -psdir | --psdir | --psdi | --psd | --ps)
1049     ac_prev=psdir ;;
1050   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051     psdir=$ac_optarg ;;
1052
1053   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054   | -silent | --silent | --silen | --sile | --sil)
1055     silent=yes ;;
1056
1057   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058     ac_prev=sbindir ;;
1059   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060   | --sbi=* | --sb=*)
1061     sbindir=$ac_optarg ;;
1062
1063   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065   | --sharedst | --shareds | --shared | --share | --shar \
1066   | --sha | --sh)
1067     ac_prev=sharedstatedir ;;
1068   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071   | --sha=* | --sh=*)
1072     sharedstatedir=$ac_optarg ;;
1073
1074   -site | --site | --sit)
1075     ac_prev=site ;;
1076   -site=* | --site=* | --sit=*)
1077     site=$ac_optarg ;;
1078
1079   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080     ac_prev=srcdir ;;
1081   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082     srcdir=$ac_optarg ;;
1083
1084   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085   | --syscon | --sysco | --sysc | --sys | --sy)
1086     ac_prev=sysconfdir ;;
1087   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089     sysconfdir=$ac_optarg ;;
1090
1091   -target | --target | --targe | --targ | --tar | --ta | --t)
1092     ac_prev=target_alias ;;
1093   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094     target_alias=$ac_optarg ;;
1095
1096   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097     verbose=yes ;;
1098
1099   -version | --version | --versio | --versi | --vers | -V)
1100     ac_init_version=: ;;
1101
1102   -with-* | --with-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error "invalid package name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=\$ac_optarg ;;
1117
1118   -without-* | --without-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error "invalid package name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval with_$ac_useropt=no ;;
1133
1134   --x)
1135     # Obsolete; use --with-x.
1136     with_x=yes ;;
1137
1138   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139   | --x-incl | --x-inc | --x-in | --x-i)
1140     ac_prev=x_includes ;;
1141   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143     x_includes=$ac_optarg ;;
1144
1145   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147     ac_prev=x_libraries ;;
1148   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150     x_libraries=$ac_optarg ;;
1151
1152   -*) as_fn_error "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information."
1154     ;;
1155
1156   *=*)
1157     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158     # Reject names that are not valid shell variable names.
1159     case $ac_envvar in #(
1160       '' | [0-9]* | *[!_$as_cr_alnum]* )
1161       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1162     esac
1163     eval $ac_envvar=\$ac_optarg
1164     export $ac_envvar ;;
1165
1166   *)
1167     # FIXME: should be removed in autoconf 3.0.
1168     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172     ;;
1173
1174   esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179   as_fn_error "missing argument to $ac_option"
1180 fi
1181
1182 if test -n "$ac_unrecognized_opts"; then
1183   case $enable_option_checking in
1184     no) ;;
1185     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1186     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187   esac
1188 fi
1189
1190 # Check all directory arguments for consistency.
1191 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192                 datadir sysconfdir sharedstatedir localstatedir includedir \
1193                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194                 libdir localedir mandir
1195 do
1196   eval ac_val=\$$ac_var
1197   # Remove trailing slashes.
1198   case $ac_val in
1199     */ )
1200       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201       eval $ac_var=\$ac_val;;
1202   esac
1203   # Be sure to have absolute directory names.
1204   case $ac_val in
1205     [\\/$]* | ?:[\\/]* )  continue;;
1206     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207   esac
1208   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220   if test "x$build_alias" = x; then
1221     cross_compiling=maybe
1222     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223     If a cross compiler is detected then cross compile mode will be used." >&2
1224   elif test "x$build_alias" != "x$host_alias"; then
1225     cross_compiling=yes
1226   fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238   as_fn_error "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   as_fn_error "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245   ac_srcdir_defaulted=yes
1246   # Try the directory containing this script, then the parent directory.
1247   ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249          X"$as_myself" : 'X\(//\)[^/]' \| \
1250          X"$as_myself" : 'X\(//\)$' \| \
1251          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\/\)[^/].*/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\).*/{
1266             s//\1/
1267             q
1268           }
1269           s/.*/./; q'`
1270   srcdir=$ac_confdir
1271   if test ! -r "$srcdir/$ac_unique_file"; then
1272     srcdir=..
1273   fi
1274 else
1275   ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1284         pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287   srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_env_${ac_var}_value=\$${ac_var}
1298   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306   # Omit some internal or obsolete options to make the list less imposing.
1307   # This message is too long to be a string in the A/UX 3.1 sh.
1308   cat <<_ACEOF
1309 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE.  See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319   -h, --help              display this help and exit
1320       --help=short        display options specific to this package
1321       --help=recursive    display the short help of all the included packages
1322   -V, --version           display version information and exit
1323   -q, --quiet, --silent   do not print \`checking...' messages
1324       --cache-file=FILE   cache test results in FILE [disabled]
1325   -C, --config-cache      alias for \`--cache-file=config.cache'
1326   -n, --no-create         do not create output files
1327       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330   --prefix=PREFIX         install architecture-independent files in PREFIX
1331                           [$ac_default_prefix]
1332   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1333                           [PREFIX]
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343   --bindir=DIR            user executables [EPREFIX/bin]
1344   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1345   --libexecdir=DIR        program executables [EPREFIX/libexec]
1346   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1347   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1348   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1349   --libdir=DIR            object code libraries [EPREFIX/lib]
1350   --includedir=DIR        C header files [PREFIX/include]
1351   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354   --infodir=DIR           info documentation [DATAROOTDIR/info]
1355   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356   --mandir=DIR            man documentation [DATAROOTDIR/man]
1357   --docdir=DIR            documentation root [DATAROOTDIR/doc/package-unused]
1358   --htmldir=DIR           html documentation [DOCDIR]
1359   --dvidir=DIR            dvi documentation [DOCDIR]
1360   --pdfdir=DIR            pdf documentation [DOCDIR]
1361   --psdir=DIR             ps documentation [DOCDIR]
1362 _ACEOF
1363
1364   cat <<\_ACEOF
1365
1366 Program names:
1367   --program-prefix=PREFIX            prepend PREFIX to installed program names
1368   --program-suffix=SUFFIX            append SUFFIX to installed program names
1369   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370
1371 System types:
1372   --build=BUILD     configure for building on BUILD [guessed]
1373   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1374   --target=TARGET   configure for building compilers for TARGET [HOST]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379   case $ac_init_help in
1380      short | recursive ) echo "Configuration of package-unused version-unused:";;
1381    esac
1382   cat <<\_ACEOF
1383
1384 Optional Features:
1385   --disable-option-checking  ignore unrecognized --enable/--with options
1386   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1389   --enable-multilib       build many library versions (default)
1390   --enable-maintainer-mode  enable make rules and dependencies not useful
1391                           (and sometimes confusing) to the casual installer
1392   --disable-dependency-tracking  speeds up one-time build
1393   --enable-dependency-tracking   do not reject slow dependency extractors
1394   --enable-shared[=PKGS]  build shared libraries [default=yes]
1395   --enable-static[=PKGS]  build static libraries [default=yes]
1396   --enable-fast-install[=PKGS]
1397                           optimize for fast installation [default=yes]
1398   --disable-libtool-lock  avoid locking (might break parallel builds)
1399
1400 Optional Packages:
1401   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1402   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1403   --with-pic              try to use only PIC/non-PIC objects [default=use
1404                           both]
1405   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1406
1407 Some influential environment variables:
1408   CC          C compiler command
1409   CFLAGS      C compiler flags
1410   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411               nonstandard directory <lib dir>
1412   LIBS        libraries to pass to the linker, e.g. -l<library>
1413   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414               you have headers in a nonstandard directory <include dir>
1415   CXX         C++ compiler command
1416   CXXFLAGS    C++ compiler flags
1417   CCAS        assembler compiler command (defaults to CC)
1418   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1419   CPP         C preprocessor
1420   CXXCPP      C++ preprocessor
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to <libsanitizer>.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431   # If there are subdirs, report their specific --help.
1432   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433     test -d "$ac_dir" ||
1434       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435       continue
1436     ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442   # A ".." for each directory in $ac_dir_suffix.
1443   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444   case $ac_top_builddir_sub in
1445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447   esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455   .)  # We are building in place.
1456     ac_srcdir=.
1457     ac_top_srcdir=$ac_top_builddir_sub
1458     ac_abs_top_srcdir=$ac_pwd ;;
1459   [\\/]* | ?:[\\/]* )  # Absolute name.
1460     ac_srcdir=$srcdir$ac_dir_suffix;
1461     ac_top_srcdir=$srcdir
1462     ac_abs_top_srcdir=$srcdir ;;
1463   *) # Relative name.
1464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465     ac_top_srcdir=$ac_top_build_prefix$srcdir
1466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470     cd "$ac_dir" || { ac_status=$?; continue; }
1471     # Check for guested configure.
1472     if test -f "$ac_srcdir/configure.gnu"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475     elif test -f "$ac_srcdir/configure"; then
1476       echo &&
1477       $SHELL "$ac_srcdir/configure" --help=recursive
1478     else
1479       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480     fi || ac_status=$?
1481     cd "$ac_pwd" || { ac_status=$?; break; }
1482   done
1483 fi
1484
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487   cat <<\_ACEOF
1488 package-unused configure version-unused
1489 generated by GNU Autoconf 2.64
1490
1491 Copyright (C) 2009 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495   exit
1496 fi
1497
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508   rm -f conftest.$ac_objext
1509   if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512   *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516   (eval "$ac_compile") 2>conftest.err
1517   ac_status=$?
1518   if test -s conftest.err; then
1519     grep -v '^ *+' conftest.err >conftest.er1
1520     cat conftest.er1 >&5
1521     mv -f conftest.er1 conftest.err
1522   fi
1523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524   test $ac_status = 0; } && {
1525          test -z "$ac_c_werror_flag" ||
1526          test ! -s conftest.err
1527        } && test -s conftest.$ac_objext; then :
1528   ac_retval=0
1529 else
1530   $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533         ac_retval=1
1534 fi
1535   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536   return $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_cxx_try_compile LINENO
1541 # ----------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_cxx_try_compile ()
1544 {
1545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546   rm -f conftest.$ac_objext
1547   if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550   *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554   (eval "$ac_compile") 2>conftest.err
1555   ac_status=$?
1556   if test -s conftest.err; then
1557     grep -v '^ *+' conftest.err >conftest.er1
1558     cat conftest.er1 >&5
1559     mv -f conftest.er1 conftest.err
1560   fi
1561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562   test $ac_status = 0; } && {
1563          test -z "$ac_cxx_werror_flag" ||
1564          test ! -s conftest.err
1565        } && test -s conftest.$ac_objext; then :
1566   ac_retval=0
1567 else
1568   $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571         ac_retval=1
1572 fi
1573   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574   return $ac_retval
1575
1576 } # ac_fn_cxx_try_compile
1577
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_link ()
1582 {
1583   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584   rm -f conftest.$ac_objext conftest$ac_exeext
1585   if { { ac_try="$ac_link"
1586 case "(($ac_try" in
1587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588   *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592   (eval "$ac_link") 2>conftest.err
1593   ac_status=$?
1594   if test -s conftest.err; then
1595     grep -v '^ *+' conftest.err >conftest.er1
1596     cat conftest.er1 >&5
1597     mv -f conftest.er1 conftest.err
1598   fi
1599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600   test $ac_status = 0; } && {
1601          test -z "$ac_c_werror_flag" ||
1602          test ! -s conftest.err
1603        } && test -s conftest$ac_exeext && {
1604          test "$cross_compiling" = yes ||
1605          $as_test_x conftest$ac_exeext
1606        }; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616   # interfere with the next link command; also delete a directory that is
1617   # left behind by Apple's compiler.  We do this before executing the actions.
1618   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620   return $ac_retval
1621
1622 } # ac_fn_c_try_link
1623
1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists and can be compiled using the include files in
1627 # INCLUDES, setting the cache variable VAR accordingly.
1628 ac_fn_c_check_header_compile ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634   $as_echo_n "(cached) " >&6
1635 else
1636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h.  */
1638 $4
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"; then :
1642   eval "$3=yes"
1643 else
1644   eval "$3=no"
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 fi
1648 eval ac_res=\$$3
1649                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652
1653 } # ac_fn_c_check_header_compile
1654
1655 # ac_fn_c_try_cpp LINENO
1656 # ----------------------
1657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_cpp ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669   ac_status=$?
1670   if test -s conftest.err; then
1671     grep -v '^ *+' conftest.err >conftest.er1
1672     cat conftest.er1 >&5
1673     mv -f conftest.er1 conftest.err
1674   fi
1675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676   test $ac_status = 0; } >/dev/null && {
1677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678          test ! -s conftest.err
1679        }; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685     ac_retval=1
1686 fi
1687   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688   return $ac_retval
1689
1690 } # ac_fn_c_try_cpp
1691
1692 # ac_fn_c_try_run LINENO
1693 # ----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695 # that executables *can* be run.
1696 ac_fn_c_try_run ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_link") 2>&5
1707   ac_status=$?
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710   { { case "(($ac_try" in
1711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712   *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716   (eval "$ac_try") 2>&5
1717   ac_status=$?
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; }; }; then :
1720   ac_retval=0
1721 else
1722   $as_echo "$as_me: program exited with status $ac_status" >&5
1723        $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726        ac_retval=$ac_status
1727 fi
1728   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730   return $ac_retval
1731
1732 } # ac_fn_c_try_run
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h.  */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749 #define $2 innocuous_$2
1750
1751 /* System header to define __stub macros and hopefully few prototypes,
1752     which can conflict with char $2 (); below.
1753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754     <limits.h> exists even on freestanding compilers.  */
1755
1756 #ifdef __STDC__
1757 # include <limits.h>
1758 #else
1759 # include <assert.h>
1760 #endif
1761
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765    Use char because int might match the return type of a GCC
1766    builtin and then its argument prototype would still apply.  */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 ();
1771 /* The GNU C library defines this for functions which it implements
1772     to always fail with ENOSYS.  Some functions are actually named
1773     something starting with __ and the normal name is an alias.  */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main ()
1780 {
1781 return $2 ();
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"; then :
1787   eval "$3=yes"
1788 else
1789   eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext \
1792     conftest$ac_exeext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799 } # ac_fn_c_check_func
1800
1801 # ac_fn_cxx_try_cpp LINENO
1802 # ------------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_cxx_try_cpp ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   if { { ac_try="$ac_cpp conftest.$ac_ext"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } >/dev/null && {
1823          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1824          test ! -s conftest.err
1825        }; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831     ac_retval=1
1832 fi
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   return $ac_retval
1835
1836 } # ac_fn_cxx_try_cpp
1837
1838 # ac_fn_cxx_try_link LINENO
1839 # -------------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_link ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext conftest$ac_exeext
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_cxx_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest$ac_exeext && {
1864          test "$cross_compiling" = yes ||
1865          $as_test_x conftest$ac_exeext
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876   # interfere with the next link command; also delete a directory that is
1877   # left behind by Apple's compiler.  We do this before executing the actions.
1878   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880   return $ac_retval
1881
1882 } # ac_fn_cxx_try_link
1883
1884 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1885 # --------------------------------------------
1886 # Tries to find the compile-time value of EXPR in a program that includes
1887 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1888 # computed
1889 ac_fn_c_compute_int ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   if test "$cross_compiling" = yes; then
1893     # Depending upon the size, compute the lo and hi bounds.
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 int
1898 main ()
1899 {
1900 static int test_array [1 - 2 * !(($2) >= 0)];
1901 test_array [0] = 0
1902
1903   ;
1904   return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908   ac_lo=0 ac_mid=0
1909   while :; do
1910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 int
1914 main ()
1915 {
1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1917 test_array [0] = 0
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   ac_hi=$ac_mid; break
1925 else
1926   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927                         if test $ac_lo -le $ac_mid; then
1928                           ac_lo= ac_hi=
1929                           break
1930                         fi
1931                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934   done
1935 else
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 int
1940 main ()
1941 {
1942 static int test_array [1 - 2 * !(($2) < 0)];
1943 test_array [0] = 0
1944
1945   ;
1946   return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950   ac_hi=-1 ac_mid=-1
1951   while :; do
1952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 $4
1955 int
1956 main ()
1957 {
1958 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1959 test_array [0] = 0
1960
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966   ac_lo=$ac_mid; break
1967 else
1968   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1969                         if test $ac_mid -le $ac_hi; then
1970                           ac_lo= ac_hi=
1971                           break
1972                         fi
1973                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976   done
1977 else
1978   ac_lo= ac_hi=
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 # Binary search between lo and hi bounds.
1984 while test "x$ac_lo" != "x$ac_hi"; do
1985   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993 test_array [0] = 0
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   ac_hi=$ac_mid
2001 else
2002   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 done
2006 case $ac_lo in #((
2007 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2008 '') ac_retval=1 ;;
2009 esac
2010   else
2011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 static long int longval () { return $2; }
2015 static unsigned long int ulongval () { return $2; }
2016 #include <stdio.h>
2017 #include <stdlib.h>
2018 int
2019 main ()
2020 {
2021
2022   FILE *f = fopen ("conftest.val", "w");
2023   if (! f)
2024     return 1;
2025   if (($2) < 0)
2026     {
2027       long int i = longval ();
2028       if (i != ($2))
2029         return 1;
2030       fprintf (f, "%ld", i);
2031     }
2032   else
2033     {
2034       unsigned long int i = ulongval ();
2035       if (i != ($2))
2036         return 1;
2037       fprintf (f, "%lu", i);
2038     }
2039   /* Do not output a trailing newline, as this causes \r\n confusion
2040      on some platforms.  */
2041   return ferror (f) || fclose (f) != 0;
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_run "$LINENO"; then :
2048   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2049 else
2050   ac_retval=1
2051 fi
2052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2053   conftest.$ac_objext conftest.beam conftest.$ac_ext
2054 rm -f conftest.val
2055
2056   fi
2057   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058   return $ac_retval
2059
2060 } # ac_fn_c_compute_int
2061 cat >config.log <<_ACEOF
2062 This file contains any messages produced by compilers while
2063 running configure, to aid debugging if configure makes a mistake.
2064
2065 It was created by package-unused $as_me version-unused, which was
2066 generated by GNU Autoconf 2.64.  Invocation command line was
2067
2068   $ $0 $@
2069
2070 _ACEOF
2071 exec 5>>config.log
2072 {
2073 cat <<_ASUNAME
2074 ## --------- ##
2075 ## Platform. ##
2076 ## --------- ##
2077
2078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2086
2087 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2088 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2091 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2092 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2093 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2094
2095 _ASUNAME
2096
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102     $as_echo "PATH: $as_dir"
2103   done
2104 IFS=$as_save_IFS
2105
2106 } >&5
2107
2108 cat >&5 <<_ACEOF
2109
2110
2111 ## ----------- ##
2112 ## Core tests. ##
2113 ## ----------- ##
2114
2115 _ACEOF
2116
2117
2118 # Keep a trace of the command line.
2119 # Strip out --no-create and --no-recursion so they do not pile up.
2120 # Strip out --silent because we don't want to record it for future runs.
2121 # Also quote any args containing shell meta-characters.
2122 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_configure_args=
2124 ac_configure_args0=
2125 ac_configure_args1=
2126 ac_must_keep_next=false
2127 for ac_pass in 1 2
2128 do
2129   for ac_arg
2130   do
2131     case $ac_arg in
2132     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134     | -silent | --silent | --silen | --sile | --sil)
2135       continue ;;
2136     *\'*)
2137       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138     esac
2139     case $ac_pass in
2140     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141     2)
2142       as_fn_append ac_configure_args1 " '$ac_arg'"
2143       if test $ac_must_keep_next = true; then
2144         ac_must_keep_next=false # Got value, back to normal.
2145       else
2146         case $ac_arg in
2147           *=* | --config-cache | -C | -disable-* | --disable-* \
2148           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150           | -with-* | --with-* | -without-* | --without-* | --x)
2151             case "$ac_configure_args0 " in
2152               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153             esac
2154             ;;
2155           -* ) ac_must_keep_next=true ;;
2156         esac
2157       fi
2158       as_fn_append ac_configure_args " '$ac_arg'"
2159       ;;
2160     esac
2161   done
2162 done
2163 { ac_configure_args0=; unset ac_configure_args0;}
2164 { ac_configure_args1=; unset ac_configure_args1;}
2165
2166 # When interrupted or exit'd, cleanup temporary files, and complete
2167 # config.log.  We remove comments because anyway the quotes in there
2168 # would cause problems or look ugly.
2169 # WARNING: Use '\'' to represent an apostrophe within the trap.
2170 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171 trap 'exit_status=$?
2172   # Save into config.log some information that might help in debugging.
2173   {
2174     echo
2175
2176     cat <<\_ASBOX
2177 ## ---------------- ##
2178 ## Cache variables. ##
2179 ## ---------------- ##
2180 _ASBOX
2181     echo
2182     # The following way of writing the cache mishandles newlines in values,
2183 (
2184   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185     eval ac_val=\$$ac_var
2186     case $ac_val in #(
2187     *${as_nl}*)
2188       case $ac_var in #(
2189       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2191       esac
2192       case $ac_var in #(
2193       _ | IFS | as_nl) ;; #(
2194       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195       *) { eval $ac_var=; unset $ac_var;} ;;
2196       esac ;;
2197     esac
2198   done
2199   (set) 2>&1 |
2200     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201     *${as_nl}ac_space=\ *)
2202       sed -n \
2203         "s/'\''/'\''\\\\'\'''\''/g;
2204           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2205       ;; #(
2206     *)
2207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208       ;;
2209     esac |
2210     sort
2211 )
2212     echo
2213
2214     cat <<\_ASBOX
2215 ## ----------------- ##
2216 ## Output variables. ##
2217 ## ----------------- ##
2218 _ASBOX
2219     echo
2220     for ac_var in $ac_subst_vars
2221     do
2222       eval ac_val=\$$ac_var
2223       case $ac_val in
2224       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225       esac
2226       $as_echo "$ac_var='\''$ac_val'\''"
2227     done | sort
2228     echo
2229
2230     if test -n "$ac_subst_files"; then
2231       cat <<\_ASBOX
2232 ## ------------------- ##
2233 ## File substitutions. ##
2234 ## ------------------- ##
2235 _ASBOX
2236       echo
2237       for ac_var in $ac_subst_files
2238       do
2239         eval ac_val=\$$ac_var
2240         case $ac_val in
2241         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242         esac
2243         $as_echo "$ac_var='\''$ac_val'\''"
2244       done | sort
2245       echo
2246     fi
2247
2248     if test -s confdefs.h; then
2249       cat <<\_ASBOX
2250 ## ----------- ##
2251 ## confdefs.h. ##
2252 ## ----------- ##
2253 _ASBOX
2254       echo
2255       cat confdefs.h
2256       echo
2257     fi
2258     test "$ac_signal" != 0 &&
2259       $as_echo "$as_me: caught signal $ac_signal"
2260     $as_echo "$as_me: exit $exit_status"
2261   } >&5
2262   rm -f core *.core core.conftest.* &&
2263     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2264     exit $exit_status
2265 ' 0
2266 for ac_signal in 1 2 13 15; do
2267   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2268 done
2269 ac_signal=0
2270
2271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2272 rm -f -r conftest* confdefs.h
2273
2274 $as_echo "/* confdefs.h */" > confdefs.h
2275
2276 # Predefined preprocessor variables.
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_NAME "$PACKAGE_NAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_STRING "$PACKAGE_STRING"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_URL "$PACKAGE_URL"
2300 _ACEOF
2301
2302
2303 # Let the site file select an alternate cache file if it wants to.
2304 # Prefer an explicitly selected file to automatically selected ones.
2305 ac_site_file1=NONE
2306 ac_site_file2=NONE
2307 if test -n "$CONFIG_SITE"; then
2308   ac_site_file1=$CONFIG_SITE
2309 elif test "x$prefix" != xNONE; then
2310   ac_site_file1=$prefix/share/config.site
2311   ac_site_file2=$prefix/etc/config.site
2312 else
2313   ac_site_file1=$ac_default_prefix/share/config.site
2314   ac_site_file2=$ac_default_prefix/etc/config.site
2315 fi
2316 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317 do
2318   test "x$ac_site_file" = xNONE && continue
2319   if test -r "$ac_site_file"; then
2320     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322     sed 's/^/| /' "$ac_site_file" >&5
2323     . "$ac_site_file"
2324   fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328   # Some versions of bash will fail to source /dev/null (special
2329   # files actually), so we avoid doing that.
2330   if test -f "$cache_file"; then
2331     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333     case $cache_file in
2334       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335       *)                      . "./$cache_file";;
2336     esac
2337   fi
2338 else
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341   >$cache_file
2342 fi
2343
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349   eval ac_new_set=\$ac_env_${ac_var}_set
2350   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351   eval ac_new_val=\$ac_env_${ac_var}_value
2352   case $ac_old_set,$ac_new_set in
2353     set,)
2354       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,set)
2358       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360       ac_cache_corrupted=: ;;
2361     ,);;
2362     *)
2363       if test "x$ac_old_val" != "x$ac_new_val"; then
2364         # differences in whitespace do not lead to failure.
2365         ac_old_val_w=`echo x $ac_old_val`
2366         ac_new_val_w=`echo x $ac_new_val`
2367         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370           ac_cache_corrupted=:
2371         else
2372           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374           eval $ac_var=\$ac_old_val
2375         fi
2376         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2377 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2378         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2380       fi;;
2381   esac
2382   # Pass precious variables to config.status.
2383   if test "$ac_new_set" = set; then
2384     case $ac_new_val in
2385     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386     *) ac_arg=$ac_var=$ac_new_val ;;
2387     esac
2388     case " $ac_configure_args " in
2389       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2390       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391     esac
2392   fi
2393 done
2394 if $ac_cache_corrupted; then
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413
2414
2415
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2418 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2419 # Check whether --enable-version-specific-runtime-libs was given.
2420 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2421   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2422  yes) version_specific_libs=yes ;;
2423  no)  version_specific_libs=no ;;
2424  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2425  esac
2426 else
2427   version_specific_libs=no
2428 fi
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2431 $as_echo "$version_specific_libs" >&6; }
2432
2433 # Do not delete or change the following two lines.  For why, see
2434 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2435 ac_aux_dir=
2436 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2437   for ac_t in install-sh install.sh shtool; do
2438     if test -f "$ac_dir/$ac_t"; then
2439       ac_aux_dir=$ac_dir
2440       ac_install_sh="$ac_aux_dir/$ac_t -c"
2441       break 2
2442     fi
2443   done
2444 done
2445 if test -z "$ac_aux_dir"; then
2446   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2447 fi
2448
2449 # These three variables are undocumented and unsupported,
2450 # and are intended to be withdrawn in a future Autoconf release.
2451 # They can cause serious problems if a builder's source tree is in a directory
2452 # whose full name contains unusual characters.
2453 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2454 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2455 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2456
2457
2458 # Make sure we can run config.sub.
2459 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2460   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2461
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2463 $as_echo_n "checking build system type... " >&6; }
2464 if test "${ac_cv_build+set}" = set; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   ac_build_alias=$build_alias
2468 test "x$ac_build_alias" = x &&
2469   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2470 test "x$ac_build_alias" = x &&
2471   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2474
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2477 $as_echo "$ac_cv_build" >&6; }
2478 case $ac_cv_build in
2479 *-*-*) ;;
2480 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2481 esac
2482 build=$ac_cv_build
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_build
2485 shift
2486 build_cpu=$1
2487 build_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 build_os=$*
2492 IFS=$ac_save_IFS
2493 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2494
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2497 $as_echo_n "checking host system type... " >&6; }
2498 if test "${ac_cv_host+set}" = set; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   if test "x$host_alias" = x; then
2502   ac_cv_host=$ac_cv_build
2503 else
2504   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2505     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2506 fi
2507
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2510 $as_echo "$ac_cv_host" >&6; }
2511 case $ac_cv_host in
2512 *-*-*) ;;
2513 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2514 esac
2515 host=$ac_cv_host
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_host
2518 shift
2519 host_cpu=$1
2520 host_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 host_os=$*
2525 IFS=$ac_save_IFS
2526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2530 $as_echo_n "checking target system type... " >&6; }
2531 if test "${ac_cv_target+set}" = set; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   if test "x$target_alias" = x; then
2535   ac_cv_target=$ac_cv_host
2536 else
2537   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2538     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2539 fi
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2543 $as_echo "$ac_cv_target" >&6; }
2544 case $ac_cv_target in
2545 *-*-*) ;;
2546 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2547 esac
2548 target=$ac_cv_target
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_target
2551 shift
2552 target_cpu=$1
2553 target_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 target_os=$*
2558 IFS=$ac_save_IFS
2559 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 # The aliases save the names the user supplied, while $host etc.
2563 # will get canonicalized.
2564 test -n "$target_alias" &&
2565   test "$program_prefix$program_suffix$program_transform_name" = \
2566     NONENONEs,x,x, &&
2567   program_prefix=${target_alias}-
2568
2569 target_alias=${target_alias-$host_alias}
2570
2571
2572 am__api_version='1.11'
2573
2574 # Find a good install program.  We prefer a C program (faster),
2575 # so one script is as good as another.  But avoid the broken or
2576 # incompatible versions:
2577 # SysV /etc/install, /usr/sbin/install
2578 # SunOS /usr/etc/install
2579 # IRIX /sbin/install
2580 # AIX /bin/install
2581 # AmigaOS /C/install, which installs bootblocks on floppy discs
2582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2585 # OS/2's system install, which has a completely different semantic
2586 # ./install, which can be erroneously created by make from ./install.sh.
2587 # Reject install programs that cannot install multiple files.
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2589 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2590 if test -z "$INSTALL"; then
2591 if test "${ac_cv_path_install+set}" = set; then :
2592   $as_echo_n "(cached) " >&6
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     # Account for people who put trailing slashes in PATH elements.
2600 case $as_dir/ in #((
2601   ./ | .// | /[cC]/* | \
2602   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2603   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2604   /usr/ucb/* ) ;;
2605   *)
2606     # OSF1 and SCO ODT 3.0 have their own names for install.
2607     # Don't use installbsd from OSF since it installs stuff as root
2608     # by default.
2609     for ac_prog in ginstall scoinst install; do
2610       for ac_exec_ext in '' $ac_executable_extensions; do
2611         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2612           if test $ac_prog = install &&
2613             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2614             # AIX install.  It has an incompatible calling convention.
2615             :
2616           elif test $ac_prog = install &&
2617             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618             # program-specific install script used by HP pwplus--don't use.
2619             :
2620           else
2621             rm -rf conftest.one conftest.two conftest.dir
2622             echo one > conftest.one
2623             echo two > conftest.two
2624             mkdir conftest.dir
2625             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2626               test -s conftest.one && test -s conftest.two &&
2627               test -s conftest.dir/conftest.one &&
2628               test -s conftest.dir/conftest.two
2629             then
2630               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2631               break 3
2632             fi
2633           fi
2634         fi
2635       done
2636     done
2637     ;;
2638 esac
2639
2640   done
2641 IFS=$as_save_IFS
2642
2643 rm -rf conftest.one conftest.two conftest.dir
2644
2645 fi
2646   if test "${ac_cv_path_install+set}" = set; then
2647     INSTALL=$ac_cv_path_install
2648   else
2649     # As a last resort, use the slow shell script.  Don't cache a
2650     # value for INSTALL within a source directory, because that will
2651     # break other packages using the cache if that directory is
2652     # removed, or if the value is a relative name.
2653     INSTALL=$ac_install_sh
2654   fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2657 $as_echo "$INSTALL" >&6; }
2658
2659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2660 # It thinks the first close brace ends the variable substitution.
2661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2662
2663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2664
2665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2668 $as_echo_n "checking whether build environment is sane... " >&6; }
2669 # Just in case
2670 sleep 1
2671 echo timestamp > conftest.file
2672 # Reject unsafe characters in $srcdir or the absolute working directory
2673 # name.  Accept space and tab only in the latter.
2674 am_lf='
2675 '
2676 case `pwd` in
2677   *[\\\"\#\$\&\'\`$am_lf]*)
2678     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2679 esac
2680 case $srcdir in
2681   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2682     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2683 esac
2684
2685 # Do `set' in a subshell so we don't clobber the current shell's
2686 # arguments.  Must try -L first in case configure is actually a
2687 # symlink; some systems play weird games with the mod time of symlinks
2688 # (eg FreeBSD returns the mod time of the symlink's containing
2689 # directory).
2690 if (
2691    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2692    if test "$*" = "X"; then
2693       # -L didn't work.
2694       set X `ls -t "$srcdir/configure" conftest.file`
2695    fi
2696    rm -f conftest.file
2697    if test "$*" != "X $srcdir/configure conftest.file" \
2698       && test "$*" != "X conftest.file $srcdir/configure"; then
2699
2700       # If neither matched, then we have a broken ls.  This can happen
2701       # if, for instance, CONFIG_SHELL is bash and it inherits a
2702       # broken ls alias from the environment.  This has actually
2703       # happened.  Such a system could not be considered "sane".
2704       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2705 alias in your environment" "$LINENO" 5
2706    fi
2707
2708    test "$2" = conftest.file
2709    )
2710 then
2711    # Ok.
2712    :
2713 else
2714    as_fn_error "newly created file is older than distributed files!
2715 Check your system clock" "$LINENO" 5
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2719 test "$program_prefix" != NONE &&
2720   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721 # Use a double $ so make ignores it.
2722 test "$program_suffix" != NONE &&
2723   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724 # Double any \ or $.
2725 # By default was `s,x,x', remove it if useless.
2726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729 # expand $ac_aux_dir to an absolute path
2730 am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732 if test x"${MISSING+set}" != xset; then
2733   case $am_aux_dir in
2734   *\ * | *\     *)
2735     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736   *)
2737     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738   esac
2739 fi
2740 # Use eval to expand $SHELL
2741 if eval "$MISSING --run true"; then
2742   am_missing_run="$MISSING --run "
2743 else
2744   am_missing_run=
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2746 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2747 fi
2748
2749 if test x"${install_sh}" != xset; then
2750   case $am_aux_dir in
2751   *\ * | *\     *)
2752     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753   *)
2754     install_sh="\${SHELL} $am_aux_dir/install-sh"
2755   esac
2756 fi
2757
2758 # Installed binaries are usually stripped using `strip' when the user
2759 # run `make install-strip'.  However `strip' might not be the right
2760 # tool to use in cross-compilation environments, therefore Automake
2761 # will honor the `STRIP' environment variable to overrule this program.
2762 if test "$cross_compiling" != no; then
2763   if test -n "$ac_tool_prefix"; then
2764   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_STRIP+set}" = set; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$STRIP"; then
2772   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 STRIP=$ac_cv_prog_STRIP
2792 if test -n "$STRIP"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794 $as_echo "$STRIP" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_STRIP"; then
2803   ac_ct_STRIP=$STRIP
2804   # Extract the first word of "strip", so it can be a program name with args.
2805 set dummy strip; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$ac_ct_STRIP"; then
2812   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819     for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_ac_ct_STRIP="strip"
2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832 if test -n "$ac_ct_STRIP"; then
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834 $as_echo "$ac_ct_STRIP" >&6; }
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840   if test "x$ac_ct_STRIP" = x; then
2841     STRIP=":"
2842   else
2843     case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849     STRIP=$ac_ct_STRIP
2850   fi
2851 else
2852   STRIP="$ac_cv_prog_STRIP"
2853 fi
2854
2855 fi
2856 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861   if test "${ac_cv_path_mkdir+set}" = set; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869     for ac_prog in mkdir gmkdir; do
2870          for ac_exec_ext in '' $ac_executable_extensions; do
2871            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2872            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873              'mkdir (GNU coreutils) '* | \
2874              'mkdir (coreutils) '* | \
2875              'mkdir (fileutils) '4.1*)
2876                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877                break 3;;
2878            esac
2879          done
2880        done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885
2886   if test "${ac_cv_path_mkdir+set}" = set; then
2887     MKDIR_P="$ac_cv_path_mkdir -p"
2888   else
2889     # As a last resort, use the slow shell script.  Don't cache a
2890     # value for MKDIR_P within a source directory, because that will
2891     # break other packages using the cache if that directory is
2892     # removed, or if the value is a relative name.
2893     test -d ./--version && rmdir ./--version
2894     MKDIR_P="$ac_install_sh -d"
2895   fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2899
2900 mkdir_p="$MKDIR_P"
2901 case $mkdir_p in
2902   [\\/$]* | ?:[\\/]*) ;;
2903   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2904 esac
2905
2906 for ac_prog in gawk mawk nawk awk
2907 do
2908   # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_AWK+set}" = set; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$AWK"; then
2916   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925     ac_cv_prog_AWK="$ac_prog"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945   test -n "$AWK" && break
2946 done
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958         @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962   *@@@%%%=?*=@@@%%%*)
2963     eval ac_cv_prog_make_${ac_make}_set=yes;;
2964   *)
2965     eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2968 fi
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972   SET_MAKE=
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976   SET_MAKE="MAKE=${MAKE-make}"
2977 fi
2978
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2982   am__leading_dot=.
2983 else
2984   am__leading_dot=_
2985 fi
2986 rmdir .tst 2>/dev/null
2987
2988 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2989   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2990   # is not polluted with repeated "-I."
2991   am__isrc=' -I$(srcdir)'
2992   # test to see if srcdir already configured
2993   if test -f $srcdir/config.status; then
2994     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2995   fi
2996 fi
2997
2998 # test whether we have cygpath
2999 if test -z "$CYGPATH_W"; then
3000   if (cygpath --version) >/dev/null 2>/dev/null; then
3001     CYGPATH_W='cygpath -w'
3002   else
3003     CYGPATH_W=echo
3004   fi
3005 fi
3006
3007
3008 # Define the identity of the package.
3009  PACKAGE='package-unused'
3010  VERSION='version-unused'
3011
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE "$PACKAGE"
3015 _ACEOF
3016
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define VERSION "$VERSION"
3020 _ACEOF
3021
3022 # Some tools Automake needs.
3023
3024 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
3026
3027 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
3029
3030 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
3032
3033 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
3035
3036 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037
3038 # We need awk for the "check" target.  The system "awk" is bad on
3039 # some platforms.
3040 # Always define AMTAR for backward compatibility.
3041
3042 AMTAR=${AMTAR-"${am_missing_run}tar"}
3043
3044 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3045
3046
3047
3048
3049
3050 # Default to --enable-multilib
3051 # Check whether --enable-multilib was given.
3052 if test "${enable_multilib+set}" = set; then :
3053   enableval=$enable_multilib; case "$enableval" in
3054   yes) multilib=yes ;;
3055   no)  multilib=no ;;
3056   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3057  esac
3058 else
3059   multilib=yes
3060 fi
3061
3062
3063 # We may get other options which we leave undocumented:
3064 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3065 # See config-ml.in if you want the gory details.
3066
3067 if test "$srcdir" = "."; then
3068   if test "$with_target_subdir" != "."; then
3069     multi_basedir="$srcdir/$with_multisrctop../.."
3070   else
3071     multi_basedir="$srcdir/$with_multisrctop.."
3072   fi
3073 else
3074   multi_basedir="$srcdir/.."
3075 fi
3076
3077
3078 # Even if the default multilib is not a cross compilation,
3079 # it may be that some of the other multilibs are.
3080 if test $cross_compiling = no && test $multilib = yes \
3081    && test "x${with_multisubdir}" != x ; then
3082    cross_compiling=maybe
3083 fi
3084
3085 ac_config_commands="$ac_config_commands default-1"
3086
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3089 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3090     # Check whether --enable-maintainer-mode was given.
3091 if test "${enable_maintainer_mode+set}" = set; then :
3092   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3093 else
3094   USE_MAINTAINER_MODE=no
3095 fi
3096
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3098 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3099    if test $USE_MAINTAINER_MODE = yes; then
3100   MAINTAINER_MODE_TRUE=
3101   MAINTAINER_MODE_FALSE='#'
3102 else
3103   MAINTAINER_MODE_TRUE='#'
3104   MAINTAINER_MODE_FALSE=
3105 fi
3106
3107   MAINT=$MAINTAINER_MODE_TRUE
3108
3109
3110
3111 # Calculate toolexeclibdir
3112 # Also toolexecdir, though it's only used in toolexeclibdir
3113 case ${version_specific_libs} in
3114   yes)
3115     # Need the gcc compiler version to know where to install libraries
3116     # and header files if --enable-version-specific-runtime-libs option
3117     # is selected.
3118     toolexecdir='$(libdir)/gcc/$(target_alias)'
3119     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3120     ;;
3121   no)
3122     if test -n "$with_cross_host" &&
3123        test x"$with_cross_host" != x"no"; then
3124       # Install a library built with a cross compiler in tooldir, not libdir.
3125       toolexecdir='$(exec_prefix)/$(target_alias)'
3126       toolexeclibdir='$(toolexecdir)/lib'
3127     else
3128       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3129       toolexeclibdir='$(libdir)'
3130     fi
3131     multi_os_directory=`$CC -print-multi-os-directory`
3132     case $multi_os_directory in
3133       .) ;; # Avoid trailing /.
3134       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3135     esac
3136     ;;
3137 esac
3138
3139
3140
3141 # Checks for programs.
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 fi
3186 if test -z "$ac_cv_prog_CC"; then
3187   ac_ct_CC=$CC
3188   # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$ac_ct_CC"; then
3196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_ac_ct_CC="gcc"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224   if test "x$ac_ct_CC" = x; then
3225     CC=""
3226   else
3227     case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233     CC=$ac_ct_CC
3234   fi
3235 else
3236   CC="$ac_cv_prog_CC"
3237 fi
3238
3239 if test -z "$CC"; then
3240           if test -n "$ac_tool_prefix"; then
3241     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$CC"; then
3249   ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_CC="${ac_tool_prefix}cc"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278   fi
3279 fi
3280 if test -z "$CC"; then
3281   # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then :
3286   $as_echo_n "(cached) " >&6
3287 else
3288   if test -n "$CC"; then
3289   ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291   ac_prog_rejected=no
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297     for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300        ac_prog_rejected=yes
3301        continue
3302      fi
3303     ac_cv_prog_CC="cc"
3304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308   done
3309 IFS=$as_save_IFS
3310
3311 if test $ac_prog_rejected = yes; then
3312   # We found a bogon in the path, so make sure we never use it.
3313   set dummy $ac_cv_prog_CC
3314   shift
3315   if test $# != 0; then
3316     # We chose a different compiler from the bogus one.
3317     # However, it has the same basename, so the bogon will be chosen
3318     # first if we set CC to just the basename; use the full file name.
3319     shift
3320     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321   fi
3322 fi
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$CC"; then
3337   if test -n "$ac_tool_prefix"; then
3338   for ac_prog in cl.exe
3339   do
3340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then :
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$CC"; then
3348   ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355     for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362   done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377     test -n "$CC" && break
3378   done
3379 fi
3380 if test -z "$CC"; then
3381   ac_ct_CC=$CC
3382   for ac_prog in cl.exe
3383 do
3384   # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$ac_ct_CC"; then
3392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399     for ac_exec_ext in '' $ac_executable_extensions; do
3400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401     ac_cv_prog_ac_ct_CC="$ac_prog"
3402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406   done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421   test -n "$ac_ct_CC" && break
3422 done
3423
3424   if test "x$ac_ct_CC" = x; then
3425     CC=""
3426   else
3427     case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433     CC=$ac_ct_CC
3434   fi
3435 fi
3436
3437 fi
3438
3439
3440 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." "$LINENO" 5; }
3444
3445 # Provide some information about the compiler.
3446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3447 set X $ac_compile
3448 ac_compiler=$2
3449 for ac_option in --version -v -V -qversion; do
3450   { { ac_try="$ac_compiler $ac_option >&5"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458   ac_status=$?
3459   if test -s conftest.err; then
3460     sed '10a\
3461 ... rest of stderr output deleted ...
3462          10q' conftest.err >conftest.er1
3463     cat conftest.er1 >&5
3464     rm -f conftest.er1 conftest.err
3465   fi
3466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467   test $ac_status = 0; }
3468 done
3469
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 ac_clean_files_save=$ac_clean_files
3482 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3483 # Try to create an executable without -o first, disregard a.out.
3484 # It will help us diagnose broken compilers, and finding out an intuition
3485 # of exeext.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3489
3490 # The possible output files:
3491 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3492
3493 ac_rmfiles=
3494 for ac_file in $ac_files
3495 do
3496   case $ac_file in
3497     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499   esac
3500 done
3501 rm -f $ac_rmfiles
3502
3503 if { { ac_try="$ac_link_default"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_link_default") 2>&5
3511   ac_status=$?
3512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513   test $ac_status = 0; }; then :
3514   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3517 # so that the user can short-circuit this test for compilers unknown to
3518 # Autoconf.
3519 for ac_file in $ac_files ''
3520 do
3521   test -f "$ac_file" || continue
3522   case $ac_file in
3523     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3524         ;;
3525     [ab].out )
3526         # We found the default executable, but exeext='' is most
3527         # certainly right.
3528         break;;
3529     *.* )
3530         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3531         then :; else
3532            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533         fi
3534         # We set ac_cv_exeext here because the later test for it is not
3535         # safe: cross compilers may not add the suffix if given an `-o'
3536         # argument, so we may need to know it at that point already.
3537         # Even if this section looks crufty: it has the advantage of
3538         # actually working.
3539         break;;
3540     * )
3541         break;;
3542   esac
3543 done
3544 test "$ac_cv_exeext" = no && ac_cv_exeext=
3545
3546 else
3547   ac_file=''
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3550 $as_echo "$ac_file" >&6; }
3551 if test -z "$ac_file"; then :
3552   $as_echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { as_fn_set_status 77
3558 as_fn_error "C compiler cannot create executables
3559 See \`config.log' for more details." "$LINENO" 5; }; }
3560 fi
3561 ac_exeext=$ac_cv_exeext
3562
3563 # Check that the compiler produces executables we can run.  If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566 $as_echo_n "checking whether the C compiler works... " >&6; }
3567 # If not cross compiling, check that we can run a simple program.
3568 if test "$cross_compiling" != yes; then
3569   if { ac_try='./$ac_file'
3570   { { case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576   (eval "$ac_try") 2>&5
3577   ac_status=$?
3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579   test $ac_status = 0; }; }; then
3580     cross_compiling=no
3581   else
3582     if test "$cross_compiling" = maybe; then
3583         cross_compiling=yes
3584     else
3585         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error "cannot run C compiled programs.
3588 If you meant to cross compile, use \`--host'.
3589 See \`config.log' for more details." "$LINENO" 5; }
3590     fi
3591   fi
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595
3596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3597 ac_clean_files=$ac_clean_files_save
3598 # Check that the compiler produces executables we can run.  If not, either
3599 # the compiler is broken, or we cross compile.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601 $as_echo_n "checking whether we are cross compiling... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603 $as_echo "$cross_compiling" >&6; }
3604
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606 $as_echo_n "checking for suffix of executables... " >&6; }
3607 if { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_link") 2>&5
3615   ac_status=$?
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }; then :
3618   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3620 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 # `rm'.
3622 for ac_file in conftest.exe conftest conftest.*; do
3623   test -f "$ac_file" || continue
3624   case $ac_file in
3625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627           break;;
3628     * ) break;;
3629   esac
3630 done
3631 else
3632   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error "cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details." "$LINENO" 5; }
3636 fi
3637 rm -f conftest$ac_cv_exeext
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639 $as_echo "$ac_cv_exeext" >&6; }
3640
3641 rm -f conftest.$ac_ext
3642 EXEEXT=$ac_cv_exeext
3643 ac_exeext=$EXEEXT
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if test "${ac_cv_objext+set}" = set; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668   (eval "$ac_compile") 2>&5
3669   ac_status=$?
3670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671   test $ac_status = 0; }; then :
3672   for ac_file in conftest.o conftest.obj conftest.*; do
3673   test -f "$ac_file" || continue;
3674   case $ac_file in
3675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677        break;;
3678   esac
3679 done
3680 else
3681   $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details." "$LINENO" 5; }
3688 fi
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706 #ifndef __GNUC__
3707        choke me
3708 #endif
3709
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715   ac_compiler_gnu=yes
3716 else
3717   ac_compiler_gnu=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726   GCC=yes
3727 else
3728   GCC=
3729 fi
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if test "${ac_cv_prog_cc_g+set}" = set; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   ac_save_c_werror_flag=$ac_c_werror_flag
3738    ac_c_werror_flag=yes
3739    ac_cv_prog_cc_g=no
3740    CFLAGS="-g"
3741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h.  */
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753   ac_cv_prog_cc_g=yes
3754 else
3755   CFLAGS=""
3756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768
3769 else
3770   ac_c_werror_flag=$ac_save_c_werror_flag
3771          CFLAGS="-g"
3772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774
3775 int
3776 main ()
3777 {
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784   ac_cv_prog_cc_g=yes
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791    ac_c_werror_flag=$ac_save_c_werror_flag
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796   CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798   if test "$GCC" = yes; then
3799     CFLAGS="-g -O2"
3800   else
3801     CFLAGS="-g"
3802   fi
3803 else
3804   if test "$GCC" = yes; then
3805     CFLAGS="-O2"
3806   else
3807     CFLAGS=
3808   fi
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 #include <sys/types.h>
3822 #include <sys/stat.h>
3823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3824 struct buf { int x; };
3825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826 static char *e (p, i)
3827      char **p;
3828      int i;
3829 {
3830   return p[i];
3831 }
3832 static char *f (char * (*g) (char **, int), char **p, ...)
3833 {
3834   char *s;
3835   va_list v;
3836   va_start (v,p);
3837   s = g (p, va_arg (v,int));
3838   va_end (v);
3839   return s;
3840 }
3841
3842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3843    function prototypes and stuff, but not '\xHH' hex character constants.
3844    These don't provoke an error unfortunately, instead are silently treated
3845    as 'x'.  The following induces an error, until -std is added to get
3846    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3847    array size at least.  It's necessary to write '\x00'==0 to get something
3848    that's true only with -std.  */
3849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850
3851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852    inside strings and character constants.  */
3853 #define FOO(x) 'x'
3854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855
3856 int test (int i, double x);
3857 struct s1 {int (*f) (int a);};
3858 struct s2 {int (*f) (double a);};
3859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 int argc;
3861 char **argv;
3862 int
3863 main ()
3864 {
3865 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872 do
3873   CC="$ac_save_CC $ac_arg"
3874   if ac_fn_c_try_compile "$LINENO"; then :
3875   ac_cv_prog_cc_c89=$ac_arg
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext
3878   test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 done
3880 rm -f conftest.$ac_ext
3881 CC=$ac_save_CC
3882
3883 fi
3884 # AC_CACHE_VAL
3885 case "x$ac_cv_prog_cc_c89" in
3886   x)
3887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888 $as_echo "none needed" >&6; } ;;
3889   xno)
3890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 $as_echo "unsupported" >&6; } ;;
3892   *)
3893     CC="$CC $ac_cv_prog_cc_c89"
3894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896 esac
3897 if test "x$ac_cv_prog_cc_c89" != xno; then :
3898
3899 fi
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 DEPDIR="${am__leading_dot}deps"
3907
3908 ac_config_commands="$ac_config_commands depfiles"
3909
3910
3911 am_make=${MAKE-make}
3912 cat > confinc << 'END'
3913 am__doit:
3914         @echo this is the am__doit target
3915 .PHONY: am__doit
3916 END
3917 # If we don't find an include directive, just comment out the code.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3919 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3920 am__include="#"
3921 am__quote=
3922 _am_result=none
3923 # First try GNU make style include.
3924 echo "include confinc" > confmf
3925 # Ignore all kinds of additional output from `make'.
3926 case `$am_make -s -f confmf 2> /dev/null` in #(
3927 *the\ am__doit\ target*)
3928   am__include=include
3929   am__quote=
3930   _am_result=GNU
3931   ;;
3932 esac
3933 # Now try BSD make style include.
3934 if test "$am__include" = "#"; then
3935    echo '.include "confinc"' > confmf
3936    case `$am_make -s -f confmf 2> /dev/null` in #(
3937    *the\ am__doit\ target*)
3938      am__include=.include
3939      am__quote="\""
3940      _am_result=BSD
3941      ;;
3942    esac
3943 fi
3944
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3947 $as_echo "$_am_result" >&6; }
3948 rm -f confinc confmf
3949
3950 # Check whether --enable-dependency-tracking was given.
3951 if test "${enable_dependency_tracking+set}" = set; then :
3952   enableval=$enable_dependency_tracking;
3953 fi
3954
3955 if test "x$enable_dependency_tracking" != xno; then
3956   am_depcomp="$ac_aux_dir/depcomp"
3957   AMDEPBACKSLASH='\'
3958 fi
3959  if test "x$enable_dependency_tracking" != xno; then
3960   AMDEP_TRUE=
3961   AMDEP_FALSE='#'
3962 else
3963   AMDEP_TRUE='#'
3964   AMDEP_FALSE=
3965 fi
3966
3967
3968
3969 depcc="$CC"   am_compiler_list=
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3972 $as_echo_n "checking dependency style of $depcc... " >&6; }
3973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3977   # We make a subdir and do the tests there.  Otherwise we can end up
3978   # making bogus files that we don't know about and never remove.  For
3979   # instance it was reported that on HP-UX the gcc test will end up
3980   # making a dummy file named `D' -- because `-MD' means `put the output
3981   # in D'.
3982   mkdir conftest.dir
3983   # Copy depcomp to subdir because otherwise we won't find it if we're
3984   # using a relative directory.
3985   cp "$am_depcomp" conftest.dir
3986   cd conftest.dir
3987   # We will build objects and dependencies in a subdirectory because
3988   # it helps to detect inapplicable dependency modes.  For instance
3989   # both Tru64's cc and ICC support -MD to output dependencies as a
3990   # side effect of compilation, but ICC will put the dependencies in
3991   # the current directory while Tru64 will put them in the object
3992   # directory.
3993   mkdir sub
3994
3995   am_cv_CC_dependencies_compiler_type=none
3996   if test "$am_compiler_list" = ""; then
3997      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998   fi
3999   am__universal=false
4000   case " $depcc " in #(
4001      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002      esac
4003
4004   for depmode in $am_compiler_list; do
4005     # Setup a source with many dependencies, because some compilers
4006     # like to wrap large dependency lists on column 80 (with \), and
4007     # we should not choose a depcomp mode which is confused by this.
4008     #
4009     # We need to recreate these files for each test, as the compiler may
4010     # overwrite some of them when testing with obscure command lines.
4011     # This happens at least with the AIX C compiler.
4012     : > sub/conftest.c
4013     for i in 1 2 3 4 5 6; do
4014       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016       # Solaris 8's {/usr,}/bin/sh.
4017       touch sub/conftst$i.h
4018     done
4019     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022     # mode.  It turns out that the SunPro C++ compiler does not properly
4023     # handle `-M -o', and we need to detect this.  Also, some Intel
4024     # versions had trouble with output in subdirs
4025     am__obj=sub/conftest.${OBJEXT-o}
4026     am__minus_obj="-o $am__obj"
4027     case $depmode in
4028     gcc)
4029       # This depmode causes a compiler race in universal mode.
4030       test "$am__universal" = false || continue
4031       ;;
4032     nosideeffect)
4033       # after this tag, mechanisms are not by side-effect, so they'll
4034       # only be used when explicitly requested
4035       if test "x$enable_dependency_tracking" = xyes; then
4036         continue
4037       else
4038         break
4039       fi
4040       ;;
4041     msvisualcpp | msvcmsys)
4042       # This compiler won't grok `-c -o', but also, the minuso test has
4043       # not run yet.  These depmodes are late enough in the game, and
4044       # so weak that their functioning should not be impacted.
4045       am__obj=conftest.${OBJEXT-o}
4046       am__minus_obj=
4047       ;;
4048     none) break ;;
4049     esac
4050     if depmode=$depmode \
4051        source=sub/conftest.c object=$am__obj \
4052        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054          >/dev/null 2>conftest.err &&
4055        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059       # icc doesn't choke on unknown options, it will just issue warnings
4060       # or remarks (even with -Werror).  So we grep stderr for any message
4061       # that says an option was ignored or not supported.
4062       # When given -MP, icc 7.0 and 7.1 complain thusly:
4063       #   icc: Command line warning: ignoring option '-M'; no argument required
4064       # The diagnosis changed in icc 8.0:
4065       #   icc: Command line remark: option '-MP' not supported
4066       if (grep 'ignoring option' conftest.err ||
4067           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068         am_cv_CC_dependencies_compiler_type=$depmode
4069         break
4070       fi
4071     fi
4072   done
4073
4074   cd ..
4075   rm -rf conftest.dir
4076 else
4077   am_cv_CC_dependencies_compiler_type=none
4078 fi
4079
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085  if
4086   test "x$enable_dependency_tracking" != xno \
4087   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088   am__fastdepCC_TRUE=
4089   am__fastdepCC_FALSE='#'
4090 else
4091   am__fastdepCC_TRUE='#'
4092   am__fastdepCC_FALSE=
4093 fi
4094
4095
4096 ac_ext=cpp
4097 ac_cpp='$CXXCPP $CPPFLAGS'
4098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4101 if test -z "$CXX"; then
4102   if test -n "$CCC"; then
4103     CXX=$CCC
4104   else
4105     if test -n "$ac_tool_prefix"; then
4106   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4107   do
4108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_CXX+set}" = set; then :
4113   $as_echo_n "(cached) " >&6
4114 else
4115   if test -n "$CXX"; then
4116   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123     for ac_exec_ext in '' $ac_executable_extensions; do
4124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127     break 2
4128   fi
4129 done
4130   done
4131 IFS=$as_save_IFS
4132
4133 fi
4134 fi
4135 CXX=$ac_cv_prog_CXX
4136 if test -n "$CXX"; then
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4138 $as_echo "$CXX" >&6; }
4139 else
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142 fi
4143
4144
4145     test -n "$CXX" && break
4146   done
4147 fi
4148 if test -z "$CXX"; then
4149   ac_ct_CXX=$CXX
4150   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4151 do
4152   # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   if test -n "$ac_ct_CXX"; then
4160   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167     for ac_exec_ext in '' $ac_executable_extensions; do
4168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169     ac_cv_prog_ac_ct_CXX="$ac_prog"
4170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174   done
4175 IFS=$as_save_IFS
4176
4177 fi
4178 fi
4179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4180 if test -n "$ac_ct_CXX"; then
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4182 $as_echo "$ac_ct_CXX" >&6; }
4183 else
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4187
4188
4189   test -n "$ac_ct_CXX" && break
4190 done
4191
4192   if test "x$ac_ct_CXX" = x; then
4193     CXX="g++"
4194   else
4195     case $cross_compiling:$ac_tool_warned in
4196 yes:)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199 ac_tool_warned=yes ;;
4200 esac
4201     CXX=$ac_ct_CXX
4202   fi
4203 fi
4204
4205   fi
4206 fi
4207 # Provide some information about the compiler.
4208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4209 set X $ac_compile
4210 ac_compiler=$2
4211 for ac_option in --version -v -V -qversion; do
4212   { { ac_try="$ac_compiler $ac_option >&5"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218 $as_echo "$ac_try_echo"; } >&5
4219   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4220   ac_status=$?
4221   if test -s conftest.err; then
4222     sed '10a\
4223 ... rest of stderr output deleted ...
4224          10q' conftest.err >conftest.er1
4225     cat conftest.er1 >&5
4226     rm -f conftest.er1 conftest.err
4227   fi
4228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229   test $ac_status = 0; }
4230 done
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4233 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4234 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243 #ifndef __GNUC__
4244        choke me
4245 #endif
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_cxx_try_compile "$LINENO"; then :
4252   ac_compiler_gnu=yes
4253 else
4254   ac_compiler_gnu=no
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4258
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4261 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4262 if test $ac_compiler_gnu = yes; then
4263   GXX=yes
4264 else
4265   GXX=
4266 fi
4267 ac_test_CXXFLAGS=${CXXFLAGS+set}
4268 ac_save_CXXFLAGS=$CXXFLAGS
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4270 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4271 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4275    ac_cxx_werror_flag=yes
4276    ac_cv_prog_cxx_g=no
4277    CXXFLAGS="-g"
4278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_cxx_try_compile "$LINENO"; then :
4290   ac_cv_prog_cxx_g=yes
4291 else
4292   CXXFLAGS=""
4293       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295
4296 int
4297 main ()
4298 {
4299
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 if ac_fn_cxx_try_compile "$LINENO"; then :
4305
4306 else
4307   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4308          CXXFLAGS="-g"
4309          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h.  */
4311
4312 int
4313 main ()
4314 {
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321   ac_cv_prog_cxx_g=yes
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4331 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4332 if test "$ac_test_CXXFLAGS" = set; then
4333   CXXFLAGS=$ac_save_CXXFLAGS
4334 elif test $ac_cv_prog_cxx_g = yes; then
4335   if test "$GXX" = yes; then
4336     CXXFLAGS="-g -O2"
4337   else
4338     CXXFLAGS="-g"
4339   fi
4340 else
4341   if test "$GXX" = yes; then
4342     CXXFLAGS="-O2"
4343   else
4344     CXXFLAGS=
4345   fi
4346 fi
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352
4353 depcc="$CXX"  am_compiler_list=
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361   # We make a subdir and do the tests there.  Otherwise we can end up
4362   # making bogus files that we don't know about and never remove.  For
4363   # instance it was reported that on HP-UX the gcc test will end up
4364   # making a dummy file named `D' -- because `-MD' means `put the output
4365   # in D'.
4366   mkdir conftest.dir
4367   # Copy depcomp to subdir because otherwise we won't find it if we're
4368   # using a relative directory.
4369   cp "$am_depcomp" conftest.dir
4370   cd conftest.dir
4371   # We will build objects and dependencies in a subdirectory because
4372   # it helps to detect inapplicable dependency modes.  For instance
4373   # both Tru64's cc and ICC support -MD to output dependencies as a
4374   # side effect of compilation, but ICC will put the dependencies in
4375   # the current directory while Tru64 will put them in the object
4376   # directory.
4377   mkdir sub
4378
4379   am_cv_CXX_dependencies_compiler_type=none
4380   if test "$am_compiler_list" = ""; then
4381      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4382   fi
4383   am__universal=false
4384   case " $depcc " in #(
4385      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4386      esac
4387
4388   for depmode in $am_compiler_list; do
4389     # Setup a source with many dependencies, because some compilers
4390     # like to wrap large dependency lists on column 80 (with \), and
4391     # we should not choose a depcomp mode which is confused by this.
4392     #
4393     # We need to recreate these files for each test, as the compiler may
4394     # overwrite some of them when testing with obscure command lines.
4395     # This happens at least with the AIX C compiler.
4396     : > sub/conftest.c
4397     for i in 1 2 3 4 5 6; do
4398       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4399       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4400       # Solaris 8's {/usr,}/bin/sh.
4401       touch sub/conftst$i.h
4402     done
4403     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4404
4405     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4406     # mode.  It turns out that the SunPro C++ compiler does not properly
4407     # handle `-M -o', and we need to detect this.  Also, some Intel
4408     # versions had trouble with output in subdirs
4409     am__obj=sub/conftest.${OBJEXT-o}
4410     am__minus_obj="-o $am__obj"
4411     case $depmode in
4412     gcc)
4413       # This depmode causes a compiler race in universal mode.
4414       test "$am__universal" = false || continue
4415       ;;
4416     nosideeffect)
4417       # after this tag, mechanisms are not by side-effect, so they'll
4418       # only be used when explicitly requested
4419       if test "x$enable_dependency_tracking" = xyes; then
4420         continue
4421       else
4422         break
4423       fi
4424       ;;
4425     msvisualcpp | msvcmsys)
4426       # This compiler won't grok `-c -o', but also, the minuso test has
4427       # not run yet.  These depmodes are late enough in the game, and
4428       # so weak that their functioning should not be impacted.
4429       am__obj=conftest.${OBJEXT-o}
4430       am__minus_obj=
4431       ;;
4432     none) break ;;
4433     esac
4434     if depmode=$depmode \
4435        source=sub/conftest.c object=$am__obj \
4436        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4437        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4438          >/dev/null 2>conftest.err &&
4439        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4440        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4441        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4442        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4443       # icc doesn't choke on unknown options, it will just issue warnings
4444       # or remarks (even with -Werror).  So we grep stderr for any message
4445       # that says an option was ignored or not supported.
4446       # When given -MP, icc 7.0 and 7.1 complain thusly:
4447       #   icc: Command line warning: ignoring option '-M'; no argument required
4448       # The diagnosis changed in icc 8.0:
4449       #   icc: Command line remark: option '-MP' not supported
4450       if (grep 'ignoring option' conftest.err ||
4451           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4452         am_cv_CXX_dependencies_compiler_type=$depmode
4453         break
4454       fi
4455     fi
4456   done
4457
4458   cd ..
4459   rm -rf conftest.dir
4460 else
4461   am_cv_CXX_dependencies_compiler_type=none
4462 fi
4463
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4466 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4467 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4468
4469  if
4470   test "x$enable_dependency_tracking" != xno \
4471   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4472   am__fastdepCXX_TRUE=
4473   am__fastdepCXX_FALSE='#'
4474 else
4475   am__fastdepCXX_TRUE='#'
4476   am__fastdepCXX_FALSE=
4477 fi
4478
4479
4480 # By default we simply use the C compiler to build assembly code.
4481
4482 test "${CCAS+set}" = set || CCAS=$CC
4483 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4484
4485
4486
4487 depcc="$CCAS"   am_compiler_list=
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490 $as_echo_n "checking dependency style of $depcc... " >&6; }
4491 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495   # We make a subdir and do the tests there.  Otherwise we can end up
4496   # making bogus files that we don't know about and never remove.  For
4497   # instance it was reported that on HP-UX the gcc test will end up
4498   # making a dummy file named `D' -- because `-MD' means `put the output
4499   # in D'.
4500   mkdir conftest.dir
4501   # Copy depcomp to subdir because otherwise we won't find it if we're
4502   # using a relative directory.
4503   cp "$am_depcomp" conftest.dir
4504   cd conftest.dir
4505   # We will build objects and dependencies in a subdirectory because
4506   # it helps to detect inapplicable dependency modes.  For instance
4507   # both Tru64's cc and ICC support -MD to output dependencies as a
4508   # side effect of compilation, but ICC will put the dependencies in
4509   # the current directory while Tru64 will put them in the object
4510   # directory.
4511   mkdir sub
4512
4513   am_cv_CCAS_dependencies_compiler_type=none
4514   if test "$am_compiler_list" = ""; then
4515      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4516   fi
4517   am__universal=false
4518
4519
4520   for depmode in $am_compiler_list; do
4521     # Setup a source with many dependencies, because some compilers
4522     # like to wrap large dependency lists on column 80 (with \), and
4523     # we should not choose a depcomp mode which is confused by this.
4524     #
4525     # We need to recreate these files for each test, as the compiler may
4526     # overwrite some of them when testing with obscure command lines.
4527     # This happens at least with the AIX C compiler.
4528     : > sub/conftest.c
4529     for i in 1 2 3 4 5 6; do
4530       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4531       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4532       # Solaris 8's {/usr,}/bin/sh.
4533       touch sub/conftst$i.h
4534     done
4535     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4536
4537     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4538     # mode.  It turns out that the SunPro C++ compiler does not properly
4539     # handle `-M -o', and we need to detect this.  Also, some Intel
4540     # versions had trouble with output in subdirs
4541     am__obj=sub/conftest.${OBJEXT-o}
4542     am__minus_obj="-o $am__obj"
4543     case $depmode in
4544     gcc)
4545       # This depmode causes a compiler race in universal mode.
4546       test "$am__universal" = false || continue
4547       ;;
4548     nosideeffect)
4549       # after this tag, mechanisms are not by side-effect, so they'll
4550       # only be used when explicitly requested
4551       if test "x$enable_dependency_tracking" = xyes; then
4552         continue
4553       else
4554         break
4555       fi
4556       ;;
4557     msvisualcpp | msvcmsys)
4558       # This compiler won't grok `-c -o', but also, the minuso test has
4559       # not run yet.  These depmodes are late enough in the game, and
4560       # so weak that their functioning should not be impacted.
4561       am__obj=conftest.${OBJEXT-o}
4562       am__minus_obj=
4563       ;;
4564     none) break ;;
4565     esac
4566     if depmode=$depmode \
4567        source=sub/conftest.c object=$am__obj \
4568        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4569        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4570          >/dev/null 2>conftest.err &&
4571        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4572        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4573        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4574        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4575       # icc doesn't choke on unknown options, it will just issue warnings
4576       # or remarks (even with -Werror).  So we grep stderr for any message
4577       # that says an option was ignored or not supported.
4578       # When given -MP, icc 7.0 and 7.1 complain thusly:
4579       #   icc: Command line warning: ignoring option '-M'; no argument required
4580       # The diagnosis changed in icc 8.0:
4581       #   icc: Command line remark: option '-MP' not supported
4582       if (grep 'ignoring option' conftest.err ||
4583           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4584         am_cv_CCAS_dependencies_compiler_type=$depmode
4585         break
4586       fi
4587     fi
4588   done
4589
4590   cd ..
4591   rm -rf conftest.dir
4592 else
4593   am_cv_CCAS_dependencies_compiler_type=none
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4598 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4599 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4600
4601  if
4602   test "x$enable_dependency_tracking" != xno \
4603   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4604   am__fastdepCCAS_TRUE=
4605   am__fastdepCCAS_FALSE='#'
4606 else
4607   am__fastdepCCAS_TRUE='#'
4608   am__fastdepCCAS_FALSE=
4609 fi
4610
4611
4612
4613 enable_dlopen=yes
4614
4615
4616
4617 case `pwd` in
4618   *\ * | *\     *)
4619     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4620 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4621 esac
4622
4623
4624
4625 macro_version='2.2.7a'
4626 macro_revision='1.3134'
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 ltmain="$ac_aux_dir/ltmain.sh"
4641
4642 # Backslashify metacharacters that are still active within
4643 # double-quoted strings.
4644 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4645
4646 # Same as above, but do not quote variable references.
4647 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4648
4649 # Sed substitution to delay expansion of an escaped shell variable in a
4650 # double_quote_subst'ed string.
4651 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4652
4653 # Sed substitution to delay expansion of an escaped single quote.
4654 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4655
4656 # Sed substitution to avoid accidental globbing in evaled expressions
4657 no_glob_subst='s/\*/\\\*/g'
4658
4659 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4660 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4664 $as_echo_n "checking how to print strings... " >&6; }
4665 # Test print first, because it will be a builtin if present.
4666 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4667    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4668   ECHO='print -r --'
4669 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4670   ECHO='printf %s\n'
4671 else
4672   # Use this function as a fallback that always works.
4673   func_fallback_echo ()
4674   {
4675     eval 'cat <<_LTECHO_EOF
4676 $1
4677 _LTECHO_EOF'
4678   }
4679   ECHO='func_fallback_echo'
4680 fi
4681
4682 # func_echo_all arg...
4683 # Invoke $ECHO with all args, space-separated.
4684 func_echo_all ()
4685 {
4686     $ECHO ""
4687 }
4688
4689 case "$ECHO" in
4690   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4691 $as_echo "printf" >&6; } ;;
4692   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4693 $as_echo "print -r" >&6; } ;;
4694   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4695 $as_echo "cat" >&6; } ;;
4696 esac
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4712 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4713 if test "${ac_cv_path_SED+set}" = set; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717      for ac_i in 1 2 3 4 5 6 7; do
4718        ac_script="$ac_script$as_nl$ac_script"
4719      done
4720      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721      { ac_script=; unset ac_script;}
4722      if test -z "$SED"; then
4723   ac_path_SED_found=false
4724   # Loop through the user's path and test for each of PROGNAME-LIST
4725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_prog in sed gsed; do
4731     for ac_exec_ext in '' $ac_executable_extensions; do
4732       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4733       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4734 # Check for GNU ac_path_SED and select it if it is found.
4735   # Check for GNU $ac_path_SED
4736 case `"$ac_path_SED" --version 2>&1` in
4737 *GNU*)
4738   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4739 *)
4740   ac_count=0
4741   $as_echo_n 0123456789 >"conftest.in"
4742   while :
4743   do
4744     cat "conftest.in" "conftest.in" >"conftest.tmp"
4745     mv "conftest.tmp" "conftest.in"
4746     cp "conftest.in" "conftest.nl"
4747     $as_echo '' >> "conftest.nl"
4748     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750     as_fn_arith $ac_count + 1 && ac_count=$as_val
4751     if test $ac_count -gt ${ac_path_SED_max-0}; then
4752       # Best one so far, save it but keep looking for a better one
4753       ac_cv_path_SED="$ac_path_SED"
4754       ac_path_SED_max=$ac_count
4755     fi
4756     # 10*(2^10) chars as input seems more than enough
4757     test $ac_count -gt 10 && break
4758   done
4759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760 esac
4761
4762       $ac_path_SED_found && break 3
4763     done
4764   done
4765   done
4766 IFS=$as_save_IFS
4767   if test -z "$ac_cv_path_SED"; then
4768     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4769   fi
4770 else
4771   ac_cv_path_SED=$SED
4772 fi
4773
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4776 $as_echo "$ac_cv_path_SED" >&6; }
4777  SED="$ac_cv_path_SED"
4778   rm -f conftest.sed
4779
4780 test -z "$SED" && SED=sed
4781 Xsed="$SED -e 1s/^X//"
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4794 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4795 if test "${ac_cv_path_GREP+set}" = set; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   if test -z "$GREP"; then
4799   ac_path_GREP_found=false
4800   # Loop through the user's path and test for each of PROGNAME-LIST
4801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4803 do
4804   IFS=$as_save_IFS
4805   test -z "$as_dir" && as_dir=.
4806     for ac_prog in grep ggrep; do
4807     for ac_exec_ext in '' $ac_executable_extensions; do
4808       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4809       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4810 # Check for GNU ac_path_GREP and select it if it is found.
4811   # Check for GNU $ac_path_GREP
4812 case `"$ac_path_GREP" --version 2>&1` in
4813 *GNU*)
4814   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4815 *)
4816   ac_count=0
4817   $as_echo_n 0123456789 >"conftest.in"
4818   while :
4819   do
4820     cat "conftest.in" "conftest.in" >"conftest.tmp"
4821     mv "conftest.tmp" "conftest.in"
4822     cp "conftest.in" "conftest.nl"
4823     $as_echo 'GREP' >> "conftest.nl"
4824     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826     as_fn_arith $ac_count + 1 && ac_count=$as_val
4827     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4828       # Best one so far, save it but keep looking for a better one
4829       ac_cv_path_GREP="$ac_path_GREP"
4830       ac_path_GREP_max=$ac_count
4831     fi
4832     # 10*(2^10) chars as input seems more than enough
4833     test $ac_count -gt 10 && break
4834   done
4835   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836 esac
4837
4838       $ac_path_GREP_found && break 3
4839     done
4840   done
4841   done
4842 IFS=$as_save_IFS
4843   if test -z "$ac_cv_path_GREP"; then
4844     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4845   fi
4846 else
4847   ac_cv_path_GREP=$GREP
4848 fi
4849
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4852 $as_echo "$ac_cv_path_GREP" >&6; }
4853  GREP="$ac_cv_path_GREP"
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4857 $as_echo_n "checking for egrep... " >&6; }
4858 if test "${ac_cv_path_EGREP+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4862    then ac_cv_path_EGREP="$GREP -E"
4863    else
4864      if test -z "$EGREP"; then
4865   ac_path_EGREP_found=false
4866   # Loop through the user's path and test for each of PROGNAME-LIST
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_prog in egrep; do
4873     for ac_exec_ext in '' $ac_executable_extensions; do
4874       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4875       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4876 # Check for GNU ac_path_EGREP and select it if it is found.
4877   # Check for GNU $ac_path_EGREP
4878 case `"$ac_path_EGREP" --version 2>&1` in
4879 *GNU*)
4880   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4881 *)
4882   ac_count=0
4883   $as_echo_n 0123456789 >"conftest.in"
4884   while :
4885   do
4886     cat "conftest.in" "conftest.in" >"conftest.tmp"
4887     mv "conftest.tmp" "conftest.in"
4888     cp "conftest.in" "conftest.nl"
4889     $as_echo 'EGREP' >> "conftest.nl"
4890     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892     as_fn_arith $ac_count + 1 && ac_count=$as_val
4893     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4894       # Best one so far, save it but keep looking for a better one
4895       ac_cv_path_EGREP="$ac_path_EGREP"
4896       ac_path_EGREP_max=$ac_count
4897     fi
4898     # 10*(2^10) chars as input seems more than enough
4899     test $ac_count -gt 10 && break
4900   done
4901   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904       $ac_path_EGREP_found && break 3
4905     done
4906   done
4907   done
4908 IFS=$as_save_IFS
4909   if test -z "$ac_cv_path_EGREP"; then
4910     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911   fi
4912 else
4913   ac_cv_path_EGREP=$EGREP
4914 fi
4915
4916    fi
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919 $as_echo "$ac_cv_path_EGREP" >&6; }
4920  EGREP="$ac_cv_path_EGREP"
4921
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4924 $as_echo_n "checking for fgrep... " >&6; }
4925 if test "${ac_cv_path_FGREP+set}" = set; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929    then ac_cv_path_FGREP="$GREP -F"
4930    else
4931      if test -z "$FGREP"; then
4932   ac_path_FGREP_found=false
4933   # Loop through the user's path and test for each of PROGNAME-LIST
4934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939     for ac_prog in fgrep; do
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4942       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4943 # Check for GNU ac_path_FGREP and select it if it is found.
4944   # Check for GNU $ac_path_FGREP
4945 case `"$ac_path_FGREP" --version 2>&1` in
4946 *GNU*)
4947   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4948 *)
4949   ac_count=0
4950   $as_echo_n 0123456789 >"conftest.in"
4951   while :
4952   do
4953     cat "conftest.in" "conftest.in" >"conftest.tmp"
4954     mv "conftest.tmp" "conftest.in"
4955     cp "conftest.in" "conftest.nl"
4956     $as_echo 'FGREP' >> "conftest.nl"
4957     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959     as_fn_arith $ac_count + 1 && ac_count=$as_val
4960     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4961       # Best one so far, save it but keep looking for a better one
4962       ac_cv_path_FGREP="$ac_path_FGREP"
4963       ac_path_FGREP_max=$ac_count
4964     fi
4965     # 10*(2^10) chars as input seems more than enough
4966     test $ac_count -gt 10 && break
4967   done
4968   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 esac
4970
4971       $ac_path_FGREP_found && break 3
4972     done
4973   done
4974   done
4975 IFS=$as_save_IFS
4976   if test -z "$ac_cv_path_FGREP"; then
4977     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978   fi
4979 else
4980   ac_cv_path_FGREP=$FGREP
4981 fi
4982
4983    fi
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4986 $as_echo "$ac_cv_path_FGREP" >&6; }
4987  FGREP="$ac_cv_path_FGREP"
4988
4989
4990 test -z "$GREP" && GREP=grep
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 # Check whether --with-gnu-ld was given.
5011 if test "${with_gnu_ld+set}" = set; then :
5012   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5013 else
5014   with_gnu_ld=no
5015 fi
5016
5017 ac_prog=ld
5018 if test "$GCC" = yes; then
5019   # Check if gcc -print-prog-name=ld gives a path.
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5021 $as_echo_n "checking for ld used by $CC... " >&6; }
5022   case $host in
5023   *-*-mingw*)
5024     # gcc leaves a trailing carriage return which upsets mingw
5025     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5026   *)
5027     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028   esac
5029   case $ac_prog in
5030     # Accept absolute paths.
5031     [\\/]* | ?:[\\/]*)
5032       re_direlt='/[^/][^/]*/\.\./'
5033       # Canonicalize the pathname of ld
5034       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5035       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5036         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5037       done
5038       test -z "$LD" && LD="$ac_prog"
5039       ;;
5040   "")
5041     # If it fails, then pretend we aren't using GCC.
5042     ac_prog=ld
5043     ;;
5044   *)
5045     # If it is relative, then search for the first ld in PATH.
5046     with_gnu_ld=unknown
5047     ;;
5048   esac
5049 elif test "$with_gnu_ld" = yes; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5051 $as_echo_n "checking for GNU ld... " >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5054 $as_echo_n "checking for non-GNU ld... " >&6; }
5055 fi
5056 if test "${lt_cv_path_LD+set}" = set; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if test -z "$LD"; then
5060   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061   for ac_dir in $PATH; do
5062     IFS="$lt_save_ifs"
5063     test -z "$ac_dir" && ac_dir=.
5064     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5065       lt_cv_path_LD="$ac_dir/$ac_prog"
5066       # Check to see if the program is GNU ld.  I'd rather use --version,
5067       # but apparently some variants of GNU ld only accept -v.
5068       # Break only if it was the GNU/non-GNU ld that we prefer.
5069       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5070       *GNU* | *'with BFD'*)
5071         test "$with_gnu_ld" != no && break
5072         ;;
5073       *)
5074         test "$with_gnu_ld" != yes && break
5075         ;;
5076       esac
5077     fi
5078   done
5079   IFS="$lt_save_ifs"
5080 else
5081   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5082 fi
5083 fi
5084
5085 LD="$lt_cv_path_LD"
5086 if test -n "$LD"; then
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5088 $as_echo "$LD" >&6; }
5089 else
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5096 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5100 case `$LD -v 2>&1 </dev/null` in
5101 *GNU* | *'with BFD'*)
5102   lt_cv_prog_gnu_ld=yes
5103   ;;
5104 *)
5105   lt_cv_prog_gnu_ld=no
5106   ;;
5107 esac
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5111 with_gnu_ld=$lt_cv_prog_gnu_ld
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5122 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5123 if test "${lt_cv_path_NM+set}" = set; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$NM"; then
5127   # Let the user override the test.
5128   lt_cv_path_NM="$NM"
5129 else
5130   lt_nm_to_check="${ac_tool_prefix}nm"
5131   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5132     lt_nm_to_check="$lt_nm_to_check nm"
5133   fi
5134   for lt_tmp_nm in $lt_nm_to_check; do
5135     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5136     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5137       IFS="$lt_save_ifs"
5138       test -z "$ac_dir" && ac_dir=.
5139       tmp_nm="$ac_dir/$lt_tmp_nm"
5140       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5141         # Check to see if the nm accepts a BSD-compat flag.
5142         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5143         #   nm: unknown option "B" ignored
5144         # Tru64's nm complains that /dev/null is an invalid object file
5145         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5146         */dev/null* | *'Invalid file or object type'*)
5147           lt_cv_path_NM="$tmp_nm -B"
5148           break
5149           ;;
5150         *)
5151           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5152           */dev/null*)
5153             lt_cv_path_NM="$tmp_nm -p"
5154             break
5155             ;;
5156           *)
5157             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5158             continue # so that we can try to find one that supports BSD flags
5159             ;;
5160           esac
5161           ;;
5162         esac
5163       fi
5164     done
5165     IFS="$lt_save_ifs"
5166   done
5167   : ${lt_cv_path_NM=no}
5168 fi
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5171 $as_echo "$lt_cv_path_NM" >&6; }
5172 if test "$lt_cv_path_NM" != "no"; then
5173   NM="$lt_cv_path_NM"
5174 else
5175   # Didn't find any BSD compatible name lister, look for dumpbin.
5176   if test -n "$DUMPBIN"; then :
5177     # Let the user override the test.
5178   else
5179     if test -n "$ac_tool_prefix"; then
5180   for ac_prog in dumpbin "link -dump"
5181   do
5182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test -n "$DUMPBIN"; then
5190   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 DUMPBIN=$ac_cv_prog_DUMPBIN
5210 if test -n "$DUMPBIN"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5212 $as_echo "$DUMPBIN" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219     test -n "$DUMPBIN" && break
5220   done
5221 fi
5222 if test -z "$DUMPBIN"; then
5223   ac_ct_DUMPBIN=$DUMPBIN
5224   for ac_prog in dumpbin "link -dump"
5225 do
5226   # Extract the first word of "$ac_prog", so it can be a program name with args.
5227 set dummy $ac_prog; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   if test -n "$ac_ct_DUMPBIN"; then
5234   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250
5251 fi
5252 fi
5253 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5254 if test -n "$ac_ct_DUMPBIN"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5256 $as_echo "$ac_ct_DUMPBIN" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262
5263   test -n "$ac_ct_DUMPBIN" && break
5264 done
5265
5266   if test "x$ac_ct_DUMPBIN" = x; then
5267     DUMPBIN=":"
5268   else
5269     case $cross_compiling:$ac_tool_warned in
5270 yes:)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
5274 esac
5275     DUMPBIN=$ac_ct_DUMPBIN
5276   fi
5277 fi
5278
5279     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5280     *COFF*)
5281       DUMPBIN="$DUMPBIN -symbols"
5282       ;;
5283     *)
5284       DUMPBIN=:
5285       ;;
5286     esac
5287   fi
5288
5289   if test "$DUMPBIN" != ":"; then
5290     NM="$DUMPBIN"
5291   fi
5292 fi
5293 test -z "$NM" && NM=nm
5294
5295
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5301 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5302 if test "${lt_cv_nm_interface+set}" = set; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   lt_cv_nm_interface="BSD nm"
5306   echo "int some_variable = 0;" > conftest.$ac_ext
5307   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5308   (eval "$ac_compile" 2>conftest.err)
5309   cat conftest.err >&5
5310   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5311   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5312   cat conftest.err >&5
5313   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5314   cat conftest.out >&5
5315   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5316     lt_cv_nm_interface="MS dumpbin"
5317   fi
5318   rm -f conftest*
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5321 $as_echo "$lt_cv_nm_interface" >&6; }
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5324 $as_echo_n "checking whether ln -s works... " >&6; }
5325 LN_S=$as_ln_s
5326 if test "$LN_S" = "ln -s"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328 $as_echo "yes" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5331 $as_echo "no, using $LN_S" >&6; }
5332 fi
5333
5334 # find the maximum length of command line arguments
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5336 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5337 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340     i=0
5341   teststring="ABCD"
5342
5343   case $build_os in
5344   msdosdjgpp*)
5345     # On DJGPP, this test can blow up pretty badly due to problems in libc
5346     # (any single argument exceeding 2000 bytes causes a buffer overrun
5347     # during glob expansion).  Even if it were fixed, the result of this
5348     # check would be larger than it should be.
5349     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5350     ;;
5351
5352   gnu*)
5353     # Under GNU Hurd, this test is not required because there is
5354     # no limit to the length of command line arguments.
5355     # Libtool will interpret -1 as no limit whatsoever
5356     lt_cv_sys_max_cmd_len=-1;
5357     ;;
5358
5359   cygwin* | mingw* | cegcc*)
5360     # On Win9x/ME, this test blows up -- it succeeds, but takes
5361     # about 5 minutes as the teststring grows exponentially.
5362     # Worse, since 9x/ME are not pre-emptively multitasking,
5363     # you end up with a "frozen" computer, even though with patience
5364     # the test eventually succeeds (with a max line length of 256k).
5365     # Instead, let's just punt: use the minimum linelength reported by
5366     # all of the supported platforms: 8192 (on NT/2K/XP).
5367     lt_cv_sys_max_cmd_len=8192;
5368     ;;
5369
5370   mint*)
5371     # On MiNT this can take a long time and run out of memory.
5372     lt_cv_sys_max_cmd_len=8192;
5373     ;;
5374
5375   amigaos*)
5376     # On AmigaOS with pdksh, this test takes hours, literally.
5377     # So we just punt and use a minimum line length of 8192.
5378     lt_cv_sys_max_cmd_len=8192;
5379     ;;
5380
5381   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5382     # This has been around since 386BSD, at least.  Likely further.
5383     if test -x /sbin/sysctl; then
5384       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5385     elif test -x /usr/sbin/sysctl; then
5386       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5387     else
5388       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5389     fi
5390     # And add a safety zone
5391     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5392     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5393     ;;
5394
5395   interix*)
5396     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5397     lt_cv_sys_max_cmd_len=196608
5398     ;;
5399
5400   osf*)
5401     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5402     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5403     # nice to cause kernel panics so lets avoid the loop below.
5404     # First set a reasonable default.
5405     lt_cv_sys_max_cmd_len=16384
5406     #
5407     if test -x /sbin/sysconfig; then
5408       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5409         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5410       esac
5411     fi
5412     ;;
5413   sco3.2v5*)
5414     lt_cv_sys_max_cmd_len=102400
5415     ;;
5416   sysv5* | sco5v6* | sysv4.2uw2*)
5417     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5418     if test -n "$kargmax"; then
5419       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5420     else
5421       lt_cv_sys_max_cmd_len=32768
5422     fi
5423     ;;
5424   *)
5425     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5426     if test -n "$lt_cv_sys_max_cmd_len"; then
5427       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5428       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5429     else
5430       # Make teststring a little bigger before we do anything with it.
5431       # a 1K string should be a reasonable start.
5432       for i in 1 2 3 4 5 6 7 8 ; do
5433         teststring=$teststring$teststring
5434       done
5435       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436       # If test is not a shell built-in, we'll probably end up computing a
5437       # maximum length that is only half of the actual maximum length, but
5438       # we can't tell.
5439       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5440                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5441               test $i != 17 # 1/2 MB should be enough
5442       do
5443         i=`expr $i + 1`
5444         teststring=$teststring$teststring
5445       done
5446       # Only check the string length outside the loop.
5447       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5448       teststring=
5449       # Add a significant safety factor because C++ compilers can tack on
5450       # massive amounts of additional arguments before passing them to the
5451       # linker.  It appears as though 1/2 is a usable value.
5452       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453     fi
5454     ;;
5455   esac
5456
5457 fi
5458
5459 if test -n $lt_cv_sys_max_cmd_len ; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5461 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5464 $as_echo "none" >&6; }
5465 fi
5466 max_cmd_len=$lt_cv_sys_max_cmd_len
5467
5468
5469
5470
5471
5472
5473 : ${CP="cp -f"}
5474 : ${MV="mv -f"}
5475 : ${RM="rm -f"}
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5478 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5479 # Try some XSI features
5480 xsi_shell=no
5481 ( _lt_dummy="a/b/c"
5482   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5483       = c,a/b,, \
5484     && eval 'test $(( 1 + 1 )) -eq 2 \
5485     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5486   && xsi_shell=yes
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5488 $as_echo "$xsi_shell" >&6; }
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5492 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5493 lt_shell_append=no
5494 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5495     >/dev/null 2>&1 \
5496   && lt_shell_append=yes
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5498 $as_echo "$lt_shell_append" >&6; }
5499
5500
5501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5502   lt_unset=unset
5503 else
5504   lt_unset=false
5505 fi
5506
5507
5508
5509
5510
5511 # test EBCDIC or ASCII
5512 case `echo X|tr X '\101'` in
5513  A) # ASCII based system
5514     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5515   lt_SP2NL='tr \040 \012'
5516   lt_NL2SP='tr \015\012 \040\040'
5517   ;;
5518  *) # EBCDIC based system
5519   lt_SP2NL='tr \100 \n'
5520   lt_NL2SP='tr \r\n \100\100'
5521   ;;
5522 esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5533 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5534 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   lt_cv_ld_reload_flag='-r'
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5540 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5541 reload_flag=$lt_cv_ld_reload_flag
5542 case $reload_flag in
5543 "" | " "*) ;;
5544 *) reload_flag=" $reload_flag" ;;
5545 esac
5546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5547 case $host_os in
5548   darwin*)
5549     if test "$GCC" = yes; then
5550       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5551     else
5552       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5553     fi
5554     ;;
5555 esac
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565 if test -n "$ac_tool_prefix"; then
5566   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5567 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   if test -n "$OBJDUMP"; then
5574   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_exec_ext in '' $ac_executable_extensions; do
5582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588   done
5589 IFS=$as_save_IFS
5590
5591 fi
5592 fi
5593 OBJDUMP=$ac_cv_prog_OBJDUMP
5594 if test -n "$OBJDUMP"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5596 $as_echo "$OBJDUMP" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 fi
5604 if test -z "$ac_cv_prog_OBJDUMP"; then
5605   ac_ct_OBJDUMP=$OBJDUMP
5606   # Extract the first word of "objdump", so it can be a program name with args.
5607 set dummy objdump; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   if test -n "$ac_ct_OBJDUMP"; then
5614   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621     for ac_exec_ext in '' $ac_executable_extensions; do
5622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625     break 2
5626   fi
5627 done
5628   done
5629 IFS=$as_save_IFS
5630
5631 fi
5632 fi
5633 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5634 if test -n "$ac_ct_OBJDUMP"; then
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5636 $as_echo "$ac_ct_OBJDUMP" >&6; }
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642   if test "x$ac_ct_OBJDUMP" = x; then
5643     OBJDUMP="false"
5644   else
5645     case $cross_compiling:$ac_tool_warned in
5646 yes:)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649 ac_tool_warned=yes ;;
5650 esac
5651     OBJDUMP=$ac_ct_OBJDUMP
5652   fi
5653 else
5654   OBJDUMP="$ac_cv_prog_OBJDUMP"
5655 fi
5656
5657 test -z "$OBJDUMP" && OBJDUMP=objdump
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5668 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5669 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   lt_cv_file_magic_cmd='$MAGIC_CMD'
5673 lt_cv_file_magic_test_file=
5674 lt_cv_deplibs_check_method='unknown'
5675 # Need to set the preceding variable on all platforms that support
5676 # interlibrary dependencies.
5677 # 'none' -- dependencies not supported.
5678 # `unknown' -- same as none, but documents that we really don't know.
5679 # 'pass_all' -- all dependencies passed with no checks.
5680 # 'test_compile' -- check by making test program.
5681 # 'file_magic [[regex]]' -- check by looking for files in library path
5682 # which responds to the $file_magic_cmd with a given extended regex.
5683 # If you have `file' or equivalent on your system and you're not sure
5684 # whether `pass_all' will *always* work, you probably want this one.
5685
5686 case $host_os in
5687 aix[4-9]*)
5688   lt_cv_deplibs_check_method=pass_all
5689   ;;
5690
5691 beos*)
5692   lt_cv_deplibs_check_method=pass_all
5693   ;;
5694
5695 bsdi[45]*)
5696   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5697   lt_cv_file_magic_cmd='/usr/bin/file -L'
5698   lt_cv_file_magic_test_file=/shlib/libc.so
5699   ;;
5700
5701 cygwin*)
5702   # func_win32_libid is a shell function defined in ltmain.sh
5703   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5704   lt_cv_file_magic_cmd='func_win32_libid'
5705   ;;
5706
5707 mingw* | pw32*)
5708   # Base MSYS/MinGW do not provide the 'file' command needed by
5709   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5710   # unless we find 'file', for example because we are cross-compiling.
5711   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5712   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5713     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5714     lt_cv_file_magic_cmd='func_win32_libid'
5715   else
5716     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5717     lt_cv_file_magic_cmd='$OBJDUMP -f'
5718   fi
5719   ;;
5720
5721 cegcc*)
5722   # use the weaker test based on 'objdump'. See mingw*.
5723   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5724   lt_cv_file_magic_cmd='$OBJDUMP -f'
5725   ;;
5726
5727 darwin* | rhapsody*)
5728   lt_cv_deplibs_check_method=pass_all
5729   ;;
5730
5731 freebsd* | dragonfly*)
5732   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5733     case $host_cpu in
5734     i*86 )
5735       # Not sure whether the presence of OpenBSD here was a mistake.
5736       # Let's accept both of them until this is cleared up.
5737       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5738       lt_cv_file_magic_cmd=/usr/bin/file
5739       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5740       ;;
5741     esac
5742   else
5743     lt_cv_deplibs_check_method=pass_all
5744   fi
5745   ;;
5746
5747 gnu*)
5748   lt_cv_deplibs_check_method=pass_all
5749   ;;
5750
5751 haiku*)
5752   lt_cv_deplibs_check_method=pass_all
5753   ;;
5754
5755 hpux10.20* | hpux11*)
5756   lt_cv_file_magic_cmd=/usr/bin/file
5757   case $host_cpu in
5758   ia64*)
5759     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761     ;;
5762   hppa*64*)
5763     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]'
5764     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765     ;;
5766   *)
5767     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5768     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769     ;;
5770   esac
5771   ;;
5772
5773 interix[3-9]*)
5774   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5776   ;;
5777
5778 irix5* | irix6* | nonstopux*)
5779   case $LD in
5780   *-32|*"-32 ") libmagic=32-bit;;
5781   *-n32|*"-n32 ") libmagic=N32;;
5782   *-64|*"-64 ") libmagic=64-bit;;
5783   *) libmagic=never-match;;
5784   esac
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 # This must be Linux ELF.
5789 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5790   lt_cv_deplibs_check_method=pass_all
5791   ;;
5792
5793 netbsd*)
5794   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796   else
5797     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5798   fi
5799   ;;
5800
5801 newos6*)
5802   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803   lt_cv_file_magic_cmd=/usr/bin/file
5804   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5805   ;;
5806
5807 *nto* | *qnx*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 openbsd*)
5812   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814   else
5815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816   fi
5817   ;;
5818
5819 osf3* | osf4* | osf5*)
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822
5823 rdos*)
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 solaris*)
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830
5831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832   lt_cv_deplibs_check_method=pass_all
5833   ;;
5834
5835 sysv4 | sysv4.3*)
5836   case $host_vendor in
5837   motorola)
5838     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]'
5839     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5840     ;;
5841   ncr)
5842     lt_cv_deplibs_check_method=pass_all
5843     ;;
5844   sequent)
5845     lt_cv_file_magic_cmd='/bin/file'
5846     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5847     ;;
5848   sni)
5849     lt_cv_file_magic_cmd='/bin/file'
5850     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851     lt_cv_file_magic_test_file=/lib/libc.so
5852     ;;
5853   siemens)
5854     lt_cv_deplibs_check_method=pass_all
5855     ;;
5856   pc)
5857     lt_cv_deplibs_check_method=pass_all
5858     ;;
5859   esac
5860   ;;
5861
5862 tpf*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865 esac
5866
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5869 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5870 file_magic_cmd=$lt_cv_file_magic_cmd
5871 deplibs_check_method=$lt_cv_deplibs_check_method
5872 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 if test -n "$ac_tool_prefix"; then
5886   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}ar; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_AR+set}" = set; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -n "$AR"; then
5894   ac_cv_prog_AR="$AR" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_AR="${ac_tool_prefix}ar"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 AR=$ac_cv_prog_AR
5914 if test -n "$AR"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5916 $as_echo "$AR" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923 fi
5924 if test -z "$ac_cv_prog_AR"; then
5925   ac_ct_AR=$AR
5926   # Extract the first word of "ar", so it can be a program name with args.
5927 set dummy ar; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test -n "$ac_ct_AR"; then
5934   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941     for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_prog_ac_ct_AR="ar"
5944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948   done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5954 if test -n "$ac_ct_AR"; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5956 $as_echo "$ac_ct_AR" >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962   if test "x$ac_ct_AR" = x; then
5963     AR="false"
5964   else
5965     case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971     AR=$ac_ct_AR
5972   fi
5973 else
5974   AR="$ac_cv_prog_AR"
5975 fi
5976
5977 test -z "$AR" && AR=ar
5978 test -z "$AR_FLAGS" && AR_FLAGS=cru
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}strip; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if test "${ac_cv_prog_STRIP+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$STRIP"; then
5999   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006     for ac_exec_ext in '' $ac_executable_extensions; do
6007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013   done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 STRIP=$ac_cv_prog_STRIP
6019 if test -n "$STRIP"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6021 $as_echo "$STRIP" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_STRIP"; then
6030   ac_ct_STRIP=$STRIP
6031   # Extract the first word of "strip", so it can be a program name with args.
6032 set dummy strip; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$ac_ct_STRIP"; then
6039   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_ac_ct_STRIP="strip"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6059 if test -n "$ac_ct_STRIP"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6061 $as_echo "$ac_ct_STRIP" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_STRIP" = x; then
6068     STRIP=":"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     STRIP=$ac_ct_STRIP
6077   fi
6078 else
6079   STRIP="$ac_cv_prog_STRIP"
6080 fi
6081
6082 test -z "$STRIP" && STRIP=:
6083
6084
6085
6086
6087
6088
6089 if test -n "$ac_tool_prefix"; then
6090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   if test -n "$RANLIB"; then
6098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 RANLIB=$ac_cv_prog_RANLIB
6118 if test -n "$RANLIB"; then
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6120 $as_echo "$RANLIB" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126
6127 fi
6128 if test -z "$ac_cv_prog_RANLIB"; then
6129   ac_ct_RANLIB=$RANLIB
6130   # Extract the first word of "ranlib", so it can be a program name with args.
6131 set dummy ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if test -n "$ac_ct_RANLIB"; then
6138   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_prog_ac_ct_RANLIB="ranlib"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158 if test -n "$ac_ct_RANLIB"; then
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6160 $as_echo "$ac_ct_RANLIB" >&6; }
6161 else
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166   if test "x$ac_ct_RANLIB" = x; then
6167     RANLIB=":"
6168   else
6169     case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175     RANLIB=$ac_ct_RANLIB
6176   fi
6177 else
6178   RANLIB="$ac_cv_prog_RANLIB"
6179 fi
6180
6181 test -z "$RANLIB" && RANLIB=:
6182
6183
6184
6185
6186
6187
6188 # Determine commands to create old-style static archives.
6189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6190 old_postinstall_cmds='chmod 644 $oldlib'
6191 old_postuninstall_cmds=
6192
6193 if test -n "$RANLIB"; then
6194   case $host_os in
6195   openbsd*)
6196     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6197     ;;
6198   *)
6199     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6200     ;;
6201   esac
6202   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6203 fi
6204
6205 case $host_os in
6206   darwin*)
6207     lock_old_archive_extraction=yes ;;
6208   *)
6209     lock_old_archive_extraction=no ;;
6210 esac
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 # If no C compiler was specified, use CC.
6251 LTCC=${LTCC-"$CC"}
6252
6253 # If no C compiler flags were specified, use CFLAGS.
6254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6255
6256 # Allow CC to be a program name with arguments.
6257 compiler=$CC
6258
6259
6260 # Check for command to grab the raw symbol name followed by C symbol from nm.
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6262 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6263 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266
6267 # These are sane defaults that work on at least a few old systems.
6268 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6269
6270 # Character class describing NM global symbol codes.
6271 symcode='[BCDEGRST]'
6272
6273 # Regexp to match symbols that can be accessed directly from C.
6274 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6275
6276 # Define system-specific variables.
6277 case $host_os in
6278 aix*)
6279   symcode='[BCDT]'
6280   ;;
6281 cygwin* | mingw* | pw32* | cegcc*)
6282   symcode='[ABCDGISTW]'
6283   ;;
6284 hpux*)
6285   if test "$host_cpu" = ia64; then
6286     symcode='[ABCDEGRST]'
6287   fi
6288   ;;
6289 irix* | nonstopux*)
6290   symcode='[BCDEGRST]'
6291   ;;
6292 osf*)
6293   symcode='[BCDEGQRST]'
6294   ;;
6295 solaris*)
6296   symcode='[BDRT]'
6297   ;;
6298 sco3.2v5*)
6299   symcode='[DT]'
6300   ;;
6301 sysv4.2uw2*)
6302   symcode='[DT]'
6303   ;;
6304 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6305   symcode='[ABDT]'
6306   ;;
6307 sysv4)
6308   symcode='[DFNSTU]'
6309   ;;
6310 esac
6311
6312 # If we're using GNU nm, then use its standard symbol codes.
6313 case `$NM -V 2>&1` in
6314 *GNU* | *'with BFD'*)
6315   symcode='[ABCDGIRSTW]' ;;
6316 esac
6317
6318 # Transform an extracted symbol line into a proper C declaration.
6319 # Some systems (esp. on ia64) link data and code symbols differently,
6320 # so use this general approach.
6321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6322
6323 # Transform an extracted symbol line into symbol name and symbol address
6324 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6325 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'"
6326
6327 # Handle CRLF in mingw tool chain
6328 opt_cr=
6329 case $build_os in
6330 mingw*)
6331   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6332   ;;
6333 esac
6334
6335 # Try without a prefix underscore, then with it.
6336 for ac_symprfx in "" "_"; do
6337
6338   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6339   symxfrm="\\1 $ac_symprfx\\2 \\2"
6340
6341   # Write the raw and C identifiers.
6342   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6343     # Fake it for dumpbin and say T for any non-static function
6344     # and D for any global variable.
6345     # Also find C++ and __fastcall symbols from MSVC++,
6346     # which start with @ or ?.
6347     lt_cv_sys_global_symbol_pipe="$AWK '"\
6348 "     {last_section=section; section=\$ 3};"\
6349 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6350 "     \$ 0!~/External *\|/{next};"\
6351 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6352 "     {if(hide[section]) next};"\
6353 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6354 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6355 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6356 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6357 "     ' prfx=^$ac_symprfx"
6358   else
6359     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6360   fi
6361
6362   # Check to see that the pipe works correctly.
6363   pipe_works=no
6364
6365   rm -f conftest*
6366   cat > conftest.$ac_ext <<_LT_EOF
6367 #ifdef __cplusplus
6368 extern "C" {
6369 #endif
6370 char nm_test_var;
6371 void nm_test_func(void);
6372 void nm_test_func(void){}
6373 #ifdef __cplusplus
6374 }
6375 #endif
6376 int main(){nm_test_var='a';nm_test_func();return(0);}
6377 _LT_EOF
6378
6379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380   (eval $ac_compile) 2>&5
6381   ac_status=$?
6382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383   test $ac_status = 0; }; then
6384     # Now try to grab the symbols.
6385     nlist=conftest.nm
6386     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6387   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6388   ac_status=$?
6389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390   test $ac_status = 0; } && test -s "$nlist"; then
6391       # Try sorting and uniquifying the output.
6392       if sort "$nlist" | uniq > "$nlist"T; then
6393         mv -f "$nlist"T "$nlist"
6394       else
6395         rm -f "$nlist"T
6396       fi
6397
6398       # Make sure that we snagged all the symbols we need.
6399       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6400         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6401           cat <<_LT_EOF > conftest.$ac_ext
6402 #ifdef __cplusplus
6403 extern "C" {
6404 #endif
6405
6406 _LT_EOF
6407           # Now generate the symbol file.
6408           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6409
6410           cat <<_LT_EOF >> conftest.$ac_ext
6411
6412 /* The mapping between symbol names and symbols.  */
6413 const struct {
6414   const char *name;
6415   void       *address;
6416 }
6417 lt__PROGRAM__LTX_preloaded_symbols[] =
6418 {
6419   { "@PROGRAM@", (void *) 0 },
6420 _LT_EOF
6421           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6422           cat <<\_LT_EOF >> conftest.$ac_ext
6423   {0, (void *) 0}
6424 };
6425
6426 /* This works around a problem in FreeBSD linker */
6427 #ifdef FREEBSD_WORKAROUND
6428 static const void *lt_preloaded_setup() {
6429   return lt__PROGRAM__LTX_preloaded_symbols;
6430 }
6431 #endif
6432
6433 #ifdef __cplusplus
6434 }
6435 #endif
6436 _LT_EOF
6437           # Now try linking the two files.
6438           mv conftest.$ac_objext conftstm.$ac_objext
6439           lt_save_LIBS="$LIBS"
6440           lt_save_CFLAGS="$CFLAGS"
6441           LIBS="conftstm.$ac_objext"
6442           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6443           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6444   (eval $ac_link) 2>&5
6445   ac_status=$?
6446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6448             pipe_works=yes
6449           fi
6450           LIBS="$lt_save_LIBS"
6451           CFLAGS="$lt_save_CFLAGS"
6452         else
6453           echo "cannot find nm_test_func in $nlist" >&5
6454         fi
6455       else
6456         echo "cannot find nm_test_var in $nlist" >&5
6457       fi
6458     else
6459       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6460     fi
6461   else
6462     echo "$progname: failed program was:" >&5
6463     cat conftest.$ac_ext >&5
6464   fi
6465   rm -rf conftest* conftst*
6466
6467   # Do not use the global_symbol_pipe unless it works.
6468   if test "$pipe_works" = yes; then
6469     break
6470   else
6471     lt_cv_sys_global_symbol_pipe=
6472   fi
6473 done
6474
6475 fi
6476
6477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6478   lt_cv_sys_global_symbol_to_cdecl=
6479 fi
6480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6482 $as_echo "failed" >&6; }
6483 else
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6485 $as_echo "ok" >&6; }
6486 fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 # Check whether --enable-libtool-lock was given.
6511 if test "${enable_libtool_lock+set}" = set; then :
6512   enableval=$enable_libtool_lock;
6513 fi
6514
6515 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6516
6517 # Some flags need to be propagated to the compiler or linker for good
6518 # libtool support.
6519 case $host in
6520 ia64-*-hpux*)
6521   # Find out which ABI we are using.
6522   echo 'int i;' > conftest.$ac_ext
6523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524   (eval $ac_compile) 2>&5
6525   ac_status=$?
6526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527   test $ac_status = 0; }; then
6528     case `/usr/bin/file conftest.$ac_objext` in
6529       *ELF-32*)
6530         HPUX_IA64_MODE="32"
6531         ;;
6532       *ELF-64*)
6533         HPUX_IA64_MODE="64"
6534         ;;
6535     esac
6536   fi
6537   rm -rf conftest*
6538   ;;
6539 *-*-irix6*)
6540   # Find out which ABI we are using.
6541   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543   (eval $ac_compile) 2>&5
6544   ac_status=$?
6545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546   test $ac_status = 0; }; then
6547     if test "$lt_cv_prog_gnu_ld" = yes; then
6548       case `/usr/bin/file conftest.$ac_objext` in
6549         *32-bit*)
6550           LD="${LD-ld} -melf32bsmip"
6551           ;;
6552         *N32*)
6553           LD="${LD-ld} -melf32bmipn32"
6554           ;;
6555         *64-bit*)
6556           LD="${LD-ld} -melf64bmip"
6557         ;;
6558       esac
6559     else
6560       case `/usr/bin/file conftest.$ac_objext` in
6561         *32-bit*)
6562           LD="${LD-ld} -32"
6563           ;;
6564         *N32*)
6565           LD="${LD-ld} -n32"
6566           ;;
6567         *64-bit*)
6568           LD="${LD-ld} -64"
6569           ;;
6570       esac
6571     fi
6572   fi
6573   rm -rf conftest*
6574   ;;
6575
6576 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6577 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6578   # Find out which ABI we are using.
6579   echo 'int i;' > conftest.$ac_ext
6580   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581   (eval $ac_compile) 2>&5
6582   ac_status=$?
6583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584   test $ac_status = 0; }; then
6585     case `/usr/bin/file conftest.o` in
6586       *32-bit*)
6587         case $host in
6588           x86_64-*kfreebsd*-gnu)
6589             LD="${LD-ld} -m elf_i386_fbsd"
6590             ;;
6591           x86_64-*linux*)
6592             case `/usr/bin/file conftest.o` in
6593               *x86-64*)
6594                 LD="${LD-ld} -m elf32_x86_64"
6595                 ;;
6596               *)
6597                 LD="${LD-ld} -m elf_i386"
6598                 ;;
6599             esac
6600             ;;
6601           ppc64-*linux*|powerpc64-*linux*)
6602             LD="${LD-ld} -m elf32ppclinux"
6603             ;;
6604           s390x-*linux*)
6605             LD="${LD-ld} -m elf_s390"
6606             ;;
6607           sparc64-*linux*)
6608             LD="${LD-ld} -m elf32_sparc"
6609             ;;
6610         esac
6611         ;;
6612       *64-bit*)
6613         case $host in
6614           x86_64-*kfreebsd*-gnu)
6615             LD="${LD-ld} -m elf_x86_64_fbsd"
6616             ;;
6617           x86_64-*linux*)
6618             LD="${LD-ld} -m elf_x86_64"
6619             ;;
6620           ppc*-*linux*|powerpc*-*linux*)
6621             LD="${LD-ld} -m elf64ppc"
6622             ;;
6623           s390*-*linux*|s390*-*tpf*)
6624             LD="${LD-ld} -m elf64_s390"
6625             ;;
6626           sparc*-*linux*)
6627             LD="${LD-ld} -m elf64_sparc"
6628             ;;
6629         esac
6630         ;;
6631     esac
6632   fi
6633   rm -rf conftest*
6634   ;;
6635
6636 *-*-sco3.2v5*)
6637   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6638   SAVE_CFLAGS="$CFLAGS"
6639   CFLAGS="$CFLAGS -belf"
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6641 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6642 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   ac_ext=c
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h.  */
6653
6654 int
6655 main ()
6656 {
6657
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663   lt_cv_cc_needs_belf=yes
6664 else
6665   lt_cv_cc_needs_belf=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext \
6668     conftest$ac_exeext conftest.$ac_ext
6669      ac_ext=c
6670 ac_cpp='$CPP $CPPFLAGS'
6671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6677 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6678   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6679     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6680     CFLAGS="$SAVE_CFLAGS"
6681   fi
6682   ;;
6683 sparc*-*solaris*)
6684   # Find out which ABI we are using.
6685   echo 'int i;' > conftest.$ac_ext
6686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687   (eval $ac_compile) 2>&5
6688   ac_status=$?
6689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690   test $ac_status = 0; }; then
6691     case `/usr/bin/file conftest.o` in
6692     *64-bit*)
6693       case $lt_cv_prog_gnu_ld in
6694       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6695       *)
6696         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6697           LD="${LD-ld} -64"
6698         fi
6699         ;;
6700       esac
6701       ;;
6702     esac
6703   fi
6704   rm -rf conftest*
6705   ;;
6706 esac
6707
6708 need_locks="$enable_libtool_lock"
6709
6710
6711   case $host_os in
6712     rhapsody* | darwin*)
6713     if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$DSYMUTIL"; then
6722   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6742 if test -n "$DSYMUTIL"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6744 $as_echo "$DSYMUTIL" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_DSYMUTIL"; then
6753   ac_ct_DSYMUTIL=$DSYMUTIL
6754   # Extract the first word of "dsymutil", so it can be a program name with args.
6755 set dummy dsymutil; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_DSYMUTIL"; then
6762   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6782 if test -n "$ac_ct_DSYMUTIL"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6784 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_DSYMUTIL" = x; then
6791     DSYMUTIL=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     DSYMUTIL=$ac_ct_DSYMUTIL
6800   fi
6801 else
6802   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6803 fi
6804
6805     if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$NMEDIT"; then
6814   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 NMEDIT=$ac_cv_prog_NMEDIT
6834 if test -n "$NMEDIT"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6836 $as_echo "$NMEDIT" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_NMEDIT"; then
6845   ac_ct_NMEDIT=$NMEDIT
6846   # Extract the first word of "nmedit", so it can be a program name with args.
6847 set dummy nmedit; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$ac_ct_NMEDIT"; then
6854   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6874 if test -n "$ac_ct_NMEDIT"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6876 $as_echo "$ac_ct_NMEDIT" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882   if test "x$ac_ct_NMEDIT" = x; then
6883     NMEDIT=":"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891     NMEDIT=$ac_ct_NMEDIT
6892   fi
6893 else
6894   NMEDIT="$ac_cv_prog_NMEDIT"
6895 fi
6896
6897     if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_LIPO+set}" = set; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$LIPO"; then
6906   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 LIPO=$ac_cv_prog_LIPO
6926 if test -n "$LIPO"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6928 $as_echo "$LIPO" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_LIPO"; then
6937   ac_ct_LIPO=$LIPO
6938   # Extract the first word of "lipo", so it can be a program name with args.
6939 set dummy lipo; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_LIPO"; then
6946   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_LIPO="lipo"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6966 if test -n "$ac_ct_LIPO"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6968 $as_echo "$ac_ct_LIPO" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_LIPO" = x; then
6975     LIPO=":"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     LIPO=$ac_ct_LIPO
6984   fi
6985 else
6986   LIPO="$ac_cv_prog_LIPO"
6987 fi
6988
6989     if test -n "$ac_tool_prefix"; then
6990   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}otool; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$OTOOL"; then
6998   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 OTOOL=$ac_cv_prog_OTOOL
7018 if test -n "$OTOOL"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7020 $as_echo "$OTOOL" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_OTOOL"; then
7029   ac_ct_OTOOL=$OTOOL
7030   # Extract the first word of "otool", so it can be a program name with args.
7031 set dummy otool; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_OTOOL"; then
7038   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_prog_ac_ct_OTOOL="otool"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7058 if test -n "$ac_ct_OTOOL"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7060 $as_echo "$ac_ct_OTOOL" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066   if test "x$ac_ct_OTOOL" = x; then
7067     OTOOL=":"
7068   else
7069     case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075     OTOOL=$ac_ct_OTOOL
7076   fi
7077 else
7078   OTOOL="$ac_cv_prog_OTOOL"
7079 fi
7080
7081     if test -n "$ac_tool_prefix"; then
7082   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test -n "$OTOOL64"; then
7090   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 OTOOL64=$ac_cv_prog_OTOOL64
7110 if test -n "$OTOOL64"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7112 $as_echo "$OTOOL64" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118
7119 fi
7120 if test -z "$ac_cv_prog_OTOOL64"; then
7121   ac_ct_OTOOL64=$OTOOL64
7122   # Extract the first word of "otool64", so it can be a program name with args.
7123 set dummy otool64; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$ac_ct_OTOOL64"; then
7130   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_ac_ct_OTOOL64="otool64"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7150 if test -n "$ac_ct_OTOOL64"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7152 $as_echo "$ac_ct_OTOOL64" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158   if test "x$ac_ct_OTOOL64" = x; then
7159     OTOOL64=":"
7160   else
7161     case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167     OTOOL64=$ac_ct_OTOOL64
7168   fi
7169 else
7170   OTOOL64="$ac_cv_prog_OTOOL64"
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7200 $as_echo_n "checking for -single_module linker flag... " >&6; }
7201 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   lt_cv_apple_cc_single_mod=no
7205       if test -z "${LT_MULTI_MODULE}"; then
7206         # By default we will add the -single_module flag. You can override
7207         # by either setting the environment variable LT_MULTI_MODULE
7208         # non-empty at configure time, or by adding -multi_module to the
7209         # link flags.
7210         rm -rf libconftest.dylib*
7211         echo "int foo(void){return 1;}" > conftest.c
7212         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7213 -dynamiclib -Wl,-single_module conftest.c" >&5
7214         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7216         _lt_result=$?
7217         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7218           lt_cv_apple_cc_single_mod=yes
7219         else
7220           cat conftest.err >&5
7221         fi
7222         rm -rf libconftest.dylib*
7223         rm -f conftest.*
7224       fi
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7227 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7229 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7230 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   lt_cv_ld_exported_symbols_list=no
7234       save_LDFLAGS=$LDFLAGS
7235       echo "_main" > conftest.sym
7236       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239
7240 int
7241 main ()
7242 {
7243
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_link "$LINENO"; then :
7249   lt_cv_ld_exported_symbols_list=yes
7250 else
7251   lt_cv_ld_exported_symbols_list=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext \
7254     conftest$ac_exeext conftest.$ac_ext
7255         LDFLAGS="$save_LDFLAGS"
7256
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7259 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7261 $as_echo_n "checking for -force_load linker flag... " >&6; }
7262 if test "${lt_cv_ld_force_load+set}" = set; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   lt_cv_ld_force_load=no
7266       cat > conftest.c << _LT_EOF
7267 int forced_loaded() { return 2;}
7268 _LT_EOF
7269       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7270       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7271       echo "$AR cru libconftest.a conftest.o" >&5
7272       $AR cru libconftest.a conftest.o 2>&5
7273       cat > conftest.c << _LT_EOF
7274 int main() { return 0;}
7275 _LT_EOF
7276       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7277       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7278       _lt_result=$?
7279       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7280         lt_cv_ld_force_load=yes
7281       else
7282         cat conftest.err >&5
7283       fi
7284         rm -f conftest.err libconftest.a conftest conftest.c
7285         rm -rf conftest.dSYM
7286
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7289 $as_echo "$lt_cv_ld_force_load" >&6; }
7290     case $host_os in
7291     rhapsody* | darwin1.[012])
7292       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7293     darwin1.*)
7294       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7295     darwin*) # darwin 5.x on
7296       # if running on 10.5 or later, the deployment target defaults
7297       # to the OS version, if on x86, and 10.4, the deployment
7298       # target defaults to 10.4. Don't you love it?
7299       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7300         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7301           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7302         10.[012]*)
7303           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7304         10.*)
7305           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306       esac
7307     ;;
7308   esac
7309     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7310       _lt_dar_single_mod='$single_module'
7311     fi
7312     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7313       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7314     else
7315       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7316     fi
7317     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7318       _lt_dsymutil='~$DSYMUTIL $lib || :'
7319     else
7320       _lt_dsymutil=
7321     fi
7322     ;;
7323   esac
7324
7325 ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7332 # On Suns, sometimes $CPP names a directory.
7333 if test -n "$CPP" && test -d "$CPP"; then
7334   CPP=
7335 fi
7336 if test -z "$CPP"; then
7337   if test "${ac_cv_prog_CPP+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340       # Double quotes because CPP needs to be expanded
7341     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7342     do
7343       ac_preproc_ok=false
7344 for ac_c_preproc_warn_flag in '' yes
7345 do
7346   # Use a header file that comes with gcc, so configuring glibc
7347   # with a fresh cross-compiler works.
7348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349   # <limits.h> exists even on freestanding compilers.
7350   # On the NeXT, cc -E runs the code through the compiler's parser,
7351   # not just through cpp. "Syntax error" is here to catch this case.
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #ifdef __STDC__
7355 # include <limits.h>
7356 #else
7357 # include <assert.h>
7358 #endif
7359                      Syntax error
7360 _ACEOF
7361 if ac_fn_c_try_cpp "$LINENO"; then :
7362
7363 else
7364   # Broken: fails on valid input.
7365 continue
7366 fi
7367 rm -f conftest.err conftest.$ac_ext
7368
7369   # OK, works on sane cases.  Now check whether nonexistent headers
7370   # can be detected and how.
7371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h.  */
7373 #include <ac_nonexistent.h>
7374 _ACEOF
7375 if ac_fn_c_try_cpp "$LINENO"; then :
7376   # Broken: success on invalid input.
7377 continue
7378 else
7379   # Passes both tests.
7380 ac_preproc_ok=:
7381 break
7382 fi
7383 rm -f conftest.err conftest.$ac_ext
7384
7385 done
7386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7387 rm -f conftest.err conftest.$ac_ext
7388 if $ac_preproc_ok; then :
7389   break
7390 fi
7391
7392     done
7393     ac_cv_prog_CPP=$CPP
7394
7395 fi
7396   CPP=$ac_cv_prog_CPP
7397 else
7398   ac_cv_prog_CPP=$CPP
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7401 $as_echo "$CPP" >&6; }
7402 ac_preproc_ok=false
7403 for ac_c_preproc_warn_flag in '' yes
7404 do
7405   # Use a header file that comes with gcc, so configuring glibc
7406   # with a fresh cross-compiler works.
7407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408   # <limits.h> exists even on freestanding compilers.
7409   # On the NeXT, cc -E runs the code through the compiler's parser,
7410   # not just through cpp. "Syntax error" is here to catch this case.
7411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h.  */
7413 #ifdef __STDC__
7414 # include <limits.h>
7415 #else
7416 # include <assert.h>
7417 #endif
7418                      Syntax error
7419 _ACEOF
7420 if ac_fn_c_try_cpp "$LINENO"; then :
7421
7422 else
7423   # Broken: fails on valid input.
7424 continue
7425 fi
7426 rm -f conftest.err conftest.$ac_ext
7427
7428   # OK, works on sane cases.  Now check whether nonexistent headers
7429   # can be detected and how.
7430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432 #include <ac_nonexistent.h>
7433 _ACEOF
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7435   # Broken: success on invalid input.
7436 continue
7437 else
7438   # Passes both tests.
7439 ac_preproc_ok=:
7440 break
7441 fi
7442 rm -f conftest.err conftest.$ac_ext
7443
7444 done
7445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446 rm -f conftest.err conftest.$ac_ext
7447 if $ac_preproc_ok; then :
7448
7449 else
7450   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7452 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7453 See \`config.log' for more details." "$LINENO" 5; }
7454 fi
7455
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7464 $as_echo_n "checking for ANSI C header files... " >&6; }
7465 if test "${ac_cv_header_stdc+set}" = set; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h.  */
7470 #include <stdlib.h>
7471 #include <stdarg.h>
7472 #include <string.h>
7473 #include <float.h>
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484   ac_cv_header_stdc=yes
7485 else
7486   ac_cv_header_stdc=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
7490 if test $ac_cv_header_stdc = yes; then
7491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494 #include <string.h>
7495
7496 _ACEOF
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498   $EGREP "memchr" >/dev/null 2>&1; then :
7499
7500 else
7501   ac_cv_header_stdc=no
7502 fi
7503 rm -f conftest*
7504
7505 fi
7506
7507 if test $ac_cv_header_stdc = yes; then
7508   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #include <stdlib.h>
7512
7513 _ACEOF
7514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515   $EGREP "free" >/dev/null 2>&1; then :
7516
7517 else
7518   ac_cv_header_stdc=no
7519 fi
7520 rm -f conftest*
7521
7522 fi
7523
7524 if test $ac_cv_header_stdc = yes; then
7525   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7526   if test "$cross_compiling" = yes; then :
7527   :
7528 else
7529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531 #include <ctype.h>
7532 #include <stdlib.h>
7533 #if ((' ' & 0x0FF) == 0x020)
7534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7536 #else
7537 # define ISLOWER(c) \
7538                    (('a' <= (c) && (c) <= 'i') \
7539                      || ('j' <= (c) && (c) <= 'r') \
7540                      || ('s' <= (c) && (c) <= 'z'))
7541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7542 #endif
7543
7544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7545 int
7546 main ()
7547 {
7548   int i;
7549   for (i = 0; i < 256; i++)
7550     if (XOR (islower (i), ISLOWER (i))
7551         || toupper (i) != TOUPPER (i))
7552       return 2;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_run "$LINENO"; then :
7557
7558 else
7559   ac_cv_header_stdc=no
7560 fi
7561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7562   conftest.$ac_objext conftest.beam conftest.$ac_ext
7563 fi
7564
7565 fi
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7568 $as_echo "$ac_cv_header_stdc" >&6; }
7569 if test $ac_cv_header_stdc = yes; then
7570
7571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7572
7573 fi
7574
7575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7577                   inttypes.h stdint.h unistd.h
7578 do :
7579   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7581 "
7582 eval as_val=\$$as_ac_Header
7583    if test "x$as_val" = x""yes; then :
7584   cat >>confdefs.h <<_ACEOF
7585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 _ACEOF
7587
7588 fi
7589
7590 done
7591
7592
7593 for ac_header in dlfcn.h
7594 do :
7595   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7596 "
7597 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7598   cat >>confdefs.h <<_ACEOF
7599 #define HAVE_DLFCN_H 1
7600 _ACEOF
7601
7602 fi
7603
7604 done
7605
7606
7607
7608
7609
7610
7611 # Set options
7612
7613
7614
7615
7616   enable_win32_dll=no
7617
7618
7619             # Check whether --enable-shared was given.
7620 if test "${enable_shared+set}" = set; then :
7621   enableval=$enable_shared; p=${PACKAGE-default}
7622     case $enableval in
7623     yes) enable_shared=yes ;;
7624     no) enable_shared=no ;;
7625     *)
7626       enable_shared=no
7627       # Look at the argument we got.  We use all the common list separators.
7628       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629       for pkg in $enableval; do
7630         IFS="$lt_save_ifs"
7631         if test "X$pkg" = "X$p"; then
7632           enable_shared=yes
7633         fi
7634       done
7635       IFS="$lt_save_ifs"
7636       ;;
7637     esac
7638 else
7639   enable_shared=yes
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650   # Check whether --enable-static was given.
7651 if test "${enable_static+set}" = set; then :
7652   enableval=$enable_static; p=${PACKAGE-default}
7653     case $enableval in
7654     yes) enable_static=yes ;;
7655     no) enable_static=no ;;
7656     *)
7657      enable_static=no
7658       # Look at the argument we got.  We use all the common list separators.
7659       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660       for pkg in $enableval; do
7661         IFS="$lt_save_ifs"
7662         if test "X$pkg" = "X$p"; then
7663           enable_static=yes
7664         fi
7665       done
7666       IFS="$lt_save_ifs"
7667       ;;
7668     esac
7669 else
7670   enable_static=yes
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 # Check whether --with-pic was given.
7683 if test "${with_pic+set}" = set; then :
7684   withval=$with_pic; pic_mode="$withval"
7685 else
7686   pic_mode=default
7687 fi
7688
7689
7690 test -z "$pic_mode" && pic_mode=default
7691
7692
7693
7694
7695
7696
7697
7698   # Check whether --enable-fast-install was given.
7699 if test "${enable_fast_install+set}" = set; then :
7700   enableval=$enable_fast_install; p=${PACKAGE-default}
7701     case $enableval in
7702     yes) enable_fast_install=yes ;;
7703     no) enable_fast_install=no ;;
7704     *)
7705       enable_fast_install=no
7706       # Look at the argument we got.  We use all the common list separators.
7707       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708       for pkg in $enableval; do
7709         IFS="$lt_save_ifs"
7710         if test "X$pkg" = "X$p"; then
7711           enable_fast_install=yes
7712         fi
7713       done
7714       IFS="$lt_save_ifs"
7715       ;;
7716     esac
7717 else
7718   enable_fast_install=yes
7719 fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # This can be used to rebuild libtool when needed
7732 LIBTOOL_DEPS="$ltmain"
7733
7734 # Always use our own libtool.
7735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 test -z "$LN_S" && LN_S="ln -s"
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 if test -n "${ZSH_VERSION+set}" ; then
7778    setopt NO_GLOB_SUBST
7779 fi
7780
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7782 $as_echo_n "checking for objdir... " >&6; }
7783 if test "${lt_cv_objdir+set}" = set; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   rm -f .libs 2>/dev/null
7787 mkdir .libs 2>/dev/null
7788 if test -d .libs; then
7789   lt_cv_objdir=.libs
7790 else
7791   # MS-DOS does not allow filenames that begin with a dot.
7792   lt_cv_objdir=_libs
7793 fi
7794 rmdir .libs 2>/dev/null
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7797 $as_echo "$lt_cv_objdir" >&6; }
7798 objdir=$lt_cv_objdir
7799
7800
7801
7802
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define LT_OBJDIR "$lt_cv_objdir/"
7806 _ACEOF
7807
7808
7809
7810
7811 case $host_os in
7812 aix3*)
7813   # AIX sometimes has problems with the GCC collect2 program.  For some
7814   # reason, if we set the COLLECT_NAMES environment variable, the problems
7815   # vanish in a puff of smoke.
7816   if test "X${COLLECT_NAMES+set}" != Xset; then
7817     COLLECT_NAMES=
7818     export COLLECT_NAMES
7819   fi
7820   ;;
7821 esac
7822
7823 # Global variables:
7824 ofile=libtool
7825 can_build_shared=yes
7826
7827 # All known linkers require a `.a' archive for static linking (except MSVC,
7828 # which needs '.lib').
7829 libext=a
7830
7831 with_gnu_ld="$lt_cv_prog_gnu_ld"
7832
7833 old_CC="$CC"
7834 old_CFLAGS="$CFLAGS"
7835
7836 # Set sane defaults for various variables
7837 test -z "$CC" && CC=cc
7838 test -z "$LTCC" && LTCC=$CC
7839 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7840 test -z "$LD" && LD=ld
7841 test -z "$ac_objext" && ac_objext=o
7842
7843 for cc_temp in $compiler""; do
7844   case $cc_temp in
7845     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7846     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7847     \-*) ;;
7848     *) break;;
7849   esac
7850 done
7851 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7852
7853
7854 # Only perform the check for file, if the check method requires it
7855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7856 case $deplibs_check_method in
7857 file_magic*)
7858   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7860 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7861 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   case $MAGIC_CMD in
7865 [\\/*] |  ?:[\\/]*)
7866   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7867   ;;
7868 *)
7869   lt_save_MAGIC_CMD="$MAGIC_CMD"
7870   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7871   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7872   for ac_dir in $ac_dummy; do
7873     IFS="$lt_save_ifs"
7874     test -z "$ac_dir" && ac_dir=.
7875     if test -f $ac_dir/${ac_tool_prefix}file; then
7876       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7877       if test -n "$file_magic_test_file"; then
7878         case $deplibs_check_method in
7879         "file_magic "*)
7880           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7881           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7883             $EGREP "$file_magic_regex" > /dev/null; then
7884             :
7885           else
7886             cat <<_LT_EOF 1>&2
7887
7888 *** Warning: the command libtool uses to detect shared libraries,
7889 *** $file_magic_cmd, produces output that libtool cannot recognize.
7890 *** The result is that libtool may fail to recognize shared libraries
7891 *** as such.  This will affect the creation of libtool libraries that
7892 *** depend on shared libraries, but programs linked with such libtool
7893 *** libraries will work regardless of this problem.  Nevertheless, you
7894 *** may want to report the problem to your system manager and/or to
7895 *** bug-libtool@gnu.org
7896
7897 _LT_EOF
7898           fi ;;
7899         esac
7900       fi
7901       break
7902     fi
7903   done
7904   IFS="$lt_save_ifs"
7905   MAGIC_CMD="$lt_save_MAGIC_CMD"
7906   ;;
7907 esac
7908 fi
7909
7910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911 if test -n "$MAGIC_CMD"; then
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7913 $as_echo "$MAGIC_CMD" >&6; }
7914 else
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7917 fi
7918
7919
7920
7921
7922
7923 if test -z "$lt_cv_path_MAGIC_CMD"; then
7924   if test -n "$ac_tool_prefix"; then
7925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7926 $as_echo_n "checking for file... " >&6; }
7927 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   case $MAGIC_CMD in
7931 [\\/*] |  ?:[\\/]*)
7932   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7933   ;;
7934 *)
7935   lt_save_MAGIC_CMD="$MAGIC_CMD"
7936   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7937   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7938   for ac_dir in $ac_dummy; do
7939     IFS="$lt_save_ifs"
7940     test -z "$ac_dir" && ac_dir=.
7941     if test -f $ac_dir/file; then
7942       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7943       if test -n "$file_magic_test_file"; then
7944         case $deplibs_check_method in
7945         "file_magic "*)
7946           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7947           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7949             $EGREP "$file_magic_regex" > /dev/null; then
7950             :
7951           else
7952             cat <<_LT_EOF 1>&2
7953
7954 *** Warning: the command libtool uses to detect shared libraries,
7955 *** $file_magic_cmd, produces output that libtool cannot recognize.
7956 *** The result is that libtool may fail to recognize shared libraries
7957 *** as such.  This will affect the creation of libtool libraries that
7958 *** depend on shared libraries, but programs linked with such libtool
7959 *** libraries will work regardless of this problem.  Nevertheless, you
7960 *** may want to report the problem to your system manager and/or to
7961 *** bug-libtool@gnu.org
7962
7963 _LT_EOF
7964           fi ;;
7965         esac
7966       fi
7967       break
7968     fi
7969   done
7970   IFS="$lt_save_ifs"
7971   MAGIC_CMD="$lt_save_MAGIC_CMD"
7972   ;;
7973 esac
7974 fi
7975
7976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977 if test -n "$MAGIC_CMD"; then
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7979 $as_echo "$MAGIC_CMD" >&6; }
7980 else
7981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985
7986   else
7987     MAGIC_CMD=:
7988   fi
7989 fi
7990
7991   fi
7992   ;;
7993 esac
7994
7995 # Use C for the default configuration in the libtool script
7996
7997 lt_save_CC="$CC"
7998 ac_ext=c
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004
8005 # Source file extension for C test sources.
8006 ac_ext=c
8007
8008 # Object file extension for compiled C test sources.
8009 objext=o
8010 objext=$objext
8011
8012 # Code to be used in simple compile tests
8013 lt_simple_compile_test_code="int some_variable = 0;"
8014
8015 # Code to be used in simple link tests
8016 lt_simple_link_test_code='int main(){return(0);}'
8017
8018
8019
8020
8021
8022
8023
8024 # If no C compiler was specified, use CC.
8025 LTCC=${LTCC-"$CC"}
8026
8027 # If no C compiler flags were specified, use CFLAGS.
8028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8029
8030 # Allow CC to be a program name with arguments.
8031 compiler=$CC
8032
8033 # Save the default compiler, since it gets overwritten when the other
8034 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8035 compiler_DEFAULT=$CC
8036
8037 # save warnings/boilerplate of simple test code
8038 ac_outfile=conftest.$ac_objext
8039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041 _lt_compiler_boilerplate=`cat conftest.err`
8042 $RM conftest*
8043
8044 ac_outfile=conftest.$ac_objext
8045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8047 _lt_linker_boilerplate=`cat conftest.err`
8048 $RM -r conftest*
8049
8050
8051 ## CAVEAT EMPTOR:
8052 ## There is no encapsulation within the following macros, do not change
8053 ## the running order or otherwise move them around unless you know exactly
8054 ## what you are doing...
8055 if test -n "$compiler"; then
8056
8057 lt_prog_compiler_no_builtin_flag=
8058
8059 if test "$GCC" = yes; then
8060   case $cc_basename in
8061   nvcc*)
8062     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8063   *)
8064     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8065   esac
8066
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8068 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8069 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   lt_cv_prog_compiler_rtti_exceptions=no
8073    ac_outfile=conftest.$ac_objext
8074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075    lt_compiler_flag="-fno-rtti -fno-exceptions"
8076    # Insert the option either (1) after the last *FLAGS variable, or
8077    # (2) before a word containing "conftest.", or (3) at the end.
8078    # Note that $ac_compile itself does not contain backslashes and begins
8079    # with a dollar sign (not a hyphen), so the echo should work correctly.
8080    # The option is referenced via a variable to avoid confusing sed.
8081    lt_compile=`echo "$ac_compile" | $SED \
8082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084    -e 's:$: $lt_compiler_flag:'`
8085    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086    (eval "$lt_compile" 2>conftest.err)
8087    ac_status=$?
8088    cat conftest.err >&5
8089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090    if (exit $ac_status) && test -s "$ac_outfile"; then
8091      # The compiler can only warn and ignore the option if not recognized
8092      # So say no if there are warnings other than the usual output.
8093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096        lt_cv_prog_compiler_rtti_exceptions=yes
8097      fi
8098    fi
8099    $RM conftest*
8100
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8103 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8104
8105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8106     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8107 else
8108     :
8109 fi
8110
8111 fi
8112
8113
8114
8115
8116
8117
8118   lt_prog_compiler_wl=
8119 lt_prog_compiler_pic=
8120 lt_prog_compiler_static=
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8123 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8124
8125   if test "$GCC" = yes; then
8126     lt_prog_compiler_wl='-Wl,'
8127     lt_prog_compiler_static='-static'
8128
8129     case $host_os in
8130       aix*)
8131       # All AIX code is PIC.
8132       if test "$host_cpu" = ia64; then
8133         # AIX 5 now supports IA64 processor
8134         lt_prog_compiler_static='-Bstatic'
8135       fi
8136       lt_prog_compiler_pic='-fPIC'
8137       ;;
8138
8139     amigaos*)
8140       case $host_cpu in
8141       powerpc)
8142             # see comment about AmigaOS4 .so support
8143             lt_prog_compiler_pic='-fPIC'
8144         ;;
8145       m68k)
8146             # FIXME: we need at least 68020 code to build shared libraries, but
8147             # adding the `-m68020' flag to GCC prevents building anything better,
8148             # like `-m68040'.
8149             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8150         ;;
8151       esac
8152       ;;
8153
8154     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8155       # PIC is the default for these OSes.
8156       ;;
8157
8158     mingw* | cygwin* | pw32* | os2* | cegcc*)
8159       # This hack is so that the source file can tell whether it is being
8160       # built for inclusion in a dll (and should export symbols for example).
8161       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8162       # (--disable-auto-import) libraries
8163       lt_prog_compiler_pic='-DDLL_EXPORT'
8164       ;;
8165
8166     darwin* | rhapsody*)
8167       # PIC is the default on this platform
8168       # Common symbols not allowed in MH_DYLIB files
8169       lt_prog_compiler_pic='-fno-common'
8170       ;;
8171
8172     haiku*)
8173       # PIC is the default for Haiku.
8174       # The "-static" flag exists, but is broken.
8175       lt_prog_compiler_static=
8176       ;;
8177
8178     hpux*)
8179       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8180       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8181       # sets the default TLS model and affects inlining.
8182       case $host_cpu in
8183       hppa*64*)
8184         # +Z the default
8185         ;;
8186       *)
8187         lt_prog_compiler_pic='-fPIC'
8188         ;;
8189       esac
8190       ;;
8191
8192     interix[3-9]*)
8193       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8194       # Instead, we relocate shared libraries at runtime.
8195       ;;
8196
8197     msdosdjgpp*)
8198       # Just because we use GCC doesn't mean we suddenly get shared libraries
8199       # on systems that don't support them.
8200       lt_prog_compiler_can_build_shared=no
8201       enable_shared=no
8202       ;;
8203
8204     *nto* | *qnx*)
8205       # QNX uses GNU C++, but need to define -shared option too, otherwise
8206       # it will coredump.
8207       lt_prog_compiler_pic='-fPIC -shared'
8208       ;;
8209
8210     sysv4*MP*)
8211       if test -d /usr/nec; then
8212         lt_prog_compiler_pic=-Kconform_pic
8213       fi
8214       ;;
8215
8216     *)
8217       lt_prog_compiler_pic='-fPIC'
8218       ;;
8219     esac
8220
8221     case $cc_basename in
8222     nvcc*) # Cuda Compiler Driver 2.2
8223       lt_prog_compiler_wl='-Xlinker '
8224       lt_prog_compiler_pic='-Xcompiler -fPIC'
8225       ;;
8226     esac
8227   else
8228     # PORTME Check for flag to pass linker flags through the system compiler.
8229     case $host_os in
8230     aix*)
8231       lt_prog_compiler_wl='-Wl,'
8232       if test "$host_cpu" = ia64; then
8233         # AIX 5 now supports IA64 processor
8234         lt_prog_compiler_static='-Bstatic'
8235       else
8236         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8237       fi
8238       ;;
8239
8240     mingw* | cygwin* | pw32* | os2* | cegcc*)
8241       # This hack is so that the source file can tell whether it is being
8242       # built for inclusion in a dll (and should export symbols for example).
8243       lt_prog_compiler_pic='-DDLL_EXPORT'
8244       ;;
8245
8246     hpux9* | hpux10* | hpux11*)
8247       lt_prog_compiler_wl='-Wl,'
8248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8249       # not for PA HP-UX.
8250       case $host_cpu in
8251       hppa*64*|ia64*)
8252         # +Z the default
8253         ;;
8254       *)
8255         lt_prog_compiler_pic='+Z'
8256         ;;
8257       esac
8258       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8259       lt_prog_compiler_static='${wl}-a ${wl}archive'
8260       ;;
8261
8262     irix5* | irix6* | nonstopux*)
8263       lt_prog_compiler_wl='-Wl,'
8264       # PIC (with -KPIC) is the default.
8265       lt_prog_compiler_static='-non_shared'
8266       ;;
8267
8268     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8269       case $cc_basename in
8270       # old Intel for x86_64 which still supported -KPIC.
8271       ecc*)
8272         lt_prog_compiler_wl='-Wl,'
8273         lt_prog_compiler_pic='-KPIC'
8274         lt_prog_compiler_static='-static'
8275         ;;
8276       # icc used to be incompatible with GCC.
8277       # ICC 10 doesn't accept -KPIC any more.
8278       icc* | ifort*)
8279         lt_prog_compiler_wl='-Wl,'
8280         lt_prog_compiler_pic='-fPIC'
8281         lt_prog_compiler_static='-static'
8282         ;;
8283       # Lahey Fortran 8.1.
8284       lf95*)
8285         lt_prog_compiler_wl='-Wl,'
8286         lt_prog_compiler_pic='--shared'
8287         lt_prog_compiler_static='--static'
8288         ;;
8289       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8290         # Portland Group compilers (*not* the Pentium gcc compiler,
8291         # which looks to be a dead project)
8292         lt_prog_compiler_wl='-Wl,'
8293         lt_prog_compiler_pic='-fpic'
8294         lt_prog_compiler_static='-Bstatic'
8295         ;;
8296       ccc*)
8297         lt_prog_compiler_wl='-Wl,'
8298         # All Alpha code is PIC.
8299         lt_prog_compiler_static='-non_shared'
8300         ;;
8301       xl* | bgxl* | bgf* | mpixl*)
8302         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8303         lt_prog_compiler_wl='-Wl,'
8304         lt_prog_compiler_pic='-qpic'
8305         lt_prog_compiler_static='-qstaticlink'
8306         ;;
8307       *)
8308         case `$CC -V 2>&1 | sed 5q` in
8309         *Sun\ F* | *Sun*Fortran*)
8310           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8311           lt_prog_compiler_pic='-KPIC'
8312           lt_prog_compiler_static='-Bstatic'
8313           lt_prog_compiler_wl=''
8314           ;;
8315         *Sun\ C*)
8316           # Sun C 5.9
8317           lt_prog_compiler_pic='-KPIC'
8318           lt_prog_compiler_static='-Bstatic'
8319           lt_prog_compiler_wl='-Wl,'
8320           ;;
8321         esac
8322         ;;
8323       esac
8324       ;;
8325
8326     newsos6)
8327       lt_prog_compiler_pic='-KPIC'
8328       lt_prog_compiler_static='-Bstatic'
8329       ;;
8330
8331     *nto* | *qnx*)
8332       # QNX uses GNU C++, but need to define -shared option too, otherwise
8333       # it will coredump.
8334       lt_prog_compiler_pic='-fPIC -shared'
8335       ;;
8336
8337     osf3* | osf4* | osf5*)
8338       lt_prog_compiler_wl='-Wl,'
8339       # All OSF/1 code is PIC.
8340       lt_prog_compiler_static='-non_shared'
8341       ;;
8342
8343     rdos*)
8344       lt_prog_compiler_static='-non_shared'
8345       ;;
8346
8347     solaris*)
8348       lt_prog_compiler_pic='-KPIC'
8349       lt_prog_compiler_static='-Bstatic'
8350       case $cc_basename in
8351       f77* | f90* | f95*)
8352         lt_prog_compiler_wl='-Qoption ld ';;
8353       *)
8354         lt_prog_compiler_wl='-Wl,';;
8355       esac
8356       ;;
8357
8358     sunos4*)
8359       lt_prog_compiler_wl='-Qoption ld '
8360       lt_prog_compiler_pic='-PIC'
8361       lt_prog_compiler_static='-Bstatic'
8362       ;;
8363
8364     sysv4 | sysv4.2uw2* | sysv4.3*)
8365       lt_prog_compiler_wl='-Wl,'
8366       lt_prog_compiler_pic='-KPIC'
8367       lt_prog_compiler_static='-Bstatic'
8368       ;;
8369
8370     sysv4*MP*)
8371       if test -d /usr/nec ;then
8372         lt_prog_compiler_pic='-Kconform_pic'
8373         lt_prog_compiler_static='-Bstatic'
8374       fi
8375       ;;
8376
8377     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8378       lt_prog_compiler_wl='-Wl,'
8379       lt_prog_compiler_pic='-KPIC'
8380       lt_prog_compiler_static='-Bstatic'
8381       ;;
8382
8383     unicos*)
8384       lt_prog_compiler_wl='-Wl,'
8385       lt_prog_compiler_can_build_shared=no
8386       ;;
8387
8388     uts4*)
8389       lt_prog_compiler_pic='-pic'
8390       lt_prog_compiler_static='-Bstatic'
8391       ;;
8392
8393     *)
8394       lt_prog_compiler_can_build_shared=no
8395       ;;
8396     esac
8397   fi
8398
8399 case $host_os in
8400   # For platforms which do not support PIC, -DPIC is meaningless:
8401   *djgpp*)
8402     lt_prog_compiler_pic=
8403     ;;
8404   *)
8405     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8406     ;;
8407 esac
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8409 $as_echo "$lt_prog_compiler_pic" >&6; }
8410
8411
8412
8413
8414
8415
8416 #
8417 # Check to make sure the PIC flag actually works.
8418 #
8419 if test -n "$lt_prog_compiler_pic"; then
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8421 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8422 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_prog_compiler_pic_works=no
8426    ac_outfile=conftest.$ac_objext
8427    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8429    # Insert the option either (1) after the last *FLAGS variable, or
8430    # (2) before a word containing "conftest.", or (3) at the end.
8431    # Note that $ac_compile itself does not contain backslashes and begins
8432    # with a dollar sign (not a hyphen), so the echo should work correctly.
8433    # The option is referenced via a variable to avoid confusing sed.
8434    lt_compile=`echo "$ac_compile" | $SED \
8435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437    -e 's:$: $lt_compiler_flag:'`
8438    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439    (eval "$lt_compile" 2>conftest.err)
8440    ac_status=$?
8441    cat conftest.err >&5
8442    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443    if (exit $ac_status) && test -s "$ac_outfile"; then
8444      # The compiler can only warn and ignore the option if not recognized
8445      # So say no if there are warnings other than the usual output.
8446      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8447      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8448      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8449        lt_cv_prog_compiler_pic_works=yes
8450      fi
8451    fi
8452    $RM conftest*
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8456 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8457
8458 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8459     case $lt_prog_compiler_pic in
8460      "" | " "*) ;;
8461      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8462      esac
8463 else
8464     lt_prog_compiler_pic=
8465      lt_prog_compiler_can_build_shared=no
8466 fi
8467
8468 fi
8469
8470
8471
8472
8473
8474
8475 #
8476 # Check to make sure the static flag actually works.
8477 #
8478 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8480 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8481 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   lt_cv_prog_compiler_static_works=no
8485    save_LDFLAGS="$LDFLAGS"
8486    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8487    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8488    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8489      # The linker can only warn and ignore the option if not recognized
8490      # So say no if there are warnings
8491      if test -s conftest.err; then
8492        # Append any errors to the config.log.
8493        cat conftest.err 1>&5
8494        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8495        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496        if diff conftest.exp conftest.er2 >/dev/null; then
8497          lt_cv_prog_compiler_static_works=yes
8498        fi
8499      else
8500        lt_cv_prog_compiler_static_works=yes
8501      fi
8502    fi
8503    $RM -r conftest*
8504    LDFLAGS="$save_LDFLAGS"
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8508 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8509
8510 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8511     :
8512 else
8513     lt_prog_compiler_static=
8514 fi
8515
8516
8517
8518
8519
8520
8521
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   lt_cv_prog_compiler_c_o=no
8528    $RM -r conftest 2>/dev/null
8529    mkdir conftest
8530    cd conftest
8531    mkdir out
8532    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533
8534    lt_compiler_flag="-o out/conftest2.$ac_objext"
8535    # Insert the option either (1) after the last *FLAGS variable, or
8536    # (2) before a word containing "conftest.", or (3) at the end.
8537    # Note that $ac_compile itself does not contain backslashes and begins
8538    # with a dollar sign (not a hyphen), so the echo should work correctly.
8539    lt_compile=`echo "$ac_compile" | $SED \
8540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8542    -e 's:$: $lt_compiler_flag:'`
8543    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8544    (eval "$lt_compile" 2>out/conftest.err)
8545    ac_status=$?
8546    cat out/conftest.err >&5
8547    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8549    then
8550      # The compiler can only warn and ignore the option if not recognized
8551      # So say no if there are warnings
8552      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8553      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8554      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8555        lt_cv_prog_compiler_c_o=yes
8556      fi
8557    fi
8558    chmod u+w . 2>&5
8559    $RM conftest*
8560    # SGI C++ compiler will create directory out/ii_files/ for
8561    # template instantiation
8562    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8563    $RM out/* && rmdir out
8564    cd ..
8565    $RM -r conftest
8566    $RM conftest*
8567
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8571
8572
8573
8574
8575
8576
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8579 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   lt_cv_prog_compiler_c_o=no
8583    $RM -r conftest 2>/dev/null
8584    mkdir conftest
8585    cd conftest
8586    mkdir out
8587    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588
8589    lt_compiler_flag="-o out/conftest2.$ac_objext"
8590    # Insert the option either (1) after the last *FLAGS variable, or
8591    # (2) before a word containing "conftest.", or (3) at the end.
8592    # Note that $ac_compile itself does not contain backslashes and begins
8593    # with a dollar sign (not a hyphen), so the echo should work correctly.
8594    lt_compile=`echo "$ac_compile" | $SED \
8595    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597    -e 's:$: $lt_compiler_flag:'`
8598    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599    (eval "$lt_compile" 2>out/conftest.err)
8600    ac_status=$?
8601    cat out/conftest.err >&5
8602    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8604    then
8605      # The compiler can only warn and ignore the option if not recognized
8606      # So say no if there are warnings
8607      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8608      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8609      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8610        lt_cv_prog_compiler_c_o=yes
8611      fi
8612    fi
8613    chmod u+w . 2>&5
8614    $RM conftest*
8615    # SGI C++ compiler will create directory out/ii_files/ for
8616    # template instantiation
8617    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8618    $RM out/* && rmdir out
8619    cd ..
8620    $RM -r conftest
8621    $RM conftest*
8622
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626
8627
8628
8629
8630 hard_links="nottested"
8631 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8632   # do not overwrite the value of need_locks provided by the user
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8634 $as_echo_n "checking if we can lock with hard links... " >&6; }
8635   hard_links=yes
8636   $RM conftest*
8637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8638   touch conftest.a
8639   ln conftest.a conftest.b 2>&5 || hard_links=no
8640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8642 $as_echo "$hard_links" >&6; }
8643   if test "$hard_links" = no; then
8644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8645 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8646     need_locks=warn
8647   fi
8648 else
8649   need_locks=no
8650 fi
8651
8652
8653
8654
8655
8656
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8658 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8659
8660   runpath_var=
8661   allow_undefined_flag=
8662   always_export_symbols=no
8663   archive_cmds=
8664   archive_expsym_cmds=
8665   compiler_needs_object=no
8666   enable_shared_with_static_runtimes=no
8667   export_dynamic_flag_spec=
8668   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8669   hardcode_automatic=no
8670   hardcode_direct=no
8671   hardcode_direct_absolute=no
8672   hardcode_libdir_flag_spec=
8673   hardcode_libdir_flag_spec_ld=
8674   hardcode_libdir_separator=
8675   hardcode_minus_L=no
8676   hardcode_shlibpath_var=unsupported
8677   inherit_rpath=no
8678   link_all_deplibs=unknown
8679   module_cmds=
8680   module_expsym_cmds=
8681   old_archive_from_new_cmds=
8682   old_archive_from_expsyms_cmds=
8683   thread_safe_flag_spec=
8684   whole_archive_flag_spec=
8685   # include_expsyms should be a list of space-separated symbols to be *always*
8686   # included in the symbol list
8687   include_expsyms=
8688   # exclude_expsyms can be an extended regexp of symbols to exclude
8689   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8690   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8691   # as well as any symbol that contains `d'.
8692   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8693   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8694   # platforms (ab)use it in PIC code, but their linkers get confused if
8695   # the symbol is explicitly referenced.  Since portable code cannot
8696   # rely on this symbol name, it's probably fine to never include it in
8697   # preloaded symbol tables.
8698   # Exclude shared library initialization/finalization symbols.
8699   extract_expsyms_cmds=
8700
8701   case $host_os in
8702   cygwin* | mingw* | pw32* | cegcc*)
8703     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8704     # When not using gcc, we currently assume that we are using
8705     # Microsoft Visual C++.
8706     if test "$GCC" != yes; then
8707       with_gnu_ld=no
8708     fi
8709     ;;
8710   interix*)
8711     # we just hope/assume this is gcc and not c89 (= MSVC++)
8712     with_gnu_ld=yes
8713     ;;
8714   openbsd*)
8715     with_gnu_ld=no
8716     ;;
8717   esac
8718
8719   ld_shlibs=yes
8720
8721   # On some targets, GNU ld is compatible enough with the native linker
8722   # that we're better off using the native interface for both.
8723   lt_use_gnu_ld_interface=no
8724   if test "$with_gnu_ld" = yes; then
8725     case $host_os in
8726       aix*)
8727         # The AIX port of GNU ld has always aspired to compatibility
8728         # with the native linker.  However, as the warning in the GNU ld
8729         # block says, versions before 2.19.5* couldn't really create working
8730         # shared libraries, regardless of the interface used.
8731         case `$LD -v 2>&1` in
8732           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8733           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8734           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8735           *)
8736             lt_use_gnu_ld_interface=yes
8737             ;;
8738         esac
8739         ;;
8740       *)
8741         lt_use_gnu_ld_interface=yes
8742         ;;
8743     esac
8744   fi
8745
8746   if test "$lt_use_gnu_ld_interface" = yes; then
8747     # If archive_cmds runs LD, not CC, wlarc should be empty
8748     wlarc='${wl}'
8749
8750     # Set some defaults for GNU ld with shared library support. These
8751     # are reset later if shared libraries are not supported. Putting them
8752     # here allows them to be overridden if necessary.
8753     runpath_var=LD_RUN_PATH
8754     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755     export_dynamic_flag_spec='${wl}--export-dynamic'
8756     # ancient GNU ld didn't support --whole-archive et. al.
8757     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8758       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8759     else
8760       whole_archive_flag_spec=
8761     fi
8762     supports_anon_versioning=no
8763     case `$LD -v 2>&1` in
8764       *GNU\ gold*) supports_anon_versioning=yes ;;
8765       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8766       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8767       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8768       *\ 2.11.*) ;; # other 2.11 versions
8769       *) supports_anon_versioning=yes ;;
8770     esac
8771
8772     # See if GNU ld supports shared libraries.
8773     case $host_os in
8774     aix[3-9]*)
8775       # On AIX/PPC, the GNU linker is very broken
8776       if test "$host_cpu" != ia64; then
8777         ld_shlibs=no
8778         cat <<_LT_EOF 1>&2
8779
8780 *** Warning: the GNU linker, at least up to release 2.19, is reported
8781 *** to be unable to reliably create shared libraries on AIX.
8782 *** Therefore, libtool is disabling shared libraries support.  If you
8783 *** really care for shared libraries, you may want to install binutils
8784 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8785 *** You will then need to restart the configuration process.
8786
8787 _LT_EOF
8788       fi
8789       ;;
8790
8791     amigaos*)
8792       case $host_cpu in
8793       powerpc)
8794             # see comment about AmigaOS4 .so support
8795             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796             archive_expsym_cmds=''
8797         ;;
8798       m68k)
8799             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)'
8800             hardcode_libdir_flag_spec='-L$libdir'
8801             hardcode_minus_L=yes
8802         ;;
8803       esac
8804       ;;
8805
8806     beos*)
8807       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808         allow_undefined_flag=unsupported
8809         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8810         # support --undefined.  This deserves some investigation.  FIXME
8811         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812       else
8813         ld_shlibs=no
8814       fi
8815       ;;
8816
8817     cygwin* | mingw* | pw32* | cegcc*)
8818       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8819       # as there is no search path for DLLs.
8820       hardcode_libdir_flag_spec='-L$libdir'
8821       export_dynamic_flag_spec='${wl}--export-all-symbols'
8822       allow_undefined_flag=unsupported
8823       always_export_symbols=no
8824       enable_shared_with_static_runtimes=yes
8825       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8826
8827       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8828         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8829         # If the export-symbols file already is a .def file (1st line
8830         # is EXPORTS), use it as is; otherwise, prepend...
8831         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8832           cp $export_symbols $output_objdir/$soname.def;
8833         else
8834           echo EXPORTS > $output_objdir/$soname.def;
8835           cat $export_symbols >> $output_objdir/$soname.def;
8836         fi~
8837         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8838       else
8839         ld_shlibs=no
8840       fi
8841       ;;
8842
8843     haiku*)
8844       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845       link_all_deplibs=yes
8846       ;;
8847
8848     interix[3-9]*)
8849       hardcode_direct=no
8850       hardcode_shlibpath_var=no
8851       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8852       export_dynamic_flag_spec='${wl}-E'
8853       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8854       # Instead, shared libraries are loaded at an image base (0x10000000 by
8855       # default) and relocated if they conflict, which is a slow very memory
8856       # consuming and fragmenting process.  To avoid this, we pick a random,
8857       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8858       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8859       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8860       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'
8861       ;;
8862
8863     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8864       tmp_diet=no
8865       if test "$host_os" = linux-dietlibc; then
8866         case $cc_basename in
8867           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8868         esac
8869       fi
8870       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8871          && test "$tmp_diet" = no
8872       then
8873         tmp_addflag=
8874         tmp_sharedflag='-shared'
8875         case $cc_basename,$host_cpu in
8876         pgcc*)                          # Portland Group C compiler
8877           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'
8878           tmp_addflag=' $pic_flag'
8879           ;;
8880         pgf77* | pgf90* | pgf95* | pgfortran*)
8881                                         # Portland Group f77 and f90 compilers
8882           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'
8883           tmp_addflag=' $pic_flag -Mnomain' ;;
8884         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8885           tmp_addflag=' -i_dynamic' ;;
8886         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8887           tmp_addflag=' -i_dynamic -nofor_main' ;;
8888         ifc* | ifort*)                  # Intel Fortran compiler
8889           tmp_addflag=' -nofor_main' ;;
8890         lf95*)                          # Lahey Fortran 8.1
8891           whole_archive_flag_spec=
8892           tmp_sharedflag='--shared' ;;
8893         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8894           tmp_sharedflag='-qmkshrobj'
8895           tmp_addflag= ;;
8896         nvcc*)  # Cuda Compiler Driver 2.2
8897           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'
8898           compiler_needs_object=yes
8899           ;;
8900         esac
8901         case `$CC -V 2>&1 | sed 5q` in
8902         *Sun\ C*)                       # Sun C 5.9
8903           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'
8904           compiler_needs_object=yes
8905           tmp_sharedflag='-G' ;;
8906         *Sun\ F*)                       # Sun Fortran 8.3
8907           tmp_sharedflag='-G' ;;
8908         esac
8909         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910
8911         if test "x$supports_anon_versioning" = xyes; then
8912           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8913             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8914             echo "local: *; };" >> $output_objdir/$libname.ver~
8915             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8916         fi
8917
8918         case $cc_basename in
8919         xlf* | bgf* | bgxlf* | mpixlf*)
8920           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8921           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8922           hardcode_libdir_flag_spec=
8923           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8924           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8925           if test "x$supports_anon_versioning" = xyes; then
8926             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928               echo "local: *; };" >> $output_objdir/$libname.ver~
8929               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8930           fi
8931           ;;
8932         esac
8933       else
8934         ld_shlibs=no
8935       fi
8936       ;;
8937
8938     netbsd*)
8939       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8940         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8941         wlarc=
8942       else
8943         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8945       fi
8946       ;;
8947
8948     solaris*)
8949       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8950         ld_shlibs=no
8951         cat <<_LT_EOF 1>&2
8952
8953 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8954 *** create shared libraries on Solaris systems.  Therefore, libtool
8955 *** is disabling shared libraries support.  We urge you to upgrade GNU
8956 *** binutils to release 2.9.1 or newer.  Another option is to modify
8957 *** your PATH or compiler configuration so that the native linker is
8958 *** used, and then restart.
8959
8960 _LT_EOF
8961       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964       else
8965         ld_shlibs=no
8966       fi
8967       ;;
8968
8969     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8970       case `$LD -v 2>&1` in
8971         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8972         ld_shlibs=no
8973         cat <<_LT_EOF 1>&2
8974
8975 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8976 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8977 *** is disabling shared libraries support.  We urge you to upgrade GNU
8978 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8979 *** your PATH or compiler configuration so that the native linker is
8980 *** used, and then restart.
8981
8982 _LT_EOF
8983         ;;
8984         *)
8985           # For security reasons, it is highly recommended that you always
8986           # use absolute paths for naming shared libraries, and exclude the
8987           # DT_RUNPATH tag from executables and libraries.  But doing so
8988           # requires that you compile everything twice, which is a pain.
8989           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993           else
8994             ld_shlibs=no
8995           fi
8996         ;;
8997       esac
8998       ;;
8999
9000     sunos4*)
9001       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9002       wlarc=
9003       hardcode_direct=yes
9004       hardcode_shlibpath_var=no
9005       ;;
9006
9007     *)
9008       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011       else
9012         ld_shlibs=no
9013       fi
9014       ;;
9015     esac
9016
9017     if test "$ld_shlibs" = no; then
9018       runpath_var=
9019       hardcode_libdir_flag_spec=
9020       export_dynamic_flag_spec=
9021       whole_archive_flag_spec=
9022     fi
9023   else
9024     # PORTME fill in a description of your system's linker (not GNU ld)
9025     case $host_os in
9026     aix3*)
9027       allow_undefined_flag=unsupported
9028       always_export_symbols=yes
9029       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'
9030       # Note: this linker hardcodes the directories in LIBPATH if there
9031       # are no directories specified by -L.
9032       hardcode_minus_L=yes
9033       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9034         # Neither direct hardcoding nor static linking is supported with a
9035         # broken collect2.
9036         hardcode_direct=unsupported
9037       fi
9038       ;;
9039
9040     aix[4-9]*)
9041       if test "$host_cpu" = ia64; then
9042         # On IA64, the linker does run time linking by default, so we don't
9043         # have to do anything special.
9044         aix_use_runtimelinking=no
9045         exp_sym_flag='-Bexport'
9046         no_entry_flag=""
9047       else
9048         # If we're using GNU nm, then we don't want the "-C" option.
9049         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9050         # Also, AIX nm treats weak defined symbols like other global
9051         # defined symbols, whereas GNU nm marks them as "W".
9052         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9053           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'
9054         else
9055           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'
9056         fi
9057         aix_use_runtimelinking=no
9058
9059         # Test if we are trying to use run time linking or normal
9060         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9061         # need to do runtime linking.
9062         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9063           for ld_flag in $LDFLAGS; do
9064           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9065             aix_use_runtimelinking=yes
9066             break
9067           fi
9068           done
9069           ;;
9070         esac
9071
9072         exp_sym_flag='-bexport'
9073         no_entry_flag='-bnoentry'
9074       fi
9075
9076       # When large executables or shared objects are built, AIX ld can
9077       # have problems creating the table of contents.  If linking a library
9078       # or program results in "error TOC overflow" add -mminimal-toc to
9079       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9080       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9081
9082       archive_cmds=''
9083       hardcode_direct=yes
9084       hardcode_direct_absolute=yes
9085       hardcode_libdir_separator=':'
9086       link_all_deplibs=yes
9087       file_list_spec='${wl}-f,'
9088
9089       if test "$GCC" = yes; then
9090         case $host_os in aix4.[012]|aix4.[012].*)
9091         # We only want to do this on AIX 4.2 and lower, the check
9092         # below for broken collect2 doesn't work under 4.3+
9093           collect2name=`${CC} -print-prog-name=collect2`
9094           if test -f "$collect2name" &&
9095            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9096           then
9097           # We have reworked collect2
9098           :
9099           else
9100           # We have old collect2
9101           hardcode_direct=unsupported
9102           # It fails to find uninstalled libraries when the uninstalled
9103           # path is not listed in the libpath.  Setting hardcode_minus_L
9104           # to unsupported forces relinking
9105           hardcode_minus_L=yes
9106           hardcode_libdir_flag_spec='-L$libdir'
9107           hardcode_libdir_separator=
9108           fi
9109           ;;
9110         esac
9111         shared_flag='-shared'
9112         if test "$aix_use_runtimelinking" = yes; then
9113           shared_flag="$shared_flag "'${wl}-G'
9114         fi
9115       else
9116         # not using gcc
9117         if test "$host_cpu" = ia64; then
9118         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9119         # chokes on -Wl,-G. The following line is correct:
9120           shared_flag='-G'
9121         else
9122           if test "$aix_use_runtimelinking" = yes; then
9123             shared_flag='${wl}-G'
9124           else
9125             shared_flag='${wl}-bM:SRE'
9126           fi
9127         fi
9128       fi
9129
9130       export_dynamic_flag_spec='${wl}-bexpall'
9131       # It seems that -bexpall does not export symbols beginning with
9132       # underscore (_), so it is better to generate a list of symbols to export.
9133       always_export_symbols=yes
9134       if test "$aix_use_runtimelinking" = yes; then
9135         # Warning - without using the other runtime loading flags (-brtl),
9136         # -berok will link without error, but may produce a broken library.
9137         allow_undefined_flag='-berok'
9138         # Determine the default libpath from the value encoded in an
9139         # empty executable.
9140         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h.  */
9142
9143 int
9144 main ()
9145 {
9146
9147   ;
9148   return 0;
9149 }
9150 _ACEOF
9151 if ac_fn_c_try_link "$LINENO"; then :
9152
9153 lt_aix_libpath_sed='
9154     /Import File Strings/,/^$/ {
9155         /^0/ {
9156             s/^0  *\(.*\)$/\1/
9157             p
9158         }
9159     }'
9160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9161 # Check for a 64-bit object if we didn't find anything.
9162 if test -z "$aix_libpath"; then
9163   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164 fi
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext \
9167     conftest$ac_exeext conftest.$ac_ext
9168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9169
9170         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9171         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"
9172       else
9173         if test "$host_cpu" = ia64; then
9174           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9175           allow_undefined_flag="-z nodefs"
9176           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"
9177         else
9178          # Determine the default libpath from the value encoded in an
9179          # empty executable.
9180          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h.  */
9182
9183 int
9184 main ()
9185 {
9186
9187   ;
9188   return 0;
9189 }
9190 _ACEOF
9191 if ac_fn_c_try_link "$LINENO"; then :
9192
9193 lt_aix_libpath_sed='
9194     /Import File Strings/,/^$/ {
9195         /^0/ {
9196             s/^0  *\(.*\)$/\1/
9197             p
9198         }
9199     }'
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 # Check for a 64-bit object if we didn't find anything.
9202 if test -z "$aix_libpath"; then
9203   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204 fi
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext \
9207     conftest$ac_exeext conftest.$ac_ext
9208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9209
9210          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211           # Warning - without using the other run time loading flags,
9212           # -berok will link without error, but may produce a broken library.
9213           no_undefined_flag=' ${wl}-bernotok'
9214           allow_undefined_flag=' ${wl}-berok'
9215           if test "$with_gnu_ld" = yes; then
9216             # We only use this code for GNU lds that support --whole-archive.
9217             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9218           else
9219             # Exported symbols can be pulled into shared objects from archives
9220             whole_archive_flag_spec='$convenience'
9221           fi
9222           archive_cmds_need_lc=yes
9223           # This is similar to how AIX traditionally builds its shared libraries.
9224           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'
9225         fi
9226       fi
9227       ;;
9228
9229     amigaos*)
9230       case $host_cpu in
9231       powerpc)
9232             # see comment about AmigaOS4 .so support
9233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234             archive_expsym_cmds=''
9235         ;;
9236       m68k)
9237             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)'
9238             hardcode_libdir_flag_spec='-L$libdir'
9239             hardcode_minus_L=yes
9240         ;;
9241       esac
9242       ;;
9243
9244     bsdi[45]*)
9245       export_dynamic_flag_spec=-rdynamic
9246       ;;
9247
9248     cygwin* | mingw* | pw32* | cegcc*)
9249       # When not using gcc, we currently assume that we are using
9250       # Microsoft Visual C++.
9251       # hardcode_libdir_flag_spec is actually meaningless, as there is
9252       # no search path for DLLs.
9253       hardcode_libdir_flag_spec=' '
9254       allow_undefined_flag=unsupported
9255       # Tell ltmain to make .lib files, not .a files.
9256       libext=lib
9257       # Tell ltmain to make .dll files, not .so files.
9258       shrext_cmds=".dll"
9259       # FIXME: Setting linknames here is a bad hack.
9260       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9261       # The linker will automatically build a .lib file if we build a DLL.
9262       old_archive_from_new_cmds='true'
9263       # FIXME: Should let the user specify the lib program.
9264       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9265       fix_srcfile_path='`cygpath -w "$srcfile"`'
9266       enable_shared_with_static_runtimes=yes
9267       ;;
9268
9269     darwin* | rhapsody*)
9270
9271
9272   archive_cmds_need_lc=no
9273   hardcode_direct=no
9274   hardcode_automatic=yes
9275   hardcode_shlibpath_var=unsupported
9276   if test "$lt_cv_ld_force_load" = "yes"; then
9277     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\"`'
9278   else
9279     whole_archive_flag_spec=''
9280   fi
9281   link_all_deplibs=yes
9282   allow_undefined_flag="$_lt_dar_allow_undefined"
9283   case $cc_basename in
9284      ifort*) _lt_dar_can_shared=yes ;;
9285      *) _lt_dar_can_shared=$GCC ;;
9286   esac
9287   if test "$_lt_dar_can_shared" = "yes"; then
9288     output_verbose_link_cmd=func_echo_all
9289     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9290     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9291     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}"
9292     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}"
9293
9294   else
9295   ld_shlibs=no
9296   fi
9297
9298       ;;
9299
9300     dgux*)
9301       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302       hardcode_libdir_flag_spec='-L$libdir'
9303       hardcode_shlibpath_var=no
9304       ;;
9305
9306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9307     # support.  Future versions do this automatically, but an explicit c++rt0.o
9308     # does not break anything, and helps significantly (at the cost of a little
9309     # extra space).
9310     freebsd2.2*)
9311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9312       hardcode_libdir_flag_spec='-R$libdir'
9313       hardcode_direct=yes
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9318     freebsd2.*)
9319       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320       hardcode_direct=yes
9321       hardcode_minus_L=yes
9322       hardcode_shlibpath_var=no
9323       ;;
9324
9325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9326     freebsd* | dragonfly*)
9327       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9328       hardcode_libdir_flag_spec='-R$libdir'
9329       hardcode_direct=yes
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     hpux9*)
9334       if test "$GCC" = yes; then
9335         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'
9336       else
9337         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'
9338       fi
9339       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9340       hardcode_libdir_separator=:
9341       hardcode_direct=yes
9342
9343       # hardcode_minus_L: Not really in the search PATH,
9344       # but as the default location of the library.
9345       hardcode_minus_L=yes
9346       export_dynamic_flag_spec='${wl}-E'
9347       ;;
9348
9349     hpux10*)
9350       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9351         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352       else
9353         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9354       fi
9355       if test "$with_gnu_ld" = no; then
9356         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357         hardcode_libdir_flag_spec_ld='+b $libdir'
9358         hardcode_libdir_separator=:
9359         hardcode_direct=yes
9360         hardcode_direct_absolute=yes
9361         export_dynamic_flag_spec='${wl}-E'
9362         # hardcode_minus_L: Not really in the search PATH,
9363         # but as the default location of the library.
9364         hardcode_minus_L=yes
9365       fi
9366       ;;
9367
9368     hpux11*)
9369       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370         case $host_cpu in
9371         hppa*64*)
9372           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373           ;;
9374         ia64*)
9375           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376           ;;
9377         *)
9378           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379           ;;
9380         esac
9381       else
9382         case $host_cpu in
9383         hppa*64*)
9384           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385           ;;
9386         ia64*)
9387           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388           ;;
9389         *)
9390
9391           # Older versions of the 11.00 compiler do not understand -b yet
9392           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394 $as_echo_n "checking if $CC understands -b... " >&6; }
9395 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   lt_cv_prog_compiler__b=no
9399    save_LDFLAGS="$LDFLAGS"
9400    LDFLAGS="$LDFLAGS -b"
9401    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403      # The linker can only warn and ignore the option if not recognized
9404      # So say no if there are warnings
9405      if test -s conftest.err; then
9406        # Append any errors to the config.log.
9407        cat conftest.err 1>&5
9408        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410        if diff conftest.exp conftest.er2 >/dev/null; then
9411          lt_cv_prog_compiler__b=yes
9412        fi
9413      else
9414        lt_cv_prog_compiler__b=yes
9415      fi
9416    fi
9417    $RM -r conftest*
9418    LDFLAGS="$save_LDFLAGS"
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9423
9424 if test x"$lt_cv_prog_compiler__b" = xyes; then
9425     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428 fi
9429
9430           ;;
9431         esac
9432       fi
9433       if test "$with_gnu_ld" = no; then
9434         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435         hardcode_libdir_separator=:
9436
9437         case $host_cpu in
9438         hppa*64*|ia64*)
9439           hardcode_direct=no
9440           hardcode_shlibpath_var=no
9441           ;;
9442         *)
9443           hardcode_direct=yes
9444           hardcode_direct_absolute=yes
9445           export_dynamic_flag_spec='${wl}-E'
9446
9447           # hardcode_minus_L: Not really in the search PATH,
9448           # but as the default location of the library.
9449           hardcode_minus_L=yes
9450           ;;
9451         esac
9452       fi
9453       ;;
9454
9455     irix5* | irix6* | nonstopux*)
9456       if test "$GCC" = yes; then
9457         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'
9458         # Try to use the -exported_symbol ld option, if it does not
9459         # work, assume that -exports_file does not work either and
9460         # implicitly export all symbols.
9461         save_LDFLAGS="$LDFLAGS"
9462         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h.  */
9465 int foo(void) {}
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468   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'
9469
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext \
9472     conftest$ac_exeext conftest.$ac_ext
9473         LDFLAGS="$save_LDFLAGS"
9474       else
9475         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'
9476         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'
9477       fi
9478       archive_cmds_need_lc='no'
9479       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480       hardcode_libdir_separator=:
9481       inherit_rpath=yes
9482       link_all_deplibs=yes
9483       ;;
9484
9485     netbsd*)
9486       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9488       else
9489         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9490       fi
9491       hardcode_libdir_flag_spec='-R$libdir'
9492       hardcode_direct=yes
9493       hardcode_shlibpath_var=no
9494       ;;
9495
9496     newsos6)
9497       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498       hardcode_direct=yes
9499       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500       hardcode_libdir_separator=:
9501       hardcode_shlibpath_var=no
9502       ;;
9503
9504     *nto* | *qnx*)
9505       ;;
9506
9507     openbsd*)
9508       if test -f /usr/libexec/ld.so; then
9509         hardcode_direct=yes
9510         hardcode_shlibpath_var=no
9511         hardcode_direct_absolute=yes
9512         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9515           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516           export_dynamic_flag_spec='${wl}-E'
9517         else
9518           case $host_os in
9519            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9520              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521              hardcode_libdir_flag_spec='-R$libdir'
9522              ;;
9523            *)
9524              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526              ;;
9527           esac
9528         fi
9529       else
9530         ld_shlibs=no
9531       fi
9532       ;;
9533
9534     os2*)
9535       hardcode_libdir_flag_spec='-L$libdir'
9536       hardcode_minus_L=yes
9537       allow_undefined_flag=unsupported
9538       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'
9539       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9540       ;;
9541
9542     osf3*)
9543       if test "$GCC" = yes; then
9544         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9545         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'
9546       else
9547         allow_undefined_flag=' -expect_unresolved \*'
9548         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'
9549       fi
9550       archive_cmds_need_lc='no'
9551       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552       hardcode_libdir_separator=:
9553       ;;
9554
9555     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9556       if test "$GCC" = yes; then
9557         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558         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'
9559         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560       else
9561         allow_undefined_flag=' -expect_unresolved \*'
9562         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'
9563         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~
9564         $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'
9565
9566         # Both c and cxx compiler support -rpath directly
9567         hardcode_libdir_flag_spec='-rpath $libdir'
9568       fi
9569       archive_cmds_need_lc='no'
9570       hardcode_libdir_separator=:
9571       ;;
9572
9573     solaris*)
9574       no_undefined_flag=' -z defs'
9575       if test "$GCC" = yes; then
9576         wlarc='${wl}'
9577         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9578         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9580       else
9581         case `$CC -V 2>&1` in
9582         *"Compilers 5.0"*)
9583           wlarc=''
9584           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9587           ;;
9588         *)
9589           wlarc='${wl}'
9590           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9591           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9593           ;;
9594         esac
9595       fi
9596       hardcode_libdir_flag_spec='-R$libdir'
9597       hardcode_shlibpath_var=no
9598       case $host_os in
9599       solaris2.[0-5] | solaris2.[0-5].*) ;;
9600       *)
9601         # The compiler driver will combine and reorder linker options,
9602         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9603         # but is careful enough not to reorder.
9604         # Supported since Solaris 2.6 (maybe 2.5.1?)
9605         if test "$GCC" = yes; then
9606           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9607         else
9608           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9609         fi
9610         ;;
9611       esac
9612       link_all_deplibs=yes
9613       ;;
9614
9615     sunos4*)
9616       if test "x$host_vendor" = xsequent; then
9617         # Use $CC to link under sequent, because it throws in some extra .o
9618         # files that make .init and .fini sections work.
9619         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9620       else
9621         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9622       fi
9623       hardcode_libdir_flag_spec='-L$libdir'
9624       hardcode_direct=yes
9625       hardcode_minus_L=yes
9626       hardcode_shlibpath_var=no
9627       ;;
9628
9629     sysv4)
9630       case $host_vendor in
9631         sni)
9632           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633           hardcode_direct=yes # is this really true???
9634         ;;
9635         siemens)
9636           ## LD is ld it makes a PLAMLIB
9637           ## CC just makes a GrossModule.
9638           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9639           reload_cmds='$CC -r -o $output$reload_objs'
9640           hardcode_direct=no
9641         ;;
9642         motorola)
9643           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9645         ;;
9646       esac
9647       runpath_var='LD_RUN_PATH'
9648       hardcode_shlibpath_var=no
9649       ;;
9650
9651     sysv4.3*)
9652       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653       hardcode_shlibpath_var=no
9654       export_dynamic_flag_spec='-Bexport'
9655       ;;
9656
9657     sysv4*MP*)
9658       if test -d /usr/nec; then
9659         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660         hardcode_shlibpath_var=no
9661         runpath_var=LD_RUN_PATH
9662         hardcode_runpath_var=yes
9663         ld_shlibs=yes
9664       fi
9665       ;;
9666
9667     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9668       no_undefined_flag='${wl}-z,text'
9669       archive_cmds_need_lc=no
9670       hardcode_shlibpath_var=no
9671       runpath_var='LD_RUN_PATH'
9672
9673       if test "$GCC" = yes; then
9674         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676       else
9677         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679       fi
9680       ;;
9681
9682     sysv5* | sco3.2v5* | sco5v6*)
9683       # Note: We can NOT use -z defs as we might desire, because we do not
9684       # link with -lc, and that would cause any symbols used from libc to
9685       # always be unresolved, which means just about no library would
9686       # ever link correctly.  If we're not using GNU ld we use -z text
9687       # though, which does catch some bad symbols but isn't as heavy-handed
9688       # as -z defs.
9689       no_undefined_flag='${wl}-z,text'
9690       allow_undefined_flag='${wl}-z,nodefs'
9691       archive_cmds_need_lc=no
9692       hardcode_shlibpath_var=no
9693       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9694       hardcode_libdir_separator=':'
9695       link_all_deplibs=yes
9696       export_dynamic_flag_spec='${wl}-Bexport'
9697       runpath_var='LD_RUN_PATH'
9698
9699       if test "$GCC" = yes; then
9700         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702       else
9703         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705       fi
9706       ;;
9707
9708     uts4*)
9709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710       hardcode_libdir_flag_spec='-L$libdir'
9711       hardcode_shlibpath_var=no
9712       ;;
9713
9714     *)
9715       ld_shlibs=no
9716       ;;
9717     esac
9718
9719     if test x$host_vendor = xsni; then
9720       case $host in
9721       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9722         export_dynamic_flag_spec='${wl}-Blargedynsym'
9723         ;;
9724       esac
9725     fi
9726   fi
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9729 $as_echo "$ld_shlibs" >&6; }
9730 test "$ld_shlibs" = no && can_build_shared=no
9731
9732 with_gnu_ld=$with_gnu_ld
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 #
9749 # Do we need to explicitly link libc?
9750 #
9751 case "x$archive_cmds_need_lc" in
9752 x|xyes)
9753   # Assume -lc should be added
9754   archive_cmds_need_lc=yes
9755
9756   if test "$enable_shared" = yes && test "$GCC" = yes; then
9757     case $archive_cmds in
9758     *'~'*)
9759       # FIXME: we may have to deal with multi-command sequences.
9760       ;;
9761     '$CC '*)
9762       # Test whether the compiler implicitly links with -lc since on some
9763       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9764       # to ld, don't add -lc before -lgcc.
9765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9766 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9767 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9768   $as_echo_n "(cached) " >&6
9769 else
9770   $RM conftest*
9771         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772
9773         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9774   (eval $ac_compile) 2>&5
9775   ac_status=$?
9776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9777   test $ac_status = 0; } 2>conftest.err; then
9778           soname=conftest
9779           lib=conftest
9780           libobjs=conftest.$ac_objext
9781           deplibs=
9782           wl=$lt_prog_compiler_wl
9783           pic_flag=$lt_prog_compiler_pic
9784           compiler_flags=-v
9785           linker_flags=-v
9786           verstring=
9787           output_objdir=.
9788           libname=conftest
9789           lt_save_allow_undefined_flag=$allow_undefined_flag
9790           allow_undefined_flag=
9791           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9792   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9793   ac_status=$?
9794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9795   test $ac_status = 0; }
9796           then
9797             lt_cv_archive_cmds_need_lc=no
9798           else
9799             lt_cv_archive_cmds_need_lc=yes
9800           fi
9801           allow_undefined_flag=$lt_save_allow_undefined_flag
9802         else
9803           cat conftest.err 1>&5
9804         fi
9805         $RM conftest*
9806
9807 fi
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9809 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9810       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9811       ;;
9812     esac
9813   fi
9814   ;;
9815 esac
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9975
9976 if test "$GCC" = yes; then
9977   case $host_os in
9978     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9979     *) lt_awk_arg="/^libraries:/" ;;
9980   esac
9981   case $host_os in
9982     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9983     *) lt_sed_strip_eq="s,=/,/,g" ;;
9984   esac
9985   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9986   case $lt_search_path_spec in
9987   *\;*)
9988     # if the path contains ";" then we assume it to be the separator
9989     # otherwise default to the standard path separator (i.e. ":") - it is
9990     # assumed that no part of a normal pathname contains ";" but that should
9991     # okay in the real world where ";" in dirpaths is itself problematic.
9992     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9993     ;;
9994   *)
9995     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9996     ;;
9997   esac
9998   # Ok, now we have the path, separated by spaces, we can step through it
9999   # and add multilib dir if necessary.
10000   lt_tmp_lt_search_path_spec=
10001   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10002   for lt_sys_path in $lt_search_path_spec; do
10003     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10004       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10005     else
10006       test -d "$lt_sys_path" && \
10007         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10008     fi
10009   done
10010   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10011 BEGIN {RS=" "; FS="/|\n";} {
10012   lt_foo="";
10013   lt_count=0;
10014   for (lt_i = NF; lt_i > 0; lt_i--) {
10015     if ($lt_i != "" && $lt_i != ".") {
10016       if ($lt_i == "..") {
10017         lt_count++;
10018       } else {
10019         if (lt_count == 0) {
10020           lt_foo="/" $lt_i lt_foo;
10021         } else {
10022           lt_count--;
10023         }
10024       }
10025     }
10026   }
10027   if (lt_foo != "") { lt_freq[lt_foo]++; }
10028   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10029 }'`
10030   # AWK program above erroneously prepends '/' to C:/dos/paths
10031   # for these hosts.
10032   case $host_os in
10033     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10034       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10035   esac
10036   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10037 else
10038   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10039 fi
10040 library_names_spec=
10041 libname_spec='lib$name'
10042 soname_spec=
10043 shrext_cmds=".so"
10044 postinstall_cmds=
10045 postuninstall_cmds=
10046 finish_cmds=
10047 finish_eval=
10048 shlibpath_var=
10049 shlibpath_overrides_runpath=unknown
10050 version_type=none
10051 dynamic_linker="$host_os ld.so"
10052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10053 need_lib_prefix=unknown
10054 hardcode_into_libs=no
10055
10056 # when you set need_version to no, make sure it does not cause -set_version
10057 # flags to be left without arguments
10058 need_version=unknown
10059
10060 case $host_os in
10061 aix3*)
10062   version_type=linux
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10064   shlibpath_var=LIBPATH
10065
10066   # AIX 3 has no versioning support, so we append a major version to the name.
10067   soname_spec='${libname}${release}${shared_ext}$major'
10068   ;;
10069
10070 aix[4-9]*)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   hardcode_into_libs=yes
10075   if test "$host_cpu" = ia64; then
10076     # AIX 5 supports IA64
10077     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10078     shlibpath_var=LD_LIBRARY_PATH
10079   else
10080     # With GCC up to 2.95.x, collect2 would create an import file
10081     # for dependence libraries.  The import file would start with
10082     # the line `#! .'.  This would cause the generated library to
10083     # depend on `.', always an invalid library.  This was fixed in
10084     # development snapshots of GCC prior to 3.0.
10085     case $host_os in
10086       aix4 | aix4.[01] | aix4.[01].*)
10087       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10088            echo ' yes '
10089            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10090         :
10091       else
10092         can_build_shared=no
10093       fi
10094       ;;
10095     esac
10096     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10097     # soname into executable. Probably we can add versioning support to
10098     # collect2, so additional links can be useful in future.
10099     if test "$aix_use_runtimelinking" = yes; then
10100       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10101       # instead of lib<name>.a to let people know that these are not
10102       # typical AIX shared libraries.
10103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104     else
10105       # We preserve .a as extension for shared libraries through AIX4.2
10106       # and later when we are not doing run time linking.
10107       library_names_spec='${libname}${release}.a $libname.a'
10108       soname_spec='${libname}${release}${shared_ext}$major'
10109     fi
10110     shlibpath_var=LIBPATH
10111   fi
10112   ;;
10113
10114 amigaos*)
10115   case $host_cpu in
10116   powerpc)
10117     # Since July 2007 AmigaOS4 officially supports .so libraries.
10118     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120     ;;
10121   m68k)
10122     library_names_spec='$libname.ixlibrary $libname.a'
10123     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10124     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'
10125     ;;
10126   esac
10127   ;;
10128
10129 beos*)
10130   library_names_spec='${libname}${shared_ext}'
10131   dynamic_linker="$host_os ld.so"
10132   shlibpath_var=LIBRARY_PATH
10133   ;;
10134
10135 bsdi[45]*)
10136   version_type=linux
10137   need_version=no
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139   soname_spec='${libname}${release}${shared_ext}$major'
10140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10144   # the default ld.so.conf also contains /usr/contrib/lib and
10145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10146   # libtool to hard-code these into programs
10147   ;;
10148
10149 cygwin* | mingw* | pw32* | cegcc*)
10150   version_type=windows
10151   shrext_cmds=".dll"
10152   need_version=no
10153   need_lib_prefix=no
10154
10155   case $GCC,$host_os in
10156   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10157     library_names_spec='$libname.dll.a'
10158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10159     postinstall_cmds='base_file=`basename \${file}`~
10160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10161       dldir=$destdir/`dirname \$dlpath`~
10162       test -d \$dldir || mkdir -p \$dldir~
10163       $install_prog $dir/$dlname \$dldir/$dlname~
10164       chmod a+x \$dldir/$dlname~
10165       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10166         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10167       fi'
10168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10169       dlpath=$dir/\$dldll~
10170        $RM \$dlpath'
10171     shlibpath_overrides_runpath=yes
10172
10173     case $host_os in
10174     cygwin*)
10175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10176       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177
10178       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10179       ;;
10180     mingw* | cegcc*)
10181       # MinGW DLLs use traditional 'lib' prefix
10182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183       ;;
10184     pw32*)
10185       # pw32 DLLs use 'pw' prefix rather than 'lib'
10186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187       ;;
10188     esac
10189     ;;
10190
10191   *)
10192     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10193     ;;
10194   esac
10195   dynamic_linker='Win32 ld.exe'
10196   # FIXME: first we should search . and the directory the executable is in
10197   shlibpath_var=PATH
10198   ;;
10199
10200 darwin* | rhapsody*)
10201   dynamic_linker="$host_os dyld"
10202   version_type=darwin
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10206   soname_spec='${libname}${release}${major}$shared_ext'
10207   shlibpath_overrides_runpath=yes
10208   shlibpath_var=DYLD_LIBRARY_PATH
10209   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10210
10211   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10212   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10213   ;;
10214
10215 dgux*)
10216   version_type=linux
10217   need_lib_prefix=no
10218   need_version=no
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10220   soname_spec='${libname}${release}${shared_ext}$major'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   ;;
10223
10224 freebsd* | dragonfly*)
10225   # DragonFly does not have aout.  When/if they implement a new
10226   # versioning mechanism, adjust this.
10227   if test -x /usr/bin/objformat; then
10228     objformat=`/usr/bin/objformat`
10229   else
10230     case $host_os in
10231     freebsd[23].*) objformat=aout ;;
10232     *) objformat=elf ;;
10233     esac
10234   fi
10235   version_type=freebsd-$objformat
10236   case $version_type in
10237     freebsd-elf*)
10238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10239       need_version=no
10240       need_lib_prefix=no
10241       ;;
10242     freebsd-*)
10243       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10244       need_version=yes
10245       ;;
10246   esac
10247   shlibpath_var=LD_LIBRARY_PATH
10248   case $host_os in
10249   freebsd2.*)
10250     shlibpath_overrides_runpath=yes
10251     ;;
10252   freebsd3.[01]* | freebsdelf3.[01]*)
10253     shlibpath_overrides_runpath=yes
10254     hardcode_into_libs=yes
10255     ;;
10256   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10257   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10258     shlibpath_overrides_runpath=no
10259     hardcode_into_libs=yes
10260     ;;
10261   *) # from 4.6 on, and DragonFly
10262     shlibpath_overrides_runpath=yes
10263     hardcode_into_libs=yes
10264     ;;
10265   esac
10266   ;;
10267
10268 gnu*)
10269   version_type=linux
10270   need_lib_prefix=no
10271   need_version=no
10272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10273   soname_spec='${libname}${release}${shared_ext}$major'
10274   shlibpath_var=LD_LIBRARY_PATH
10275   hardcode_into_libs=yes
10276   ;;
10277
10278 haiku*)
10279   version_type=linux
10280   need_lib_prefix=no
10281   need_version=no
10282   dynamic_linker="$host_os runtime_loader"
10283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10284   soname_spec='${libname}${release}${shared_ext}$major'
10285   shlibpath_var=LIBRARY_PATH
10286   shlibpath_overrides_runpath=yes
10287   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10288   hardcode_into_libs=yes
10289   ;;
10290
10291 hpux9* | hpux10* | hpux11*)
10292   # Give a soname corresponding to the major version so that dld.sl refuses to
10293   # link against other versions.
10294   version_type=sunos
10295   need_lib_prefix=no
10296   need_version=no
10297   case $host_cpu in
10298   ia64*)
10299     shrext_cmds='.so'
10300     hardcode_into_libs=yes
10301     dynamic_linker="$host_os dld.so"
10302     shlibpath_var=LD_LIBRARY_PATH
10303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305     soname_spec='${libname}${release}${shared_ext}$major'
10306     if test "X$HPUX_IA64_MODE" = X32; then
10307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10308     else
10309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10310     fi
10311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10312     ;;
10313   hppa*64*)
10314     shrext_cmds='.sl'
10315     hardcode_into_libs=yes
10316     dynamic_linker="$host_os dld.sl"
10317     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10318     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320     soname_spec='${libname}${release}${shared_ext}$major'
10321     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10322     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323     ;;
10324   *)
10325     shrext_cmds='.sl'
10326     dynamic_linker="$host_os dld.sl"
10327     shlibpath_var=SHLIB_PATH
10328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330     soname_spec='${libname}${release}${shared_ext}$major'
10331     ;;
10332   esac
10333   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10334   postinstall_cmds='chmod 555 $lib'
10335   # or fails outright, so override atomically:
10336   install_override_mode=555
10337   ;;
10338
10339 interix[3-9]*)
10340   version_type=linux
10341   need_lib_prefix=no
10342   need_version=no
10343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   shlibpath_overrides_runpath=no
10348   hardcode_into_libs=yes
10349   ;;
10350
10351 irix5* | irix6* | nonstopux*)
10352   case $host_os in
10353     nonstopux*) version_type=nonstopux ;;
10354     *)
10355         if test "$lt_cv_prog_gnu_ld" = yes; then
10356                 version_type=linux
10357         else
10358                 version_type=irix
10359         fi ;;
10360   esac
10361   need_lib_prefix=no
10362   need_version=no
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10365   case $host_os in
10366   irix5* | nonstopux*)
10367     libsuff= shlibsuff=
10368     ;;
10369   *)
10370     case $LD in # libtool.m4 will add one of these switches to LD
10371     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10372       libsuff= shlibsuff= libmagic=32-bit;;
10373     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10374       libsuff=32 shlibsuff=N32 libmagic=N32;;
10375     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10376       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10377     *) libsuff= shlibsuff= libmagic=never-match;;
10378     esac
10379     ;;
10380   esac
10381   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10382   shlibpath_overrides_runpath=no
10383   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10384   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10385   hardcode_into_libs=yes
10386   ;;
10387
10388 # No shared lib support for Linux oldld, aout, or coff.
10389 linux*oldld* | linux*aout* | linux*coff*)
10390   dynamic_linker=no
10391   ;;
10392
10393 # This must be Linux ELF.
10394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10395   version_type=linux
10396   need_lib_prefix=no
10397   need_version=no
10398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399   soname_spec='${libname}${release}${shared_ext}$major'
10400   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10401   shlibpath_var=LD_LIBRARY_PATH
10402   shlibpath_overrides_runpath=no
10403
10404   # Some binutils ld are patched to set DT_RUNPATH
10405   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   lt_cv_shlibpath_overrides_runpath=no
10409     save_LDFLAGS=$LDFLAGS
10410     save_libdir=$libdir
10411     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10412          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h.  */
10415
10416 int
10417 main ()
10418 {
10419
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10426   lt_cv_shlibpath_overrides_runpath=yes
10427 fi
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430     conftest$ac_exeext conftest.$ac_ext
10431     LDFLAGS=$save_LDFLAGS
10432     libdir=$save_libdir
10433
10434 fi
10435
10436   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10437
10438   # This implies no fast_install, which is unacceptable.
10439   # Some rework will be needed to allow for fast_install
10440   # before this can be enabled.
10441   hardcode_into_libs=yes
10442
10443   # Append ld.so.conf contents to the search path
10444   if test -f /etc/ld.so.conf; then
10445     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' ' '`
10446     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10447   fi
10448
10449   # We used to test for /lib/ld.so.1 and disable shared libraries on
10450   # powerpc, because MkLinux only supported shared libraries with the
10451   # GNU dynamic linker.  Since this was broken with cross compilers,
10452   # most powerpc-linux boxes support dynamic linking these days and
10453   # people can always --disable-shared, the test was removed, and we
10454   # assume the GNU/Linux dynamic linker is in use.
10455   dynamic_linker='GNU/Linux ld.so'
10456   ;;
10457
10458 netbsd*)
10459   version_type=sunos
10460   need_lib_prefix=no
10461   need_version=no
10462   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10464     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10465     dynamic_linker='NetBSD (a.out) ld.so'
10466   else
10467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468     soname_spec='${libname}${release}${shared_ext}$major'
10469     dynamic_linker='NetBSD ld.elf_so'
10470   fi
10471   shlibpath_var=LD_LIBRARY_PATH
10472   shlibpath_overrides_runpath=yes
10473   hardcode_into_libs=yes
10474   ;;
10475
10476 newsos6)
10477   version_type=linux
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479   shlibpath_var=LD_LIBRARY_PATH
10480   shlibpath_overrides_runpath=yes
10481   ;;
10482
10483 *nto* | *qnx*)
10484   version_type=qnx
10485   need_lib_prefix=no
10486   need_version=no
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   shlibpath_var=LD_LIBRARY_PATH
10490   shlibpath_overrides_runpath=no
10491   hardcode_into_libs=yes
10492   dynamic_linker='ldqnx.so'
10493   ;;
10494
10495 openbsd*)
10496   version_type=sunos
10497   sys_lib_dlsearch_path_spec="/usr/lib"
10498   need_lib_prefix=no
10499   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10500   case $host_os in
10501     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10502     *)                          need_version=no  ;;
10503   esac
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506   shlibpath_var=LD_LIBRARY_PATH
10507   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10508     case $host_os in
10509       openbsd2.[89] | openbsd2.[89].*)
10510         shlibpath_overrides_runpath=no
10511         ;;
10512       *)
10513         shlibpath_overrides_runpath=yes
10514         ;;
10515       esac
10516   else
10517     shlibpath_overrides_runpath=yes
10518   fi
10519   ;;
10520
10521 os2*)
10522   libname_spec='$name'
10523   shrext_cmds=".dll"
10524   need_lib_prefix=no
10525   library_names_spec='$libname${shared_ext} $libname.a'
10526   dynamic_linker='OS/2 ld.exe'
10527   shlibpath_var=LIBPATH
10528   ;;
10529
10530 osf3* | osf4* | osf5*)
10531   version_type=osf
10532   need_lib_prefix=no
10533   need_version=no
10534   soname_spec='${libname}${release}${shared_ext}$major'
10535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536   shlibpath_var=LD_LIBRARY_PATH
10537   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10538   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10539   ;;
10540
10541 rdos*)
10542   dynamic_linker=no
10543   ;;
10544
10545 solaris*)
10546   version_type=linux
10547   need_lib_prefix=no
10548   need_version=no
10549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550   soname_spec='${libname}${release}${shared_ext}$major'
10551   shlibpath_var=LD_LIBRARY_PATH
10552   shlibpath_overrides_runpath=yes
10553   hardcode_into_libs=yes
10554   # ldd complains unless libraries are executable
10555   postinstall_cmds='chmod +x $lib'
10556   ;;
10557
10558 sunos4*)
10559   version_type=sunos
10560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10562   shlibpath_var=LD_LIBRARY_PATH
10563   shlibpath_overrides_runpath=yes
10564   if test "$with_gnu_ld" = yes; then
10565     need_lib_prefix=no
10566   fi
10567   need_version=yes
10568   ;;
10569
10570 sysv4 | sysv4.3*)
10571   version_type=linux
10572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573   soname_spec='${libname}${release}${shared_ext}$major'
10574   shlibpath_var=LD_LIBRARY_PATH
10575   case $host_vendor in
10576     sni)
10577       shlibpath_overrides_runpath=no
10578       need_lib_prefix=no
10579       runpath_var=LD_RUN_PATH
10580       ;;
10581     siemens)
10582       need_lib_prefix=no
10583       ;;
10584     motorola)
10585       need_lib_prefix=no
10586       need_version=no
10587       shlibpath_overrides_runpath=no
10588       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10589       ;;
10590   esac
10591   ;;
10592
10593 sysv4*MP*)
10594   if test -d /usr/nec ;then
10595     version_type=linux
10596     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10597     soname_spec='$libname${shared_ext}.$major'
10598     shlibpath_var=LD_LIBRARY_PATH
10599   fi
10600   ;;
10601
10602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10603   version_type=freebsd-elf
10604   need_lib_prefix=no
10605   need_version=no
10606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10607   soname_spec='${libname}${release}${shared_ext}$major'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   shlibpath_overrides_runpath=yes
10610   hardcode_into_libs=yes
10611   if test "$with_gnu_ld" = yes; then
10612     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10613   else
10614     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10615     case $host_os in
10616       sco3.2v5*)
10617         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10618         ;;
10619     esac
10620   fi
10621   sys_lib_dlsearch_path_spec='/usr/lib'
10622   ;;
10623
10624 tpf*)
10625   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10626   version_type=linux
10627   need_lib_prefix=no
10628   need_version=no
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=no
10632   hardcode_into_libs=yes
10633   ;;
10634
10635 uts4*)
10636   version_type=linux
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   ;;
10641
10642 *)
10643   dynamic_linker=no
10644   ;;
10645 esac
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10647 $as_echo "$dynamic_linker" >&6; }
10648 test "$dynamic_linker" = no && can_build_shared=no
10649
10650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10651 if test "$GCC" = yes; then
10652   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10653 fi
10654
10655 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10656   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10657 fi
10658 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10659   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10660 fi
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10754 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10755 hardcode_action=
10756 if test -n "$hardcode_libdir_flag_spec" ||
10757    test -n "$runpath_var" ||
10758    test "X$hardcode_automatic" = "Xyes" ; then
10759
10760   # We can hardcode non-existent directories.
10761   if test "$hardcode_direct" != no &&
10762      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763      # have to relink, otherwise we might link with an installed library
10764      # when we should be linking with a yet-to-be-installed one
10765      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766      test "$hardcode_minus_L" != no; then
10767     # Linking always hardcodes the temporary library directory.
10768     hardcode_action=relink
10769   else
10770     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771     hardcode_action=immediate
10772   fi
10773 else
10774   # We cannot hardcode anything, or else we can only hardcode existing
10775   # directories.
10776   hardcode_action=unsupported
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10779 $as_echo "$hardcode_action" >&6; }
10780
10781 if test "$hardcode_action" = relink ||
10782    test "$inherit_rpath" = yes; then
10783   # Fast installation is not supported
10784   enable_fast_install=no
10785 elif test "$shlibpath_overrides_runpath" = yes ||
10786      test "$enable_shared" = no; then
10787   # Fast installation is not necessary
10788   enable_fast_install=needless
10789 fi
10790
10791
10792
10793
10794
10795
10796   if test "x$enable_dlopen" != xyes; then
10797   enable_dlopen=unknown
10798   enable_dlopen_self=unknown
10799   enable_dlopen_self_static=unknown
10800 else
10801   lt_cv_dlopen=no
10802   lt_cv_dlopen_libs=
10803
10804   case $host_os in
10805   beos*)
10806     lt_cv_dlopen="load_add_on"
10807     lt_cv_dlopen_libs=
10808     lt_cv_dlopen_self=yes
10809     ;;
10810
10811   mingw* | pw32* | cegcc*)
10812     lt_cv_dlopen="LoadLibrary"
10813     lt_cv_dlopen_libs=
10814     ;;
10815
10816   cygwin*)
10817     lt_cv_dlopen="dlopen"
10818     lt_cv_dlopen_libs=
10819     ;;
10820
10821   darwin*)
10822   # if libdl is installed we need to link against it
10823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10824 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldl  $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834    Use char because int might match the return type of a GCC
10835    builtin and then its argument prototype would still apply.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dlopen ();
10840 int
10841 main ()
10842 {
10843 return dlopen ();
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849   ac_cv_lib_dl_dlopen=yes
10850 else
10851   ac_cv_lib_dl_dlopen=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854     conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10859 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10860   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10861 else
10862
10863     lt_cv_dlopen="dyld"
10864     lt_cv_dlopen_libs=
10865     lt_cv_dlopen_self=yes
10866
10867 fi
10868
10869     ;;
10870
10871   *)
10872     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10873 if test "x$ac_cv_func_shl_load" = x""yes; then :
10874   lt_cv_dlopen="shl_load"
10875 else
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10877 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-ldld  $LIBS"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h.  */
10885
10886 /* Override any GCC internal prototype to avoid an error.
10887    Use char because int might match the return type of a GCC
10888    builtin and then its argument prototype would still apply.  */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 char shl_load ();
10893 int
10894 main ()
10895 {
10896 return shl_load ();
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902   ac_cv_lib_dld_shl_load=yes
10903 else
10904   ac_cv_lib_dld_shl_load=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907     conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10911 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10912 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10913   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914 else
10915   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10916 if test "x$ac_cv_func_dlopen" = x""yes; then :
10917   lt_cv_dlopen="dlopen"
10918 else
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10920 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-ldl  $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h.  */
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930    Use char because int might match the return type of a GCC
10931    builtin and then its argument prototype would still apply.  */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char dlopen ();
10936 int
10937 main ()
10938 {
10939 return dlopen ();
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945   ac_cv_lib_dl_dlopen=yes
10946 else
10947   ac_cv_lib_dl_dlopen=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950     conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957 else
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10959 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lsvld  $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h.  */
10967
10968 /* Override any GCC internal prototype to avoid an error.
10969    Use char because int might match the return type of a GCC
10970    builtin and then its argument prototype would still apply.  */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char dlopen ();
10975 int
10976 main ()
10977 {
10978 return dlopen ();
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984   ac_cv_lib_svld_dlopen=yes
10985 else
10986   ac_cv_lib_svld_dlopen=no
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext \
10989     conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10993 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10994 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10995   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10996 else
10997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10998 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10999 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11000   $as_echo_n "(cached) " >&6
11001 else
11002   ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-ldld  $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h.  */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008    Use char because int might match the return type of a GCC
11009    builtin and then its argument prototype would still apply.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char dld_link ();
11014 int
11015 main ()
11016 {
11017 return dld_link ();
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023   ac_cv_lib_dld_dld_link=yes
11024 else
11025   ac_cv_lib_dld_dld_link=no
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028     conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11032 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11033 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11034   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043
11044 fi
11045
11046
11047 fi
11048
11049
11050 fi
11051
11052     ;;
11053   esac
11054
11055   if test "x$lt_cv_dlopen" != xno; then
11056     enable_dlopen=yes
11057   else
11058     enable_dlopen=no
11059   fi
11060
11061   case $lt_cv_dlopen in
11062   dlopen)
11063     save_CPPFLAGS="$CPPFLAGS"
11064     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11065
11066     save_LDFLAGS="$LDFLAGS"
11067     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11068
11069     save_LIBS="$LIBS"
11070     LIBS="$lt_cv_dlopen_libs $LIBS"
11071
11072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11073 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11074 if test "${lt_cv_dlopen_self+set}" = set; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077           if test "$cross_compiling" = yes; then :
11078   lt_cv_dlopen_self=cross
11079 else
11080   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11081   lt_status=$lt_dlunknown
11082   cat > conftest.$ac_ext <<_LT_EOF
11083 #line 11083 "configure"
11084 #include "confdefs.h"
11085
11086 #if HAVE_DLFCN_H
11087 #include <dlfcn.h>
11088 #endif
11089
11090 #include <stdio.h>
11091
11092 #ifdef RTLD_GLOBAL
11093 #  define LT_DLGLOBAL           RTLD_GLOBAL
11094 #else
11095 #  ifdef DL_GLOBAL
11096 #    define LT_DLGLOBAL         DL_GLOBAL
11097 #  else
11098 #    define LT_DLGLOBAL         0
11099 #  endif
11100 #endif
11101
11102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11103    find out it does not work in some platform. */
11104 #ifndef LT_DLLAZY_OR_NOW
11105 #  ifdef RTLD_LAZY
11106 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11107 #  else
11108 #    ifdef DL_LAZY
11109 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11110 #    else
11111 #      ifdef RTLD_NOW
11112 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11113 #      else
11114 #        ifdef DL_NOW
11115 #          define LT_DLLAZY_OR_NOW      DL_NOW
11116 #        else
11117 #          define LT_DLLAZY_OR_NOW      0
11118 #        endif
11119 #      endif
11120 #    endif
11121 #  endif
11122 #endif
11123
11124 /* When -fvisbility=hidden is used, assume the code has been annotated
11125    correspondingly for the symbols needed.  */
11126 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11127 void fnord () __attribute__((visibility("default")));
11128 #endif
11129
11130 void fnord () { int i=42; }
11131 int main ()
11132 {
11133   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134   int status = $lt_dlunknown;
11135
11136   if (self)
11137     {
11138       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11139       else
11140         {
11141           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11142           else puts (dlerror ());
11143         }
11144       /* dlclose (self); */
11145     }
11146   else
11147     puts (dlerror ());
11148
11149   return status;
11150 }
11151 _LT_EOF
11152   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11153   (eval $ac_link) 2>&5
11154   ac_status=$?
11155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11157     (./conftest; exit; ) >&5 2>/dev/null
11158     lt_status=$?
11159     case x$lt_status in
11160       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163     esac
11164   else :
11165     # compilation failed
11166     lt_cv_dlopen_self=no
11167   fi
11168 fi
11169 rm -fr conftest*
11170
11171
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11174 $as_echo "$lt_cv_dlopen_self" >&6; }
11175
11176     if test "x$lt_cv_dlopen_self" = xyes; then
11177       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11179 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11180 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183           if test "$cross_compiling" = yes; then :
11184   lt_cv_dlopen_self_static=cross
11185 else
11186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187   lt_status=$lt_dlunknown
11188   cat > conftest.$ac_ext <<_LT_EOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11191
11192 #if HAVE_DLFCN_H
11193 #include <dlfcn.h>
11194 #endif
11195
11196 #include <stdio.h>
11197
11198 #ifdef RTLD_GLOBAL
11199 #  define LT_DLGLOBAL           RTLD_GLOBAL
11200 #else
11201 #  ifdef DL_GLOBAL
11202 #    define LT_DLGLOBAL         DL_GLOBAL
11203 #  else
11204 #    define LT_DLGLOBAL         0
11205 #  endif
11206 #endif
11207
11208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209    find out it does not work in some platform. */
11210 #ifndef LT_DLLAZY_OR_NOW
11211 #  ifdef RTLD_LAZY
11212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11213 #  else
11214 #    ifdef DL_LAZY
11215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11216 #    else
11217 #      ifdef RTLD_NOW
11218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11219 #      else
11220 #        ifdef DL_NOW
11221 #          define LT_DLLAZY_OR_NOW      DL_NOW
11222 #        else
11223 #          define LT_DLLAZY_OR_NOW      0
11224 #        endif
11225 #      endif
11226 #    endif
11227 #  endif
11228 #endif
11229
11230 /* When -fvisbility=hidden is used, assume the code has been annotated
11231    correspondingly for the symbols needed.  */
11232 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11233 void fnord () __attribute__((visibility("default")));
11234 #endif
11235
11236 void fnord () { int i=42; }
11237 int main ()
11238 {
11239   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240   int status = $lt_dlunknown;
11241
11242   if (self)
11243     {
11244       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11245       else
11246         {
11247           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11248           else puts (dlerror ());
11249         }
11250       /* dlclose (self); */
11251     }
11252   else
11253     puts (dlerror ());
11254
11255   return status;
11256 }
11257 _LT_EOF
11258   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11259   (eval $ac_link) 2>&5
11260   ac_status=$?
11261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11263     (./conftest; exit; ) >&5 2>/dev/null
11264     lt_status=$?
11265     case x$lt_status in
11266       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11268       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11269     esac
11270   else :
11271     # compilation failed
11272     lt_cv_dlopen_self_static=no
11273   fi
11274 fi
11275 rm -fr conftest*
11276
11277
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11281     fi
11282
11283     CPPFLAGS="$save_CPPFLAGS"
11284     LDFLAGS="$save_LDFLAGS"
11285     LIBS="$save_LIBS"
11286     ;;
11287   esac
11288
11289   case $lt_cv_dlopen_self in
11290   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291   *) enable_dlopen_self=unknown ;;
11292   esac
11293
11294   case $lt_cv_dlopen_self_static in
11295   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296   *) enable_dlopen_self_static=unknown ;;
11297   esac
11298 fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316 striplib=
11317 old_striplib=
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325 else
11326 # FIXME - insert some real tests, host_os isn't really good enough
11327   case $host_os in
11328   darwin*)
11329     if test -n "$STRIP" ; then
11330       striplib="$STRIP -x"
11331       old_striplib="$STRIP -S"
11332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; }
11334     else
11335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337     fi
11338     ;;
11339   *)
11340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342     ;;
11343   esac
11344 fi
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357   # Report which library types will actually be built
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361 $as_echo "$can_build_shared" >&6; }
11362
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364 $as_echo_n "checking whether to build shared libraries... " >&6; }
11365   test "$can_build_shared" = "no" && enable_shared=no
11366
11367   # On AIX, shared libraries and static libraries use the same namespace, and
11368   # are all built from PIC.
11369   case $host_os in
11370   aix3*)
11371     test "$enable_shared" = yes && enable_static=no
11372     if test -n "$RANLIB"; then
11373       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374       postinstall_cmds='$RANLIB $lib'
11375     fi
11376     ;;
11377
11378   aix[4-9]*)
11379     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380       test "$enable_shared" = yes && enable_static=no
11381     fi
11382     ;;
11383   esac
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385 $as_echo "$enable_shared" >&6; }
11386
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388 $as_echo_n "checking whether to build static libraries... " >&6; }
11389   # Make sure either enable_shared or enable_static is yes.
11390   test "$enable_shared" = yes || enable_static=yes
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392 $as_echo "$enable_static" >&6; }
11393
11394
11395
11396
11397 fi
11398 ac_ext=c
11399 ac_cpp='$CPP $CPPFLAGS'
11400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404 CC="$lt_save_CC"
11405
11406       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11407     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11408     (test "X$CXX" != "Xg++"))) ; then
11409   ac_ext=cpp
11410 ac_cpp='$CXXCPP $CPPFLAGS'
11411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11415 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11416 if test -z "$CXXCPP"; then
11417   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11418   $as_echo_n "(cached) " >&6
11419 else
11420       # Double quotes because CXXCPP needs to be expanded
11421     for CXXCPP in "$CXX -E" "/lib/cpp"
11422     do
11423       ac_preproc_ok=false
11424 for ac_cxx_preproc_warn_flag in '' yes
11425 do
11426   # Use a header file that comes with gcc, so configuring glibc
11427   # with a fresh cross-compiler works.
11428   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429   # <limits.h> exists even on freestanding compilers.
11430   # On the NeXT, cc -E runs the code through the compiler's parser,
11431   # not just through cpp. "Syntax error" is here to catch this case.
11432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h.  */
11434 #ifdef __STDC__
11435 # include <limits.h>
11436 #else
11437 # include <assert.h>
11438 #endif
11439                      Syntax error
11440 _ACEOF
11441 if ac_fn_cxx_try_cpp "$LINENO"; then :
11442
11443 else
11444   # Broken: fails on valid input.
11445 continue
11446 fi
11447 rm -f conftest.err conftest.$ac_ext
11448
11449   # OK, works on sane cases.  Now check whether nonexistent headers
11450   # can be detected and how.
11451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h.  */
11453 #include <ac_nonexistent.h>
11454 _ACEOF
11455 if ac_fn_cxx_try_cpp "$LINENO"; then :
11456   # Broken: success on invalid input.
11457 continue
11458 else
11459   # Passes both tests.
11460 ac_preproc_ok=:
11461 break
11462 fi
11463 rm -f conftest.err conftest.$ac_ext
11464
11465 done
11466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11467 rm -f conftest.err conftest.$ac_ext
11468 if $ac_preproc_ok; then :
11469   break
11470 fi
11471
11472     done
11473     ac_cv_prog_CXXCPP=$CXXCPP
11474
11475 fi
11476   CXXCPP=$ac_cv_prog_CXXCPP
11477 else
11478   ac_cv_prog_CXXCPP=$CXXCPP
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11481 $as_echo "$CXXCPP" >&6; }
11482 ac_preproc_ok=false
11483 for ac_cxx_preproc_warn_flag in '' yes
11484 do
11485   # Use a header file that comes with gcc, so configuring glibc
11486   # with a fresh cross-compiler works.
11487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11488   # <limits.h> exists even on freestanding compilers.
11489   # On the NeXT, cc -E runs the code through the compiler's parser,
11490   # not just through cpp. "Syntax error" is here to catch this case.
11491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493 #ifdef __STDC__
11494 # include <limits.h>
11495 #else
11496 # include <assert.h>
11497 #endif
11498                      Syntax error
11499 _ACEOF
11500 if ac_fn_cxx_try_cpp "$LINENO"; then :
11501
11502 else
11503   # Broken: fails on valid input.
11504 continue
11505 fi
11506 rm -f conftest.err conftest.$ac_ext
11507
11508   # OK, works on sane cases.  Now check whether nonexistent headers
11509   # can be detected and how.
11510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h.  */
11512 #include <ac_nonexistent.h>
11513 _ACEOF
11514 if ac_fn_cxx_try_cpp "$LINENO"; then :
11515   # Broken: success on invalid input.
11516 continue
11517 else
11518   # Passes both tests.
11519 ac_preproc_ok=:
11520 break
11521 fi
11522 rm -f conftest.err conftest.$ac_ext
11523
11524 done
11525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11526 rm -f conftest.err conftest.$ac_ext
11527 if $ac_preproc_ok; then :
11528
11529 else
11530   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11532 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11533 See \`config.log' for more details." "$LINENO" 5; }
11534 fi
11535
11536 ac_ext=c
11537 ac_cpp='$CPP $CPPFLAGS'
11538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11541
11542 else
11543   _lt_caught_CXX_error=yes
11544 fi
11545
11546 ac_ext=cpp
11547 ac_cpp='$CXXCPP $CPPFLAGS'
11548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11551
11552 archive_cmds_need_lc_CXX=no
11553 allow_undefined_flag_CXX=
11554 always_export_symbols_CXX=no
11555 archive_expsym_cmds_CXX=
11556 compiler_needs_object_CXX=no
11557 export_dynamic_flag_spec_CXX=
11558 hardcode_direct_CXX=no
11559 hardcode_direct_absolute_CXX=no
11560 hardcode_libdir_flag_spec_CXX=
11561 hardcode_libdir_flag_spec_ld_CXX=
11562 hardcode_libdir_separator_CXX=
11563 hardcode_minus_L_CXX=no
11564 hardcode_shlibpath_var_CXX=unsupported
11565 hardcode_automatic_CXX=no
11566 inherit_rpath_CXX=no
11567 module_cmds_CXX=
11568 module_expsym_cmds_CXX=
11569 link_all_deplibs_CXX=unknown
11570 old_archive_cmds_CXX=$old_archive_cmds
11571 reload_flag_CXX=$reload_flag
11572 reload_cmds_CXX=$reload_cmds
11573 no_undefined_flag_CXX=
11574 whole_archive_flag_spec_CXX=
11575 enable_shared_with_static_runtimes_CXX=no
11576
11577 # Source file extension for C++ test sources.
11578 ac_ext=cpp
11579
11580 # Object file extension for compiled C++ test sources.
11581 objext=o
11582 objext_CXX=$objext
11583
11584 # No sense in running all these tests if we already determined that
11585 # the CXX compiler isn't working.  Some variables (like enable_shared)
11586 # are currently assumed to apply to all compilers on this platform,
11587 # and will be corrupted by setting them based on a non-working compiler.
11588 if test "$_lt_caught_CXX_error" != yes; then
11589   # Code to be used in simple compile tests
11590   lt_simple_compile_test_code="int some_variable = 0;"
11591
11592   # Code to be used in simple link tests
11593   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11594
11595   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11596
11597
11598
11599
11600
11601
11602 # If no C compiler was specified, use CC.
11603 LTCC=${LTCC-"$CC"}
11604
11605 # If no C compiler flags were specified, use CFLAGS.
11606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11607
11608 # Allow CC to be a program name with arguments.
11609 compiler=$CC
11610
11611
11612   # save warnings/boilerplate of simple test code
11613   ac_outfile=conftest.$ac_objext
11614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11616 _lt_compiler_boilerplate=`cat conftest.err`
11617 $RM conftest*
11618
11619   ac_outfile=conftest.$ac_objext
11620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11622 _lt_linker_boilerplate=`cat conftest.err`
11623 $RM -r conftest*
11624
11625
11626   # Allow CC to be a program name with arguments.
11627   lt_save_CC=$CC
11628   lt_save_LD=$LD
11629   lt_save_GCC=$GCC
11630   GCC=$GXX
11631   lt_save_with_gnu_ld=$with_gnu_ld
11632   lt_save_path_LD=$lt_cv_path_LD
11633   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11634     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11635   else
11636     $as_unset lt_cv_prog_gnu_ld
11637   fi
11638   if test -n "${lt_cv_path_LDCXX+set}"; then
11639     lt_cv_path_LD=$lt_cv_path_LDCXX
11640   else
11641     $as_unset lt_cv_path_LD
11642   fi
11643   test -z "${LDCXX+set}" || LD=$LDCXX
11644   CC=${CXX-"c++"}
11645   compiler=$CC
11646   compiler_CXX=$CC
11647   for cc_temp in $compiler""; do
11648   case $cc_temp in
11649     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11650     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11651     \-*) ;;
11652     *) break;;
11653   esac
11654 done
11655 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11656
11657
11658   if test -n "$compiler"; then
11659     # We don't want -fno-exception when compiling C++ code, so set the
11660     # no_builtin_flag separately
11661     if test "$GXX" = yes; then
11662       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11663     else
11664       lt_prog_compiler_no_builtin_flag_CXX=
11665     fi
11666
11667     if test "$GXX" = yes; then
11668       # Set up default GNU C++ configuration
11669
11670
11671
11672 # Check whether --with-gnu-ld was given.
11673 if test "${with_gnu_ld+set}" = set; then :
11674   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11675 else
11676   with_gnu_ld=no
11677 fi
11678
11679 ac_prog=ld
11680 if test "$GCC" = yes; then
11681   # Check if gcc -print-prog-name=ld gives a path.
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11683 $as_echo_n "checking for ld used by $CC... " >&6; }
11684   case $host in
11685   *-*-mingw*)
11686     # gcc leaves a trailing carriage return which upsets mingw
11687     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11688   *)
11689     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11690   esac
11691   case $ac_prog in
11692     # Accept absolute paths.
11693     [\\/]* | ?:[\\/]*)
11694       re_direlt='/[^/][^/]*/\.\./'
11695       # Canonicalize the pathname of ld
11696       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11697       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11698         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11699       done
11700       test -z "$LD" && LD="$ac_prog"
11701       ;;
11702   "")
11703     # If it fails, then pretend we aren't using GCC.
11704     ac_prog=ld
11705     ;;
11706   *)
11707     # If it is relative, then search for the first ld in PATH.
11708     with_gnu_ld=unknown
11709     ;;
11710   esac
11711 elif test "$with_gnu_ld" = yes; then
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11713 $as_echo_n "checking for GNU ld... " >&6; }
11714 else
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11716 $as_echo_n "checking for non-GNU ld... " >&6; }
11717 fi
11718 if test "${lt_cv_path_LD+set}" = set; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721   if test -z "$LD"; then
11722   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11723   for ac_dir in $PATH; do
11724     IFS="$lt_save_ifs"
11725     test -z "$ac_dir" && ac_dir=.
11726     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11727       lt_cv_path_LD="$ac_dir/$ac_prog"
11728       # Check to see if the program is GNU ld.  I'd rather use --version,
11729       # but apparently some variants of GNU ld only accept -v.
11730       # Break only if it was the GNU/non-GNU ld that we prefer.
11731       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11732       *GNU* | *'with BFD'*)
11733         test "$with_gnu_ld" != no && break
11734         ;;
11735       *)
11736         test "$with_gnu_ld" != yes && break
11737         ;;
11738       esac
11739     fi
11740   done
11741   IFS="$lt_save_ifs"
11742 else
11743   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11744 fi
11745 fi
11746
11747 LD="$lt_cv_path_LD"
11748 if test -n "$LD"; then
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11750 $as_echo "$LD" >&6; }
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11758 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11762 case `$LD -v 2>&1 </dev/null` in
11763 *GNU* | *'with BFD'*)
11764   lt_cv_prog_gnu_ld=yes
11765   ;;
11766 *)
11767   lt_cv_prog_gnu_ld=no
11768   ;;
11769 esac
11770 fi
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11773 with_gnu_ld=$lt_cv_prog_gnu_ld
11774
11775
11776
11777
11778
11779
11780
11781       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11782       # archiving commands below assume that GNU ld is being used.
11783       if test "$with_gnu_ld" = yes; then
11784         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11785         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'
11786
11787         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11788         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789
11790         # If archive_cmds runs LD, not CC, wlarc should be empty
11791         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11792         #     investigate it a little bit more. (MM)
11793         wlarc='${wl}'
11794
11795         # ancient GNU ld didn't support --whole-archive et. al.
11796         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11797           $GREP 'no-whole-archive' > /dev/null; then
11798           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11799         else
11800           whole_archive_flag_spec_CXX=
11801         fi
11802       else
11803         with_gnu_ld=no
11804         wlarc=
11805
11806         # A generic and very simple default shared library creation
11807         # command for GNU C++ for the case where it uses the native
11808         # linker, instead of GNU ld.  If possible, this setting should
11809         # overridden to take advantage of the native linker features on
11810         # the platform it is being used on.
11811         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11812       fi
11813
11814       # Commands to make compiler produce verbose output that lists
11815       # what "hidden" libraries, object files and flags are used when
11816       # linking a shared library.
11817       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11818
11819     else
11820       GXX=no
11821       with_gnu_ld=no
11822       wlarc=
11823     fi
11824
11825     # PORTME: fill in a description of your system's C++ link characteristics
11826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11827 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11828     ld_shlibs_CXX=yes
11829     case $host_os in
11830       aix3*)
11831         # FIXME: insert proper C++ library support
11832         ld_shlibs_CXX=no
11833         ;;
11834       aix[4-9]*)
11835         if test "$host_cpu" = ia64; then
11836           # On IA64, the linker does run time linking by default, so we don't
11837           # have to do anything special.
11838           aix_use_runtimelinking=no
11839           exp_sym_flag='-Bexport'
11840           no_entry_flag=""
11841         else
11842           aix_use_runtimelinking=no
11843
11844           # Test if we are trying to use run time linking or normal
11845           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11846           # need to do runtime linking.
11847           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11848             for ld_flag in $LDFLAGS; do
11849               case $ld_flag in
11850               *-brtl*)
11851                 aix_use_runtimelinking=yes
11852                 break
11853                 ;;
11854               esac
11855             done
11856             ;;
11857           esac
11858
11859           exp_sym_flag='-bexport'
11860           no_entry_flag='-bnoentry'
11861         fi
11862
11863         # When large executables or shared objects are built, AIX ld can
11864         # have problems creating the table of contents.  If linking a library
11865         # or program results in "error TOC overflow" add -mminimal-toc to
11866         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11867         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11868
11869         archive_cmds_CXX=''
11870         hardcode_direct_CXX=yes
11871         hardcode_direct_absolute_CXX=yes
11872         hardcode_libdir_separator_CXX=':'
11873         link_all_deplibs_CXX=yes
11874         file_list_spec_CXX='${wl}-f,'
11875
11876         if test "$GXX" = yes; then
11877           case $host_os in aix4.[012]|aix4.[012].*)
11878           # We only want to do this on AIX 4.2 and lower, the check
11879           # below for broken collect2 doesn't work under 4.3+
11880           collect2name=`${CC} -print-prog-name=collect2`
11881           if test -f "$collect2name" &&
11882              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11883           then
11884             # We have reworked collect2
11885             :
11886           else
11887             # We have old collect2
11888             hardcode_direct_CXX=unsupported
11889             # It fails to find uninstalled libraries when the uninstalled
11890             # path is not listed in the libpath.  Setting hardcode_minus_L
11891             # to unsupported forces relinking
11892             hardcode_minus_L_CXX=yes
11893             hardcode_libdir_flag_spec_CXX='-L$libdir'
11894             hardcode_libdir_separator_CXX=
11895           fi
11896           esac
11897           shared_flag='-shared'
11898           if test "$aix_use_runtimelinking" = yes; then
11899             shared_flag="$shared_flag "'${wl}-G'
11900           fi
11901         else
11902           # not using gcc
11903           if test "$host_cpu" = ia64; then
11904           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11905           # chokes on -Wl,-G. The following line is correct:
11906           shared_flag='-G'
11907           else
11908             if test "$aix_use_runtimelinking" = yes; then
11909               shared_flag='${wl}-G'
11910             else
11911               shared_flag='${wl}-bM:SRE'
11912             fi
11913           fi
11914         fi
11915
11916         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11917         # It seems that -bexpall does not export symbols beginning with
11918         # underscore (_), so it is better to generate a list of symbols to
11919         # export.
11920         always_export_symbols_CXX=yes
11921         if test "$aix_use_runtimelinking" = yes; then
11922           # Warning - without using the other runtime loading flags (-brtl),
11923           # -berok will link without error, but may produce a broken library.
11924           allow_undefined_flag_CXX='-berok'
11925           # Determine the default libpath from the value encoded in an empty
11926           # executable.
11927           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h.  */
11929
11930 int
11931 main ()
11932 {
11933
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_cxx_try_link "$LINENO"; then :
11939
11940 lt_aix_libpath_sed='
11941     /Import File Strings/,/^$/ {
11942         /^0/ {
11943             s/^0  *\(.*\)$/\1/
11944             p
11945         }
11946     }'
11947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11948 # Check for a 64-bit object if we didn't find anything.
11949 if test -z "$aix_libpath"; then
11950   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11951 fi
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext \
11954     conftest$ac_exeext conftest.$ac_ext
11955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11956
11957           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11958
11959           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"
11960         else
11961           if test "$host_cpu" = ia64; then
11962             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11963             allow_undefined_flag_CXX="-z nodefs"
11964             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"
11965           else
11966             # Determine the default libpath from the value encoded in an
11967             # empty executable.
11968             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h.  */
11970
11971 int
11972 main ()
11973 {
11974
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_cxx_try_link "$LINENO"; then :
11980
11981 lt_aix_libpath_sed='
11982     /Import File Strings/,/^$/ {
11983         /^0/ {
11984             s/^0  *\(.*\)$/\1/
11985             p
11986         }
11987     }'
11988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989 # Check for a 64-bit object if we didn't find anything.
11990 if test -z "$aix_libpath"; then
11991   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11992 fi
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995     conftest$ac_exeext conftest.$ac_ext
11996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11997
11998             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11999             # Warning - without using the other run time loading flags,
12000             # -berok will link without error, but may produce a broken library.
12001             no_undefined_flag_CXX=' ${wl}-bernotok'
12002             allow_undefined_flag_CXX=' ${wl}-berok'
12003             if test "$with_gnu_ld" = yes; then
12004               # We only use this code for GNU lds that support --whole-archive.
12005               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12006             else
12007               # Exported symbols can be pulled into shared objects from archives
12008               whole_archive_flag_spec_CXX='$convenience'
12009             fi
12010             archive_cmds_need_lc_CXX=yes
12011             # This is similar to how AIX traditionally builds its shared
12012             # libraries.
12013             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'
12014           fi
12015         fi
12016         ;;
12017
12018       beos*)
12019         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12020           allow_undefined_flag_CXX=unsupported
12021           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12022           # support --undefined.  This deserves some investigation.  FIXME
12023           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12024         else
12025           ld_shlibs_CXX=no
12026         fi
12027         ;;
12028
12029       chorus*)
12030         case $cc_basename in
12031           *)
12032           # FIXME: insert proper C++ library support
12033           ld_shlibs_CXX=no
12034           ;;
12035         esac
12036         ;;
12037
12038       cygwin* | mingw* | pw32* | cegcc*)
12039         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12040         # as there is no search path for DLLs.
12041         hardcode_libdir_flag_spec_CXX='-L$libdir'
12042         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12043         allow_undefined_flag_CXX=unsupported
12044         always_export_symbols_CXX=no
12045         enable_shared_with_static_runtimes_CXX=yes
12046
12047         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12048           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'
12049           # If the export-symbols file already is a .def file (1st line
12050           # is EXPORTS), use it as is; otherwise, prepend...
12051           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12052             cp $export_symbols $output_objdir/$soname.def;
12053           else
12054             echo EXPORTS > $output_objdir/$soname.def;
12055             cat $export_symbols >> $output_objdir/$soname.def;
12056           fi~
12057           $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'
12058         else
12059           ld_shlibs_CXX=no
12060         fi
12061         ;;
12062       darwin* | rhapsody*)
12063
12064
12065   archive_cmds_need_lc_CXX=no
12066   hardcode_direct_CXX=no
12067   hardcode_automatic_CXX=yes
12068   hardcode_shlibpath_var_CXX=unsupported
12069   if test "$lt_cv_ld_force_load" = "yes"; then
12070     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\"`'
12071   else
12072     whole_archive_flag_spec_CXX=''
12073   fi
12074   link_all_deplibs_CXX=yes
12075   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12076   case $cc_basename in
12077      ifort*) _lt_dar_can_shared=yes ;;
12078      *) _lt_dar_can_shared=$GCC ;;
12079   esac
12080   if test "$_lt_dar_can_shared" = "yes"; then
12081     output_verbose_link_cmd=func_echo_all
12082     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}"
12083     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12084     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}"
12085     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}"
12086        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12087       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}"
12088       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}"
12089     fi
12090
12091   else
12092   ld_shlibs_CXX=no
12093   fi
12094
12095         ;;
12096
12097       dgux*)
12098         case $cc_basename in
12099           ec++*)
12100             # FIXME: insert proper C++ library support
12101             ld_shlibs_CXX=no
12102             ;;
12103           ghcx*)
12104             # Green Hills C++ Compiler
12105             # FIXME: insert proper C++ library support
12106             ld_shlibs_CXX=no
12107             ;;
12108           *)
12109             # FIXME: insert proper C++ library support
12110             ld_shlibs_CXX=no
12111             ;;
12112         esac
12113         ;;
12114
12115       freebsd2.*)
12116         # C++ shared libraries reported to be fairly broken before
12117         # switch to ELF
12118         ld_shlibs_CXX=no
12119         ;;
12120
12121       freebsd-elf*)
12122         archive_cmds_need_lc_CXX=no
12123         ;;
12124
12125       freebsd* | dragonfly*)
12126         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12127         # conventions
12128         ld_shlibs_CXX=yes
12129         ;;
12130
12131       gnu*)
12132         ;;
12133
12134       haiku*)
12135         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12136         link_all_deplibs_CXX=yes
12137         ;;
12138
12139       hpux9*)
12140         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12141         hardcode_libdir_separator_CXX=:
12142         export_dynamic_flag_spec_CXX='${wl}-E'
12143         hardcode_direct_CXX=yes
12144         hardcode_minus_L_CXX=yes # Not in the search PATH,
12145                                              # but as the default
12146                                              # location of the library.
12147
12148         case $cc_basename in
12149           CC*)
12150             # FIXME: insert proper C++ library support
12151             ld_shlibs_CXX=no
12152             ;;
12153           aCC*)
12154             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'
12155             # Commands to make compiler produce verbose output that lists
12156             # what "hidden" libraries, object files and flags are used when
12157             # linking a shared library.
12158             #
12159             # There doesn't appear to be a way to prevent this compiler from
12160             # explicitly linking system object files so we need to strip them
12161             # from the output so that they don't get included in the library
12162             # dependencies.
12163             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"'
12164             ;;
12165           *)
12166             if test "$GXX" = yes; then
12167               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'
12168             else
12169               # FIXME: insert proper C++ library support
12170               ld_shlibs_CXX=no
12171             fi
12172             ;;
12173         esac
12174         ;;
12175
12176       hpux10*|hpux11*)
12177         if test $with_gnu_ld = no; then
12178           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12179           hardcode_libdir_separator_CXX=:
12180
12181           case $host_cpu in
12182             hppa*64*|ia64*)
12183               ;;
12184             *)
12185               export_dynamic_flag_spec_CXX='${wl}-E'
12186               ;;
12187           esac
12188         fi
12189         case $host_cpu in
12190           hppa*64*|ia64*)
12191             hardcode_direct_CXX=no
12192             hardcode_shlibpath_var_CXX=no
12193             ;;
12194           *)
12195             hardcode_direct_CXX=yes
12196             hardcode_direct_absolute_CXX=yes
12197             hardcode_minus_L_CXX=yes # Not in the search PATH,
12198                                                  # but as the default
12199                                                  # location of the library.
12200             ;;
12201         esac
12202
12203         case $cc_basename in
12204           CC*)
12205             # FIXME: insert proper C++ library support
12206             ld_shlibs_CXX=no
12207             ;;
12208           aCC*)
12209             case $host_cpu in
12210               hppa*64*)
12211                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12212                 ;;
12213               ia64*)
12214                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12215                 ;;
12216               *)
12217                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12218                 ;;
12219             esac
12220             # Commands to make compiler produce verbose output that lists
12221             # what "hidden" libraries, object files and flags are used when
12222             # linking a shared library.
12223             #
12224             # There doesn't appear to be a way to prevent this compiler from
12225             # explicitly linking system object files so we need to strip them
12226             # from the output so that they don't get included in the library
12227             # dependencies.
12228             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"'
12229             ;;
12230           *)
12231             if test "$GXX" = yes; then
12232               if test $with_gnu_ld = no; then
12233                 case $host_cpu in
12234                   hppa*64*)
12235                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236                     ;;
12237                   ia64*)
12238                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12239                     ;;
12240                   *)
12241                     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'
12242                     ;;
12243                 esac
12244               fi
12245             else
12246               # FIXME: insert proper C++ library support
12247               ld_shlibs_CXX=no
12248             fi
12249             ;;
12250         esac
12251         ;;
12252
12253       interix[3-9]*)
12254         hardcode_direct_CXX=no
12255         hardcode_shlibpath_var_CXX=no
12256         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257         export_dynamic_flag_spec_CXX='${wl}-E'
12258         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12259         # Instead, shared libraries are loaded at an image base (0x10000000 by
12260         # default) and relocated if they conflict, which is a slow very memory
12261         # consuming and fragmenting process.  To avoid this, we pick a random,
12262         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12263         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12264         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'
12265         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'
12266         ;;
12267       irix5* | irix6*)
12268         case $cc_basename in
12269           CC*)
12270             # SGI C++
12271             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'
12272
12273             # Archives containing C++ object files must be created using
12274             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12275             # necessary to make sure instantiated templates are included
12276             # in the archive.
12277             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12278             ;;
12279           *)
12280             if test "$GXX" = yes; then
12281               if test "$with_gnu_ld" = no; then
12282                 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'
12283               else
12284                 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'
12285               fi
12286             fi
12287             link_all_deplibs_CXX=yes
12288             ;;
12289         esac
12290         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12291         hardcode_libdir_separator_CXX=:
12292         inherit_rpath_CXX=yes
12293         ;;
12294
12295       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12296         case $cc_basename in
12297           KCC*)
12298             # Kuck and Associates, Inc. (KAI) C++ Compiler
12299
12300             # KCC will only create a shared library if the output file
12301             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12302             # to its proper name (with version) after linking.
12303             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'
12304             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'
12305             # Commands to make compiler produce verbose output that lists
12306             # what "hidden" libraries, object files and flags are used when
12307             # linking a shared library.
12308             #
12309             # There doesn't appear to be a way to prevent this compiler from
12310             # explicitly linking system object files so we need to strip them
12311             # from the output so that they don't get included in the library
12312             # dependencies.
12313             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"'
12314
12315             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12316             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317
12318             # Archives containing C++ object files must be created using
12319             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12320             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12321             ;;
12322           icpc* | ecpc* )
12323             # Intel C++
12324             with_gnu_ld=yes
12325             # version 8.0 and above of icpc choke on multiply defined symbols
12326             # if we add $predep_objects and $postdep_objects, however 7.1 and
12327             # earlier do not add the objects themselves.
12328             case `$CC -V 2>&1` in
12329               *"Version 7."*)
12330                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331                 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'
12332                 ;;
12333               *)  # Version 8.0 or newer
12334                 tmp_idyn=
12335                 case $host_cpu in
12336                   ia64*) tmp_idyn=' -i_dynamic';;
12337                 esac
12338                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339                 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'
12340                 ;;
12341             esac
12342             archive_cmds_need_lc_CXX=no
12343             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12344             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12346             ;;
12347           pgCC* | pgcpp*)
12348             # Portland Group C++ compiler
12349             case `$CC -V` in
12350             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12351               prelink_cmds_CXX='tpldir=Template.dir~
12352                 rm -rf $tpldir~
12353                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12354                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12355               old_archive_cmds_CXX='tpldir=Template.dir~
12356                 rm -rf $tpldir~
12357                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12358                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12359                 $RANLIB $oldlib'
12360               archive_cmds_CXX='tpldir=Template.dir~
12361                 rm -rf $tpldir~
12362                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12363                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12364               archive_expsym_cmds_CXX='tpldir=Template.dir~
12365                 rm -rf $tpldir~
12366                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12367                 $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'
12368               ;;
12369             *) # Version 6 and above use weak symbols
12370               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12371               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'
12372               ;;
12373             esac
12374
12375             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12376             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12377             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'
12378             ;;
12379           cxx*)
12380             # Compaq C++
12381             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382             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'
12383
12384             runpath_var=LD_RUN_PATH
12385             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12386             hardcode_libdir_separator_CXX=:
12387
12388             # Commands to make compiler produce verbose output that lists
12389             # what "hidden" libraries, object files and flags are used when
12390             # linking a shared library.
12391             #
12392             # There doesn't appear to be a way to prevent this compiler from
12393             # explicitly linking system object files so we need to strip them
12394             # from the output so that they don't get included in the library
12395             # dependencies.
12396             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'
12397             ;;
12398           xl* | mpixl* | bgxl*)
12399             # IBM XL 8.0 on PPC, with GNU ld
12400             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12401             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12402             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403             if test "x$supports_anon_versioning" = xyes; then
12404               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12405                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12406                 echo "local: *; };" >> $output_objdir/$libname.ver~
12407                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12408             fi
12409             ;;
12410           *)
12411             case `$CC -V 2>&1 | sed 5q` in
12412             *Sun\ C*)
12413               # Sun C++ 5.9
12414               no_undefined_flag_CXX=' -zdefs'
12415               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12416               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'
12417               hardcode_libdir_flag_spec_CXX='-R$libdir'
12418               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'
12419               compiler_needs_object_CXX=yes
12420
12421               # Not sure whether something based on
12422               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12423               # would be better.
12424               output_verbose_link_cmd='func_echo_all'
12425
12426               # Archives containing C++ object files must be created using
12427               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12428               # necessary to make sure instantiated templates are included
12429               # in the archive.
12430               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12431               ;;
12432             esac
12433             ;;
12434         esac
12435         ;;
12436
12437       lynxos*)
12438         # FIXME: insert proper C++ library support
12439         ld_shlibs_CXX=no
12440         ;;
12441
12442       m88k*)
12443         # FIXME: insert proper C++ library support
12444         ld_shlibs_CXX=no
12445         ;;
12446
12447       mvs*)
12448         case $cc_basename in
12449           cxx*)
12450             # FIXME: insert proper C++ library support
12451             ld_shlibs_CXX=no
12452             ;;
12453           *)
12454             # FIXME: insert proper C++ library support
12455             ld_shlibs_CXX=no
12456             ;;
12457         esac
12458         ;;
12459
12460       netbsd*)
12461         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12463           wlarc=
12464           hardcode_libdir_flag_spec_CXX='-R$libdir'
12465           hardcode_direct_CXX=yes
12466           hardcode_shlibpath_var_CXX=no
12467         fi
12468         # Workaround some broken pre-1.5 toolchains
12469         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12470         ;;
12471
12472       *nto* | *qnx*)
12473         ld_shlibs_CXX=yes
12474         ;;
12475
12476       openbsd2*)
12477         # C++ shared libraries are fairly broken
12478         ld_shlibs_CXX=no
12479         ;;
12480
12481       openbsd*)
12482         if test -f /usr/libexec/ld.so; then
12483           hardcode_direct_CXX=yes
12484           hardcode_shlibpath_var_CXX=no
12485           hardcode_direct_absolute_CXX=yes
12486           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12490             export_dynamic_flag_spec_CXX='${wl}-E'
12491             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12492           fi
12493           output_verbose_link_cmd=func_echo_all
12494         else
12495           ld_shlibs_CXX=no
12496         fi
12497         ;;
12498
12499       osf3* | osf4* | osf5*)
12500         case $cc_basename in
12501           KCC*)
12502             # Kuck and Associates, Inc. (KAI) C++ Compiler
12503
12504             # KCC will only create a shared library if the output file
12505             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12506             # to its proper name (with version) after linking.
12507             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'
12508
12509             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12510             hardcode_libdir_separator_CXX=:
12511
12512             # Archives containing C++ object files must be created using
12513             # the KAI C++ compiler.
12514             case $host in
12515               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12516               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12517             esac
12518             ;;
12519           RCC*)
12520             # Rational C++ 2.4.1
12521             # FIXME: insert proper C++ library support
12522             ld_shlibs_CXX=no
12523             ;;
12524           cxx*)
12525             case $host in
12526               osf3*)
12527                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12528                 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'
12529                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12530                 ;;
12531               *)
12532                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12533                 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'
12534                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12535                   echo "-hidden">> $lib.exp~
12536                   $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~
12537                   $RM $lib.exp'
12538                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12539                 ;;
12540             esac
12541
12542             hardcode_libdir_separator_CXX=:
12543
12544             # Commands to make compiler produce verbose output that lists
12545             # what "hidden" libraries, object files and flags are used when
12546             # linking a shared library.
12547             #
12548             # There doesn't appear to be a way to prevent this compiler from
12549             # explicitly linking system object files so we need to strip them
12550             # from the output so that they don't get included in the library
12551             # dependencies.
12552             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"'
12553             ;;
12554           *)
12555             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12556               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12557               case $host in
12558                 osf3*)
12559                   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'
12560                   ;;
12561                 *)
12562                   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'
12563                   ;;
12564               esac
12565
12566               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12567               hardcode_libdir_separator_CXX=:
12568
12569               # Commands to make compiler produce verbose output that lists
12570               # what "hidden" libraries, object files and flags are used when
12571               # linking a shared library.
12572               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12573
12574             else
12575               # FIXME: insert proper C++ library support
12576               ld_shlibs_CXX=no
12577             fi
12578             ;;
12579         esac
12580         ;;
12581
12582       psos*)
12583         # FIXME: insert proper C++ library support
12584         ld_shlibs_CXX=no
12585         ;;
12586
12587       sunos4*)
12588         case $cc_basename in
12589           CC*)
12590             # Sun C++ 4.x
12591             # FIXME: insert proper C++ library support
12592             ld_shlibs_CXX=no
12593             ;;
12594           lcc*)
12595             # Lucid
12596             # FIXME: insert proper C++ library support
12597             ld_shlibs_CXX=no
12598             ;;
12599           *)
12600             # FIXME: insert proper C++ library support
12601             ld_shlibs_CXX=no
12602             ;;
12603         esac
12604         ;;
12605
12606       solaris*)
12607         case $cc_basename in
12608           CC*)
12609             # Sun C++ 4.2, 5.x and Centerline C++
12610             archive_cmds_need_lc_CXX=yes
12611             no_undefined_flag_CXX=' -zdefs'
12612             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12614               $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'
12615
12616             hardcode_libdir_flag_spec_CXX='-R$libdir'
12617             hardcode_shlibpath_var_CXX=no
12618             case $host_os in
12619               solaris2.[0-5] | solaris2.[0-5].*) ;;
12620               *)
12621                 # The compiler driver will combine and reorder linker options,
12622                 # but understands `-z linker_flag'.
12623                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12624                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12625                 ;;
12626             esac
12627             link_all_deplibs_CXX=yes
12628
12629             output_verbose_link_cmd='func_echo_all'
12630
12631             # Archives containing C++ object files must be created using
12632             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12633             # necessary to make sure instantiated templates are included
12634             # in the archive.
12635             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12636             ;;
12637           gcx*)
12638             # Green Hills C++ Compiler
12639             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12640
12641             # The C++ compiler must be used to create the archive.
12642             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12643             ;;
12644           *)
12645             # GNU C++ compiler with Solaris linker
12646             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12647               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12648               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12649                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12650                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12651                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12652
12653                 # Commands to make compiler produce verbose output that lists
12654                 # what "hidden" libraries, object files and flags are used when
12655                 # linking a shared library.
12656                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12657               else
12658                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12659                 # platform.
12660                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12661                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12662                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12663
12664                 # Commands to make compiler produce verbose output that lists
12665                 # what "hidden" libraries, object files and flags are used when
12666                 # linking a shared library.
12667                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12668               fi
12669
12670               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12671               case $host_os in
12672                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12673                 *)
12674                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12675                   ;;
12676               esac
12677             fi
12678             ;;
12679         esac
12680         ;;
12681
12682     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12683       no_undefined_flag_CXX='${wl}-z,text'
12684       archive_cmds_need_lc_CXX=no
12685       hardcode_shlibpath_var_CXX=no
12686       runpath_var='LD_RUN_PATH'
12687
12688       case $cc_basename in
12689         CC*)
12690           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692           ;;
12693         *)
12694           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696           ;;
12697       esac
12698       ;;
12699
12700       sysv5* | sco3.2v5* | sco5v6*)
12701         # Note: We can NOT use -z defs as we might desire, because we do not
12702         # link with -lc, and that would cause any symbols used from libc to
12703         # always be unresolved, which means just about no library would
12704         # ever link correctly.  If we're not using GNU ld we use -z text
12705         # though, which does catch some bad symbols but isn't as heavy-handed
12706         # as -z defs.
12707         no_undefined_flag_CXX='${wl}-z,text'
12708         allow_undefined_flag_CXX='${wl}-z,nodefs'
12709         archive_cmds_need_lc_CXX=no
12710         hardcode_shlibpath_var_CXX=no
12711         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12712         hardcode_libdir_separator_CXX=':'
12713         link_all_deplibs_CXX=yes
12714         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12715         runpath_var='LD_RUN_PATH'
12716
12717         case $cc_basename in
12718           CC*)
12719             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12720             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12721             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12722               '"$old_archive_cmds_CXX"
12723             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12724               '"$reload_cmds_CXX"
12725             ;;
12726           *)
12727             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729             ;;
12730         esac
12731       ;;
12732
12733       tandem*)
12734         case $cc_basename in
12735           NCC*)
12736             # NonStop-UX NCC 3.20
12737             # FIXME: insert proper C++ library support
12738             ld_shlibs_CXX=no
12739             ;;
12740           *)
12741             # FIXME: insert proper C++ library support
12742             ld_shlibs_CXX=no
12743             ;;
12744         esac
12745         ;;
12746
12747       vxworks*)
12748         # FIXME: insert proper C++ library support
12749         ld_shlibs_CXX=no
12750         ;;
12751
12752       *)
12753         # FIXME: insert proper C++ library support
12754         ld_shlibs_CXX=no
12755         ;;
12756     esac
12757
12758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12759 $as_echo "$ld_shlibs_CXX" >&6; }
12760     test "$ld_shlibs_CXX" = no && can_build_shared=no
12761
12762     GCC_CXX="$GXX"
12763     LD_CXX="$LD"
12764
12765     ## CAVEAT EMPTOR:
12766     ## There is no encapsulation within the following macros, do not change
12767     ## the running order or otherwise move them around unless you know exactly
12768     ## what you are doing...
12769     # Dependencies to place before and after the object being linked:
12770 predep_objects_CXX=
12771 postdep_objects_CXX=
12772 predeps_CXX=
12773 postdeps_CXX=
12774 compiler_lib_search_path_CXX=
12775
12776 cat > conftest.$ac_ext <<_LT_EOF
12777 class Foo
12778 {
12779 public:
12780   Foo (void) { a = 0; }
12781 private:
12782   int a;
12783 };
12784 _LT_EOF
12785
12786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12787   (eval $ac_compile) 2>&5
12788   ac_status=$?
12789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790   test $ac_status = 0; }; then
12791   # Parse the compiler output and extract the necessary
12792   # objects, libraries and library flags.
12793
12794   # Sentinel used to keep track of whether or not we are before
12795   # the conftest object file.
12796   pre_test_object_deps_done=no
12797
12798   for p in `eval "$output_verbose_link_cmd"`; do
12799     case $p in
12800
12801     -L* | -R* | -l*)
12802        # Some compilers place space between "-{L,R}" and the path.
12803        # Remove the space.
12804        if test $p = "-L" ||
12805           test $p = "-R"; then
12806          prev=$p
12807          continue
12808        else
12809          prev=
12810        fi
12811
12812        if test "$pre_test_object_deps_done" = no; then
12813          case $p in
12814          -L* | -R*)
12815            # Internal compiler library paths should come after those
12816            # provided the user.  The postdeps already come after the
12817            # user supplied libs so there is no need to process them.
12818            if test -z "$compiler_lib_search_path_CXX"; then
12819              compiler_lib_search_path_CXX="${prev}${p}"
12820            else
12821              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12822            fi
12823            ;;
12824          # The "-l" case would never come before the object being
12825          # linked, so don't bother handling this case.
12826          esac
12827        else
12828          if test -z "$postdeps_CXX"; then
12829            postdeps_CXX="${prev}${p}"
12830          else
12831            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12832          fi
12833        fi
12834        ;;
12835
12836     *.$objext)
12837        # This assumes that the test object file only shows up
12838        # once in the compiler output.
12839        if test "$p" = "conftest.$objext"; then
12840          pre_test_object_deps_done=yes
12841          continue
12842        fi
12843
12844        if test "$pre_test_object_deps_done" = no; then
12845          if test -z "$predep_objects_CXX"; then
12846            predep_objects_CXX="$p"
12847          else
12848            predep_objects_CXX="$predep_objects_CXX $p"
12849          fi
12850        else
12851          if test -z "$postdep_objects_CXX"; then
12852            postdep_objects_CXX="$p"
12853          else
12854            postdep_objects_CXX="$postdep_objects_CXX $p"
12855          fi
12856        fi
12857        ;;
12858
12859     *) ;; # Ignore the rest.
12860
12861     esac
12862   done
12863
12864   # Clean up.
12865   rm -f a.out a.exe
12866 else
12867   echo "libtool.m4: error: problem compiling CXX test program"
12868 fi
12869
12870 $RM -f confest.$objext
12871
12872 # PORTME: override above test on systems where it is broken
12873 case $host_os in
12874 interix[3-9]*)
12875   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12876   # hack all around it, let's just trust "g++" to DTRT.
12877   predep_objects_CXX=
12878   postdep_objects_CXX=
12879   postdeps_CXX=
12880   ;;
12881
12882 linux*)
12883   case `$CC -V 2>&1 | sed 5q` in
12884   *Sun\ C*)
12885     # Sun C++ 5.9
12886
12887     # The more standards-conforming stlport4 library is
12888     # incompatible with the Cstd library. Avoid specifying
12889     # it if it's in CXXFLAGS. Ignore libCrun as
12890     # -library=stlport4 depends on it.
12891     case " $CXX $CXXFLAGS " in
12892     *" -library=stlport4 "*)
12893       solaris_use_stlport4=yes
12894       ;;
12895     esac
12896
12897     if test "$solaris_use_stlport4" != yes; then
12898       postdeps_CXX='-library=Cstd -library=Crun'
12899     fi
12900     ;;
12901   esac
12902   ;;
12903
12904 solaris*)
12905   case $cc_basename in
12906   CC*)
12907     # The more standards-conforming stlport4 library is
12908     # incompatible with the Cstd library. Avoid specifying
12909     # it if it's in CXXFLAGS. Ignore libCrun as
12910     # -library=stlport4 depends on it.
12911     case " $CXX $CXXFLAGS " in
12912     *" -library=stlport4 "*)
12913       solaris_use_stlport4=yes
12914       ;;
12915     esac
12916
12917     # Adding this requires a known-good setup of shared libraries for
12918     # Sun compiler versions before 5.6, else PIC objects from an old
12919     # archive will be linked into the output, leading to subtle bugs.
12920     if test "$solaris_use_stlport4" != yes; then
12921       postdeps_CXX='-library=Cstd -library=Crun'
12922     fi
12923     ;;
12924   esac
12925   ;;
12926 esac
12927
12928
12929 case " $postdeps_CXX " in
12930 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12931 esac
12932  compiler_lib_search_dirs_CXX=
12933 if test -n "${compiler_lib_search_path_CXX}"; then
12934  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12935 fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967     lt_prog_compiler_wl_CXX=
12968 lt_prog_compiler_pic_CXX=
12969 lt_prog_compiler_static_CXX=
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12972 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12973
12974   # C++ specific cases for pic, static, wl, etc.
12975   if test "$GXX" = yes; then
12976     lt_prog_compiler_wl_CXX='-Wl,'
12977     lt_prog_compiler_static_CXX='-static'
12978
12979     case $host_os in
12980     aix*)
12981       # All AIX code is PIC.
12982       if test "$host_cpu" = ia64; then
12983         # AIX 5 now supports IA64 processor
12984         lt_prog_compiler_static_CXX='-Bstatic'
12985       fi
12986       lt_prog_compiler_pic_CXX='-fPIC'
12987       ;;
12988
12989     amigaos*)
12990       case $host_cpu in
12991       powerpc)
12992             # see comment about AmigaOS4 .so support
12993             lt_prog_compiler_pic_CXX='-fPIC'
12994         ;;
12995       m68k)
12996             # FIXME: we need at least 68020 code to build shared libraries, but
12997             # adding the `-m68020' flag to GCC prevents building anything better,
12998             # like `-m68040'.
12999             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13000         ;;
13001       esac
13002       ;;
13003
13004     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13005       # PIC is the default for these OSes.
13006       ;;
13007     mingw* | cygwin* | os2* | pw32* | cegcc*)
13008       # This hack is so that the source file can tell whether it is being
13009       # built for inclusion in a dll (and should export symbols for example).
13010       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13011       # (--disable-auto-import) libraries
13012       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13013       ;;
13014     darwin* | rhapsody*)
13015       # PIC is the default on this platform
13016       # Common symbols not allowed in MH_DYLIB files
13017       lt_prog_compiler_pic_CXX='-fno-common'
13018       ;;
13019     *djgpp*)
13020       # DJGPP does not support shared libraries at all
13021       lt_prog_compiler_pic_CXX=
13022       ;;
13023     haiku*)
13024       # PIC is the default for Haiku.
13025       # The "-static" flag exists, but is broken.
13026       lt_prog_compiler_static_CXX=
13027       ;;
13028     interix[3-9]*)
13029       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13030       # Instead, we relocate shared libraries at runtime.
13031       ;;
13032     sysv4*MP*)
13033       if test -d /usr/nec; then
13034         lt_prog_compiler_pic_CXX=-Kconform_pic
13035       fi
13036       ;;
13037     hpux*)
13038       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13039       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13040       # sets the default TLS model and affects inlining.
13041       case $host_cpu in
13042       hppa*64*)
13043         ;;
13044       *)
13045         lt_prog_compiler_pic_CXX='-fPIC'
13046         ;;
13047       esac
13048       ;;
13049     *qnx* | *nto*)
13050       # QNX uses GNU C++, but need to define -shared option too, otherwise
13051       # it will coredump.
13052       lt_prog_compiler_pic_CXX='-fPIC -shared'
13053       ;;
13054     *)
13055       lt_prog_compiler_pic_CXX='-fPIC'
13056       ;;
13057     esac
13058   else
13059     case $host_os in
13060       aix[4-9]*)
13061         # All AIX code is PIC.
13062         if test "$host_cpu" = ia64; then
13063           # AIX 5 now supports IA64 processor
13064           lt_prog_compiler_static_CXX='-Bstatic'
13065         else
13066           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13067         fi
13068         ;;
13069       chorus*)
13070         case $cc_basename in
13071         cxch68*)
13072           # Green Hills C++ Compiler
13073           # _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"
13074           ;;
13075         esac
13076         ;;
13077       dgux*)
13078         case $cc_basename in
13079           ec++*)
13080             lt_prog_compiler_pic_CXX='-KPIC'
13081             ;;
13082           ghcx*)
13083             # Green Hills C++ Compiler
13084             lt_prog_compiler_pic_CXX='-pic'
13085             ;;
13086           *)
13087             ;;
13088         esac
13089         ;;
13090       freebsd* | dragonfly*)
13091         # FreeBSD uses GNU C++
13092         ;;
13093       hpux9* | hpux10* | hpux11*)
13094         case $cc_basename in
13095           CC*)
13096             lt_prog_compiler_wl_CXX='-Wl,'
13097             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13098             if test "$host_cpu" != ia64; then
13099               lt_prog_compiler_pic_CXX='+Z'
13100             fi
13101             ;;
13102           aCC*)
13103             lt_prog_compiler_wl_CXX='-Wl,'
13104             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13105             case $host_cpu in
13106             hppa*64*|ia64*)
13107               # +Z the default
13108               ;;
13109             *)
13110               lt_prog_compiler_pic_CXX='+Z'
13111               ;;
13112             esac
13113             ;;
13114           *)
13115             ;;
13116         esac
13117         ;;
13118       interix*)
13119         # This is c89, which is MS Visual C++ (no shared libs)
13120         # Anyone wants to do a port?
13121         ;;
13122       irix5* | irix6* | nonstopux*)
13123         case $cc_basename in
13124           CC*)
13125             lt_prog_compiler_wl_CXX='-Wl,'
13126             lt_prog_compiler_static_CXX='-non_shared'
13127             # CC pic flag -KPIC is the default.
13128             ;;
13129           *)
13130             ;;
13131         esac
13132         ;;
13133       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13134         case $cc_basename in
13135           KCC*)
13136             # KAI C++ Compiler
13137             lt_prog_compiler_wl_CXX='--backend -Wl,'
13138             lt_prog_compiler_pic_CXX='-fPIC'
13139             ;;
13140           ecpc* )
13141             # old Intel C++ for x86_64 which still supported -KPIC.
13142             lt_prog_compiler_wl_CXX='-Wl,'
13143             lt_prog_compiler_pic_CXX='-KPIC'
13144             lt_prog_compiler_static_CXX='-static'
13145             ;;
13146           icpc* )
13147             # Intel C++, used to be incompatible with GCC.
13148             # ICC 10 doesn't accept -KPIC any more.
13149             lt_prog_compiler_wl_CXX='-Wl,'
13150             lt_prog_compiler_pic_CXX='-fPIC'
13151             lt_prog_compiler_static_CXX='-static'
13152             ;;
13153           pgCC* | pgcpp*)
13154             # Portland Group C++ compiler
13155             lt_prog_compiler_wl_CXX='-Wl,'
13156             lt_prog_compiler_pic_CXX='-fpic'
13157             lt_prog_compiler_static_CXX='-Bstatic'
13158             ;;
13159           cxx*)
13160             # Compaq C++
13161             # Make sure the PIC flag is empty.  It appears that all Alpha
13162             # Linux and Compaq Tru64 Unix objects are PIC.
13163             lt_prog_compiler_pic_CXX=
13164             lt_prog_compiler_static_CXX='-non_shared'
13165             ;;
13166           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13167             # IBM XL 8.0, 9.0 on PPC and BlueGene
13168             lt_prog_compiler_wl_CXX='-Wl,'
13169             lt_prog_compiler_pic_CXX='-qpic'
13170             lt_prog_compiler_static_CXX='-qstaticlink'
13171             ;;
13172           *)
13173             case `$CC -V 2>&1 | sed 5q` in
13174             *Sun\ C*)
13175               # Sun C++ 5.9
13176               lt_prog_compiler_pic_CXX='-KPIC'
13177               lt_prog_compiler_static_CXX='-Bstatic'
13178               lt_prog_compiler_wl_CXX='-Qoption ld '
13179               ;;
13180             esac
13181             ;;
13182         esac
13183         ;;
13184       lynxos*)
13185         ;;
13186       m88k*)
13187         ;;
13188       mvs*)
13189         case $cc_basename in
13190           cxx*)
13191             lt_prog_compiler_pic_CXX='-W c,exportall'
13192             ;;
13193           *)
13194             ;;
13195         esac
13196         ;;
13197       netbsd*)
13198         ;;
13199       *qnx* | *nto*)
13200         # QNX uses GNU C++, but need to define -shared option too, otherwise
13201         # it will coredump.
13202         lt_prog_compiler_pic_CXX='-fPIC -shared'
13203         ;;
13204       osf3* | osf4* | osf5*)
13205         case $cc_basename in
13206           KCC*)
13207             lt_prog_compiler_wl_CXX='--backend -Wl,'
13208             ;;
13209           RCC*)
13210             # Rational C++ 2.4.1
13211             lt_prog_compiler_pic_CXX='-pic'
13212             ;;
13213           cxx*)
13214             # Digital/Compaq C++
13215             lt_prog_compiler_wl_CXX='-Wl,'
13216             # Make sure the PIC flag is empty.  It appears that all Alpha
13217             # Linux and Compaq Tru64 Unix objects are PIC.
13218             lt_prog_compiler_pic_CXX=
13219             lt_prog_compiler_static_CXX='-non_shared'
13220             ;;
13221           *)
13222             ;;
13223         esac
13224         ;;
13225       psos*)
13226         ;;
13227       solaris*)
13228         case $cc_basename in
13229           CC*)
13230             # Sun C++ 4.2, 5.x and Centerline C++
13231             lt_prog_compiler_pic_CXX='-KPIC'
13232             lt_prog_compiler_static_CXX='-Bstatic'
13233             lt_prog_compiler_wl_CXX='-Qoption ld '
13234             ;;
13235           gcx*)
13236             # Green Hills C++ Compiler
13237             lt_prog_compiler_pic_CXX='-PIC'
13238             ;;
13239           *)
13240             ;;
13241         esac
13242         ;;
13243       sunos4*)
13244         case $cc_basename in
13245           CC*)
13246             # Sun C++ 4.x
13247             lt_prog_compiler_pic_CXX='-pic'
13248             lt_prog_compiler_static_CXX='-Bstatic'
13249             ;;
13250           lcc*)
13251             # Lucid
13252             lt_prog_compiler_pic_CXX='-pic'
13253             ;;
13254           *)
13255             ;;
13256         esac
13257         ;;
13258       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13259         case $cc_basename in
13260           CC*)
13261             lt_prog_compiler_wl_CXX='-Wl,'
13262             lt_prog_compiler_pic_CXX='-KPIC'
13263             lt_prog_compiler_static_CXX='-Bstatic'
13264             ;;
13265         esac
13266         ;;
13267       tandem*)
13268         case $cc_basename in
13269           NCC*)
13270             # NonStop-UX NCC 3.20
13271             lt_prog_compiler_pic_CXX='-KPIC'
13272             ;;
13273           *)
13274             ;;
13275         esac
13276         ;;
13277       vxworks*)
13278         ;;
13279       *)
13280         lt_prog_compiler_can_build_shared_CXX=no
13281         ;;
13282     esac
13283   fi
13284
13285 case $host_os in
13286   # For platforms which do not support PIC, -DPIC is meaningless:
13287   *djgpp*)
13288     lt_prog_compiler_pic_CXX=
13289     ;;
13290   *)
13291     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13292     ;;
13293 esac
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13295 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13296
13297
13298
13299 #
13300 # Check to make sure the PIC flag actually works.
13301 #
13302 if test -n "$lt_prog_compiler_pic_CXX"; then
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13304 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13305 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   lt_cv_prog_compiler_pic_works_CXX=no
13309    ac_outfile=conftest.$ac_objext
13310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13311    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13312    # Insert the option either (1) after the last *FLAGS variable, or
13313    # (2) before a word containing "conftest.", or (3) at the end.
13314    # Note that $ac_compile itself does not contain backslashes and begins
13315    # with a dollar sign (not a hyphen), so the echo should work correctly.
13316    # The option is referenced via a variable to avoid confusing sed.
13317    lt_compile=`echo "$ac_compile" | $SED \
13318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13320    -e 's:$: $lt_compiler_flag:'`
13321    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13322    (eval "$lt_compile" 2>conftest.err)
13323    ac_status=$?
13324    cat conftest.err >&5
13325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326    if (exit $ac_status) && test -s "$ac_outfile"; then
13327      # The compiler can only warn and ignore the option if not recognized
13328      # So say no if there are warnings other than the usual output.
13329      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13330      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13331      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13332        lt_cv_prog_compiler_pic_works_CXX=yes
13333      fi
13334    fi
13335    $RM conftest*
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13339 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13340
13341 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13342     case $lt_prog_compiler_pic_CXX in
13343      "" | " "*) ;;
13344      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13345      esac
13346 else
13347     lt_prog_compiler_pic_CXX=
13348      lt_prog_compiler_can_build_shared_CXX=no
13349 fi
13350
13351 fi
13352
13353
13354
13355 #
13356 # Check to make sure the static flag actually works.
13357 #
13358 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13360 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13361 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   lt_cv_prog_compiler_static_works_CXX=no
13365    save_LDFLAGS="$LDFLAGS"
13366    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13367    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13368    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13369      # The linker can only warn and ignore the option if not recognized
13370      # So say no if there are warnings
13371      if test -s conftest.err; then
13372        # Append any errors to the config.log.
13373        cat conftest.err 1>&5
13374        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13375        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13376        if diff conftest.exp conftest.er2 >/dev/null; then
13377          lt_cv_prog_compiler_static_works_CXX=yes
13378        fi
13379      else
13380        lt_cv_prog_compiler_static_works_CXX=yes
13381      fi
13382    fi
13383    $RM -r conftest*
13384    LDFLAGS="$save_LDFLAGS"
13385
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13388 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13389
13390 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13391     :
13392 else
13393     lt_prog_compiler_static_CXX=
13394 fi
13395
13396
13397
13398
13399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13401 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   lt_cv_prog_compiler_c_o_CXX=no
13405    $RM -r conftest 2>/dev/null
13406    mkdir conftest
13407    cd conftest
13408    mkdir out
13409    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13410
13411    lt_compiler_flag="-o out/conftest2.$ac_objext"
13412    # Insert the option either (1) after the last *FLAGS variable, or
13413    # (2) before a word containing "conftest.", or (3) at the end.
13414    # Note that $ac_compile itself does not contain backslashes and begins
13415    # with a dollar sign (not a hyphen), so the echo should work correctly.
13416    lt_compile=`echo "$ac_compile" | $SED \
13417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13419    -e 's:$: $lt_compiler_flag:'`
13420    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13421    (eval "$lt_compile" 2>out/conftest.err)
13422    ac_status=$?
13423    cat out/conftest.err >&5
13424    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13426    then
13427      # The compiler can only warn and ignore the option if not recognized
13428      # So say no if there are warnings
13429      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13430      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13431      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13432        lt_cv_prog_compiler_c_o_CXX=yes
13433      fi
13434    fi
13435    chmod u+w . 2>&5
13436    $RM conftest*
13437    # SGI C++ compiler will create directory out/ii_files/ for
13438    # template instantiation
13439    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13440    $RM out/* && rmdir out
13441    cd ..
13442    $RM -r conftest
13443    $RM conftest*
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13447 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13448
13449
13450
13451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   lt_cv_prog_compiler_c_o_CXX=no
13457    $RM -r conftest 2>/dev/null
13458    mkdir conftest
13459    cd conftest
13460    mkdir out
13461    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
13463    lt_compiler_flag="-o out/conftest2.$ac_objext"
13464    # Insert the option either (1) after the last *FLAGS variable, or
13465    # (2) before a word containing "conftest.", or (3) at the end.
13466    # Note that $ac_compile itself does not contain backslashes and begins
13467    # with a dollar sign (not a hyphen), so the echo should work correctly.
13468    lt_compile=`echo "$ac_compile" | $SED \
13469    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471    -e 's:$: $lt_compiler_flag:'`
13472    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13473    (eval "$lt_compile" 2>out/conftest.err)
13474    ac_status=$?
13475    cat out/conftest.err >&5
13476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478    then
13479      # The compiler can only warn and ignore the option if not recognized
13480      # So say no if there are warnings
13481      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13482      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13483      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13484        lt_cv_prog_compiler_c_o_CXX=yes
13485      fi
13486    fi
13487    chmod u+w . 2>&5
13488    $RM conftest*
13489    # SGI C++ compiler will create directory out/ii_files/ for
13490    # template instantiation
13491    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13492    $RM out/* && rmdir out
13493    cd ..
13494    $RM -r conftest
13495    $RM conftest*
13496
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13499 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13500
13501
13502
13503
13504 hard_links="nottested"
13505 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13506   # do not overwrite the value of need_locks provided by the user
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13508 $as_echo_n "checking if we can lock with hard links... " >&6; }
13509   hard_links=yes
13510   $RM conftest*
13511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13512   touch conftest.a
13513   ln conftest.a conftest.b 2>&5 || hard_links=no
13514   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13516 $as_echo "$hard_links" >&6; }
13517   if test "$hard_links" = no; then
13518     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13519 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13520     need_locks=warn
13521   fi
13522 else
13523   need_locks=no
13524 fi
13525
13526
13527
13528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13530
13531   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532   case $host_os in
13533   aix[4-9]*)
13534     # If we're using GNU nm, then we don't want the "-C" option.
13535     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536     # Also, AIX nm treats weak defined symbols like other global defined
13537     # symbols, whereas GNU nm marks them as "W".
13538     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13539       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'
13540     else
13541       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'
13542     fi
13543     ;;
13544   pw32*)
13545     export_symbols_cmds_CXX="$ltdll_cmds"
13546   ;;
13547   cygwin* | mingw* | cegcc*)
13548     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'
13549   ;;
13550   *)
13551     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13552   ;;
13553   esac
13554   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13557 $as_echo "$ld_shlibs_CXX" >&6; }
13558 test "$ld_shlibs_CXX" = no && can_build_shared=no
13559
13560 with_gnu_ld_CXX=$with_gnu_ld
13561
13562
13563
13564
13565
13566
13567 #
13568 # Do we need to explicitly link libc?
13569 #
13570 case "x$archive_cmds_need_lc_CXX" in
13571 x|xyes)
13572   # Assume -lc should be added
13573   archive_cmds_need_lc_CXX=yes
13574
13575   if test "$enable_shared" = yes && test "$GCC" = yes; then
13576     case $archive_cmds_CXX in
13577     *'~'*)
13578       # FIXME: we may have to deal with multi-command sequences.
13579       ;;
13580     '$CC '*)
13581       # Test whether the compiler implicitly links with -lc since on some
13582       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583       # to ld, don't add -lc before -lgcc.
13584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13585 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13586 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   $RM conftest*
13590         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13591
13592         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13593   (eval $ac_compile) 2>&5
13594   ac_status=$?
13595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596   test $ac_status = 0; } 2>conftest.err; then
13597           soname=conftest
13598           lib=conftest
13599           libobjs=conftest.$ac_objext
13600           deplibs=
13601           wl=$lt_prog_compiler_wl_CXX
13602           pic_flag=$lt_prog_compiler_pic_CXX
13603           compiler_flags=-v
13604           linker_flags=-v
13605           verstring=
13606           output_objdir=.
13607           libname=conftest
13608           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13609           allow_undefined_flag_CXX=
13610           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13611   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612   ac_status=$?
13613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614   test $ac_status = 0; }
13615           then
13616             lt_cv_archive_cmds_need_lc_CXX=no
13617           else
13618             lt_cv_archive_cmds_need_lc_CXX=yes
13619           fi
13620           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13621         else
13622           cat conftest.err 1>&5
13623         fi
13624         $RM conftest*
13625
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13628 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13629       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13630       ;;
13631     esac
13632   fi
13633   ;;
13634 esac
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13700 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13701
13702 library_names_spec=
13703 libname_spec='lib$name'
13704 soname_spec=
13705 shrext_cmds=".so"
13706 postinstall_cmds=
13707 postuninstall_cmds=
13708 finish_cmds=
13709 finish_eval=
13710 shlibpath_var=
13711 shlibpath_overrides_runpath=unknown
13712 version_type=none
13713 dynamic_linker="$host_os ld.so"
13714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13715 need_lib_prefix=unknown
13716 hardcode_into_libs=no
13717
13718 # when you set need_version to no, make sure it does not cause -set_version
13719 # flags to be left without arguments
13720 need_version=unknown
13721
13722 case $host_os in
13723 aix3*)
13724   version_type=linux
13725   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13726   shlibpath_var=LIBPATH
13727
13728   # AIX 3 has no versioning support, so we append a major version to the name.
13729   soname_spec='${libname}${release}${shared_ext}$major'
13730   ;;
13731
13732 aix[4-9]*)
13733   version_type=linux
13734   need_lib_prefix=no
13735   need_version=no
13736   hardcode_into_libs=yes
13737   if test "$host_cpu" = ia64; then
13738     # AIX 5 supports IA64
13739     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13740     shlibpath_var=LD_LIBRARY_PATH
13741   else
13742     # With GCC up to 2.95.x, collect2 would create an import file
13743     # for dependence libraries.  The import file would start with
13744     # the line `#! .'.  This would cause the generated library to
13745     # depend on `.', always an invalid library.  This was fixed in
13746     # development snapshots of GCC prior to 3.0.
13747     case $host_os in
13748       aix4 | aix4.[01] | aix4.[01].*)
13749       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13750            echo ' yes '
13751            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13752         :
13753       else
13754         can_build_shared=no
13755       fi
13756       ;;
13757     esac
13758     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13759     # soname into executable. Probably we can add versioning support to
13760     # collect2, so additional links can be useful in future.
13761     if test "$aix_use_runtimelinking" = yes; then
13762       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13763       # instead of lib<name>.a to let people know that these are not
13764       # typical AIX shared libraries.
13765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766     else
13767       # We preserve .a as extension for shared libraries through AIX4.2
13768       # and later when we are not doing run time linking.
13769       library_names_spec='${libname}${release}.a $libname.a'
13770       soname_spec='${libname}${release}${shared_ext}$major'
13771     fi
13772     shlibpath_var=LIBPATH
13773   fi
13774   ;;
13775
13776 amigaos*)
13777   case $host_cpu in
13778   powerpc)
13779     # Since July 2007 AmigaOS4 officially supports .so libraries.
13780     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782     ;;
13783   m68k)
13784     library_names_spec='$libname.ixlibrary $libname.a'
13785     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13786     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'
13787     ;;
13788   esac
13789   ;;
13790
13791 beos*)
13792   library_names_spec='${libname}${shared_ext}'
13793   dynamic_linker="$host_os ld.so"
13794   shlibpath_var=LIBRARY_PATH
13795   ;;
13796
13797 bsdi[45]*)
13798   version_type=linux
13799   need_version=no
13800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801   soname_spec='${libname}${release}${shared_ext}$major'
13802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803   shlibpath_var=LD_LIBRARY_PATH
13804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806   # the default ld.so.conf also contains /usr/contrib/lib and
13807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808   # libtool to hard-code these into programs
13809   ;;
13810
13811 cygwin* | mingw* | pw32* | cegcc*)
13812   version_type=windows
13813   shrext_cmds=".dll"
13814   need_version=no
13815   need_lib_prefix=no
13816
13817   case $GCC,$host_os in
13818   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13819     library_names_spec='$libname.dll.a'
13820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821     postinstall_cmds='base_file=`basename \${file}`~
13822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13823       dldir=$destdir/`dirname \$dlpath`~
13824       test -d \$dldir || mkdir -p \$dldir~
13825       $install_prog $dir/$dlname \$dldir/$dlname~
13826       chmod a+x \$dldir/$dlname~
13827       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13828         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13829       fi'
13830     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831       dlpath=$dir/\$dldll~
13832        $RM \$dlpath'
13833     shlibpath_overrides_runpath=yes
13834
13835     case $host_os in
13836     cygwin*)
13837       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839
13840       ;;
13841     mingw* | cegcc*)
13842       # MinGW DLLs use traditional 'lib' prefix
13843       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844       ;;
13845     pw32*)
13846       # pw32 DLLs use 'pw' prefix rather than 'lib'
13847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848       ;;
13849     esac
13850     ;;
13851
13852   *)
13853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13854     ;;
13855   esac
13856   dynamic_linker='Win32 ld.exe'
13857   # FIXME: first we should search . and the directory the executable is in
13858   shlibpath_var=PATH
13859   ;;
13860
13861 darwin* | rhapsody*)
13862   dynamic_linker="$host_os dyld"
13863   version_type=darwin
13864   need_lib_prefix=no
13865   need_version=no
13866   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867   soname_spec='${libname}${release}${major}$shared_ext'
13868   shlibpath_overrides_runpath=yes
13869   shlibpath_var=DYLD_LIBRARY_PATH
13870   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13871
13872   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13873   ;;
13874
13875 dgux*)
13876   version_type=linux
13877   need_lib_prefix=no
13878   need_version=no
13879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13880   soname_spec='${libname}${release}${shared_ext}$major'
13881   shlibpath_var=LD_LIBRARY_PATH
13882   ;;
13883
13884 freebsd* | dragonfly*)
13885   # DragonFly does not have aout.  When/if they implement a new
13886   # versioning mechanism, adjust this.
13887   if test -x /usr/bin/objformat; then
13888     objformat=`/usr/bin/objformat`
13889   else
13890     case $host_os in
13891     freebsd[23].*) objformat=aout ;;
13892     *) objformat=elf ;;
13893     esac
13894   fi
13895   version_type=freebsd-$objformat
13896   case $version_type in
13897     freebsd-elf*)
13898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13899       need_version=no
13900       need_lib_prefix=no
13901       ;;
13902     freebsd-*)
13903       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13904       need_version=yes
13905       ;;
13906   esac
13907   shlibpath_var=LD_LIBRARY_PATH
13908   case $host_os in
13909   freebsd2.*)
13910     shlibpath_overrides_runpath=yes
13911     ;;
13912   freebsd3.[01]* | freebsdelf3.[01]*)
13913     shlibpath_overrides_runpath=yes
13914     hardcode_into_libs=yes
13915     ;;
13916   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13917   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13918     shlibpath_overrides_runpath=no
13919     hardcode_into_libs=yes
13920     ;;
13921   *) # from 4.6 on, and DragonFly
13922     shlibpath_overrides_runpath=yes
13923     hardcode_into_libs=yes
13924     ;;
13925   esac
13926   ;;
13927
13928 gnu*)
13929   version_type=linux
13930   need_lib_prefix=no
13931   need_version=no
13932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13933   soname_spec='${libname}${release}${shared_ext}$major'
13934   shlibpath_var=LD_LIBRARY_PATH
13935   hardcode_into_libs=yes
13936   ;;
13937
13938 haiku*)
13939   version_type=linux
13940   need_lib_prefix=no
13941   need_version=no
13942   dynamic_linker="$host_os runtime_loader"
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13944   soname_spec='${libname}${release}${shared_ext}$major'
13945   shlibpath_var=LIBRARY_PATH
13946   shlibpath_overrides_runpath=yes
13947   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13948   hardcode_into_libs=yes
13949   ;;
13950
13951 hpux9* | hpux10* | hpux11*)
13952   # Give a soname corresponding to the major version so that dld.sl refuses to
13953   # link against other versions.
13954   version_type=sunos
13955   need_lib_prefix=no
13956   need_version=no
13957   case $host_cpu in
13958   ia64*)
13959     shrext_cmds='.so'
13960     hardcode_into_libs=yes
13961     dynamic_linker="$host_os dld.so"
13962     shlibpath_var=LD_LIBRARY_PATH
13963     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965     soname_spec='${libname}${release}${shared_ext}$major'
13966     if test "X$HPUX_IA64_MODE" = X32; then
13967       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13968     else
13969       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13970     fi
13971     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972     ;;
13973   hppa*64*)
13974     shrext_cmds='.sl'
13975     hardcode_into_libs=yes
13976     dynamic_linker="$host_os dld.sl"
13977     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980     soname_spec='${libname}${release}${shared_ext}$major'
13981     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13982     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13983     ;;
13984   *)
13985     shrext_cmds='.sl'
13986     dynamic_linker="$host_os dld.sl"
13987     shlibpath_var=SHLIB_PATH
13988     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990     soname_spec='${libname}${release}${shared_ext}$major'
13991     ;;
13992   esac
13993   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13994   postinstall_cmds='chmod 555 $lib'
13995   # or fails outright, so override atomically:
13996   install_override_mode=555
13997   ;;
13998
13999 interix[3-9]*)
14000   version_type=linux
14001   need_lib_prefix=no
14002   need_version=no
14003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14004   soname_spec='${libname}${release}${shared_ext}$major'
14005   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14006   shlibpath_var=LD_LIBRARY_PATH
14007   shlibpath_overrides_runpath=no
14008   hardcode_into_libs=yes
14009   ;;
14010
14011 irix5* | irix6* | nonstopux*)
14012   case $host_os in
14013     nonstopux*) version_type=nonstopux ;;
14014     *)
14015         if test "$lt_cv_prog_gnu_ld" = yes; then
14016                 version_type=linux
14017         else
14018                 version_type=irix
14019         fi ;;
14020   esac
14021   need_lib_prefix=no
14022   need_version=no
14023   soname_spec='${libname}${release}${shared_ext}$major'
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14025   case $host_os in
14026   irix5* | nonstopux*)
14027     libsuff= shlibsuff=
14028     ;;
14029   *)
14030     case $LD in # libtool.m4 will add one of these switches to LD
14031     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14032       libsuff= shlibsuff= libmagic=32-bit;;
14033     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14034       libsuff=32 shlibsuff=N32 libmagic=N32;;
14035     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14036       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14037     *) libsuff= shlibsuff= libmagic=never-match;;
14038     esac
14039     ;;
14040   esac
14041   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14042   shlibpath_overrides_runpath=no
14043   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14044   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14045   hardcode_into_libs=yes
14046   ;;
14047
14048 # No shared lib support for Linux oldld, aout, or coff.
14049 linux*oldld* | linux*aout* | linux*coff*)
14050   dynamic_linker=no
14051   ;;
14052
14053 # This must be Linux ELF.
14054 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14055   version_type=linux
14056   need_lib_prefix=no
14057   need_version=no
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   soname_spec='${libname}${release}${shared_ext}$major'
14060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14061   shlibpath_var=LD_LIBRARY_PATH
14062   shlibpath_overrides_runpath=no
14063
14064   # Some binutils ld are patched to set DT_RUNPATH
14065   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14066   $as_echo_n "(cached) " >&6
14067 else
14068   lt_cv_shlibpath_overrides_runpath=no
14069     save_LDFLAGS=$LDFLAGS
14070     save_libdir=$libdir
14071     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14072          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h.  */
14075
14076 int
14077 main ()
14078 {
14079
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 if ac_fn_cxx_try_link "$LINENO"; then :
14085   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14086   lt_cv_shlibpath_overrides_runpath=yes
14087 fi
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext \
14090     conftest$ac_exeext conftest.$ac_ext
14091     LDFLAGS=$save_LDFLAGS
14092     libdir=$save_libdir
14093
14094 fi
14095
14096   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14097
14098   # This implies no fast_install, which is unacceptable.
14099   # Some rework will be needed to allow for fast_install
14100   # before this can be enabled.
14101   hardcode_into_libs=yes
14102
14103   # Append ld.so.conf contents to the search path
14104   if test -f /etc/ld.so.conf; then
14105     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' ' '`
14106     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14107   fi
14108
14109   # We used to test for /lib/ld.so.1 and disable shared libraries on
14110   # powerpc, because MkLinux only supported shared libraries with the
14111   # GNU dynamic linker.  Since this was broken with cross compilers,
14112   # most powerpc-linux boxes support dynamic linking these days and
14113   # people can always --disable-shared, the test was removed, and we
14114   # assume the GNU/Linux dynamic linker is in use.
14115   dynamic_linker='GNU/Linux ld.so'
14116   ;;
14117
14118 netbsd*)
14119   version_type=sunos
14120   need_lib_prefix=no
14121   need_version=no
14122   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14124     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14125     dynamic_linker='NetBSD (a.out) ld.so'
14126   else
14127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14128     soname_spec='${libname}${release}${shared_ext}$major'
14129     dynamic_linker='NetBSD ld.elf_so'
14130   fi
14131   shlibpath_var=LD_LIBRARY_PATH
14132   shlibpath_overrides_runpath=yes
14133   hardcode_into_libs=yes
14134   ;;
14135
14136 newsos6)
14137   version_type=linux
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139   shlibpath_var=LD_LIBRARY_PATH
14140   shlibpath_overrides_runpath=yes
14141   ;;
14142
14143 *nto* | *qnx*)
14144   version_type=qnx
14145   need_lib_prefix=no
14146   need_version=no
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148   soname_spec='${libname}${release}${shared_ext}$major'
14149   shlibpath_var=LD_LIBRARY_PATH
14150   shlibpath_overrides_runpath=no
14151   hardcode_into_libs=yes
14152   dynamic_linker='ldqnx.so'
14153   ;;
14154
14155 openbsd*)
14156   version_type=sunos
14157   sys_lib_dlsearch_path_spec="/usr/lib"
14158   need_lib_prefix=no
14159   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14160   case $host_os in
14161     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14162     *)                          need_version=no  ;;
14163   esac
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14168     case $host_os in
14169       openbsd2.[89] | openbsd2.[89].*)
14170         shlibpath_overrides_runpath=no
14171         ;;
14172       *)
14173         shlibpath_overrides_runpath=yes
14174         ;;
14175       esac
14176   else
14177     shlibpath_overrides_runpath=yes
14178   fi
14179   ;;
14180
14181 os2*)
14182   libname_spec='$name'
14183   shrext_cmds=".dll"
14184   need_lib_prefix=no
14185   library_names_spec='$libname${shared_ext} $libname.a'
14186   dynamic_linker='OS/2 ld.exe'
14187   shlibpath_var=LIBPATH
14188   ;;
14189
14190 osf3* | osf4* | osf5*)
14191   version_type=osf
14192   need_lib_prefix=no
14193   need_version=no
14194   soname_spec='${libname}${release}${shared_ext}$major'
14195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14198   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14199   ;;
14200
14201 rdos*)
14202   dynamic_linker=no
14203   ;;
14204
14205 solaris*)
14206   version_type=linux
14207   need_lib_prefix=no
14208   need_version=no
14209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14210   soname_spec='${libname}${release}${shared_ext}$major'
14211   shlibpath_var=LD_LIBRARY_PATH
14212   shlibpath_overrides_runpath=yes
14213   hardcode_into_libs=yes
14214   # ldd complains unless libraries are executable
14215   postinstall_cmds='chmod +x $lib'
14216   ;;
14217
14218 sunos4*)
14219   version_type=sunos
14220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14221   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14222   shlibpath_var=LD_LIBRARY_PATH
14223   shlibpath_overrides_runpath=yes
14224   if test "$with_gnu_ld" = yes; then
14225     need_lib_prefix=no
14226   fi
14227   need_version=yes
14228   ;;
14229
14230 sysv4 | sysv4.3*)
14231   version_type=linux
14232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233   soname_spec='${libname}${release}${shared_ext}$major'
14234   shlibpath_var=LD_LIBRARY_PATH
14235   case $host_vendor in
14236     sni)
14237       shlibpath_overrides_runpath=no
14238       need_lib_prefix=no
14239       runpath_var=LD_RUN_PATH
14240       ;;
14241     siemens)
14242       need_lib_prefix=no
14243       ;;
14244     motorola)
14245       need_lib_prefix=no
14246       need_version=no
14247       shlibpath_overrides_runpath=no
14248       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14249       ;;
14250   esac
14251   ;;
14252
14253 sysv4*MP*)
14254   if test -d /usr/nec ;then
14255     version_type=linux
14256     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14257     soname_spec='$libname${shared_ext}.$major'
14258     shlibpath_var=LD_LIBRARY_PATH
14259   fi
14260   ;;
14261
14262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14263   version_type=freebsd-elf
14264   need_lib_prefix=no
14265   need_version=no
14266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14267   soname_spec='${libname}${release}${shared_ext}$major'
14268   shlibpath_var=LD_LIBRARY_PATH
14269   shlibpath_overrides_runpath=yes
14270   hardcode_into_libs=yes
14271   if test "$with_gnu_ld" = yes; then
14272     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14273   else
14274     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14275     case $host_os in
14276       sco3.2v5*)
14277         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14278         ;;
14279     esac
14280   fi
14281   sys_lib_dlsearch_path_spec='/usr/lib'
14282   ;;
14283
14284 tpf*)
14285   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14286   version_type=linux
14287   need_lib_prefix=no
14288   need_version=no
14289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290   shlibpath_var=LD_LIBRARY_PATH
14291   shlibpath_overrides_runpath=no
14292   hardcode_into_libs=yes
14293   ;;
14294
14295 uts4*)
14296   version_type=linux
14297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298   soname_spec='${libname}${release}${shared_ext}$major'
14299   shlibpath_var=LD_LIBRARY_PATH
14300   ;;
14301
14302 *)
14303   dynamic_linker=no
14304   ;;
14305 esac
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14307 $as_echo "$dynamic_linker" >&6; }
14308 test "$dynamic_linker" = no && can_build_shared=no
14309
14310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14311 if test "$GCC" = yes; then
14312   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14313 fi
14314
14315 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14316   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14317 fi
14318 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14319   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14320 fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14360 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14361 hardcode_action_CXX=
14362 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14363    test -n "$runpath_var_CXX" ||
14364    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14365
14366   # We can hardcode non-existent directories.
14367   if test "$hardcode_direct_CXX" != no &&
14368      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14369      # have to relink, otherwise we might link with an installed library
14370      # when we should be linking with a yet-to-be-installed one
14371      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14372      test "$hardcode_minus_L_CXX" != no; then
14373     # Linking always hardcodes the temporary library directory.
14374     hardcode_action_CXX=relink
14375   else
14376     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14377     hardcode_action_CXX=immediate
14378   fi
14379 else
14380   # We cannot hardcode anything, or else we can only hardcode existing
14381   # directories.
14382   hardcode_action_CXX=unsupported
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14385 $as_echo "$hardcode_action_CXX" >&6; }
14386
14387 if test "$hardcode_action_CXX" = relink ||
14388    test "$inherit_rpath_CXX" = yes; then
14389   # Fast installation is not supported
14390   enable_fast_install=no
14391 elif test "$shlibpath_overrides_runpath" = yes ||
14392      test "$enable_shared" = no; then
14393   # Fast installation is not necessary
14394   enable_fast_install=needless
14395 fi
14396
14397
14398
14399
14400
14401
14402
14403   fi # test -n "$compiler"
14404
14405   CC=$lt_save_CC
14406   LDCXX=$LD
14407   LD=$lt_save_LD
14408   GCC=$lt_save_GCC
14409   with_gnu_ld=$lt_save_with_gnu_ld
14410   lt_cv_path_LDCXX=$lt_cv_path_LD
14411   lt_cv_path_LD=$lt_save_path_LD
14412   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14413   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14414 fi # test "$_lt_caught_CXX_error" != yes
14415
14416 ac_ext=c
14417 ac_cpp='$CPP $CPPFLAGS'
14418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434         ac_config_commands="$ac_config_commands libtool"
14435
14436
14437
14438
14439 # Only expand once:
14440
14441
14442
14443
14444
14445
14446 # The cast to long int works around a bug in the HP C Compiler
14447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14449 # This bug is HP SR number 8606223364.
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14451 $as_echo_n "checking size of void *... " >&6; }
14452 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14453   $as_echo_n "(cached) " >&6
14454 else
14455   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14456
14457 else
14458   if test "$ac_cv_type_void_p" = yes; then
14459      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14461 { as_fn_set_status 77
14462 as_fn_error "cannot compute sizeof (void *)
14463 See \`config.log' for more details." "$LINENO" 5; }; }
14464    else
14465      ac_cv_sizeof_void_p=0
14466    fi
14467 fi
14468
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14471 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14472
14473
14474
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14477 _ACEOF
14478
14479
14480
14481 if test "${multilib}" = "yes"; then
14482   multilib_arg="--enable-multilib"
14483 else
14484   multilib_arg=
14485 fi
14486
14487 # Get target configury.
14488 unset TSAN_SUPPORTED
14489 . ${srcdir}/configure.tgt
14490  if test "x$TSAN_SUPPORTED" = "xyes"; then
14491   TSAN_SUPPORTED_TRUE=
14492   TSAN_SUPPORTED_FALSE='#'
14493 else
14494   TSAN_SUPPORTED_TRUE='#'
14495   TSAN_SUPPORTED_FALSE=
14496 fi
14497
14498
14499 case "$host" in
14500   *-*-darwin*) MACH_OVERRIDE=true ;;
14501   *) MACH_OVERRIDE=false ;;
14502 esac
14503  if $MACH_OVERRIDE; then
14504   USING_MACH_OVERRIDE_TRUE=
14505   USING_MACH_OVERRIDE_FALSE='#'
14506 else
14507   USING_MACH_OVERRIDE_TRUE='#'
14508   USING_MACH_OVERRIDE_FALSE=
14509 fi
14510
14511
14512 ac_config_files="$ac_config_files Makefile"
14513
14514
14515 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14516
14517
14518 if test "x$TSAN_SUPPORTED" = "xyes"; then
14519   ac_config_files="$ac_config_files tsan/Makefile"
14520
14521 fi
14522
14523 cat >confcache <<\_ACEOF
14524 # This file is a shell script that caches the results of configure
14525 # tests run on this system so they can be shared between configure
14526 # scripts and configure runs, see configure's option --config-cache.
14527 # It is not useful on other systems.  If it contains results you don't
14528 # want to keep, you may remove or edit it.
14529 #
14530 # config.status only pays attention to the cache file if you give it
14531 # the --recheck option to rerun configure.
14532 #
14533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14535 # following values.
14536
14537 _ACEOF
14538
14539 # The following way of writing the cache mishandles newlines in values,
14540 # but we know of no workaround that is simple, portable, and efficient.
14541 # So, we kill variables containing newlines.
14542 # Ultrix sh set writes to stderr and can't be redirected directly,
14543 # and sets the high bit in the cache file unless we assign to the vars.
14544 (
14545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14546     eval ac_val=\$$ac_var
14547     case $ac_val in #(
14548     *${as_nl}*)
14549       case $ac_var in #(
14550       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14552       esac
14553       case $ac_var in #(
14554       _ | IFS | as_nl) ;; #(
14555       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14556       *) { eval $ac_var=; unset $ac_var;} ;;
14557       esac ;;
14558     esac
14559   done
14560
14561   (set) 2>&1 |
14562     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14563     *${as_nl}ac_space=\ *)
14564       # `set' does not quote correctly, so add quotes: double-quote
14565       # substitution turns \\\\ into \\, and sed turns \\ into \.
14566       sed -n \
14567         "s/'/'\\\\''/g;
14568           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14569       ;; #(
14570     *)
14571       # `set' quotes correctly as required by POSIX, so do not add quotes.
14572       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14573       ;;
14574     esac |
14575     sort
14576 ) |
14577   sed '
14578      /^ac_cv_env_/b end
14579      t clear
14580      :clear
14581      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14582      t end
14583      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14584      :end' >>confcache
14585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14586   if test -w "$cache_file"; then
14587     test "x$cache_file" != "x/dev/null" &&
14588       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14589 $as_echo "$as_me: updating cache $cache_file" >&6;}
14590     cat confcache >$cache_file
14591   else
14592     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14594   fi
14595 fi
14596 rm -f confcache
14597
14598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14599 # Let make expand exec_prefix.
14600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14601
14602 # Transform confdefs.h into DEFS.
14603 # Protect against shell expansion while executing Makefile rules.
14604 # Protect against Makefile macro expansion.
14605 #
14606 # If the first sed substitution is executed (which looks for macros that
14607 # take arguments), then branch to the quote section.  Otherwise,
14608 # look for a macro that doesn't take arguments.
14609 ac_script='
14610 :mline
14611 /\\$/{
14612  N
14613  s,\\\n,,
14614  b mline
14615 }
14616 t clear
14617 :clear
14618 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14619 t quote
14620 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14621 t quote
14622 b any
14623 :quote
14624 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14625 s/\[/\\&/g
14626 s/\]/\\&/g
14627 s/\$/$$/g
14628 H
14629 :any
14630 ${
14631         g
14632         s/^\n//
14633         s/\n/ /g
14634         p
14635 }
14636 '
14637 DEFS=`sed -n "$ac_script" confdefs.h`
14638
14639
14640 ac_libobjs=
14641 ac_ltlibobjs=
14642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643   # 1. Remove the extension, and $U if already installed.
14644   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14647   #    will be set to the directory where LIBOBJS objects are built.
14648   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14650 done
14651 LIBOBJS=$ac_libobjs
14652
14653 LTLIBOBJS=$ac_ltlibobjs
14654
14655
14656  if test -n "$EXEEXT"; then
14657   am__EXEEXT_TRUE=
14658   am__EXEEXT_FALSE='#'
14659 else
14660   am__EXEEXT_TRUE='#'
14661   am__EXEEXT_FALSE=
14662 fi
14663
14664 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14665   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14669   as_fn_error "conditional \"AMDEP\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14673   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14677   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 fi
14680 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14681   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 fi
14684 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
14685   as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688 if test -z "${USING_MACH_OVERRIDE_TRUE}" && test -z "${USING_MACH_OVERRIDE_FALSE}"; then
14689   as_fn_error "conditional \"USING_MACH_OVERRIDE\" was never defined.
14690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691 fi
14692
14693 : ${CONFIG_STATUS=./config.status}
14694 ac_write_fail=0
14695 ac_clean_files_save=$ac_clean_files
14696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14699 as_write_fail=0
14700 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14701 #! $SHELL
14702 # Generated by $as_me.
14703 # Run this file to recreate the current configuration.
14704 # Compiler output produced by configure, useful for debugging
14705 # configure, is in config.log if it exists.
14706
14707 debug=false
14708 ac_cs_recheck=false
14709 ac_cs_silent=false
14710
14711 SHELL=\${CONFIG_SHELL-$SHELL}
14712 export SHELL
14713 _ASEOF
14714 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14715 ## -------------------- ##
14716 ## M4sh Initialization. ##
14717 ## -------------------- ##
14718
14719 # Be more Bourne compatible
14720 DUALCASE=1; export DUALCASE # for MKS sh
14721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14722   emulate sh
14723   NULLCMD=:
14724   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14725   # is contrary to our usage.  Disable this feature.
14726   alias -g '${1+"$@"}'='"$@"'
14727   setopt NO_GLOB_SUBST
14728 else
14729   case `(set -o) 2>/dev/null` in #(
14730   *posix*) :
14731     set -o posix ;; #(
14732   *) :
14733      ;;
14734 esac
14735 fi
14736
14737
14738 as_nl='
14739 '
14740 export as_nl
14741 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14742 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14745 # Prefer a ksh shell builtin over an external printf program on Solaris,
14746 # but without wasting forks for bash or zsh.
14747 if test -z "$BASH_VERSION$ZSH_VERSION" \
14748     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14749   as_echo='print -r --'
14750   as_echo_n='print -rn --'
14751 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14752   as_echo='printf %s\n'
14753   as_echo_n='printf %s'
14754 else
14755   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14756     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14757     as_echo_n='/usr/ucb/echo -n'
14758   else
14759     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14760     as_echo_n_body='eval
14761       arg=$1;
14762       case $arg in #(
14763       *"$as_nl"*)
14764         expr "X$arg" : "X\\(.*\\)$as_nl";
14765         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14766       esac;
14767       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14768     '
14769     export as_echo_n_body
14770     as_echo_n='sh -c $as_echo_n_body as_echo'
14771   fi
14772   export as_echo_body
14773   as_echo='sh -c $as_echo_body as_echo'
14774 fi
14775
14776 # The user is always right.
14777 if test "${PATH_SEPARATOR+set}" != set; then
14778   PATH_SEPARATOR=:
14779   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14780     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14781       PATH_SEPARATOR=';'
14782   }
14783 fi
14784
14785
14786 # IFS
14787 # We need space, tab and new line, in precisely that order.  Quoting is
14788 # there to prevent editors from complaining about space-tab.
14789 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14790 # splitting by setting IFS to empty value.)
14791 IFS=" ""        $as_nl"
14792
14793 # Find who we are.  Look in the path if we contain no directory separator.
14794 case $0 in #((
14795   *[\\/]* ) as_myself=$0 ;;
14796   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14798 do
14799   IFS=$as_save_IFS
14800   test -z "$as_dir" && as_dir=.
14801     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14802   done
14803 IFS=$as_save_IFS
14804
14805      ;;
14806 esac
14807 # We did not find ourselves, most probably we were run as `sh COMMAND'
14808 # in which case we are not to be found in the path.
14809 if test "x$as_myself" = x; then
14810   as_myself=$0
14811 fi
14812 if test ! -f "$as_myself"; then
14813   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14814   exit 1
14815 fi
14816
14817 # Unset variables that we do not need and which cause bugs (e.g. in
14818 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14819 # suppresses any "Segmentation fault" message there.  '((' could
14820 # trigger a bug in pdksh 5.2.14.
14821 for as_var in BASH_ENV ENV MAIL MAILPATH
14822 do eval test x\${$as_var+set} = xset \
14823   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14824 done
14825 PS1='$ '
14826 PS2='> '
14827 PS4='+ '
14828
14829 # NLS nuisances.
14830 LC_ALL=C
14831 export LC_ALL
14832 LANGUAGE=C
14833 export LANGUAGE
14834
14835 # CDPATH.
14836 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14837
14838
14839 # as_fn_error ERROR [LINENO LOG_FD]
14840 # ---------------------------------
14841 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14842 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14843 # script with status $?, using 1 if that was 0.
14844 as_fn_error ()
14845 {
14846   as_status=$?; test $as_status -eq 0 && as_status=1
14847   if test "$3"; then
14848     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14849     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14850   fi
14851   $as_echo "$as_me: error: $1" >&2
14852   as_fn_exit $as_status
14853 } # as_fn_error
14854
14855
14856 # as_fn_set_status STATUS
14857 # -----------------------
14858 # Set $? to STATUS, without forking.
14859 as_fn_set_status ()
14860 {
14861   return $1
14862 } # as_fn_set_status
14863
14864 # as_fn_exit STATUS
14865 # -----------------
14866 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14867 as_fn_exit ()
14868 {
14869   set +e
14870   as_fn_set_status $1
14871   exit $1
14872 } # as_fn_exit
14873
14874 # as_fn_unset VAR
14875 # ---------------
14876 # Portably unset VAR.
14877 as_fn_unset ()
14878 {
14879   { eval $1=; unset $1;}
14880 }
14881 as_unset=as_fn_unset
14882 # as_fn_append VAR VALUE
14883 # ----------------------
14884 # Append the text in VALUE to the end of the definition contained in VAR. Take
14885 # advantage of any shell optimizations that allow amortized linear growth over
14886 # repeated appends, instead of the typical quadratic growth present in naive
14887 # implementations.
14888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14889   eval 'as_fn_append ()
14890   {
14891     eval $1+=\$2
14892   }'
14893 else
14894   as_fn_append ()
14895   {
14896     eval $1=\$$1\$2
14897   }
14898 fi # as_fn_append
14899
14900 # as_fn_arith ARG...
14901 # ------------------
14902 # Perform arithmetic evaluation on the ARGs, and store the result in the
14903 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14904 # must be portable across $(()) and expr.
14905 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14906   eval 'as_fn_arith ()
14907   {
14908     as_val=$(( $* ))
14909   }'
14910 else
14911   as_fn_arith ()
14912   {
14913     as_val=`expr "$@" || test $? -eq 1`
14914   }
14915 fi # as_fn_arith
14916
14917
14918 if expr a : '\(a\)' >/dev/null 2>&1 &&
14919    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14920   as_expr=expr
14921 else
14922   as_expr=false
14923 fi
14924
14925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14926   as_basename=basename
14927 else
14928   as_basename=false
14929 fi
14930
14931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14932   as_dirname=dirname
14933 else
14934   as_dirname=false
14935 fi
14936
14937 as_me=`$as_basename -- "$0" ||
14938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14939          X"$0" : 'X\(//\)$' \| \
14940          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14941 $as_echo X/"$0" |
14942     sed '/^.*\/\([^/][^/]*\)\/*$/{
14943             s//\1/
14944             q
14945           }
14946           /^X\/\(\/\/\)$/{
14947             s//\1/
14948             q
14949           }
14950           /^X\/\(\/\).*/{
14951             s//\1/
14952             q
14953           }
14954           s/.*/./; q'`
14955
14956 # Avoid depending upon Character Ranges.
14957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14960 as_cr_digits='0123456789'
14961 as_cr_alnum=$as_cr_Letters$as_cr_digits
14962
14963 ECHO_C= ECHO_N= ECHO_T=
14964 case `echo -n x` in #(((((
14965 -n*)
14966   case `echo 'xy\c'` in
14967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14968   xy)  ECHO_C='\c';;
14969   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14970        ECHO_T=' ';;
14971   esac;;
14972 *)
14973   ECHO_N='-n';;
14974 esac
14975
14976 rm -f conf$$ conf$$.exe conf$$.file
14977 if test -d conf$$.dir; then
14978   rm -f conf$$.dir/conf$$.file
14979 else
14980   rm -f conf$$.dir
14981   mkdir conf$$.dir 2>/dev/null
14982 fi
14983 if (echo >conf$$.file) 2>/dev/null; then
14984   if ln -s conf$$.file conf$$ 2>/dev/null; then
14985     as_ln_s='ln -s'
14986     # ... but there are two gotchas:
14987     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14988     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14989     # In both cases, we have to default to `cp -p'.
14990     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14991       as_ln_s='cp -p'
14992   elif ln conf$$.file conf$$ 2>/dev/null; then
14993     as_ln_s=ln
14994   else
14995     as_ln_s='cp -p'
14996   fi
14997 else
14998   as_ln_s='cp -p'
14999 fi
15000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15001 rmdir conf$$.dir 2>/dev/null
15002
15003
15004 # as_fn_mkdir_p
15005 # -------------
15006 # Create "$as_dir" as a directory, including parents if necessary.
15007 as_fn_mkdir_p ()
15008 {
15009
15010   case $as_dir in #(
15011   -*) as_dir=./$as_dir;;
15012   esac
15013   test -d "$as_dir" || eval $as_mkdir_p || {
15014     as_dirs=
15015     while :; do
15016       case $as_dir in #(
15017       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15018       *) as_qdir=$as_dir;;
15019       esac
15020       as_dirs="'$as_qdir' $as_dirs"
15021       as_dir=`$as_dirname -- "$as_dir" ||
15022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023          X"$as_dir" : 'X\(//\)[^/]' \| \
15024          X"$as_dir" : 'X\(//\)$' \| \
15025          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15026 $as_echo X"$as_dir" |
15027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15028             s//\1/
15029             q
15030           }
15031           /^X\(\/\/\)[^/].*/{
15032             s//\1/
15033             q
15034           }
15035           /^X\(\/\/\)$/{
15036             s//\1/
15037             q
15038           }
15039           /^X\(\/\).*/{
15040             s//\1/
15041             q
15042           }
15043           s/.*/./; q'`
15044       test -d "$as_dir" && break
15045     done
15046     test -z "$as_dirs" || eval "mkdir $as_dirs"
15047   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15048
15049
15050 } # as_fn_mkdir_p
15051 if mkdir -p . 2>/dev/null; then
15052   as_mkdir_p='mkdir -p "$as_dir"'
15053 else
15054   test -d ./-p && rmdir ./-p
15055   as_mkdir_p=false
15056 fi
15057
15058 if test -x / >/dev/null 2>&1; then
15059   as_test_x='test -x'
15060 else
15061   if ls -dL / >/dev/null 2>&1; then
15062     as_ls_L_option=L
15063   else
15064     as_ls_L_option=
15065   fi
15066   as_test_x='
15067     eval sh -c '\''
15068       if test -d "$1"; then
15069         test -d "$1/.";
15070       else
15071         case $1 in #(
15072         -*)set "./$1";;
15073         esac;
15074         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15075         ???[sx]*):;;*)false;;esac;fi
15076     '\'' sh
15077   '
15078 fi
15079 as_executable_p=$as_test_x
15080
15081 # Sed expression to map a string onto a valid CPP name.
15082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15083
15084 # Sed expression to map a string onto a valid variable name.
15085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15086
15087
15088 exec 6>&1
15089 ## ----------------------------------- ##
15090 ## Main body of $CONFIG_STATUS script. ##
15091 ## ----------------------------------- ##
15092 _ASEOF
15093 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15094
15095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096 # Save the log message, to keep $0 and so on meaningful, and to
15097 # report actual input values of CONFIG_FILES etc. instead of their
15098 # values after options handling.
15099 ac_log="
15100 This file was extended by package-unused $as_me version-unused, which was
15101 generated by GNU Autoconf 2.64.  Invocation command line was
15102
15103   CONFIG_FILES    = $CONFIG_FILES
15104   CONFIG_HEADERS  = $CONFIG_HEADERS
15105   CONFIG_LINKS    = $CONFIG_LINKS
15106   CONFIG_COMMANDS = $CONFIG_COMMANDS
15107   $ $0 $@
15108
15109 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15110 "
15111
15112 _ACEOF
15113
15114 case $ac_config_files in *"
15115 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15116 esac
15117
15118
15119
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 # Files that config.status was made for.
15122 config_files="$ac_config_files"
15123 config_commands="$ac_config_commands"
15124
15125 _ACEOF
15126
15127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128 ac_cs_usage="\
15129 \`$as_me' instantiates files and other configuration actions
15130 from templates according to the current configuration.  Unless the files
15131 and actions are specified as TAGs, all are instantiated by default.
15132
15133 Usage: $0 [OPTION]... [TAG]...
15134
15135   -h, --help       print this help, then exit
15136   -V, --version    print version number and configuration settings, then exit
15137   -q, --quiet, --silent
15138                    do not print progress messages
15139   -d, --debug      don't remove temporary files
15140       --recheck    update $as_me by reconfiguring in the same conditions
15141       --file=FILE[:TEMPLATE]
15142                    instantiate the configuration file FILE
15143
15144 Configuration files:
15145 $config_files
15146
15147 Configuration commands:
15148 $config_commands
15149
15150 Report bugs to <libsanitizer>."
15151
15152 _ACEOF
15153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154 ac_cs_version="\\
15155 package-unused config.status version-unused
15156 configured by $0, generated by GNU Autoconf 2.64,
15157   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15158
15159 Copyright (C) 2009 Free Software Foundation, Inc.
15160 This config.status script is free software; the Free Software Foundation
15161 gives unlimited permission to copy, distribute and modify it."
15162
15163 ac_pwd='$ac_pwd'
15164 srcdir='$srcdir'
15165 INSTALL='$INSTALL'
15166 MKDIR_P='$MKDIR_P'
15167 AWK='$AWK'
15168 test -n "\$AWK" || AWK=awk
15169 _ACEOF
15170
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172 # The default lists apply if the user does not specify any file.
15173 ac_need_defaults=:
15174 while test $# != 0
15175 do
15176   case $1 in
15177   --*=*)
15178     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15179     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15180     ac_shift=:
15181     ;;
15182   *)
15183     ac_option=$1
15184     ac_optarg=$2
15185     ac_shift=shift
15186     ;;
15187   esac
15188
15189   case $ac_option in
15190   # Handling of the options.
15191   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15192     ac_cs_recheck=: ;;
15193   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15194     $as_echo "$ac_cs_version"; exit ;;
15195   --debug | --debu | --deb | --de | --d | -d )
15196     debug=: ;;
15197   --file | --fil | --fi | --f )
15198     $ac_shift
15199     case $ac_optarg in
15200     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15201     esac
15202     as_fn_append CONFIG_FILES " '$ac_optarg'"
15203     ac_need_defaults=false;;
15204   --he | --h |  --help | --hel | -h )
15205     $as_echo "$ac_cs_usage"; exit ;;
15206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15207   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15208     ac_cs_silent=: ;;
15209
15210   # This is an error.
15211   -*) as_fn_error "unrecognized option: \`$1'
15212 Try \`$0 --help' for more information." ;;
15213
15214   *) as_fn_append ac_config_targets " $1"
15215      ac_need_defaults=false ;;
15216
15217   esac
15218   shift
15219 done
15220
15221 ac_configure_extra_args=
15222
15223 if $ac_cs_silent; then
15224   exec 6>/dev/null
15225   ac_configure_extra_args="$ac_configure_extra_args --silent"
15226 fi
15227
15228 _ACEOF
15229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15230 if \$ac_cs_recheck; then
15231   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15232   shift
15233   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15234   CONFIG_SHELL='$SHELL'
15235   export CONFIG_SHELL
15236   exec "\$@"
15237 fi
15238
15239 _ACEOF
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 exec 5>>config.log
15242 {
15243   echo
15244   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15245 ## Running $as_me. ##
15246 _ASBOX
15247   $as_echo "$ac_log"
15248 } >&5
15249
15250 _ACEOF
15251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15252 #
15253 # INIT-COMMANDS
15254 #
15255
15256 srcdir="$srcdir"
15257 host="$host"
15258 target="$target"
15259 with_multisubdir="$with_multisubdir"
15260 with_multisrctop="$with_multisrctop"
15261 with_target_subdir="$with_target_subdir"
15262 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15263 multi_basedir="$multi_basedir"
15264 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15265 CC="$CC"
15266 CXX="$CXX"
15267 GFORTRAN="$GFORTRAN"
15268 GCJ="$GCJ"
15269 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15270
15271
15272 # The HP-UX ksh and POSIX shell print the target directory to stdout
15273 # if CDPATH is set.
15274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15275
15276 sed_quote_subst='$sed_quote_subst'
15277 double_quote_subst='$double_quote_subst'
15278 delay_variable_subst='$delay_variable_subst'
15279 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15280 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15281 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15283 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15284 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15285 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15286 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15287 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15288 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15289 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15290 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15291 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15292 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15293 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15294 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15295 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15296 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15297 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15298 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15299 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15300 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15301 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15302 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15303 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15304 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15305 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15306 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15307 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15308 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15309 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15310 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15311 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15312 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15313 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15314 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15315 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15316 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15317 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15318 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15319 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15320 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15321 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15322 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15323 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15324 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15325 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15326 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15327 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"`'
15328 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15329 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15330 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15331 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15332 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15333 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15334 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15335 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15336 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15337 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15338 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15339 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15340 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15341 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15342 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15343 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15344 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15345 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15346 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15347 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15348 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15349 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15350 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15351 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15352 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15353 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15354 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15355 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15356 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15357 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15358 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15359 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15360 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15361 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15362 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15363 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15364 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15365 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15366 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15367 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15368 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15369 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15370 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15371 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15372 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15373 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15374 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15375 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15376 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15377 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15378 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15379 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15380 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15381 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15382 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15383 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15384 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15385 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15386 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15387 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15388 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15389 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15390 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15391 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15392 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15393 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15394 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15395 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15396 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15397 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15398 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15399 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15400 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15401 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15402 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15403 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15404 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15405 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15406 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15407 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15408 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15409 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15410 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15411 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15412 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15413 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15414 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15415 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15416 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15417 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15418 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15419 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15420 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15421 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15422 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15423 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15424 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15425 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15426 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15427 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15428 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15429 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15430 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15431 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15432 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15433 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15434 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15435 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15436 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15437 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15438 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15439 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15440 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15441 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15442 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15443 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15444 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15445 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15446 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15447 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15448 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15449 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15450 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15451 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15452 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15453 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15454
15455 LTCC='$LTCC'
15456 LTCFLAGS='$LTCFLAGS'
15457 compiler='$compiler_DEFAULT'
15458
15459 # A function that is used when there is no print builtin or printf.
15460 func_fallback_echo ()
15461 {
15462   eval 'cat <<_LTECHO_EOF
15463 \$1
15464 _LTECHO_EOF'
15465 }
15466
15467 # Quote evaled strings.
15468 for var in SHELL \
15469 ECHO \
15470 SED \
15471 GREP \
15472 EGREP \
15473 FGREP \
15474 LD \
15475 NM \
15476 LN_S \
15477 lt_SP2NL \
15478 lt_NL2SP \
15479 reload_flag \
15480 OBJDUMP \
15481 deplibs_check_method \
15482 file_magic_cmd \
15483 AR \
15484 AR_FLAGS \
15485 STRIP \
15486 RANLIB \
15487 CC \
15488 CFLAGS \
15489 compiler \
15490 lt_cv_sys_global_symbol_pipe \
15491 lt_cv_sys_global_symbol_to_cdecl \
15492 lt_cv_sys_global_symbol_to_c_name_address \
15493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15494 lt_prog_compiler_no_builtin_flag \
15495 lt_prog_compiler_wl \
15496 lt_prog_compiler_pic \
15497 lt_prog_compiler_static \
15498 lt_cv_prog_compiler_c_o \
15499 need_locks \
15500 DSYMUTIL \
15501 NMEDIT \
15502 LIPO \
15503 OTOOL \
15504 OTOOL64 \
15505 shrext_cmds \
15506 export_dynamic_flag_spec \
15507 whole_archive_flag_spec \
15508 compiler_needs_object \
15509 with_gnu_ld \
15510 allow_undefined_flag \
15511 no_undefined_flag \
15512 hardcode_libdir_flag_spec \
15513 hardcode_libdir_flag_spec_ld \
15514 hardcode_libdir_separator \
15515 fix_srcfile_path \
15516 exclude_expsyms \
15517 include_expsyms \
15518 file_list_spec \
15519 variables_saved_for_relink \
15520 libname_spec \
15521 library_names_spec \
15522 soname_spec \
15523 install_override_mode \
15524 finish_eval \
15525 old_striplib \
15526 striplib \
15527 compiler_lib_search_dirs \
15528 predep_objects \
15529 postdep_objects \
15530 predeps \
15531 postdeps \
15532 compiler_lib_search_path \
15533 LD_CXX \
15534 reload_flag_CXX \
15535 compiler_CXX \
15536 lt_prog_compiler_no_builtin_flag_CXX \
15537 lt_prog_compiler_wl_CXX \
15538 lt_prog_compiler_pic_CXX \
15539 lt_prog_compiler_static_CXX \
15540 lt_cv_prog_compiler_c_o_CXX \
15541 export_dynamic_flag_spec_CXX \
15542 whole_archive_flag_spec_CXX \
15543 compiler_needs_object_CXX \
15544 with_gnu_ld_CXX \
15545 allow_undefined_flag_CXX \
15546 no_undefined_flag_CXX \
15547 hardcode_libdir_flag_spec_CXX \
15548 hardcode_libdir_flag_spec_ld_CXX \
15549 hardcode_libdir_separator_CXX \
15550 fix_srcfile_path_CXX \
15551 exclude_expsyms_CXX \
15552 include_expsyms_CXX \
15553 file_list_spec_CXX \
15554 compiler_lib_search_dirs_CXX \
15555 predep_objects_CXX \
15556 postdep_objects_CXX \
15557 predeps_CXX \
15558 postdeps_CXX \
15559 compiler_lib_search_path_CXX; do
15560     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15561     *[\\\\\\\`\\"\\\$]*)
15562       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15563       ;;
15564     *)
15565       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15566       ;;
15567     esac
15568 done
15569
15570 # Double-quote double-evaled strings.
15571 for var in reload_cmds \
15572 old_postinstall_cmds \
15573 old_postuninstall_cmds \
15574 old_archive_cmds \
15575 extract_expsyms_cmds \
15576 old_archive_from_new_cmds \
15577 old_archive_from_expsyms_cmds \
15578 archive_cmds \
15579 archive_expsym_cmds \
15580 module_cmds \
15581 module_expsym_cmds \
15582 export_symbols_cmds \
15583 prelink_cmds \
15584 postinstall_cmds \
15585 postuninstall_cmds \
15586 finish_cmds \
15587 sys_lib_search_path_spec \
15588 sys_lib_dlsearch_path_spec \
15589 reload_cmds_CXX \
15590 old_archive_cmds_CXX \
15591 old_archive_from_new_cmds_CXX \
15592 old_archive_from_expsyms_cmds_CXX \
15593 archive_cmds_CXX \
15594 archive_expsym_cmds_CXX \
15595 module_cmds_CXX \
15596 module_expsym_cmds_CXX \
15597 export_symbols_cmds_CXX \
15598 prelink_cmds_CXX; do
15599     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15600     *[\\\\\\\`\\"\\\$]*)
15601       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15602       ;;
15603     *)
15604       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15605       ;;
15606     esac
15607 done
15608
15609 ac_aux_dir='$ac_aux_dir'
15610 xsi_shell='$xsi_shell'
15611 lt_shell_append='$lt_shell_append'
15612
15613 # See if we are running on zsh, and set the options which allow our
15614 # commands through without removal of \ escapes INIT.
15615 if test -n "\${ZSH_VERSION+set}" ; then
15616    setopt NO_GLOB_SUBST
15617 fi
15618
15619
15620     PACKAGE='$PACKAGE'
15621     VERSION='$VERSION'
15622     TIMESTAMP='$TIMESTAMP'
15623     RM='$RM'
15624     ofile='$ofile'
15625
15626
15627
15628
15629
15630
15631 _ACEOF
15632
15633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634
15635 # Handling of arguments.
15636 for ac_config_target in $ac_config_targets
15637 do
15638   case $ac_config_target in
15639     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15640     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15641     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15642     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15643     "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15644     "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15645     "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
15646     "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
15647
15648   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15649   esac
15650 done
15651
15652
15653 # If the user did not use the arguments to specify the items to instantiate,
15654 # then the envvar interface is used.  Set only those that are not.
15655 # We use the long form for the default assignment because of an extremely
15656 # bizarre bug on SunOS 4.1.3.
15657 if $ac_need_defaults; then
15658   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15659   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15660 fi
15661
15662 # Have a temporary directory for convenience.  Make it in the build tree
15663 # simply because there is no reason against having it here, and in addition,
15664 # creating and moving files from /tmp can sometimes cause problems.
15665 # Hook for its removal unless debugging.
15666 # Note that there is a small window in which the directory will not be cleaned:
15667 # after its creation but before its name has been assigned to `$tmp'.
15668 $debug ||
15669 {
15670   tmp=
15671   trap 'exit_status=$?
15672   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15673 ' 0
15674   trap 'as_fn_exit 1' 1 2 13 15
15675 }
15676 # Create a (secure) tmp directory for tmp files.
15677
15678 {
15679   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15680   test -n "$tmp" && test -d "$tmp"
15681 }  ||
15682 {
15683   tmp=./conf$$-$RANDOM
15684   (umask 077 && mkdir "$tmp")
15685 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15686
15687 # Set up the scripts for CONFIG_FILES section.
15688 # No need to generate them if there are no CONFIG_FILES.
15689 # This happens for instance with `./config.status config.h'.
15690 if test -n "$CONFIG_FILES"; then
15691
15692
15693 ac_cr=`echo X | tr X '\015'`
15694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15695 # But we know of no other shell where ac_cr would be empty at this
15696 # point, so we can use a bashism as a fallback.
15697 if test "x$ac_cr" = x; then
15698   eval ac_cr=\$\'\\r\'
15699 fi
15700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15702   ac_cs_awk_cr='\r'
15703 else
15704   ac_cs_awk_cr=$ac_cr
15705 fi
15706
15707 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15708 _ACEOF
15709
15710
15711 {
15712   echo "cat >conf$$subs.awk <<_ACEOF" &&
15713   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15714   echo "_ACEOF"
15715 } >conf$$subs.sh ||
15716   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15718 ac_delim='%!_!# '
15719 for ac_last_try in false false false false false :; do
15720   . ./conf$$subs.sh ||
15721     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15722
15723   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15724   if test $ac_delim_n = $ac_delim_num; then
15725     break
15726   elif $ac_last_try; then
15727     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15728   else
15729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15730   fi
15731 done
15732 rm -f conf$$subs.sh
15733
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15736 _ACEOF
15737 sed -n '
15738 h
15739 s/^/S["/; s/!.*/"]=/
15740 p
15741 g
15742 s/^[^!]*!//
15743 :repl
15744 t repl
15745 s/'"$ac_delim"'$//
15746 t delim
15747 :nl
15748 h
15749 s/\(.\{148\}\).*/\1/
15750 t more1
15751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15752 p
15753 n
15754 b repl
15755 :more1
15756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15757 p
15758 g
15759 s/.\{148\}//
15760 t nl
15761 :delim
15762 h
15763 s/\(.\{148\}\).*/\1/
15764 t more2
15765 s/["\\]/\\&/g; s/^/"/; s/$/"/
15766 p
15767 b
15768 :more2
15769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15770 p
15771 g
15772 s/.\{148\}//
15773 t delim
15774 ' <conf$$subs.awk | sed '
15775 /^[^""]/{
15776   N
15777   s/\n//
15778 }
15779 ' >>$CONFIG_STATUS || ac_write_fail=1
15780 rm -f conf$$subs.awk
15781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782 _ACAWK
15783 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15784   for (key in S) S_is_set[key] = 1
15785   FS = "\a"
15786
15787 }
15788 {
15789   line = $ 0
15790   nfields = split(line, field, "@")
15791   substed = 0
15792   len = length(field[1])
15793   for (i = 2; i < nfields; i++) {
15794     key = field[i]
15795     keylen = length(key)
15796     if (S_is_set[key]) {
15797       value = S[key]
15798       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15799       len += length(value) + length(field[++i])
15800       substed = 1
15801     } else
15802       len += 1 + keylen
15803   }
15804
15805   print line
15806 }
15807
15808 _ACAWK
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15812   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15813 else
15814   cat
15815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15816   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15817 _ACEOF
15818
15819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15821 # trailing colons and then remove the whole line if VPATH becomes empty
15822 # (actually we leave an empty line to preserve line numbers).
15823 if test "x$srcdir" = x.; then
15824   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15825 s/:*\$(srcdir):*/:/
15826 s/:*\${srcdir}:*/:/
15827 s/:*@srcdir@:*/:/
15828 s/^\([^=]*=[     ]*\):*/\1/
15829 s/:*$//
15830 s/^[^=]*=[       ]*$//
15831 }'
15832 fi
15833
15834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835 fi # test -n "$CONFIG_FILES"
15836
15837
15838 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15839 shift
15840 for ac_tag
15841 do
15842   case $ac_tag in
15843   :[FHLC]) ac_mode=$ac_tag; continue;;
15844   esac
15845   case $ac_mode$ac_tag in
15846   :[FHL]*:*);;
15847   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15848   :[FH]-) ac_tag=-:-;;
15849   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15850   esac
15851   ac_save_IFS=$IFS
15852   IFS=:
15853   set x $ac_tag
15854   IFS=$ac_save_IFS
15855   shift
15856   ac_file=$1
15857   shift
15858
15859   case $ac_mode in
15860   :L) ac_source=$1;;
15861   :[FH])
15862     ac_file_inputs=
15863     for ac_f
15864     do
15865       case $ac_f in
15866       -) ac_f="$tmp/stdin";;
15867       *) # Look for the file first in the build tree, then in the source tree
15868          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15869          # because $ac_f cannot contain `:'.
15870          test -f "$ac_f" ||
15871            case $ac_f in
15872            [\\/$]*) false;;
15873            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15874            esac ||
15875            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15876       esac
15877       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15878       as_fn_append ac_file_inputs " '$ac_f'"
15879     done
15880
15881     # Let's still pretend it is `configure' which instantiates (i.e., don't
15882     # use $as_me), people would be surprised to read:
15883     #    /* config.h.  Generated by config.status.  */
15884     configure_input='Generated from '`
15885           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15886         `' by configure.'
15887     if test x"$ac_file" != x-; then
15888       configure_input="$ac_file.  $configure_input"
15889       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15890 $as_echo "$as_me: creating $ac_file" >&6;}
15891     fi
15892     # Neutralize special characters interpreted by sed in replacement strings.
15893     case $configure_input in #(
15894     *\&* | *\|* | *\\* )
15895        ac_sed_conf_input=`$as_echo "$configure_input" |
15896        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15897     *) ac_sed_conf_input=$configure_input;;
15898     esac
15899
15900     case $ac_tag in
15901     *:-:* | *:-) cat >"$tmp/stdin" \
15902       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15903     esac
15904     ;;
15905   esac
15906
15907   ac_dir=`$as_dirname -- "$ac_file" ||
15908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15909          X"$ac_file" : 'X\(//\)[^/]' \| \
15910          X"$ac_file" : 'X\(//\)$' \| \
15911          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15912 $as_echo X"$ac_file" |
15913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15914             s//\1/
15915             q
15916           }
15917           /^X\(\/\/\)[^/].*/{
15918             s//\1/
15919             q
15920           }
15921           /^X\(\/\/\)$/{
15922             s//\1/
15923             q
15924           }
15925           /^X\(\/\).*/{
15926             s//\1/
15927             q
15928           }
15929           s/.*/./; q'`
15930   as_dir="$ac_dir"; as_fn_mkdir_p
15931   ac_builddir=.
15932
15933 case "$ac_dir" in
15934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15935 *)
15936   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15937   # A ".." for each directory in $ac_dir_suffix.
15938   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15939   case $ac_top_builddir_sub in
15940   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15941   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15942   esac ;;
15943 esac
15944 ac_abs_top_builddir=$ac_pwd
15945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15946 # for backward compatibility:
15947 ac_top_builddir=$ac_top_build_prefix
15948
15949 case $srcdir in
15950   .)  # We are building in place.
15951     ac_srcdir=.
15952     ac_top_srcdir=$ac_top_builddir_sub
15953     ac_abs_top_srcdir=$ac_pwd ;;
15954   [\\/]* | ?:[\\/]* )  # Absolute name.
15955     ac_srcdir=$srcdir$ac_dir_suffix;
15956     ac_top_srcdir=$srcdir
15957     ac_abs_top_srcdir=$srcdir ;;
15958   *) # Relative name.
15959     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15960     ac_top_srcdir=$ac_top_build_prefix$srcdir
15961     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15962 esac
15963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15964
15965
15966   case $ac_mode in
15967   :F)
15968   #
15969   # CONFIG_FILE
15970   #
15971
15972   case $INSTALL in
15973   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15974   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15975   esac
15976   ac_MKDIR_P=$MKDIR_P
15977   case $MKDIR_P in
15978   [\\/$]* | ?:[\\/]* ) ;;
15979   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15980   esac
15981 _ACEOF
15982
15983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15984 # If the template does not know about datarootdir, expand it.
15985 # FIXME: This hack should be removed a few years after 2.60.
15986 ac_datarootdir_hack=; ac_datarootdir_seen=
15987 ac_sed_dataroot='
15988 /datarootdir/ {
15989   p
15990   q
15991 }
15992 /@datadir@/p
15993 /@docdir@/p
15994 /@infodir@/p
15995 /@localedir@/p
15996 /@mandir@/p'
15997 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15998 *datarootdir*) ac_datarootdir_seen=yes;;
15999 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16001 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16002 _ACEOF
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004   ac_datarootdir_hack='
16005   s&@datadir@&$datadir&g
16006   s&@docdir@&$docdir&g
16007   s&@infodir@&$infodir&g
16008   s&@localedir@&$localedir&g
16009   s&@mandir@&$mandir&g
16010   s&\\\${datarootdir}&$datarootdir&g' ;;
16011 esac
16012 _ACEOF
16013
16014 # Neutralize VPATH when `$srcdir' = `.'.
16015 # Shell code in configure.ac might set extrasub.
16016 # FIXME: do we really want to maintain this feature?
16017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018 ac_sed_extra="$ac_vpsub
16019 $extrasub
16020 _ACEOF
16021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022 :t
16023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16024 s|@configure_input@|$ac_sed_conf_input|;t t
16025 s&@top_builddir@&$ac_top_builddir_sub&;t t
16026 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16027 s&@srcdir@&$ac_srcdir&;t t
16028 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16029 s&@top_srcdir@&$ac_top_srcdir&;t t
16030 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16031 s&@builddir@&$ac_builddir&;t t
16032 s&@abs_builddir@&$ac_abs_builddir&;t t
16033 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16034 s&@INSTALL@&$ac_INSTALL&;t t
16035 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16036 $ac_datarootdir_hack
16037 "
16038 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16039   || as_fn_error "could not create $ac_file" "$LINENO" 5
16040
16041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16042   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16043   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16045 which seems to be undefined.  Please make sure it is defined." >&5
16046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined.  Please make sure it is defined." >&2;}
16048
16049   rm -f "$tmp/stdin"
16050   case $ac_file in
16051   -) cat "$tmp/out" && rm -f "$tmp/out";;
16052   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16053   esac \
16054   || as_fn_error "could not create $ac_file" "$LINENO" 5
16055  ;;
16056
16057
16058   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16059 $as_echo "$as_me: executing $ac_file commands" >&6;}
16060  ;;
16061   esac
16062
16063
16064   case $ac_file$ac_mode in
16065     "default-1":C)
16066 # Only add multilib support code if we just rebuilt the top-level
16067 # Makefile.
16068 case " $CONFIG_FILES " in
16069  *" Makefile "*)
16070    ac_file=Makefile . ${multi_basedir}/config-ml.in
16071    ;;
16072 esac ;;
16073     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16074   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16075   # are listed without --file.  Let's play safe and only enable the eval
16076   # if we detect the quoting.
16077   case $CONFIG_FILES in
16078   *\'*) eval set x "$CONFIG_FILES" ;;
16079   *)   set x $CONFIG_FILES ;;
16080   esac
16081   shift
16082   for mf
16083   do
16084     # Strip MF so we end up with the name of the file.
16085     mf=`echo "$mf" | sed -e 's/:.*$//'`
16086     # Check whether this is an Automake generated Makefile or not.
16087     # We used to match only the files named `Makefile.in', but
16088     # some people rename them; so instead we look at the file content.
16089     # Grep'ing the first line is not enough: some people post-process
16090     # each Makefile.in and add a new line on top of each file to say so.
16091     # Grep'ing the whole file is not good either: AIX grep has a line
16092     # limit of 2048, but all sed's we know have understand at least 4000.
16093     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16094       dirpart=`$as_dirname -- "$mf" ||
16095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096          X"$mf" : 'X\(//\)[^/]' \| \
16097          X"$mf" : 'X\(//\)$' \| \
16098          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16099 $as_echo X"$mf" |
16100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101             s//\1/
16102             q
16103           }
16104           /^X\(\/\/\)[^/].*/{
16105             s//\1/
16106             q
16107           }
16108           /^X\(\/\/\)$/{
16109             s//\1/
16110             q
16111           }
16112           /^X\(\/\).*/{
16113             s//\1/
16114             q
16115           }
16116           s/.*/./; q'`
16117     else
16118       continue
16119     fi
16120     # Extract the definition of DEPDIR, am__include, and am__quote
16121     # from the Makefile without running `make'.
16122     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16123     test -z "$DEPDIR" && continue
16124     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16125     test -z "am__include" && continue
16126     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16127     # When using ansi2knr, U may be empty or an underscore; expand it
16128     U=`sed -n 's/^U = //p' < "$mf"`
16129     # Find all dependency output files, they are included files with
16130     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16131     # simplest approach to changing $(DEPDIR) to its actual value in the
16132     # expansion.
16133     for file in `sed -n "
16134       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16135          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16136       # Make sure the directory exists.
16137       test -f "$dirpart/$file" && continue
16138       fdir=`$as_dirname -- "$file" ||
16139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140          X"$file" : 'X\(//\)[^/]' \| \
16141          X"$file" : 'X\(//\)$' \| \
16142          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16143 $as_echo X"$file" |
16144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16145             s//\1/
16146             q
16147           }
16148           /^X\(\/\/\)[^/].*/{
16149             s//\1/
16150             q
16151           }
16152           /^X\(\/\/\)$/{
16153             s//\1/
16154             q
16155           }
16156           /^X\(\/\).*/{
16157             s//\1/
16158             q
16159           }
16160           s/.*/./; q'`
16161       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16162       # echo "creating $dirpart/$file"
16163       echo '# dummy' > "$dirpart/$file"
16164     done
16165   done
16166 }
16167  ;;
16168     "libtool":C)
16169
16170     # See if we are running on zsh, and set the options which allow our
16171     # commands through without removal of \ escapes.
16172     if test -n "${ZSH_VERSION+set}" ; then
16173       setopt NO_GLOB_SUBST
16174     fi
16175
16176     cfgfile="${ofile}T"
16177     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16178     $RM "$cfgfile"
16179
16180     cat <<_LT_EOF >> "$cfgfile"
16181 #! $SHELL
16182
16183 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16184 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16187 #
16188 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16189 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16190 #   Written by Gordon Matzigkeit, 1996
16191 #
16192 #   This file is part of GNU Libtool.
16193 #
16194 # GNU Libtool is free software; you can redistribute it and/or
16195 # modify it under the terms of the GNU General Public License as
16196 # published by the Free Software Foundation; either version 2 of
16197 # the License, or (at your option) any later version.
16198 #
16199 # As a special exception to the GNU General Public License,
16200 # if you distribute this file as part of a program or library that
16201 # is built using GNU Libtool, you may include this file under the
16202 # same distribution terms that you use for the rest of that program.
16203 #
16204 # GNU Libtool is distributed in the hope that it will be useful,
16205 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16206 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16207 # GNU General Public License for more details.
16208 #
16209 # You should have received a copy of the GNU General Public License
16210 # along with GNU Libtool; see the file COPYING.  If not, a copy
16211 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16212 # obtained by writing to the Free Software Foundation, Inc.,
16213 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16214
16215
16216 # The names of the tagged configurations supported by this script.
16217 available_tags="CXX "
16218
16219 # ### BEGIN LIBTOOL CONFIG
16220
16221 # Which release of libtool.m4 was used?
16222 macro_version=$macro_version
16223 macro_revision=$macro_revision
16224
16225 # Whether or not to build shared libraries.
16226 build_libtool_libs=$enable_shared
16227
16228 # Whether or not to build static libraries.
16229 build_old_libs=$enable_static
16230
16231 # What type of objects to build.
16232 pic_mode=$pic_mode
16233
16234 # Whether or not to optimize for fast installation.
16235 fast_install=$enable_fast_install
16236
16237 # Shell to use when invoking shell scripts.
16238 SHELL=$lt_SHELL
16239
16240 # An echo program that protects backslashes.
16241 ECHO=$lt_ECHO
16242
16243 # The host system.
16244 host_alias=$host_alias
16245 host=$host
16246 host_os=$host_os
16247
16248 # The build system.
16249 build_alias=$build_alias
16250 build=$build
16251 build_os=$build_os
16252
16253 # A sed program that does not truncate output.
16254 SED=$lt_SED
16255
16256 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16257 Xsed="\$SED -e 1s/^X//"
16258
16259 # A grep program that handles long lines.
16260 GREP=$lt_GREP
16261
16262 # An ERE matcher.
16263 EGREP=$lt_EGREP
16264
16265 # A literal string matcher.
16266 FGREP=$lt_FGREP
16267
16268 # A BSD- or MS-compatible name lister.
16269 NM=$lt_NM
16270
16271 # Whether we need soft or hard links.
16272 LN_S=$lt_LN_S
16273
16274 # What is the maximum length of a command?
16275 max_cmd_len=$max_cmd_len
16276
16277 # Object file suffix (normally "o").
16278 objext=$ac_objext
16279
16280 # Executable file suffix (normally "").
16281 exeext=$exeext
16282
16283 # whether the shell understands "unset".
16284 lt_unset=$lt_unset
16285
16286 # turn spaces into newlines.
16287 SP2NL=$lt_lt_SP2NL
16288
16289 # turn newlines into spaces.
16290 NL2SP=$lt_lt_NL2SP
16291
16292 # An object symbol dumper.
16293 OBJDUMP=$lt_OBJDUMP
16294
16295 # Method to check whether dependent libraries are shared objects.
16296 deplibs_check_method=$lt_deplibs_check_method
16297
16298 # Command to use when deplibs_check_method == "file_magic".
16299 file_magic_cmd=$lt_file_magic_cmd
16300
16301 # The archiver.
16302 AR=$lt_AR
16303 AR_FLAGS=$lt_AR_FLAGS
16304
16305 # A symbol stripping program.
16306 STRIP=$lt_STRIP
16307
16308 # Commands used to install an old-style archive.
16309 RANLIB=$lt_RANLIB
16310 old_postinstall_cmds=$lt_old_postinstall_cmds
16311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16312
16313 # Whether to use a lock for old archive extraction.
16314 lock_old_archive_extraction=$lock_old_archive_extraction
16315
16316 # A C compiler.
16317 LTCC=$lt_CC
16318
16319 # LTCC compiler flags.
16320 LTCFLAGS=$lt_CFLAGS
16321
16322 # Take the output of nm and produce a listing of raw symbols and C names.
16323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16324
16325 # Transform the output of nm in a proper C declaration.
16326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16327
16328 # Transform the output of nm in a C name address pair.
16329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16330
16331 # Transform the output of nm in a C name address pair when lib prefix is needed.
16332 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16333
16334 # The name of the directory that contains temporary libtool files.
16335 objdir=$objdir
16336
16337 # Used to examine libraries when file_magic_cmd begins with "file".
16338 MAGIC_CMD=$MAGIC_CMD
16339
16340 # Must we lock files when doing compilation?
16341 need_locks=$lt_need_locks
16342
16343 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16344 DSYMUTIL=$lt_DSYMUTIL
16345
16346 # Tool to change global to local symbols on Mac OS X.
16347 NMEDIT=$lt_NMEDIT
16348
16349 # Tool to manipulate fat objects and archives on Mac OS X.
16350 LIPO=$lt_LIPO
16351
16352 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16353 OTOOL=$lt_OTOOL
16354
16355 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16356 OTOOL64=$lt_OTOOL64
16357
16358 # Old archive suffix (normally "a").
16359 libext=$libext
16360
16361 # Shared library suffix (normally ".so").
16362 shrext_cmds=$lt_shrext_cmds
16363
16364 # The commands to extract the exported symbol list from a shared archive.
16365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16366
16367 # Variables whose values should be saved in libtool wrapper scripts and
16368 # restored at link time.
16369 variables_saved_for_relink=$lt_variables_saved_for_relink
16370
16371 # Do we need the "lib" prefix for modules?
16372 need_lib_prefix=$need_lib_prefix
16373
16374 # Do we need a version for libraries?
16375 need_version=$need_version
16376
16377 # Library versioning type.
16378 version_type=$version_type
16379
16380 # Shared library runtime path variable.
16381 runpath_var=$runpath_var
16382
16383 # Shared library path variable.
16384 shlibpath_var=$shlibpath_var
16385
16386 # Is shlibpath searched before the hard-coded library search path?
16387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16388
16389 # Format of library name prefix.
16390 libname_spec=$lt_libname_spec
16391
16392 # List of archive names.  First name is the real one, the rest are links.
16393 # The last name is the one that the linker finds with -lNAME
16394 library_names_spec=$lt_library_names_spec
16395
16396 # The coded name of the library, if different from the real name.
16397 soname_spec=$lt_soname_spec
16398
16399 # Permission mode override for installation of shared libraries.
16400 install_override_mode=$lt_install_override_mode
16401
16402 # Command to use after installation of a shared archive.
16403 postinstall_cmds=$lt_postinstall_cmds
16404
16405 # Command to use after uninstallation of a shared archive.
16406 postuninstall_cmds=$lt_postuninstall_cmds
16407
16408 # Commands used to finish a libtool library installation in a directory.
16409 finish_cmds=$lt_finish_cmds
16410
16411 # As "finish_cmds", except a single script fragment to be evaled but
16412 # not shown.
16413 finish_eval=$lt_finish_eval
16414
16415 # Whether we should hardcode library paths into libraries.
16416 hardcode_into_libs=$hardcode_into_libs
16417
16418 # Compile-time system search path for libraries.
16419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16420
16421 # Run-time system search path for libraries.
16422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16423
16424 # Whether dlopen is supported.
16425 dlopen_support=$enable_dlopen
16426
16427 # Whether dlopen of programs is supported.
16428 dlopen_self=$enable_dlopen_self
16429
16430 # Whether dlopen of statically linked programs is supported.
16431 dlopen_self_static=$enable_dlopen_self_static
16432
16433 # Commands to strip libraries.
16434 old_striplib=$lt_old_striplib
16435 striplib=$lt_striplib
16436
16437
16438 # The linker used to build libraries.
16439 LD=$lt_LD
16440
16441 # How to create reloadable object files.
16442 reload_flag=$lt_reload_flag
16443 reload_cmds=$lt_reload_cmds
16444
16445 # Commands used to build an old-style archive.
16446 old_archive_cmds=$lt_old_archive_cmds
16447
16448 # A language specific compiler.
16449 CC=$lt_compiler
16450
16451 # Is the compiler the GNU compiler?
16452 with_gcc=$GCC
16453
16454 # Compiler flag to turn off builtin functions.
16455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16456
16457 # How to pass a linker flag through the compiler.
16458 wl=$lt_lt_prog_compiler_wl
16459
16460 # Additional compiler flags for building library objects.
16461 pic_flag=$lt_lt_prog_compiler_pic
16462
16463 # Compiler flag to prevent dynamic linking.
16464 link_static_flag=$lt_lt_prog_compiler_static
16465
16466 # Does compiler simultaneously support -c and -o options?
16467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16468
16469 # Whether or not to add -lc for building shared libraries.
16470 build_libtool_need_lc=$archive_cmds_need_lc
16471
16472 # Whether or not to disallow shared libs when runtime libs are static.
16473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16474
16475 # Compiler flag to allow reflexive dlopens.
16476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16477
16478 # Compiler flag to generate shared objects directly from archives.
16479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16480
16481 # Whether the compiler copes with passing no objects directly.
16482 compiler_needs_object=$lt_compiler_needs_object
16483
16484 # Create an old-style archive from a shared archive.
16485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16486
16487 # Create a temporary old-style archive to link instead of a shared archive.
16488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16489
16490 # Commands used to build a shared archive.
16491 archive_cmds=$lt_archive_cmds
16492 archive_expsym_cmds=$lt_archive_expsym_cmds
16493
16494 # Commands used to build a loadable module if different from building
16495 # a shared archive.
16496 module_cmds=$lt_module_cmds
16497 module_expsym_cmds=$lt_module_expsym_cmds
16498
16499 # Whether we are building with GNU ld or not.
16500 with_gnu_ld=$lt_with_gnu_ld
16501
16502 # Flag that allows shared libraries with undefined symbols to be built.
16503 allow_undefined_flag=$lt_allow_undefined_flag
16504
16505 # Flag that enforces no undefined symbols.
16506 no_undefined_flag=$lt_no_undefined_flag
16507
16508 # Flag to hardcode \$libdir into a binary during linking.
16509 # This must work even if \$libdir does not exist
16510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16511
16512 # If ld is used when linking, flag to hardcode \$libdir into a binary
16513 # during linking.  This must work even if \$libdir does not exist.
16514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16515
16516 # Whether we need a single "-rpath" flag with a separated argument.
16517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16518
16519 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16520 # DIR into the resulting binary.
16521 hardcode_direct=$hardcode_direct
16522
16523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16524 # DIR into the resulting binary and the resulting library dependency is
16525 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16526 # library is relocated.
16527 hardcode_direct_absolute=$hardcode_direct_absolute
16528
16529 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16530 # into the resulting binary.
16531 hardcode_minus_L=$hardcode_minus_L
16532
16533 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16534 # into the resulting binary.
16535 hardcode_shlibpath_var=$hardcode_shlibpath_var
16536
16537 # Set to "yes" if building a shared library automatically hardcodes DIR
16538 # into the library and all subsequent libraries and executables linked
16539 # against it.
16540 hardcode_automatic=$hardcode_automatic
16541
16542 # Set to yes if linker adds runtime paths of dependent libraries
16543 # to runtime path list.
16544 inherit_rpath=$inherit_rpath
16545
16546 # Whether libtool must link a program against all its dependency libraries.
16547 link_all_deplibs=$link_all_deplibs
16548
16549 # Fix the shell variable \$srcfile for the compiler.
16550 fix_srcfile_path=$lt_fix_srcfile_path
16551
16552 # Set to "yes" if exported symbols are required.
16553 always_export_symbols=$always_export_symbols
16554
16555 # The commands to list exported symbols.
16556 export_symbols_cmds=$lt_export_symbols_cmds
16557
16558 # Symbols that should not be listed in the preloaded symbols.
16559 exclude_expsyms=$lt_exclude_expsyms
16560
16561 # Symbols that must always be exported.
16562 include_expsyms=$lt_include_expsyms
16563
16564 # Commands necessary for linking programs (against libraries) with templates.
16565 prelink_cmds=$lt_prelink_cmds
16566
16567 # Specify filename containing input files.
16568 file_list_spec=$lt_file_list_spec
16569
16570 # How to hardcode a shared library path into an executable.
16571 hardcode_action=$hardcode_action
16572
16573 # The directories searched by this compiler when creating a shared library.
16574 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16575
16576 # Dependencies to place before and after the objects being linked to
16577 # create a shared library.
16578 predep_objects=$lt_predep_objects
16579 postdep_objects=$lt_postdep_objects
16580 predeps=$lt_predeps
16581 postdeps=$lt_postdeps
16582
16583 # The library search path used internally by the compiler when linking
16584 # a shared library.
16585 compiler_lib_search_path=$lt_compiler_lib_search_path
16586
16587 # ### END LIBTOOL CONFIG
16588
16589 _LT_EOF
16590
16591   case $host_os in
16592   aix3*)
16593     cat <<\_LT_EOF >> "$cfgfile"
16594 # AIX sometimes has problems with the GCC collect2 program.  For some
16595 # reason, if we set the COLLECT_NAMES environment variable, the problems
16596 # vanish in a puff of smoke.
16597 if test "X${COLLECT_NAMES+set}" != Xset; then
16598   COLLECT_NAMES=
16599   export COLLECT_NAMES
16600 fi
16601 _LT_EOF
16602     ;;
16603   esac
16604
16605
16606 ltmain="$ac_aux_dir/ltmain.sh"
16607
16608
16609   # We use sed instead of cat because bash on DJGPP gets confused if
16610   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16611   # text mode, it properly converts lines to CR/LF.  This bash problem
16612   # is reportedly fixed, but why not run on old versions too?
16613   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16614     || (rm -f "$cfgfile"; exit 1)
16615
16616   case $xsi_shell in
16617   yes)
16618     cat << \_LT_EOF >> "$cfgfile"
16619
16620 # func_dirname file append nondir_replacement
16621 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16622 # otherwise set result to NONDIR_REPLACEMENT.
16623 func_dirname ()
16624 {
16625   case ${1} in
16626     */*) func_dirname_result="${1%/*}${2}" ;;
16627     *  ) func_dirname_result="${3}" ;;
16628   esac
16629 }
16630
16631 # func_basename file
16632 func_basename ()
16633 {
16634   func_basename_result="${1##*/}"
16635 }
16636
16637 # func_dirname_and_basename file append nondir_replacement
16638 # perform func_basename and func_dirname in a single function
16639 # call:
16640 #   dirname:  Compute the dirname of FILE.  If nonempty,
16641 #             add APPEND to the result, otherwise set result
16642 #             to NONDIR_REPLACEMENT.
16643 #             value returned in "$func_dirname_result"
16644 #   basename: Compute filename of FILE.
16645 #             value retuned in "$func_basename_result"
16646 # Implementation must be kept synchronized with func_dirname
16647 # and func_basename. For efficiency, we do not delegate to
16648 # those functions but instead duplicate the functionality here.
16649 func_dirname_and_basename ()
16650 {
16651   case ${1} in
16652     */*) func_dirname_result="${1%/*}${2}" ;;
16653     *  ) func_dirname_result="${3}" ;;
16654   esac
16655   func_basename_result="${1##*/}"
16656 }
16657
16658 # func_stripname prefix suffix name
16659 # strip PREFIX and SUFFIX off of NAME.
16660 # PREFIX and SUFFIX must not contain globbing or regex special
16661 # characters, hashes, percent signs, but SUFFIX may contain a leading
16662 # dot (in which case that matches only a dot).
16663 func_stripname ()
16664 {
16665   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16666   # positional parameters, so assign one to ordinary parameter first.
16667   func_stripname_result=${3}
16668   func_stripname_result=${func_stripname_result#"${1}"}
16669   func_stripname_result=${func_stripname_result%"${2}"}
16670 }
16671
16672 # func_opt_split
16673 func_opt_split ()
16674 {
16675   func_opt_split_opt=${1%%=*}
16676   func_opt_split_arg=${1#*=}
16677 }
16678
16679 # func_lo2o object
16680 func_lo2o ()
16681 {
16682   case ${1} in
16683     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16684     *)    func_lo2o_result=${1} ;;
16685   esac
16686 }
16687
16688 # func_xform libobj-or-source
16689 func_xform ()
16690 {
16691   func_xform_result=${1%.*}.lo
16692 }
16693
16694 # func_arith arithmetic-term...
16695 func_arith ()
16696 {
16697   func_arith_result=$(( $* ))
16698 }
16699
16700 # func_len string
16701 # STRING may not start with a hyphen.
16702 func_len ()
16703 {
16704   func_len_result=${#1}
16705 }
16706
16707 _LT_EOF
16708     ;;
16709   *) # Bourne compatible functions.
16710     cat << \_LT_EOF >> "$cfgfile"
16711
16712 # func_dirname file append nondir_replacement
16713 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16714 # otherwise set result to NONDIR_REPLACEMENT.
16715 func_dirname ()
16716 {
16717   # Extract subdirectory from the argument.
16718   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16719   if test "X$func_dirname_result" = "X${1}"; then
16720     func_dirname_result="${3}"
16721   else
16722     func_dirname_result="$func_dirname_result${2}"
16723   fi
16724 }
16725
16726 # func_basename file
16727 func_basename ()
16728 {
16729   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16730 }
16731
16732
16733 # func_stripname prefix suffix name
16734 # strip PREFIX and SUFFIX off of NAME.
16735 # PREFIX and SUFFIX must not contain globbing or regex special
16736 # characters, hashes, percent signs, but SUFFIX may contain a leading
16737 # dot (in which case that matches only a dot).
16738 # func_strip_suffix prefix name
16739 func_stripname ()
16740 {
16741   case ${2} in
16742     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16743     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16744   esac
16745 }
16746
16747 # sed scripts:
16748 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16749 my_sed_long_arg='1s/^-[^=]*=//'
16750
16751 # func_opt_split
16752 func_opt_split ()
16753 {
16754   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16755   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16756 }
16757
16758 # func_lo2o object
16759 func_lo2o ()
16760 {
16761   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16762 }
16763
16764 # func_xform libobj-or-source
16765 func_xform ()
16766 {
16767   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16768 }
16769
16770 # func_arith arithmetic-term...
16771 func_arith ()
16772 {
16773   func_arith_result=`expr "$@"`
16774 }
16775
16776 # func_len string
16777 # STRING may not start with a hyphen.
16778 func_len ()
16779 {
16780   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16781 }
16782
16783 _LT_EOF
16784 esac
16785
16786 case $lt_shell_append in
16787   yes)
16788     cat << \_LT_EOF >> "$cfgfile"
16789
16790 # func_append var value
16791 # Append VALUE to the end of shell variable VAR.
16792 func_append ()
16793 {
16794   eval "$1+=\$2"
16795 }
16796 _LT_EOF
16797     ;;
16798   *)
16799     cat << \_LT_EOF >> "$cfgfile"
16800
16801 # func_append var value
16802 # Append VALUE to the end of shell variable VAR.
16803 func_append ()
16804 {
16805   eval "$1=\$$1\$2"
16806 }
16807
16808 _LT_EOF
16809     ;;
16810   esac
16811
16812
16813   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16814     || (rm -f "$cfgfile"; exit 1)
16815
16816   mv -f "$cfgfile" "$ofile" ||
16817     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16818   chmod +x "$ofile"
16819
16820
16821     cat <<_LT_EOF >> "$ofile"
16822
16823 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16824
16825 # The linker used to build libraries.
16826 LD=$lt_LD_CXX
16827
16828 # How to create reloadable object files.
16829 reload_flag=$lt_reload_flag_CXX
16830 reload_cmds=$lt_reload_cmds_CXX
16831
16832 # Commands used to build an old-style archive.
16833 old_archive_cmds=$lt_old_archive_cmds_CXX
16834
16835 # A language specific compiler.
16836 CC=$lt_compiler_CXX
16837
16838 # Is the compiler the GNU compiler?
16839 with_gcc=$GCC_CXX
16840
16841 # Compiler flag to turn off builtin functions.
16842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16843
16844 # How to pass a linker flag through the compiler.
16845 wl=$lt_lt_prog_compiler_wl_CXX
16846
16847 # Additional compiler flags for building library objects.
16848 pic_flag=$lt_lt_prog_compiler_pic_CXX
16849
16850 # Compiler flag to prevent dynamic linking.
16851 link_static_flag=$lt_lt_prog_compiler_static_CXX
16852
16853 # Does compiler simultaneously support -c and -o options?
16854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16855
16856 # Whether or not to add -lc for building shared libraries.
16857 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16858
16859 # Whether or not to disallow shared libs when runtime libs are static.
16860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16861
16862 # Compiler flag to allow reflexive dlopens.
16863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16864
16865 # Compiler flag to generate shared objects directly from archives.
16866 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16867
16868 # Whether the compiler copes with passing no objects directly.
16869 compiler_needs_object=$lt_compiler_needs_object_CXX
16870
16871 # Create an old-style archive from a shared archive.
16872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16873
16874 # Create a temporary old-style archive to link instead of a shared archive.
16875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16876
16877 # Commands used to build a shared archive.
16878 archive_cmds=$lt_archive_cmds_CXX
16879 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16880
16881 # Commands used to build a loadable module if different from building
16882 # a shared archive.
16883 module_cmds=$lt_module_cmds_CXX
16884 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16885
16886 # Whether we are building with GNU ld or not.
16887 with_gnu_ld=$lt_with_gnu_ld_CXX
16888
16889 # Flag that allows shared libraries with undefined symbols to be built.
16890 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16891
16892 # Flag that enforces no undefined symbols.
16893 no_undefined_flag=$lt_no_undefined_flag_CXX
16894
16895 # Flag to hardcode \$libdir into a binary during linking.
16896 # This must work even if \$libdir does not exist
16897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16898
16899 # If ld is used when linking, flag to hardcode \$libdir into a binary
16900 # during linking.  This must work even if \$libdir does not exist.
16901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16902
16903 # Whether we need a single "-rpath" flag with a separated argument.
16904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16905
16906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16907 # DIR into the resulting binary.
16908 hardcode_direct=$hardcode_direct_CXX
16909
16910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16911 # DIR into the resulting binary and the resulting library dependency is
16912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16913 # library is relocated.
16914 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16915
16916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16917 # into the resulting binary.
16918 hardcode_minus_L=$hardcode_minus_L_CXX
16919
16920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16921 # into the resulting binary.
16922 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16923
16924 # Set to "yes" if building a shared library automatically hardcodes DIR
16925 # into the library and all subsequent libraries and executables linked
16926 # against it.
16927 hardcode_automatic=$hardcode_automatic_CXX
16928
16929 # Set to yes if linker adds runtime paths of dependent libraries
16930 # to runtime path list.
16931 inherit_rpath=$inherit_rpath_CXX
16932
16933 # Whether libtool must link a program against all its dependency libraries.
16934 link_all_deplibs=$link_all_deplibs_CXX
16935
16936 # Fix the shell variable \$srcfile for the compiler.
16937 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16938
16939 # Set to "yes" if exported symbols are required.
16940 always_export_symbols=$always_export_symbols_CXX
16941
16942 # The commands to list exported symbols.
16943 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16944
16945 # Symbols that should not be listed in the preloaded symbols.
16946 exclude_expsyms=$lt_exclude_expsyms_CXX
16947
16948 # Symbols that must always be exported.
16949 include_expsyms=$lt_include_expsyms_CXX
16950
16951 # Commands necessary for linking programs (against libraries) with templates.
16952 prelink_cmds=$lt_prelink_cmds_CXX
16953
16954 # Specify filename containing input files.
16955 file_list_spec=$lt_file_list_spec_CXX
16956
16957 # How to hardcode a shared library path into an executable.
16958 hardcode_action=$hardcode_action_CXX
16959
16960 # The directories searched by this compiler when creating a shared library.
16961 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16962
16963 # Dependencies to place before and after the objects being linked to
16964 # create a shared library.
16965 predep_objects=$lt_predep_objects_CXX
16966 postdep_objects=$lt_postdep_objects_CXX
16967 predeps=$lt_predeps_CXX
16968 postdeps=$lt_postdeps_CXX
16969
16970 # The library search path used internally by the compiler when linking
16971 # a shared library.
16972 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16973
16974 # ### END LIBTOOL TAG CONFIG: CXX
16975 _LT_EOF
16976
16977  ;;
16978     "interception/Makefile":F) cat > vpsed$$ << \_EOF
16979 s!`test -f '$<' || echo '$(srcdir)/'`!!
16980 _EOF
16981    sed -f vpsed$$ $ac_file > tmp$$
16982    mv tmp$$ $ac_file
16983    rm vpsed$$
16984    echo 'MULTISUBDIR =' >> $ac_file
16985    ml_norecursion=yes
16986    . ${multi_basedir}/config-ml.in
16987    { ml_norecursion=; unset ml_norecursion;}
16988  ;;
16989     "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
16990 s!`test -f '$<' || echo '$(srcdir)/'`!!
16991 _EOF
16992    sed -f vpsed$$ $ac_file > tmp$$
16993    mv tmp$$ $ac_file
16994    rm vpsed$$
16995    echo 'MULTISUBDIR =' >> $ac_file
16996    ml_norecursion=yes
16997    . ${multi_basedir}/config-ml.in
16998    { ml_norecursion=; unset ml_norecursion;}
16999  ;;
17000     "asan/Makefile":F) cat > vpsed$$ << \_EOF
17001 s!`test -f '$<' || echo '$(srcdir)/'`!!
17002 _EOF
17003    sed -f vpsed$$ $ac_file > tmp$$
17004    mv tmp$$ $ac_file
17005    rm vpsed$$
17006    echo 'MULTISUBDIR =' >> $ac_file
17007    ml_norecursion=yes
17008    . ${multi_basedir}/config-ml.in
17009    { ml_norecursion=; unset ml_norecursion;}
17010  ;;
17011     "tsan/Makefile":F) cat > vpsed$$ << \_EOF
17012 s!`test -f '$<' || echo '$(srcdir)/'`!!
17013 _EOF
17014     sed -f vpsed$$ $ac_file > tmp$$
17015     mv tmp$$ $ac_file
17016     rm vpsed$$
17017     echo 'MULTISUBDIR =' >> $ac_file
17018     ml_norecursion=yes
17019     . ${multi_basedir}/config-ml.in
17020     { ml_norecursion=; unset ml_norecursion;}
17021  ;;
17022
17023   esac
17024 done # for ac_tag
17025
17026
17027 as_fn_exit 0
17028 _ACEOF
17029 ac_clean_files=$ac_clean_files_save
17030
17031 test $ac_write_fail = 0 ||
17032   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17033
17034
17035 # configure is writing to config.log, and then calls config.status.
17036 # config.status does its own redirection, appending to config.log.
17037 # Unfortunately, on DOS this fails, as config.log is still kept open
17038 # by configure, so config.status won't be able to write to it; its
17039 # output is simply discarded.  So we exec the FD to /dev/null,
17040 # effectively closing config.log, so it can be properly (re)opened and
17041 # appended to by config.status.  When coming back to configure, we
17042 # need to make the FD available again.
17043 if test "$no_create" != yes; then
17044   ac_cs_success=:
17045   ac_config_status_args=
17046   test "$silent" = yes &&
17047     ac_config_status_args="$ac_config_status_args --quiet"
17048   exec 5>/dev/null
17049   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17050   exec 5>>config.log
17051   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17052   # would make configure fail if this is the last instruction.
17053   $ac_cs_success || as_fn_exit $?
17054 fi
17055 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17057 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17058 fi
17059